Kubernetes Network

https://kubernetes.io/docs/concepts/cluster-administration/networking/#the-kubernetes-network-model

Kubernetes 네트워크

방화벽 규칙

DNS

  • <service>.<namespace>.<svc>
  • <pod>.<namespace>.<pod>
▒ kubectl apply -f https://k8s.io/examples/admin/dns/dnsutils.yaml
▒ kubectl exec -it -n default dnsutils -- nslookup kubernetes.default

Calico

▒ kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
  • calicoctl
▒ curl -L https://github.com/projectcalico/calico/releases/download/v3.24.5/calicoctl-linux-amd64 -o calicoctl
▒ chmod 700 calicoctl
▒ sudo mv calicoctl /usr/local/bin/
▒ sudo calicoctl node status
  • connection refused
# Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to connect to BIRDv4 socket: dial unix /var/run/calico/bird.ctl: connect: connection refused

▒ kubectl set env daemonset/calico-node -n kube-system IP_AUTODETECTION_METHOD=interface=eth*

posted at 2022/03/18 09:42