목록2024/03/18 (6)
삽더하기실수
글에 앞서 쿠버네티스 2024 1월에 새로운 repo 주소로 변경됨 하기 주소와 같이 repo 입력 후 실행하면 정상적으로 된다. https://kubernetes.io/blog/2023/08/15/pkgs-k8s-io-introduction/ 2. kubernetes를 사용하기 위한 CentOS 셋팅 #1) selinux 비활성화 setenforce 0 sed -i 's/^SELINUX=enforcing$/SELINUX=disabled/' /etc/selinux/config #2) swap 비활성화 swapoff -a sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab #3) 방화벽 비활성화 systemctl disable firewalld systemctl stop fi..
#오류 내용 accepts at most 1 arg(s), received 2 To see the stack trace of this error execute with --v=5 or higher #해결방법 마스터 노드에 가서 하기 명령어로 토큰을 생성한다. kubeadm token create --print-join-command 이후 생성된 토큰을 가지고 워커노드에서 실행하면 정상적으로 된다

#오류 내용coredns pending#해결방법[ Maseter ]kubeadm init --apiserver-advertise-address=[마스터IP] --pod-network-cidr=192.168.0.0/16kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.27.2/manifests/tigera-operator.yamlkubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.27.2/manifests/custom-resources.yamlservice docker restart kubectl get nodes -o wide해당 pen..
#오류 내용 [preflight] Running pre-flight checks error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR CRI]: container runtime is not running: output: time="2024-03-14T00:30:21Z" level=fatal msg="validate service connection: validate CRI v1 runtime API for endpoint \"unix:///var/run/co ntainerd/containerd.sock\": rpc error: code = Unimplemented desc = unknown service runtim..
SVC가 없으면 존재 할 수 없다. 아키텍쳐에 맞게 실제로 가야하는 경로에 대한 라우팅 정보, 정보에 대한 경로를 제공을 한다. 레이블과 애너테이션의 차이 레이블 pod, svc, ing 사람이 쓰려고 만드는 것 애너테이션 pod, svc, ing 시스템이 인지하려고 만드는 것 #deploy-hn.yaml apiVersion: apps/v1 kind: Deployment metadata: name: deploy-hn labels: app: deploy-hn spec: replicas: 3 selector: matchLabels: app: deploy-hn template: metadata: labels: app: deploy-hn spec: containers: - name: chk-hn image: s..