Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version:
Cloud being used: (put bare-metal if not on a public cloud) bare metal
Installation method: kubeadm
Host OS: Ubuntu 18.04.3 LTS
CNI and version: weave
CRI and version:
Hi,
I am trying to change the cidr for my kubernetes cluster which is using a weave cni plugin using cidr /18
curl -fsSLo weave-172subnet-daemonset.yaml "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d ‘\n’)&env.IPALLOC_RANGE=172.31.0.0/18"
Weave is installed and pods are up and running
The problem i am facing is when i deploy a jenkins as container it still doesnot point to new cidr
Name: jenkins-deployment-6c7d7949f4-97vmx
Namespace: default
Priority: 0
Node: k8s-jenkins-slave/10.41.80.43
Start Time: Wed, 17 Jun 2020 08:43:11 +0000
Labels: app=jenkins
pod-template-hash=6c7d7949f4
Status: Running
IP: 10.244.1.2
IPs:
IP: **10.244.1.2**
Controlled By: ReplicaSet/jenkins-deployment-6c7d7949f4
Containers:
jenkins:
Container ID: docker://30438bbb9af92c319d084ad7216d39db5329332d70ecbfc66cbfc1a80d150e20
Image: jenkins/jenkins:2.222.3
Image ID: docker-pullable://jenkins/jenkins@sha256:15fca69266f4cc2107449d9fa2595acf0cbe1584eb425ee6f2fe9cefc9fc4b97
Ports: 8080/TCP, 50000/TCP
Host Ports: 0/TCP, 0/TCP
State: Running
when i describe the core dns output is like this:
Name: coredns-66bff467f8-vfkcc
Namespace: kube-system
Priority: 2000000000
Priority Class Name: system-cluster-critical
Node: k8s-jenkins-master/10.41.80.44
Start Time: Wed, 17 Jun 2020 07:50:54 +0000
Labels: k8s-app=kube-dns
pod-template-hash=66bff467f8
Annotations: <none>
Status: Running
IP: **10.244.0.3**
IPs:
IP: **10.244.0.3**
Controlled By: ReplicaSet/coredns-66bff467f8
Containers:
coredns:
Container ID: /6baba323dcf59c6840fedcb08f3f6b553e01c96f3b5d91c7fd1a03345e5f0b73
Image: k8s.gcr.io/coredns:1.6.7
Image ID: docker-k8s.gcr.io/coredns@sha256:2c8d61c46f484d881db43b34d13ca47a269336e576c81cf007ca740fa9ec0800
Ports: 53/UDP, 53/TCP, 9153/TCP
Host Ports: 0/UDP, 0/TCP, 0/TCP
Args:
-conf
/etc/coredns/Corefile
State: Running
Started: Wed, 17 Jun 2020 07:51:15 +0000
Ready: True
Restart Count: 0
Limits:
memory: 170Mi
Requests:
cpu: 100m
memory: 70Mi
Environment: <none>
Mounts:
/etc/coredns from config-volume (ro)
/var/run/secrets/kubernetes.io/serviceaccount from coredns-token-dj6pn (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
config-volume:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: coredns
Optional: false
coredns-token-dj6pn:
Type: Secret (a volume populated by a Secret)
SecretName: coredns-token-dj6pn
Optional: false
QoS Class: Burstable
Node-Selectors: kubernetes.io/os=linux
Events: <none>
However describing the weave pod contains the new cidr while setting it up
Can you please guide me where i am getting it wrong?