Kubernetes Change Pod-Adresses Kubernetes Change Pod-Adresses kubernetes kubernetes

Kubernetes Change Pod-Adresses


What is your goal? To reconfigure current cluster with existing pods or re-create cluster with different overlay network?

I see subnet mess in your ClusterConfiguration:Pay attention that podSubnet and serviceSubnet should not be the same. You have to use different ranges.

For example:

kind: ClusterConfigurationkubernetesVersion: v1.13.4networking:  serviceSubnet: "10.96.0.0/12"  podSubnet: "10.100.0.1/24"  dnsDomain: "cluster.localcontrolPlaneEndpoint: "10.100.0.1:6443"...

Also check answer provided by @Janos in kubernetes set service cidr and pod cidr the same topic.


You shouldn't mix service IPs with Pod IPs. Service IPs are virtual and used internally by kubernetes for discovering your (services) pods.

If I configure the serviceSubnet and the weave network subnet the same

You shouldn't configure them the same! Weave subnet is essentially the pod CIDRs

Pod to Pod communication should be done over k8s services. Container to container within pods should be done through localhost.