doks-examples
doks-examples copied to clipboard
metrics-server: try replacing helm with kustomize
This PR proposes the use of the kustomize included in kubectl
instead of the third-party helm
to deploy metrics-server.
The way this works is roughly:
- create a DOKS cluster (just like before)
- clone
kubernetes-incubator/metrics-server
at a specific git ref - call
kubectl kustomize
in themetrics-server
directory
- this makes use of the
kustomization.yaml
file in themetrics-server
directory - the
kustomization.yaml
file points at example deployment manifests in the clonedkubernetes-incubator/metrics-server
directory - the
kustomization.yaml
patches the upstream example deployment manifests with settings similar to what came with thehelm
chart
- just like before, wait until the
metrics-server
pod(s) are ready
One major difference from the helm
chart is that with helm
it was easy to deploy metrics-server
to its own namespace whereas the upstream example manifests on which the kustomize
approach is based assume deployment in kube-system
. It wasn't straightforward to use kustomize
patches or bases to do something similar -- I'm sure it's possible, I just haven't found the minimal set of patches necessary yet.
I just merged a PR that switches to CircleCI so you shouldn't hit the invalid-token issue anymore with this after rebasing onto master.