cluster.fun/manifests/weave-net/weave-net.yaml

152 lines
3.8 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: weave-net
namespace: kube-system
labels:
k8s-app: weave
k8s.scw.cloud/cni: weave
k8s.scw.cloud/object: DaemonSet
k8s.scw.cloud/system: cni
name: weave-net
scaleway-autogenerated-config: network
spec:
minReadySeconds: 5
revisionHistoryLimit: 10
selector:
matchLabels:
k8s-app: weave
template:
metadata:
labels:
k8s-app: weave
name: weave-net
spec:
initContainers:
- command:
- /home/weave/init.sh
image: docker.io/weaveworks/weave-kube:2.8.1
imagePullPolicy: IfNotPresent
name: weave-init
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /host/opt
name: cni-bin
- mountPath: /host/home
name: cni-bin2
- mountPath: /host/etc
name: cni-conf
- mountPath: /lib/modules
name: lib-modules
- mountPath: /run/xtables.lock
name: xtables-lock
containers:
- command:
- /home/weave/launch.sh
env:
- name: INIT_CONTAINER
value: "true"
- name: HOSTNAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: IPALLOC_RANGE
value: 192.168.0.0/18
image: docker.io/weaveworks/weave-kube:2.8.1
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
host: 127.0.0.1
path: /status
port: 6784
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: weave
resources:
requests:
cpu: 50m
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /weavedb
name: weavedb
- mountPath: /host/var/lib/dbus
name: dbus
readOnly: true
- mountPath: /host/etc/machine-id
name: cni-machine-id
readOnly: true
- mountPath: /run/xtables.lock
name: xtables-lock
- env:
- name: HOSTNAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
image: docker.io/weaveworks/weave-npc:2.8.1
imagePullPolicy: IfNotPresent
name: weave-npc
resources:
requests:
cpu: 50m
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /run/xtables.lock
name: xtables-lock
dnsPolicy: ClusterFirstWithHostNet
hostNetwork: true
securityContext:
seLinuxOptions: {}
serviceAccount: weave-net
serviceAccountName: weave-net
tolerations:
- operator: Exists
volumes:
- hostPath:
path: /var/lib/weave
type: ""
name: weavedb
- hostPath:
path: /opt
type: ""
name: cni-bin
- hostPath:
path: /home
type: ""
name: cni-bin2
- hostPath:
path: /etc
type: ""
name: cni-conf
- hostPath:
path: /etc/machine-id
type: ""
name: cni-machine-id
- hostPath:
path: /var/lib/dbus
type: ""
name: dbus
- hostPath:
path: /lib/modules
type: ""
name: lib-modules
- hostPath:
path: /run/xtables.lock
type: FileOrCreate
name: xtables-lock