Skip to content
Snippets Groups Projects

cluster config: added configuration to use flannel cni

3 files
+ 25
5
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -5,17 +5,22 @@ containerdConfigPatches:
@@ -5,17 +5,22 @@ containerdConfigPatches:
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5001"]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5001"]
endpoint = ["http://kind-registry:5000"]
endpoint = ["http://kind-registry:5000"]
networking:
networking:
podSubnet: "10.100.0.0/16"
disableDefaultCNI: true # Disable Kindnet, we will use Flannel as the primary CNI plugin
# disableDefaultCNI: true
podSubnet: "10.244.0.0/16" # Flannel requires this CIDR
nodes:
nodes:
- role: control-plane
- role: control-plane
image: kindest/node:v1.26.6
image: kindest/node:v1.26.6
labels:
labels:
siemens.com.qosscheduler.master: true
siemens.com.qosscheduler.master: true
dedicated: master # Add this line to assign the dedicated=master label
dedicated: control-plane # No post_script.sh modification needed for control-plane
 
extraMounts:
 
- hostPath: /tmp/plugins/bin
 
containerPath: /opt/cni/bin # Mount CNI plugins inside the container
- role: worker
- role: worker
image: kindest/node:v1.26.6
image: kindest/node:v1.26.6
extraMounts:
extraMounts:
 
- hostPath: /tmp/plugins/bin
 
containerPath: /opt/cni/bin
- hostPath: /tmp/nwapidb
- hostPath: /tmp/nwapidb
containerPath: /nwapidb
containerPath: /nwapidb
kubeadmConfigPatches:
kubeadmConfigPatches:
@@ -27,6 +32,9 @@ nodes:
@@ -27,6 +32,9 @@ nodes:
node-labels: "mac-address=5e0d.6660.a485,siemens.com.qosscheduler.c1=true"
node-labels: "mac-address=5e0d.6660.a485,siemens.com.qosscheduler.c1=true"
- role: worker
- role: worker
image: kindest/node:v1.26.6
image: kindest/node:v1.26.6
 
extraMounts:
 
- hostPath: /tmp/plugins/bin
 
containerPath: /opt/cni/bin
kubeadmConfigPatches:
kubeadmConfigPatches:
- |
- |
kind: JoinConfiguration
kind: JoinConfiguration
Loading