Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoegaarden/weave-scope-pks
Can you install weave-scope on a PKS deployed cluster?
https://github.com/hoegaarden/weave-scope-pks
bosh-cli cfcr k8s kubernetes pks weave weave-scope
Last synced: 12 days ago
JSON representation
Can you install weave-scope on a PKS deployed cluster?
- Host: GitHub
- URL: https://github.com/hoegaarden/weave-scope-pks
- Owner: hoegaarden
- Created: 2019-01-13T02:01:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-13T02:06:11.000Z (almost 6 years ago)
- Last Synced: 2023-04-09T12:18:24.580Z (over 1 year ago)
- Topics: bosh-cli, cfcr, k8s, kubernetes, pks, weave, weave-scope
- Language: Shell
- Size: 1000 Bytes
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weave Scope for PKS
## What?
```
./get-weave-scope-for-pks.sh | kubectl apply -f -
```This will:
- download the spec from `cloud.weave.works` [as documented][weave-docs]
- patch them with the above mentioned changes
- apply those to your currently targeted clusterTo patch the upstream specs the [bosh cli][bosh-cli] will be used, specifically
the `interpolate` command with [an `ops-file`][ops-file] holding the patches.**Note:**
Keep in mind to enable priviliged containers in OpsManager.
## Why?
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## Others solutions tested:
### kustomize
While [`kustomize`][kustomize] looks interesting, esp. because it will be integrated in `kubectl` directly, I ran into som issues:
- `kustomize` cannot use a URL that does not point to a git rope as a *base*
- `kustomize` can only patch `Kind: List` specs (that's what we get from weave) with JSON patches
- JSON patch doe not work well for replacing with arrays of objects### tbc (maybe)
- ...
[bosh-cli]: https://bosh.io/docs/cli-v2/
[ops-file]: https://bosh.io/docs/cli-ops-files/
[kustomize]: https://kustomize.io
[weave-docs]: https://www.weave.works/docs/scope/latest/installing/#k8s