{"id":17609771,"url":"https://github.com/hoegaarden/weave-scope-pks","last_synced_at":"2026-05-02T13:32:03.475Z","repository":{"id":66073275,"uuid":"165455797","full_name":"hoegaarden/weave-scope-pks","owner":"hoegaarden","description":"Can you install weave-scope on a PKS deployed cluster?","archived":false,"fork":false,"pushed_at":"2019-01-13T02:06:11.000Z","size":1,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T23:30:07.436Z","etag":null,"topics":["bosh-cli","cfcr","k8s","kubernetes","pks","weave","weave-scope"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hoegaarden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-13T02:01:47.000Z","updated_at":"2020-09-10T12:00:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"95594afd-0d15-4517-8a4e-01f5f1029993","html_url":"https://github.com/hoegaarden/weave-scope-pks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hoegaarden/weave-scope-pks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoegaarden%2Fweave-scope-pks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoegaarden%2Fweave-scope-pks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoegaarden%2Fweave-scope-pks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoegaarden%2Fweave-scope-pks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoegaarden","download_url":"https://codeload.github.com/hoegaarden/weave-scope-pks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoegaarden%2Fweave-scope-pks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32536576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T12:25:33.646Z","status":"ssl_error","status_checked_at":"2026-05-02T12:24:51.733Z","response_time":132,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bosh-cli","cfcr","k8s","kubernetes","pks","weave","weave-scope"],"created_at":"2024-10-22T17:09:58.348Z","updated_at":"2026-05-02T13:32:03.422Z","avatar_url":"https://github.com/hoegaarden.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weave Scope for PKS\n\n## What?\n\n```\n./get-weave-scope-for-pks.sh | kubectl apply -f -\n```\n\nThis will:\n- download the spec from `cloud.weave.works` [as documented][weave-docs]\n- patch them with the above mentioned changes\n- apply those to your currently targeted cluster\n\nTo patch the upstream specs the [bosh cli][bosh-cli] will be used, specifically\nthe `interpolate` command with [an `ops-file`][ops-file] holding the patches.\n\n**Note:**\n\nKeep in mind to enable priviliged containers in OpsManager.\n\n## Why?\n\nFor PKS deployed clusters some things in the specs provided by weave need to be\nchanged. Currently those changes are:\n- docker's socket is in `/var/vcap/sys/run/docker/docker.sock`\n- weave net integration is specificaly disabled, as PKS comes with either NSX-T or flannel\n\n## Others solutions tested:\n\n### kustomize\n\nWhile [`kustomize`][kustomize] looks interesting, esp. because it will be integrated in `kubectl` directly, I ran into som issues:\n\n- `kustomize` cannot use a URL that does not point to a git rope as a *base*\n- `kustomize` can only patch `Kind: List` specs (that's what we get from weave) with JSON patches\n- JSON patch doe not work well for replacing with arrays of objects\n\n### tbc (maybe)\n\n- ...\n\n[bosh-cli]: https://bosh.io/docs/cli-v2/\n[ops-file]: https://bosh.io/docs/cli-ops-files/\n[kustomize]: https://kustomize.io\n[weave-docs]: https://www.weave.works/docs/scope/latest/installing/#k8s","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoegaarden%2Fweave-scope-pks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoegaarden%2Fweave-scope-pks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoegaarden%2Fweave-scope-pks/lists"}