mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
- Change apigroups to apiGroups in cluster-role.yaml - Change resourcenames to resourceNames in cluster-role.yaml - Add selector in deploy.yaml and ds.yaml Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
70 lines
1.9 KiB
YAML
70 lines
1.9 KiB
YAML
# borrowed from https://cloud.weave.works/k8s/scope.yaml?k8s-version=1.9.3
|
|
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: weave-scope-agent
|
|
labels:
|
|
name: weave-scope-agent
|
|
app: weave-scope
|
|
weave-cloud-component: scope
|
|
weave-scope-component: agent
|
|
namespace: weave
|
|
spec:
|
|
minReadySeconds: 5
|
|
selector:
|
|
matchLabels:
|
|
app: weave-scope
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: weave-scope-agent
|
|
app: weave-scope
|
|
weave-cloud-component: scope
|
|
weave-scope-component: agent
|
|
spec:
|
|
containers:
|
|
- name: scope-agent
|
|
args:
|
|
- '--no-app'
|
|
- '--probe.docker.bridge=docker0'
|
|
- '--probe.docker=true'
|
|
- '--probe.kubernetes=true'
|
|
- 'weave-scope-app.weave.svc.cluster.local:80'
|
|
env:
|
|
- name: KUBERNETES_NODENAME
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: spec.nodeName
|
|
image: weaveworks/scope:1.9.0
|
|
imagePullPolicy: IfNotPresent
|
|
securityContext:
|
|
privileged: true
|
|
volumeMounts:
|
|
- name: docker-socket
|
|
mountPath: /var/run/docker.sock
|
|
- name: scope-plugins
|
|
mountPath: /var/run/scope/plugins
|
|
- name: sys-kernel-debug
|
|
mountPath: /sys/kernel/debug
|
|
dnsPolicy: ClusterFirstWithHostNet
|
|
hostNetwork: true
|
|
hostPID: true
|
|
serviceAccountName: weave-scope
|
|
tolerations:
|
|
- effect: NoSchedule
|
|
operator: Exists
|
|
volumes:
|
|
- name: docker-socket
|
|
hostPath:
|
|
path: /var/run/docker.sock
|
|
- name: scope-plugins
|
|
hostPath:
|
|
path: /var/run/scope/plugins
|
|
- name: sys-kernel-debug
|
|
hostPath:
|
|
path: /sys/kernel/debug
|
|
updateStrategy:
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|