tree: f639ef023013c34ccc84c79392bc63bcee9e9519 [path history] [tgz]
  1. auth-proxy/
  2. base-cipd/
  3. basealpine/
  4. clusters/
  5. configmap-reload/
  6. doxygen/
  7. expand-and-reload/
  8. go/
  9. repo-sync/
  10. secrets/
  11. attach.sh
  12. backup-secrets.sh
  13. build_auth_proxy_release
  14. build_base_cipd_release
  15. build_basealpine_release
  16. build_configmap_reload_release
  17. build_doxygen_release
  18. build_expand_and_reload_release
  19. build_reposync_release
  20. clusters.sh
  21. config.sh
  22. corp-config.sh
  23. create-cluster-corp.sh
  24. create-cluster.sh
  25. create-cq-watcher-sa.sh
  26. create-csrf-salt-secret.sh
  27. create-node-pool.sh
  28. create-prober-sa.sh
  29. create-repo-sync-skia-sa.sh
  30. create-skia-corp-cert.sh
  31. create-skia-doc-sa.sh
  32. create-skia-public-auth-sa.sh
  33. create-webhook-request-salt-secret.sh
  34. edit-corp-legacy-login-secrets.sh
  35. kube.mk
  36. Makefile
  37. README.md
  38. restore-secret.sh
  39. set-backend-timeouts.sh
kube/README.md

Kubernetes config and applications

Scripts, YAML files, and utility apps to run our kubernetes cluster(s). Each cluster will have its own subdirectory that matches the name of the GCE project.

Ingress

The ingress configs presume that the IP address and certs have already been created and named, both of which can be done via command line.

Upload certs:

gcloud compute ssl-certificates create skia-org --certificate=skia.pem --private-key=skia.key

Take care when copying the certs around, for example, download them onto a ramdrive and unmount the ramdrive after they have been uploaded. See ‘create-sa.sh’ in this directory.

Reserving a named global IP address:

gcloud compute addresses create skia-org --global

pushk and kube/clusters/config.json

The definitive list of clusters and how to talk to each one is stored in kube/clusters/config.json.

This config file also defines the git repo where YAML files are stored and where to checkout that repo when pushing. The location of the checkout can be set by setting the PUSHK_GITDIR environment variable.

The k8s YAML files are checked into https://skia.googlesource.com/k8s-config/, with one sub-directory for each cluster.

When you run pushk it will update the images for all the clusters and then run kubectl apply for each file and for each cluster.

Standing up a new cluster in a different project

  1. Add a new __skia_NNN function to clusters.sh.
  2. Create the config-NNN.sh file.
  3. Copy and modify the create-cluster-corp.sh script.
  4. Add a node pool if necessary using the web UI.
  5. Update kube/clusters/config.json with info on the new cluster.