tree: 10774b084cd8bf1e8abc816098993238130dcc35 [path history] [tgz]
  1. Makefile
  2. README.md
  3. create-switch-pod-sa.sh
  4. go/
  5. images/
  6. kubeconfig.yaml
switchboard/README.md

Switchboard

See the design doc at http://go/skia-switchboard.

kubeconfig.yaml

The kubeconfig.yaml file is embedded via the go/kubeconfig module.

To regenerate the ‘kubeconfig.yaml’ file first define:

export GET_CMD="gcloud container clusters describe [CLUSTER] --zone=[ZONE]"

Then run:

cat > kubeconfig.yaml <<EOF
apiVersion: v1
kind: Config
current-context: my-cluster
contexts: [{name: my-cluster, context: {cluster: cluster-1, user: user-1}}]
users: [{name: user-1, user: {auth-provider: {name: gcp}}}]
clusters:
- name: cluster-1
cluster:
    server: "https://$(eval "$GET_CMD --format='value(endpoint)'")"
    certificate-authority-data: "$(eval "$GET_CMD --format='value(masterAuth.clusterCaCertificate)'")"
EOF

Found in https://ahmet.im/blog/authenticating-to-gke-without-gcloud/

The kubeconfig.yaml contains no secret information and can be safely checked in to the git repository.