69 lines
1.6 KiB
YAML
69 lines
1.6 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: weave-net
|
|
namespace: kube-system
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: weave-net
|
|
annotations:
|
|
scheduler.alpha.kubernetes.io/tolerations: |
|
|
[
|
|
{
|
|
"key": "dedicated",
|
|
"operator": "Equal",
|
|
"value": "master",
|
|
"effect": "NoSchedule"
|
|
}
|
|
]
|
|
spec:
|
|
hostNetwork: true
|
|
hostPID: true
|
|
containers:
|
|
- name: weave
|
|
image: weaveworks/weave-kube:1.7.2
|
|
command:
|
|
- /home/weave/launch.sh
|
|
livenessProbe:
|
|
initialDelaySeconds: 30
|
|
httpGet:
|
|
host: 127.0.0.1
|
|
path: /status
|
|
port: 6784
|
|
securityContext:
|
|
privileged: true
|
|
volumeMounts:
|
|
- name: weavedb
|
|
mountPath: /weavedb
|
|
- name: cni-bin
|
|
mountPath: /opt
|
|
- name: cni-bin2
|
|
mountPath: /host_home
|
|
- name: cni-conf
|
|
mountPath: /etc
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
- name: weave-npc
|
|
image: weaveworks/weave-npc:1.7.2
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
securityContext:
|
|
privileged: true
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: weavedb
|
|
emptyDir: {}
|
|
- name: cni-bin
|
|
hostPath:
|
|
path: /opt
|
|
- name: cni-bin2
|
|
hostPath:
|
|
path: /home
|
|
- name: cni-conf
|
|
hostPath:
|
|
path: /etc
|