tree: d7438ecee033b62bb7009c28de9ba05fb3847b8d [path history] [tgz]
  1. go/
  2. BUILD.bazel
  3. create-switch-pod-sa.sh
  4. kubeconfig.yaml
  5. Makefile
  6. README.md
  7. win.yml
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.