Update weave-net with new pod CIDR

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2021-10-24 10:15:31 +01:00
parent f4f6745c27
commit 22717250e5
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 169 additions and 0 deletions

View File

@ -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: {}

View File

@ -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