Kubernetes – Calico 설치하기

By | 2023년 1월 9일
Table of Contents

Kubernetes – Calico 설치하기

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

설치하기

kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
k get po -n kube-system
NAME                                      READY   STATUS    RESTARTS      AGE
calico-kube-controllers-7bdbfc669-mfdbp   1/1     Running   0             55m
calico-node-4rml2                         1/1     Running   0             51m
calico-node-kv8z8                         1/1     Running   0             50m
calico-node-lg7ch                         1/1     Running   0             51m
calico-node-sfr5f                         1/1     Running   0             50m
calico-node-vmd5s                         1/1     Running   0             51m
......
k logs calico-node-4rml2 -n kube-system
......
bird: Mesh_172_16_0_201: State changed to feed
bird: Mesh_172_16_0_202: State changed to feed
bird: Mesh_172_16_0_203: State changed to feed
bird: Mesh_172_16_0_205: State changed to feed
bird: Mesh_172_16_0_201: State changed to up
bird: Mesh_172_16_0_202: State changed to up
bird: Mesh_172_16_0_203: State changed to up
bird: Mesh_172_16_0_205: State changed to up
2023-01-10 05:42:50.004 [INFO][100] felix/health.go 242: Overall health status changed newStatus=&health.HealthReport{Live:true, Ready:true
curl -L https://github.com/projectcalico/calico/releases/download/v3.24.5/calicoctl-linux-amd64 -o calicoctl
chmod 700 calicoctl
sudo mv calicoctl /usr/bin/
sudo calicoctl node status
Calico process is running.

IPv4 BGP status
+--------------+-------------------+-------+----------+-------------+
| PEER ADDRESS |     PEER TYPE     | STATE |  SINCE   |    INFO     |
+--------------+-------------------+-------+----------+-------------+
| 172.16.0.202 | node-to-node mesh | up    | 05:42:26 | Established |
| 172.16.0.203 | node-to-node mesh | up    | 05:42:25 | Established |
| 172.16.0.204 | node-to-node mesh | up    | 05:42:47 | Established |
| 172.16.0.205 | node-to-node mesh | up    | 05:42:38 | Established |
+--------------+-------------------+-------+----------+-------------+

IPv6 BGP status
No IPv6 peers found.

node 에서 Pod 접속 테스트

pod 접속을 테스트합니다.

k get po -n argocd -o wide
NAME                                                READY   STATUS    RESTARTS   AGE   IP              NODE          NOMINATED NODE   READINESS GATES
argocd-application-controller-0                     1/1     Running   0          21h   192.168.1.196   es-search04   <none>           <none>
argocd-applicationset-controller-6f8bd46d57-nbn6z   1/1     Running   0          21h   192.168.140.4   es-search05   <none>           <none>
argocd-dex-server-7b64b5456b-xqc4b                  1/1     Running   0          21h   192.168.1.197   es-search04   <none>           <none>
argocd-notifications-controller-6d8d47c47b-7l84q    1/1     Running   0          21h   192.168.1.193   es-search04   <none>           <none>
argocd-redis-847d5bc57c-554mk                       1/1     Running   0          21h   192.168.140.5   es-search05   <none>           <none>
argocd-repo-server-685bbbf85c-jdhhl                 1/1     Running   0          21h   192.168.140.3   es-search05   <none>           <none>
argocd-server-66fcf976bf-fxndj                      1/1     Running   0          21h   192.168.1.195   es-search04   <none>           <none>

curl http://192.168.1.195:8080/
<a href="https://192.168.1.195:8080/">Temporary Redirect</a>.

node 간 Pod 접속 테스트

aaa

Troubleshooting

여기 를 참조하여 오류를 해결한다.

One thought on “Kubernetes – Calico 설치하기

답글 남기기