./get-weave-scope-for-pks.sh | kubectl apply -f -
This will:
- download the spec from
cloud.weave.worksas documented - patch them with the above mentioned changes
- apply those to your currently targeted cluster
To patch the upstream specs the bosh cli will be used, specifically
the interpolate command with an ops-file holding the patches.
Note:
Keep in mind to enable priviliged containers in OpsManager.
For PKS deployed clusters some things in the specs provided by weave need to be changed. Currently those changes are:
- docker's socket is in
/var/vcap/sys/run/docker/docker.sock - weave net integration is specificaly disabled, as PKS comes with either NSX-T or flannel
While kustomize looks interesting, esp. because it will be integrated in kubectl directly, I ran into som issues:
kustomizecannot use a URL that does not point to a git rope as a basekustomizecan only patchKind: Listspecs (that's what we get from weave) with JSON patches- JSON patch doe not work well for replacing with arrays of objects
- ...