mirror of https://github.com/kubernetes/kops.git
104 lines
2.6 KiB
Plaintext
104 lines
2.6 KiB
Plaintext
apiVersion: extensions/v1beta1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: weave-net
|
|
namespace: kube-system
|
|
labels:
|
|
name: weave-net
|
|
role.kubernetes.io/networking: "1"
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: weave-net
|
|
role.kubernetes.io/networking: "1"
|
|
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.9.8
|
|
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: /host/opt
|
|
- name: cni-bin2
|
|
mountPath: /host/home
|
|
- name: cni-conf
|
|
mountPath: /host/etc
|
|
- name: dbus
|
|
mountPath: /host/var/lib/dbus
|
|
- name: lib-modules
|
|
mountPath: /lib/modules
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 200Mi
|
|
limits:
|
|
cpu: 100m
|
|
memory: 200Mi
|
|
env:
|
|
- name: IPALLOC_RANGE
|
|
value: {{ .KubeControllerManager.ClusterCIDR }}
|
|
{{- if .Networking.Weave.MTU }}
|
|
- name: WEAVE_MTU
|
|
value: "{{ .Networking.Weave.MTU }}"
|
|
{{- end }}
|
|
- name: weave-npc
|
|
image: weaveworks/weave-npc:1.9.8
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 200Mi
|
|
limits:
|
|
cpu: 100m
|
|
memory: 200Mi
|
|
env:
|
|
- name: HOSTNAME
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: spec.nodeName
|
|
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
|
|
- name: dbus
|
|
hostPath:
|
|
path: /var/lib/dbus
|
|
- name: lib-modules
|
|
hostPath:
|
|
path: /lib/modules
|