Add private CIDR for calico

This commit is contained in:
Philipp
2022-04-30 00:11:07 +02:00
parent bfdca599b9
commit eb99ec5859
4 changed files with 32 additions and 4 deletions

21
templates/calico.yaml.tpl Normal file
View File

@@ -0,0 +1,21 @@
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: calico-node
namespace: kube-system
labels:
k8s-app: calico-node
spec:
template:
spec:
volumes:
# Used to install Flex Volume Driver
- name: flexvol-driver-host
hostPath:
type: DirectoryOrCreate
path: /var/lib/kubelet/volumeplugins/nodeagent~uds
containers:
- name: calico-node
env:
- name: CALICO_IPV4POOL_CIDR
value: "${cluster_cidr_ipv4}"