File tree Expand file tree Collapse file tree 5 files changed +27
-21
lines changed
srv/salt/kubernetes/addons/weave-scope Expand file tree Collapse file tree 5 files changed +27
-21
lines changed Original file line number Diff line number Diff line change 22# vim: ft=jinja
33
44{#- Get the `tplroot` from `tpldir` #}
5- {% - from "kubernetes/map.jinja" import common with context - %}
5+ {% from "kubernetes/map.jinja" import common with context %}
66
77/srv/kubernetes/manifests/weave-scope:
88 file.directory:
7272 - mode: "0644"
7373 - context:
7474 tpldir: {{ tpldir }}
75- {% - else %}
75+ {% - else %}
7676/srv/kubernetes/manifests/weave-scope/ds.yaml:
7777 require:
7878 - file: /srv/kubernetes/manifests/weave-scope
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ metadata:
1717 namespace: weave
1818spec:
1919 minReadySeconds: 5
20+ selector:
21+ matchLabels:
22+ app: weave-scope
2023 template:
2124 metadata:
2225 labels:
@@ -28,17 +31,17 @@ spec:
2831 containers:
2932 - name: scope-agent
3033 args:
34+ {% - if common .cni .provider == "weave" %}
35+ - '--weave=true'
36+ {% - else %}
37+ - '--weave=false'
38+ {% - endif %}
3139 - '--no-app'
3240 - '--probe.docker=false'
3341 - '--probe.kubernetes=true'
3442 - '--probe.cri=true'
3543 - '--probe.cri.endpoint=unix:///run/containerd/containerd.sock'
3644 - 'weave-scope-app.weave.svc.cluster.local.:80'
37- {% - if common .cni .provider == "weave" %}
38- - '--weave=true'
39- {% - else %}
40- - '--weave=false'
41- {% - endif %}
4245 env:
4346 - name: KUBERNETES_NODENAME
4447 valueFrom:
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ metadata:
1717 namespace: weave
1818spec:
1919 minReadySeconds: 5
20+ selector:
21+ matchLabels:
22+ app: weave-scope
2023 template:
2124 metadata:
2225 labels:
@@ -28,17 +31,17 @@ spec:
2831 containers:
2932 - name: scope-agent
3033 args:
34+ {% - if common .cni .provider == "weave" %}
35+ - '--weave=true'
36+ {% - else %}
37+ - '--weave=false'
38+ {% - endif %}
3139 - '--no-app'
3240 - '--probe.docker=false'
3341 - '--probe.kubernetes=true'
3442 - '--probe.cri=true'
3543 - '--probe.cri.endpoint=unix:///var/run/crio/crio.sock'
3644 - 'weave-scope-app.weave.svc.cluster.local.:80'
37- {% - if common .cni .provider == "weave" %}
38- - '--weave=true'
39- {% - else %}
40- - '--weave=false'
41- {% - endif %}
4245 env:
4346 - name: KUBERNETES_NODENAME
4447 valueFrom:
Original file line number Diff line number Diff line change @@ -32,17 +32,17 @@ spec:
3232 containers:
3333 - name: scope-agent
3434 args:
35+ {% - if common .cni .provider == "weave" %}
36+ - '--weave=true'
37+ {% - else %}
38+ - '--weave=false'
39+ {% - endif %}
3540 - '--mode=probe'
3641 - '--probe-only'
3742 - '--probe.kubernetes.role=host'
3843 - '--probe.docker.bridge=docker0'
3944 - '--probe.docker=true'
4045 - 'weave-scope-app.weave.svc.cluster.local.:80'
41- {% - if common .cni .provider == "weave" %}
42- - '--weave=true'
43- {% - else %}
44- - '--weave=false'
45- {% - endif %}
4646 env:
4747 - name: SCOPE_HOSTNAME
4848 valueFrom:
Original file line number Diff line number Diff line change @@ -36,15 +36,15 @@ spec:
3636 containers:
3737 - name: scope-cluster-agent
3838 args:
39- - '--mode=probe'
40- - '--probe-only'
41- - '--probe.kubernetes.role=cluster'
42- - 'weave-scope-app.weave.svc.cluster.local.:80'
4339 {% - if common .cni .provider == "weave" %}
4440 - '--weave=true'
4541 {% - else %}
4642 - '--weave=false'
4743 {% - endif %}
44+ - '--mode=probe'
45+ - '--probe-only'
46+ - '--probe.kubernetes.role=cluster'
47+ - 'weave-scope-app.weave.svc.cluster.local.:80'
4848 command:
4949 - /home/weave/scope
5050 image: '{{ weave_scope.image }}'
You can’t perform that action at this time.
0 commit comments