DevOps

CKA 예제 리마인더 - 28. CNI

Vince_rf 2024. 12. 19. 21:14

kubelet service를 확인해서 container runtime endpoint 값을 찾으세요

ps -ef | grep kubelet | grep container-runtime


CNI를 지원하는 플러그인이 설정된 경로는 어디인가요?

/opt/cni/bin


CNI 플러그인 중에 사용이 불가능한 것을 찾으세요

cd /opt/cni/bin

경로에 가서 플러그인 목록 확인



kubernetes cluster에 사용된 CNI 플러그인은 어떤것인가요?

ls /etc/cni/net.d/



컨테이너와 네임스페이스가 생성된 후 어떤 바이너리 파일이 kubelet에 의해 실행되나요?

controlplane /opt/cni/bin ➜  cd /etc/cni/net.d/

controlplane /etc/cni/net.d ➜  cat 10-flannel.conflist 

{
  "name": "cbr0",
  "cniVersion": "0.3.1",
  "plugins": [
    {
      "type": "flannel",
      "delegate": {
        "hairpinMode": true,
        "isDefaultGateway": true
      }
    },
    {
      "type": "portmap",
      "capabilities": {
        "portMappings": true
      }
    }
  ]
}



실행하는 바이너리 파일은 flannel이며 그 다음에는 portmap을 실행한다.