55,000원
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 해결됨대세는 쿠버네티스 [초급~중급]
vagrant up -> imag pull 단계 멈춤
vagarant up 시 [preflight] You can also perform this action in beforehand using 'kubeadm config images pull'단계에서 1시간 가량 멈추어서 질문드립니다. 서버 로그는 아래와 같으며VirtualBox, vagrant, host os 버젼은 교재와 동일합니다. vagrant vbguest 의 경우 3.0 버젼으로 진행 시 중간에 마운트 에러가 발생하여 0.21 로 버젼 강제하였습니다. https://ballistic-uncle-12b.notion.site/console-log-243c674068b84f6baf1eededae1cb987?pvs=4
- 미해결대세는 쿠버네티스 [초급~중급]
pod-1 생성 후 curl 응답이 없네요
환경 : aws ec2 / centos 7.9 / v1.22.0 영상보고 pod-1 생성은 된거 같습니다. 그런데 curl 명령 실행시 응답이 없습니다. [root@k8s-master ~]# kubectl get pods -A -o wide NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES calico-system calico-kube-controllers-8fdfc695-69ch4 1/1 Running 1 (4m11s ago) 100m 20.108.82.200 k8s-master <none> <none> calico-system calico-node-84fcs 1/1 Running 1 (4m11s ago) 100m 192.168.56.30 k8s-master <none> <none> calico-system calico-node-pqfwm 1/1 Running 0 98m 192.168.56.31 k8s-node1 <none> <none> calico-system calico-node-tt922 1/1 Running 0 98m 192.168.56.32 k8s-node2 <none> <none> calico-system calico-typha-c477bcd79-2fv8g 1/1 Running 1 (4m4s ago) 100m 192.168.56.30 k8s-master <none> <none> calico-system calico-typha-c477bcd79-6xgkn 1/1 Running 0 98m 192.168.56.31 k8s-node1 <none> <none> calico-system csi-node-driver-4lght 2/2 Running 0 98m 20.111.156.65 k8s-node1 <none> <none> calico-system csi-node-driver-pj7zm 2/2 Running 0 97m 20.109.131.1 k8s-node2 <none> <none> calico-system csi-node-driver-vzfdn 2/2 Running 2 (4m11s ago) 100m 20.108.82.203 k8s-master <none> <none> default pod-1 2/2 Running 0 41m 20.109.131.2 k8s-node2 <none> <none> kube-system coredns-78fcd69978-ncl62 1/1 Running 26 (5m19s ago) 110m 20.108.82.199 k8s-master <none> <none> kube-system coredns-78fcd69978-zdvl2 1/1 Running 1 (4m6s ago) 110m 20.108.82.201 k8s-master <none> <none> kube-system etcd-k8s-master 1/1 Running 1 (4m11s ago) 111m 192.168.56.30 k8s-master <none> <none> kube-system kube-apiserver-k8s-master 1/1 Running 1 (4m1s ago) 111m 192.168.56.30 k8s-master <none> <none> kube-system kube-controller-manager-k8s-master 1/1 Running 1 (4m11s ago) 111m 192.168.56.30 k8s-master <none> <none> kube-system kube-proxy-m82wz 1/1 Running 1 (4m11s ago) 110m 192.168.56.30 k8s-master <none> <none> kube-system kube-proxy-qmhcv 1/1 Running 0 98m 192.168.56.31 k8s-node1 <none> <none> kube-system kube-proxy-vsh5v 1/1 Running 0 98m 192.168.56.32 k8s-node2 <none> <none> kube-system kube-scheduler-k8s-master 1/1 Running 1 (4m11s ago) 111m 192.168.56.30 k8s-master <none> <none> kubernetes-dashboard dashboard-metrics-scraper-856586f554-qwmzq 1/1 Running 1 (4m11s ago) 99m 20.108.82.198 k8s-master <none> <none> kubernetes-dashboard kubernetes-dashboard-5949b5c856-ql8vx 1/1 Running 1 (4m11s ago) 99m 20.108.82.202 k8s-master <none> <none> tigera-operator tigera-operator-cffd8458f-8z85v 1/1 Running 1 (4m11s ago) 100m 192.168.56.30 k8s-master <none> <none> [root@k8s-master ~]# curl 20.109.131.2:8000 ^C [root@k8s-master ~]# [root@k8s-master ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.56.1 0.0.0.0 UG 0 0 0 eth0 20.108.82.192 0.0.0.0 255.255.255.192 U 0 0 0 * 20.108.82.198 0.0.0.0 255.255.255.255 UH 0 0 0 cali6c5795e996a 20.108.82.199 0.0.0.0 255.255.255.255 UH 0 0 0 cali054099bed35 20.108.82.200 0.0.0.0 255.255.255.255 UH 0 0 0 cali7b0ee01ff08 20.108.82.201 0.0.0.0 255.255.255.255 UH 0 0 0 cali2d518c9126c 20.108.82.202 0.0.0.0 255.255.255.255 UH 0 0 0 calib55986b3261 20.108.82.203 0.0.0.0 255.255.255.255 UH 0 0 0 cali1dae5a2bc74 20.109.131.0 192.168.56.32 255.255.255.192 UG 0 0 0 eth0 20.111.156.64 192.168.56.31 255.255.255.192 UG 0 0 0 eth0 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0 192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 [root@k8s-master ~]# AWS SG에는 ec2간 tcp,udp는 모두 허용했구요.20.0.0.0/8 대역도 tcp,udp 통신 모두 허용했습니다. 어느부분을 더 확인해봐야 할까요?
- 미해결대세는 쿠버네티스 [초급~중급]
Kubernetes Cluster 설치흐름 [v1.15] (강의 실습버전) (음성없음) 문의 드립니다
수고하십니다.다름 아니라 제가 맥환경에서Kubernetes Cluster 설치흐름 [v1.15] (강의 실습버전) (음성없음)실습과정을 따라하던중 virtualbox 7.x 에서 vm으로 환경설정을 3번이나 동일하게 따라했고 다 되었는데요맥 Termius 에서 도저히 버추얼박스내 구축한192.168.0.30번의 가상머신이 ssh로 연결이 안되어서요virtualbox에서 vm 실행해서는 root 비밀번호 쳐서 접속이 되는데 맥용 터미널에서만 도저히 안되네요참고로 저는 인텔칩이구요 왜 그럴까요?Kubernetes Cluster 설치 [v1.22] (최신, 쉬운설치 버전) 은 잘 맥 Termius에서 virtualbox vm에 잘 접속이 됩니다.모든 설정을 그대로 따라 햇는데요...정말로 안되어서 문의 드리오니 문의 부탁드립니다.. ㅜㅜ제가 모르는 맥 설정이 있는지요??
- 미해결대세는 쿠버네티스 [초급~중급]
다른 네임스네이스로 pod 서비스 연결
kind: Ingress apiVersion: networking.k8s.io/v1 metadata: name: test-ing-wan namespace: test-wan spec: ingressClassName: user-ingress-class rules: - host: wan.test.com http: paths: - path: / pathType: Prefix backend: service: name: test-svc-wan port: number: 8080 ----------------------------------------------- kind: Service apiVersion: v1 metadata: name: test-svc-wan namespace: test-wan spec: ports: - protocol: TCP port: 8080 targetPort: 8080 type: ExternalName sessionAffinity: None externalName: test-deploy-lan.test-lan.svc.cluster.local internalTrafficPolicy: Cluster status: loadBalancer: {}kind: Service apiVersion: v1 metadata: name: test-deploy-lan namespace: test-lan spec: ports: - name: http-port protocol: TCP port: 8080 targetPort: 8080 nodePort: 31141 selector: app: test-deploy-lan clusterIP: 10.96.138.89 clusterIPs: - 10.96.138.89 type: NodePort sessionAffinity: None externalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack internalTrafficPolicy: Cluster status: loadBalancer: {}외부망 네임스페이스(test-wan)의 인그레스를 타고 들어와서 내부망 네임스페이스(test-lan)의 서비스에 연결해주려고 하는데 위처럼 502 bad gateway가 뜨며 연결이 되지 않습니다.내부망의 노드포트로 붙으면 서비스 페이지가 동작하는데 도메인으로 연결하면 연결이 되지 않습니다(hosts파일에 IP, 도메인 추가하였습니다)무엇이 문제인지 확인 한번 부탁드립니다.
- 해결됨대세는 쿠버네티스 [초급~중급]
vagrant up 오류 문의
안녕하세요. 실습 환경 만들려고 계속 시도중인데요. 며칠 동안 해결이 안되고 있네요. -환경-윈도우10 virtualbox : 6.1.26vagrant : 2.2.18 https://kubetm.github.io/k8s/02-beginner/cluster-install-case6/이 링크 보면서 설치하고 있거든요. 몇 번을 지우고 재설치해도 성공을 못하고 있습니다.도움 부탁드립니다. \k8s>vagrant upBringing machine 'k8s-master' up with 'virtualbox' provider...Bringing machine 'k8s-node1' up with 'virtualbox' provider...Bringing machine 'k8s-node2' up with 'virtualbox' provider...==> k8s-master: Importing base box 'centos/7'...==> k8s-master: Matching MAC address for NAT networking...==> k8s-master: Checking if box 'centos/7' version '2004.01' is up to date...==> k8s-master: Setting the name of the VM: k8s_k8s-master_1697506308375_93844==> k8s-master: Clearing any previously set network interfaces...==> k8s-master: Preparing network interfaces based on configuration... k8s-master: Adapter 1: nat k8s-master: Adapter 2: hostonly==> k8s-master: Forwarding ports... k8s-master: 22 (guest) => 2222 (host) (adapter 1)==> k8s-master: Running 'pre-boot' VM customizations...==> k8s-master: Booting VM...==> k8s-master: Waiting for machine to boot. This may take a few minutes... k8s-master: SSH address: 127.0.0.1:2222 k8s-master: SSH username: vagrant k8s-master: SSH auth method: private key k8s-master: k8s-master: Vagrant insecure key detected. Vagrant will automatically replace k8s-master: this with a newly generated keypair for better security. k8s-master: k8s-master: Inserting generated public key within guest... k8s-master: Removing insecure key from the guest if it's present... k8s-master: Key inserted! Disconnecting and reconnecting using new SSH key...==> k8s-master: Machine booted and ready![k8s-master] No Virtualbox Guest Additions installation found.Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.cat.net * extras: ftp.riken.jp * updates: ftp.riken.jpResolving Dependencies--> Running transaction check---> Package centos-release.x86_64 0:7-8.2003.0.el7.centos will be updated---> Package centos-release.x86_64 0:7-9.2009.1.el7.centos will be an update--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package Arch Version Repository Size================================================================================Updating: centos-release x86_64 7-9.2009.1.el7.centos updates 27 kTransaction Summary================================================================================Upgrade 1 PackageTotal download size: 27 kDownloading packages:No Presto metadata available for updateswarning: /var/cache/yum/x86_64/7/updates/packages/centos-release-7-9.2009.1.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEYPublic key for centos-release-7-9.2009.1.el7.centos.x86_64.rpm is not installedRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-8.2003.0.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7Running transaction checkRunning transaction testTransaction test succeededRunning transaction Updating : centos-release-7-9.2009.1.el7.centos.x86_64 1/2 Cleanup : centos-release-7-8.2003.0.el7.centos.x86_64 2/2 Verifying : centos-release-7-9.2009.1.el7.centos.x86_64 1/2 Verifying : centos-release-7-8.2003.0.el7.centos.x86_64 2/2Updated: centos-release.x86_64 0:7-9.2009.1.el7.centosComplete!Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.cat.net * extras: ftp.riken.jp * updates: ftp.riken.jphttp://vault.centos.org/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved PermanentlyTrying other mirror. One of the configured repositories failed (CentOS-7.0.1406 - Base), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum --disablerepo=C7.0.1406-base ... 4. Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable C7.0.1406-base or subscription-manager repos --disable=C7.0.1406-base 5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=C7.0.1406-base.skip_if_unavailable=truefailure: repodata/repomd.xml from C7.0.1406-base: [Errno 256] No more mirrors to try.http://vault.centos.org/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved Permanently==> k8s-master: Checking for guest additions in VM... k8s-master: No guest additions were detected on the base box for this VM! Guest k8s-master: additions are required for forwarded ports, shared folders, host only k8s-master: networking, and more. If SSH fails on this machine, please install k8s-master: the guest additions and repackage the box to continue. k8s-master: k8s-master: This is not an error message; everything may continue to work properly, k8s-master: in which case you may ignore this message.The following SSH command responded with a non-zero exit status.Vagrant assumes that this means the command failed!yum install -y kernel-devel-`uname -r` --enablerepo=C*-base --enablerepo=C*-updatesStdout from the command:Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.cat.net * extras: ftp.riken.jp * updates: ftp.riken.jpStderr from the command:http://vault.centos.org/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved PermanentlyTrying other mirror. One of the configured repositories failed (CentOS-7.0.1406 - Base), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum --disablerepo=C7.0.1406-base ... 4. Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable C7.0.1406-base or subscription-manager repos --disable=C7.0.1406-base 5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=C7.0.1406-base.skip_if_unavailable=truefailure: repodata/repomd.xml from C7.0.1406-base: [Errno 256] No more mirrors to try.http://vault.centos.org/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved PermanentlyC:\Users\SungwookCho\k8s>
- 미해결대세는 쿠버네티스 [초급~중급]
3-3)Pod 실습
3-3)Pod 부분 실습을 할 때 mountPath : /mount3 으로 지정을 했는데, 이론이나 실습하실 때 설명이나 해당 path 가 이전에 만들어져 있어야 한다고 했습니다. 근데 실습에서 말씀하실 때 hostPath 실습에서 path 를 만들어줬기 때문에 해당 pod 가 정상적으로 만들어진다고 하셨는데, hostPath 실습을 할 때 /mount3 을 만들어주는 실습이 없지 않았나요..? 분명 hostPath 실습에서 /mount3 를 만드는 실습이 없었던 거 같은데 왜 정상적으로 실행이 되는지 궁금합니다.
- 해결됨대세는 쿠버네티스 [초급~중급]
vagrant up
vagrant up 시키는데 마지막 줄에서 계속 멈춥니다.. 어떻게 해야 할까요..?k8s-master: Complete!k8s-master: Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service.==> k8s-master: Running provisioner: shell...k8s-master: Running: inline scriptk8s-master: I1009 15:03:45.131633 14690 version.go:255] remote version is much newer: v1.28.2; falling back to: stable-1.22k8s-master: [init] Using Kubernetes version: v1.22.17k8s-master: [preflight] Running pre-flight checks window 11virtualbox 6.1.32vagrant 2.2.19
- 미해결대세는 쿠버네티스 [초급~중급]
curl -O 해당 함수에서 인증서에 대한 파기 여부를 검사하지 못했습니다.
며칠 전에 같은 질문으로 했었는데 답변이 varantfile 내용을 올려달라고 하셨는데, 강사님이 올려주신 URL 로 접근하면 다운받아지는 파일 내용을 복사해서 올리겠습니다. NodeCnt = 2Vagrant.configure("2") do |config| # config.vbguest.installer_options = { allow_kernel_upgrade: true } config.vm.box = "centos/7" config.vm.provider :virtualbox do |vb| vb.memory = 3072 vb.cpus = 4 end config.vm.provision :shell, privileged: true, inline: $install_common_tools config.vm.define "k8s-master" do |master| master.vm.hostname = "k8s-master" master.vm.network "private_network", ip: "192.168.56.30" master.vm.provision :shell, privileged: true, inline: $provision_master_node end (1..NodeCnt).each do |i| config.vm.define "k8s-node#{i}" do |node| node.vm.hostname = "k8s-node#{i}" node.vm.network "private_network", ip: "192.168.56.#{i + 30}" end endend$install_common_tools = <<-SHELL# ssh password 접속 활성화sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_configsed -i 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config;systemctl restart sshd.service# 방화벽 해제systemctl stop firewalld && systemctl disable firewalldsystemctl stop NetworkManager && systemctl disable NetworkManager# Swap 비활성화swapoff -a && sed -i '/ swap / s/^/#/' /etc/fstab# br_netfilter 모듈 로드cat <<EOF | tee /etc/modules-load.d/k8s.confbr_netfilterEOF# Iptables 커널 옵션 활성화cat <<EOF > /etc/sysctl.d/k8s.confnet.bridge.bridge-nf-call-ip6tables = 1net.bridge.bridge-nf-call-iptables = 1EOFsysctl --system# permissive 모드로 SELinux 설정(효과적으로 비활성화)setenforce 0sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config# 쿠버네티스 YUM Repository 설정cat <<EOF | tee /etc/yum.repos.d/kubernetes.repo[kubernetes]name=Kubernetesbaseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64enabled=1gpgcheck=1repo_gpgcheck=0gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpgexclude=kubelet kubeadm kubectlEOF# Centos Updateyum -y update# Hosts 등록cat << EOF >> /etc/hosts192.168.56.30 k8s-master192.168.56.31 k8s-node1192.168.56.32 k8s-node2EOF# 도커 설치yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repoyum install -y containerd.io-1.4.9-3.1.el7 docker-ce-3:20.10.8-3.el7.x86_64 docker-ce-cli-1:20.10.8-3.el7.x86_64mkdir /etc/dockercat > /etc/docker/daemon.json <<EOF{ "exec-opts": ["native.cgroupdriver=systemd"], "log-driver": "json-file", "log-opts": { "max-size": "100m" }, "storage-driver": "overlay2", "storage-opts": [ "overlay2.override_kernel_check=true" ]}EOFmkdir -p /etc/systemd/system/docker.service.d# 도커 재시작systemctl daemon-reloadsystemctl enable --now docker# 쿠버네티스 설치yum install -y kubelet-1.22.0-0.x86_64 kubeadm-1.22.0-0.x86_64 kubectl-1.22.0-0.x86_64 --disableexcludes=kubernetessystemctl enable --now kubeletSHELL$provision_master_node = <<-SHELL# 쿠버네티스 초기화 명령 실행kubeadm init --apiserver-advertise-address 192.168.56.30 --pod-network-cidr=20.96.0.0/12kubeadm token create --print-join-command > ~/join.sh# 환경변수 설정mkdir -p $HOME/.kubecp -i /etc/kubernetes/admin.conf $HOME/.kube/configchown $(id -u):$(id -g) $HOME/.kube/config# Kubectl 자동완성 기능 설치yum install bash-completion -ysource <(kubectl completion bash)echo "source <(kubectl completion bash)" >> ~/.bashrc# Calico 설치kubectl create -f https://raw.githubusercontent.com/kubetm/kubetm.github.io/master/yamls/k8s-install/calico.yamlkubectl create -f https://raw.githubusercontent.com/kubetm/kubetm.github.io/master/yamls/k8s-install/calico-custom.yamlcurl https://docs.projectcalico.org/manifests/calico.yaml -Okubectl apply -f calico.yaml# Dashboard 설치kubectl apply -f https://kubetm.github.io/yamls/k8s-install/dashboard-2.3.0.yamlnohup kubectl proxy --port=8001 --address=192.168.56.30 --accept-hosts='^*$' >/dev/null 2>&1 &SHELL 공부를 시작하고 싶은데 설치에서 계속 막혀서 진도를 못 나가고 있습니다..
- 미해결대세는 쿠버네티스 [초급~중급]
vagrant up
curl -O , curl -k -O 명령어를 모두 사용해봐도 위에 사진처럼 실행되고, 강사님의 화면과 많이 다르게 실행됩니다.. 가상머신 Oracle VM VirtualBox 7.0.10 이 있는데 vagrant up 을 하면 오류가 발생합니다. 어떻게 해결해야 할까요..?
- 미해결대세는 쿠버네티스 [초급~중급]
MutliAZ 환경이라면 k8s 클러스터의 Node는 서로다른 zone에 존재하도록 하나요?
MutliAZ 환경이라면 k8s 클러스터의 Node는 서로다른 zone에 존재하도록 하나요? 아니면, 각 Zone 마다 k8s클러스터를 각각 만드나요?
- 해결됨대세는 쿠버네티스 [초급~중급]
pvc 생성 시 pending 상태
강의를 듣고 pv 생성은 모두 마쳤고, pvc-01 생성 시 pending이 되고 있습니다.이전에 pvc-01이 pv-03과 매핑이 되서 pvc-01 삭제 후에 다시 생성했더니 이번엔 pending이 되네요.혹시 제가 놓친 부분이 있을까요?답변 주시면 감사하겠습니다!
- 미해결대세는 쿠버네티스 [초급~중급]
클러스터 내 AP 서비스와 클러스터 외부 DB 간 연결 가능 여부
안녕하세요 강사님 강의 잘 듣고 있습니다. 클러스터 내의 서비스에서(jdbc 이용) 클러스터 외부의 DBMS(MySQL, 오라클 등등) 에 접근이 가능한지 궁금합니다. 그렇게 할려면 지금 강의 에서 구성한 방식 외에 추가로 어떤 구성이 필요한지요?
- 미해결대세는 쿠버네티스 [초급~중급]
Dashboard 재설치 명령어 오류 확인 부탁드립니다.
안녕하세요.Dashboard를 재설치하는데, v1.15로 설치한 서비스가 v1.15의 삭제명령어로 삭제가 안되고 v1.22의 삭제명령어로만 삭제되네요.ClusterRoleBinding도 v1.15버전으로는 에러가 납니다. 확인 부탁드립니다.
- 해결됨대세는 쿠버네티스 [초급~중급]
pod에 resourceQuota 산정 기준은 어떻게 잡으면 좋을까요?
pod에 resourceQuota 산정 기준은 어떻게 잡으면 좋을지 또 참고할만한 문서 있으면 부탁드립니다.
- 미해결대세는 쿠버네티스 [초급~중급]
ssh dashboard 접속
vagrant ssh k8s-master 로 원격으로 접속하였는데,원격에서 dashboard를 띄우려면 어떻게해야하나요?
- 해결됨대세는 쿠버네티스 [초급~중급]
[중급편] Networking - src-pod에서 dest-pod로 트래픽을 전달할 때 어째서 80 port가 아닌 8080 port를 사용하나요?
안녕하세요 강사님.먼저 좋은 강의에 감사드립니다.이해가 가지 않는 부분이 있어서 문의 드립니다.pod-dest의 container port는 80 입니다.그런데 80으로는 curl 요청이 보내지지 않고, 8080에는 보내지네요?어떤 부분에서 제가 착각하고 있는지 설명 부탁 드립니다.apiVersion: v1 kind: Pod metadata: name: pod-src labels: type: src spec: nodeSelector: kubernetes.io/hostname: worker-1 containers: - name: container image: kubetm/init ports: - containerPort: 8080 --- apiVersion: v1 kind: Pod metadata: name: pod-dest labels: type: dest spec: nodeSelector: kubernetes.io/hostname: wroker-2 containers: - name: container image: kubetm/app ports: - containerPort: 80
- 해결됨대세는 쿠버네티스 [초급~중급]
kubetm/app 도커 이미지 pull error 발생
현재 Namespace, ResourceQuota, LimitRange강의를 실습중에 있는데요...pod 를 생성 하려고 하니 하기 에러가 발생이 되네요.도커 이미지 문제인가요?? Failed to pull image "kubetm/app": rpc error: code = Unknown desc = Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:53605->10.0.2.3:53: i/o timeout
- 해결됨대세는 쿠버네티스 [초급~중급]
Authentication - Mountable secret에 none 나오는 문제
안녕하십니까 강사님, 먼저 좋은 강의 감사드립니다.Authentication 강의 실습을 진행하는 도중 질문이 있습니다.service account 조회 시, Mountable secret이 비어있습니다.강의 내용대로 라면, 자동으로 생성되어야 하는 것 같은데 혹시 어떤 이유에서 인지 알 수 있을까요? 레퍼런스 페이지나, 구글링을 좀 해봤는데 원인을 알 수가 없네요.참고로 저는 1.27 버전을 사용 중입니다.
- 미해결대세는 쿠버네티스 [초급~중급]
vagrant up 명령어를 쳤으나 자꾸 오류가 뜹니다.
C:\Users\Rmsoft\k8s>vagrant upBringing machine 'k8s-master' up with 'virtualbox' provider...Bringing machine 'k8s-node1' up with 'virtualbox' provider...Bringing machine 'k8s-node2' up with 'virtualbox' provider...==> k8s-master: Checking if box 'centos/7' version '2004.01' is up to date...==> k8s-master: Clearing any previously set forwarded ports...==> k8s-master: Clearing any previously set network interfaces...==> k8s-master: Preparing network interfaces based on configuration...k8s-master: Adapter 1: natk8s-master: Adapter 2: hostonly==> k8s-master: Forwarding ports...k8s-master: 22 (guest) => 2222 (host) (adapter 1)==> k8s-master: Running 'pre-boot' VM customizations...==> k8s-master: Booting VM...There was an error while executing VBoxManage, a CLI used by Vagrantfor controlling VirtualBox. The command and stderr is shown below.Command: ["startvm", "83bbb834-fbb4-45ff-9a6d-7c1217bb7d31", "--type", "headless"]Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND).VBoxManage.exe: error: Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND)VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole계속 이런 에러가 뜨면서 설치가 되지 않습니다. 어떻게 해결해야할까요? -> VM virtual box 재설치해봤으나 계속 이런 오류가 뜹니다.-> Kubernetes Cluster 설치 [v1.22] (최신, 쉬운설치 버전)를 보고 있습니다.
- 해결됨대세는 쿠버네티스 [초급~중급]
Dashboard 설치
강사님 안녕하세요강의로 정말 많은 도움을 받고 있습니다.제가 k8s 최신버전(1.27.4) 설치 후쿠버네티스-대시보드를 설치하려고 하는데요강의내용중 1.22 로 진행을 했는데#######################################################################kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.0/aio/deploy/recommended.yamlnamespace/kubernetes-dashboard createdserviceaccount/kubernetes-dashboard createdservice/kubernetes-dashboard createdsecret/kubernetes-dashboard-certs createdsecret/kubernetes-dashboard-csrf createdsecret/kubernetes-dashboard-key-holder createdconfigmap/kubernetes-dashboard-settings createdrole.rbac.authorization.k8s.io/kubernetes-dashboard createdclusterrole.rbac.authorization.k8s.io/kubernetes-dashboard createdrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard createdclusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard createddeployment.apps/kubernetes-dashboard createdservice/dashboard-metrics-scraper createdWarning: spec.template.metadata.annotations[seccomp.security.alpha.kubernetes.io/pod]: non-functional in v1.27+; use the "seccompProfile" field insteaddeployment.apps/dashboard-metrics-scraper created[root@m-k8s Docker]# cat <<EOF | kubectl create -f -> apiVersion: rbac.authorization.k8s.io/v1> kind: ClusterRoleBinding> metadata:> name: kubernetes-dashboard2> labels:> k8s-app: kubernetes-dashboard> roleRef:> apiGroup: rbac.authorization.k8s.io> kind: ClusterRole> name: cluster-admin> subjects:> - kind: ServiceAccount> name: kubernetes-dashboard> namespace: kubernetes-dashboard> EOFclusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard2 created[root@m-k8s Docker]# kubectl get secret -n kubernetes-dashboardNAME TYPE DATA AGEkubernetes-dashboard-certs Opaque 0 26skubernetes-dashboard-csrf Opaque 1 26skubernetes-dashboard-key-holder Opaque 0 26s####################################################################### 이렇게 kubernetes-dashboard-token 이 없는데 어떻게 진행을 해야 할까요?