-
Get server cert
-
Add cluster to your kubectl config
kubectl config set-cluster pi --server https://k8s.fdk.codes:6443 --certificate-authority server-ca.crt --embed-certs
-
Get user cert and key from server
-
Add credentials to your kubectl config
kubectl get secrets frederik -o jsonpath='{.data.tls\.crt}' | base64 --decode > frederik.crt kubectl get secrets frederik -o jsonpath='{.data.tls\.key}' | base64 --decode > frederik.key kubectl config set-credentials pi-frederik --client-certificate frederik.crt --client-key frederik.key --embed-certs
-
Add context to your kubectl config
kubectl config set-context pi-frederik --cluster=pi --namespace=default --user=pi-frederik
-
Switch context and test your connection!
kubectl config use-context pi-frederik kubectl get pods
terraform -chdir=preinstall apply -var-file=../terraform.tfvars
terraform apply
terraform -chdir=postinstall apply -var-file=../terraform.tfvars -var-file=../secrets.auto.tfvars
terraform apply
does not work from scratch since istio CRDs are not known in
the beginning so that planing is failing. Work around comment
this on initial run. Related
issue
- fluentd config logs
- remove k8s-dashboard