Add private CIDR for calico
This commit is contained in:
21
templates/calico.yaml.tpl
Normal file
21
templates/calico.yaml.tpl
Normal 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}"
|
17
templates/ccm.yaml.tpl
Normal file
17
templates/ccm.yaml.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hcloud-cloud-controller-manager
|
||||
namespace: kube-system
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: hcloud-cloud-controller-manager
|
||||
command:
|
||||
- "/bin/hcloud-cloud-controller-manager"
|
||||
- "--cloud-provider=hcloud"
|
||||
- "--leader-elect=false"
|
||||
- "--allow-untagged-cloud"
|
||||
- "--allocate-node-cidrs=true"
|
||||
- "--cluster-cidr=${cluster_cidr_ipv4}"
|
Reference in New Issue
Block a user