At first time, I did trouble-shoot for solving rror "kubedns container cannot connect to apiserver"
When I check the error. I can figure out that pod cannot communicate with cluster-service-network-cidr.
My pod network was 10.244.0.0/16 And my service network was 10.96.0.0/16.
When regular situation, routing of between them can be possible.
But the two network cannot communicate each other in my case.
I think that it is caused by conflict in iptables.(firewalld is upper level tool of iptable from Centos7. It can make some troubles)
So I did many things and solve it finally.
Here is what I did bellow.
My Kubernetes Version is 1.21
My CentOS Version is 7.6.1810
first I did.
# systemctl stop kubelet
# systemctl stop docker
# iptables --flush
# iptables -tnat --flush
# systemctl start kubelet
# systemctl start docker
But It was useless
So I did this on Master/Worker Node
# systemctl stop firewalld
It works!
So I feel that I should control iptables with iptables.service not firewalld.service from next time.
'PaaS > Kubernetes' 카테고리의 다른 글
(개념) ISTIO 란? (0) | 2021.08.24 |
---|---|
(Kubernetes) AWS Linux에 MasterNode 설치하기(Linux배포판 동일) (0) | 2021.08.18 |
(Kubernetes) Deployment 전략 들 (0) | 2021.06.28 |
(Kubernetes) Kube-proxy, Kube-dns, core-dns (0) | 2021.04.13 |
Kubernetes Master/WorkerNode Server 설치하기(CentOS+Docker) (0) | 2021.04.11 |