Am using spinnaker helm chart to deploy Spinnaker in my kubernetes cluster.
https://github.com/helm/charts/tree/master/stable/spinnaker
Using the below steps we can add k8s cluster to spinnaker.
- Upload kubeconfig to a secret
$ kubectl create secret generic --from-file=$HOME/.kube/config my-kubeconfig
- Set the following values of the chart:
kubeConfig:
enabled: true
secretName: my-kubeconfig
secretKey: config
contexts:
# Names of contexts available in the uploaded kubeconfig
- my-context
# This is the context from the list above that you would like
# to deploy Spinnaker itself to.
deploymentContext: my-context
I would like to include Dev,Test,QA k8s clusters. I can only include Dev. Let me know how do i include more than one cluster.