Skip to content

Instantly share code, notes, and snippets.

@taking
Last active July 21, 2023 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taking/74d199df76b565f504c1ccf39cb6d8ff to your computer and use it in GitHub Desktop.
Save taking/74d199df76b565f504c1ccf39cb6d8ff to your computer and use it in GitHub Desktop.

Kasten's K10 Installation with Helm

  • Kasten's K10 on Kubernetes

Prerequisites

References

helm update

helm repo add kasten https://charts.kasten.io/
helm repo update kasten

Install (Default)

_HTPASSWD="admin:{SHA}0DPiKuNIrrVmD8IUCuw1hQxNqZc=" # https://hostingcanada.org/htpasswd-generator/
cat <<EOF > k10-values.yaml
auth:
  basicAuth:
    enabled: true
    htpasswd: ${_HTPASSWD}
EOF

install (Nginx Ingress)

_DOMAIN="backup.dev-t.xyz"
_HTPASSWD="admin:{SHA}0DPiKuNIrrVmD8IUCuw1hQxNqZc=" # https://hostingcanada.org/htpasswd-generator/
cat <<EOF > k10-values.yaml
ingress:
  create: true

  annotations:
    kubernetes.io/ingress.class: "nginx"    
    kubernetes.io/tls-acme: "true"
    cert-manager.io/cluster-issuer: "letsencrypt-staging"
    nginx.ingress.kubernetes.io/ssl-redirect: 'true'
    nginx.ingress.kubernetes.io/backend-protocol: 'HTTPS'

  host: ${_DOMAIN}
  tls:
    enabled: true
    secretName: backup-dev-t-xyz-tls

auth:
  basicAuth:
    enabled: true
    htpasswd: ${_HTPASSWD}
EOF
helm install k10 kasten/k10 \
    --create-namespace \
    --namespace kasten-io \
    -f k10-values.yaml

How-to

  • Dashboard : https://${_DOMAIN}/k10/#/

ScreenShot

image image image image image

@taking
Copy link
Author

taking commented Jan 10, 2023

(Option) Traefik IngressRoute

cat <<'EOF' | kubectl apply -f -
# dashboard.yaml
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: kasten-dashboard
  namespace: kasten
spec:
  entryPoints:
  - websecure
  routes:
  - match: Host(`dashboard.kasten.dev-t.xyz`)
    kind: Rule
    services:
    - name: gateway
      port: 8000
  tls:
    certResolver: cloudflare
EOF

@taking
Copy link
Author

taking commented Jul 21, 2023

kubectl patch svc gateway -n kasten-io --type='json' -p '[{"op":"replace","path":"/spec/type","value":"NodePort"},{"op":"replace","path":"/spec/ports/0/nodePort","value":32071}]'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment