Change IPRange


#1

Hello,

I want to change the iprange, because there are other servers with the same iprange. So with that config I can’t access them, because it will route internally.

So I want to creat a new cluster with kubeadm with the new pod range. (

apiServer:
  certSANs:
  - 10.150.x.x
  - 10.150.x.x
  - 10.150.x.x
  - 127.0.0.1
  extraArgs:
    apiserver-count: "3"
    authorization-mode: Node,RBAC
  timeoutForControlPlane: 4m0s
apiVersion: kubeadm.k8s.io/v1beta1
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controlPlaneEndpoint: ""
controllerManager: {}
dns:
  type: CoreDNS
etcd:
  external:
    caFile: ""
    certFile: ""
    endpoints:
    - http://10.150.x.x:2379
    - http://10.150.x.x:2379
    - http://10.150.x.x:2379
    keyFile: ""
imageRepository: k8s.gcr.io
kind: ClusterConfiguration
kubernetesVersion: v1.13.4
networking:
  dnsDomain: cluster.local
  podSubnet: "10.150.16.0/20"
  serviceSubnet: 10.150.0.0/20
scheduler: {}

I will use weave net, so this is my config for this:

 env:
                - name: IPALLOC_RANGE
                  value: 10.150.0.0/20
                - name: HOSTNAME
                  valueFrom:
                    fieldRef:
                      apiVersion: v1
                      fieldPath: spec.nodeName
              image: 'docker.io/weaveworks/weave-kube:2.5.1'

My Problem is that all is running, but I can’t ping or connect to the server outside from my cluster. It routes not externally. What can I do? have I misconfigured my cluster or do I need to deploy anything to connect to the other servers in my LAN?

I come from v1.10.3 and now the actually version v1.13.4 so it is possible that I forgot something to deploy that the pod have acces to outside?


#2

Hi Theroth

I have been working on a similar problem. Happy to chat more and share insights. Let me know if you want to connect.

Satish


#3

Sure I want. You cann connect me :slight_smile:

For all: I misconfigured the DNS in the docker daemon. So I added the dns to the systemd file under /lib/systemd/system/docker.service and added to ExecStart=ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock the dns

So my file looks like

ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --dns x.x.x.x --dns x.x.x.x


#4

Hi Theroth

That sounds great - if you could share an email address - I can connect with you directly and share insights.


#5

Oh sure. My email: dominikrobert@gmx.de