Skip to content

Infrastructure as Code that are running at my home!

Notifications You must be signed in to change notification settings

SlashNephy/infrastructure

Repository files navigation

infrastructure

Setup k8s Cluster

Ensure the contents of 1password-credentials.json are Base64-encoded before applying the manifest.

$ kubectl kustomize --enable-helm k8s/init/${ENV_NAME} | kubectl apply -f -

Useful Commands

  • Generate long-lived bearer token for kubernetes-dashboard
$ kubectl create token admin-user -n kubernetes-dashboard --duration=4294967296s
  • Obtain Argo CD initial password
$ kubectl get secret argocd-initial-admin-secret \
    -n argo-cd \
    -o jsonpath="{.data.password}" | base64 -d; echo
  • Format / Lint manifest files
$ yarn format
$ yarn lint