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