From 22717250e5493d30d9e3ffa86a60ad8dd14d5b07 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sun, 24 Oct 2021 10:15:31 +0100 Subject: [PATCH] Update weave-net with new pod CIDR Signed-off-by: Marcus Noble --- manifests/_apps/weave-net.yaml | 18 ++++ manifests/weave-net/weave-net.yaml | 151 +++++++++++++++++++++++++++++ 2 files changed, 169 insertions(+) create mode 100644 manifests/_apps/weave-net.yaml create mode 100644 manifests/weave-net/weave-net.yaml diff --git a/manifests/_apps/weave-net.yaml b/manifests/_apps/weave-net.yaml new file mode 100644 index 0000000..3932c4c --- /dev/null +++ b/manifests/_apps/weave-net.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: weave-net + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: cluster.fun + destination: + namespace: kube-system + name: cluster-fun (scaleway) + source: + path: manifests/weave-net + repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git" + targetRevision: HEAD + syncPolicy: + automated: {} diff --git a/manifests/weave-net/weave-net.yaml b/manifests/weave-net/weave-net.yaml new file mode 100644 index 0000000..0159400 --- /dev/null +++ b/manifests/weave-net/weave-net.yaml @@ -0,0 +1,151 @@ +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