Q&A
K8S 노들에 접근이 안됩니다.
위와 같이 변경후에 접속이 되는걸 확인했습니다. 먼저, VM에서 Port Forwarding이 22000으로 설정되어 있습니다. Vagrantfile 처럼 변경되어있지 않고 있습니다. 두번째는 host port로 접속이 되지않고 22 port로 접속이 되고 있습니다.
- Likes
- 0
- Comments
- 6
- Viewcount
- 186
Q&A
위와 같이 변경후에 접속이 되는걸 확인했습니다. 먼저, VM에서 Port Forwarding이 22000으로 설정되어 있습니다. Vagrantfile 처럼 변경되어있지 않고 있습니다. 두번째는 host port로 접속이 되지않고 22 port로 접속이 되고 있습니다.
Q&A
VBox 로그를 확인해 보면 뭔가 충돌이 발생하는 것 같습니다 00:00:02.568225 xHCI: Root hub-attached device reset completed with VINF_SUCCESS 00:00:02.568236 xHCI: Root hub-attached device reset completed with VINF_SUCCESS 00:00:07.946304 AIOMgr: Host limits number of active IO requests to 16. Expect a performance impact. 00:00:09.054617 xHCI: USB Suspended 00:00:09.516618 xHCI: Hardware reset 00:00:09.523072 xHCI: USB Operational 00:00:09.526737 xHCI: Root hub-attached device reset completed with VINF_SUCCESS 00:00:09.526744 xHCI: Root hub-attached device reset completed with VINF_SUCCESS 00:00:11.987199 NAT: Link up 00:00:13.183978 VMMDev: Guest Additions information report: Version 7.1.10 r169112 '7.1.10' 00:00:13.184024 VMMDev: Guest Additions information report: Interface = 0x00010004 osType = 0x00053100 (Linux >= 2.6, 64-bit) 00:00:13.184098 VMMDev: Guest Additions capability report: (0x0 -> 0x0) seamless: no, hostWindowMapping: no, graphics: no 00:00:13.184153 VMMDev: vmmDevReqHandler_HeartbeatConfigure: No change (fHeartbeatActive=false) 00:00:13.184172 VMMDev: Heartbeat flatline timer set to trigger after 4 000 000 000 ns 00:00:13.186123 VMMDev: Guest Additions capability report: (0x0 -> 0x0) seamless: no, hostWindowMapping: no, graphics: no 00:00:18.752649 Guest Control: GUEST_MSG_REPORT_FEATURES: 0x7f, 0x8000000000000000 00:06:19.195025 New port forwarded added: fRemove=1, fUdp=0, pHostIp=, u16HostPort=2200, pGuestIp=, u16GuestPort=22 00:06:19.197277 New port forwarded added: fRemove=0, fUdp=0, pHostIp=, u16HostPort=60010, pGuestIp=, u16GuestPort=22 00:06:19.197349 drvNATNotifyApplyPortForwardCommand: Port forward modify FAIL! Details: fRemove=0, fUdp=0, pszHostIp=, u16HostPort=60010, pszGuestIp=, u16GuestPort=22 00:06:19.197360 VMSetError: /Users/vbox/tinderbox/7.1-mac-rel/src/VBox/Devices/Network/DrvNATlibslirp.cpp(1026) int drvNATNotifyApplyPortForwardCommand(PDRVNAT, bool, bool, const char , uint16_t, const char , uint16_t); rc=VERR_NAT_REDIR_SETUP 00:06:19.197362 VMSetError: NAT#0: configuration error: failed to set up redirection of 60010 to 22. Probably a conflict with existing services or other rules
Q&A
ssh 192.168.1.10 60010 The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established. ED25519 key fingerprint is SHA256:Zohb75dEWyRTyVO5EFab2zvgiD4DgzBE7qgBJVPm8uo. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '192.168.1.10' (ED25519) to the list of known hosts. jj@192.168.1.10's password: Permission denied, please try again. jj@192.168.1.10's password: Permission denied, please try again. jj@192.168.1.10's password: jj@192.168.1.10: Permission denied (publickey,password). vagrant file에 설정되어 있는 192.168.1.10:60010으로 ssh를 통해서 접속을 시도하면 접근은 되는것 같은데 비번으로 vagrant를 입력하면 틀리다고 나옵니다. 어떤 부분을 더 체크해 봐여할까요?
Q&A
k describe pod calico-node-dcp9k -n kube-system Name: calico-node-dcp9k Namespace: kube-system Priority: 2000001000 Priority Class Name: system-node-critical Service Account: calico-node Node: w1-k8s/172.16.68.133 Start Time: Wed, 16 Apr 2025 15:50:27 +0900 Labels: controller-revision-hash=86497fc7f9 k8s-app=calico-node pod-template-generation=2 Annotations: kubectl.kubernetes.io/restartedAt: 2025-04-16T15:50:17+09:00 Status: Running SeccompProfile: RuntimeDefault IP: 172.16.68.133 IPs: IP: 172.16.68.133 Controlled By: DaemonSet/calico-node Init Containers: upgrade-ipam: Container ID: containerd://076794f20268c207c9a17b43946be284e305a09772e2664884d0d7590b6220bd Image: quay.io/calico/cni:v3.29.2 Image ID: quay.io/calico/cni@sha256:5c7827667dab3e7ef72682eabc3d0bf8e39c228c67fbf193dfa0a8a8674d300a Port: Host Port: Command: /opt/cni/bin/calico-ipam -upgrade State: Terminated Reason: Completed Exit Code: 0 Started: Wed, 16 Apr 2025 15:50:28 +0900 Finished: Wed, 16 Apr 2025 15:50:28 +0900 Ready: True Restart Count: 0 Environment Variables from: kubernetes-services-endpoint ConfigMap Optional: true Environment: KUBERNETES_NODE_NAME: (v1:spec.nodeName) CALICO_NETWORKING_BACKEND: Optional: false Mounts: /host/opt/cni/bin from cni-bin-dir (rw) /var/lib/cni/networks from host-local-net-dir (rw) /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-mk4mt (ro) install-cni: Container ID: containerd://afede1e59dfc437027eb7c486e4253258a11e7508016b38f05bc379927b2349c Image: quay.io/calico/cni:v3.29.2 Image ID: quay.io/calico/cni@sha256:5c7827667dab3e7ef72682eabc3d0bf8e39c228c67fbf193dfa0a8a8674d300a Port: Host Port: Command: /opt/cni/bin/install State: Terminated Reason: Completed Exit Code: 0 Started: Wed, 16 Apr 2025 15:50:28 +0900 Finished: Wed, 16 Apr 2025 15:50:29 +0900 Ready: True Restart Count: 0 Environment Variables from: kubernetes-services-endpoint ConfigMap Optional: true Environment: CNI_CONF_NAME: 10-calico.conflist CNI_NETWORK_CONFIG: Optional: false KUBERNETES_NODE_NAME: (v1:spec.nodeName) CNI_MTU: Optional: false SLEEP: false Mounts: /host/etc/cni/net.d from cni-net-dir (rw) /host/opt/cni/bin from cni-bin-dir (rw) /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-mk4mt (ro) mount-bpffs: Container ID: containerd://162a7b51b5d56da07efa197248b711df1d6abdb0b6cd14c481a4a67a4083b2f0 Image: quay.io/calico/node:v3.29.2 Image ID: quay.io/calico/node@sha256:97dfd69511ab72c64b4db0636bdf1298b5a7f869ff0296329e0c39dbda4a80b5 Port: Host Port: Command: calico-node -init -best-effort State: Terminated Reason: Completed Exit Code: 0 Started: Wed, 16 Apr 2025 15:50:29 +0900 Finished: Wed, 16 Apr 2025 15:50:29 +0900 Ready: True Restart Count: 0 Environment: Mounts: /nodeproc from nodeproc (ro) /sys/fs from sys-fs (rw) /var/run/calico from var-run-calico (rw) /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-mk4mt (ro) Containers: calico-node: Container ID: containerd://9dbf692d177e8c374009bb82229b45d0afff466356cdabc2a2c22eb508b557bd Image: quay.io/calico/node:v3.29.2 Image ID: quay.io/calico/node@sha256:97dfd69511ab72c64b4db0636bdf1298b5a7f869ff0296329e0c39dbda4a80b5 Port: Host Port: State: Running Started: Wed, 16 Apr 2025 15:50:30 +0900 Ready: True Restart Count: 0 Requests: cpu: 250m Liveness: exec [/bin/calico-node -felix-live -bird-live] delay=10s timeout=10s period=10s #success=1 #failure=6 Readiness: exec [/bin/calico-node -felix-ready -bird-ready] delay=0s timeout=10s period=10s #success=1 #failure=3 Environment Variables from: kubernetes-services-endpoint ConfigMap Optional: true Environment: DATASTORE_TYPE: kubernetes WAIT_FOR_DATASTORE: true NODENAME: (v1:spec.nodeName) CALICO_NETWORKING_BACKEND: Optional: false CLUSTER_TYPE: k8s,bgp IP: autodetect CALICO_IPV4POOL_IPIP: Always CALICO_IPV4POOL_VXLAN: Never CALICO_IPV6POOL_VXLAN: Never FELIX_IPINIPMTU: Optional: false FELIX_VXLANMTU: Optional: false FELIX_WIREGUARDMTU: Optional: false CALICO_DISABLE_FILE_LOGGING: true FELIX_DEFAULTENDPOINTTOHOSTACTION: ACCEPT FELIX_IPV6SUPPORT: false FELIX_HEALTHENABLED: true Mounts: /host/etc/cni/net.d from cni-net-dir (rw) /lib/modules from lib-modules (ro) /run/xtables.lock from xtables-lock (rw) /sys/fs/bpf from bpffs (rw) /var/lib/calico from var-lib-calico (rw) /var/log/calico/cni from cni-log-dir (ro) /var/run/calico from var-run-calico (rw) /var/run/nodeagent from policysync (rw) /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-mk4mt (ro) Conditions: Type Status PodReadyToStartContainers True Initialized True Ready True ContainersReady True PodScheduled True Volumes: lib-modules: Type: HostPath (bare host directory volume) Path: /lib/modules HostPathType: var-run-calico: Type: HostPath (bare host directory volume) Path: /var/run/calico HostPathType: DirectoryOrCreate var-lib-calico: Type: HostPath (bare host directory volume) Path: /var/lib/calico HostPathType: DirectoryOrCreate xtables-lock: Type: HostPath (bare host directory volume) Path: /run/xtables.lock HostPathType: FileOrCreate sys-fs: Type: HostPath (bare host directory volume) Path: /sys/fs/ HostPathType: DirectoryOrCreate bpffs: Type: HostPath (bare host directory volume) Path: /sys/fs/bpf HostPathType: Directory nodeproc: Type: HostPath (bare host directory volume) Path: /proc HostPathType: cni-bin-dir: Type: HostPath (bare host directory volume) Path: /opt/cni/bin HostPathType: DirectoryOrCreate cni-net-dir: Type: HostPath (bare host directory volume) Path: /etc/cni/net.d HostPathType: cni-log-dir: Type: HostPath (bare host directory volume) Path: /var/log/calico/cni HostPathType: host-local-net-dir: Type: HostPath (bare host directory volume) Path: /var/lib/cni/networks HostPathType: policysync: Type: HostPath (bare host directory volume) Path: /var/run/nodeagent HostPathType: DirectoryOrCreate kube-api-access-mk4mt: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: kube-root-ca.crt ConfigMapOptional: DownwardAPI: true QoS Class: Burstable Node-Selectors: kubernetes.io/os=linux Tolerations: :NoSchedule op=Exists :NoExecute op=Exists CriticalAddonsOnly op=Exists node.kubernetes.io/disk-pressure:NoSchedule op=Exists node.kubernetes.io/memory-pressure:NoSchedule op=Exists node.kubernetes.io/network-unavailable:NoSchedule op=Exists node.kubernetes.io/not-ready:NoExecute op=Exists node.kubernetes.io/pid-pressure:NoSchedule op=Exists node.kubernetes.io/unreachable:NoExecute op=Exists node.kubernetes.io/unschedulable:NoSchedule op=Exists Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 17m default-scheduler Successfully assigned kube-system/calico-node-dcp9k to w1-k8s Normal Pulled 17m kubelet Container image "quay.io/calico/cni:v3.29.2" already present on machine Normal Created 17m kubelet Created container upgrade-ipam Normal Started 17m kubelet Started container upgrade-ipam Normal Pulled 17m kubelet Container image "quay.io/calico/cni:v3.29.2" already present on machine Normal Created 17m kubelet Created container install-cni Normal Started 17m kubelet Started container install-cni Normal Pulled 17m kubelet Container image "quay.io/calico/node:v3.29.2" already present on machine Normal Created 17m kubelet Created container mount-bpffs Normal Started 17m kubelet Started container mount-bpffs Normal Pulled 17m kubelet Container image "quay.io/calico/node:v3.29.2" already present on machine Normal Created 17m kubelet Created container calico-node Normal Started 17m kubelet Started container calico-node Warning Unhealthy 17m (x2 over 17m) kubelet 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
Q&A
root@cp-k8s:~# kubectl get pod calico-node-dcp9k -o yaml -n kube-system | grep -i image: image: quay.io/calico/node:v3.29.2 image: quay.io/calico/cni:v3.29.2 image: quay.io/calico/cni:v3.29.2 image: quay.io/calico/node:v3.29.2 image: quay.io/calico/node:v3.29.2 image: quay.io/calico/cni:v3.29.2 image: quay.io/calico/cni:v3.29.2 image: quay.io/calico/node:v3.29.2
Q&A
macOS Monterey에서의 VirtualBox 버그로 headless 모드 대신 아래와 같이 gui 모드로 실행되게 해야 한다고 합니다. 혹시 관련 문제가 있으신 분들은 참조하세요 config.vm.provider "virtualbox" do |vb| vb.gui = true end - https://www.virtualbox.org/ticket/20636#comment:16