질문 답변을 제공하지만, 강의 비용에는 Q&A는 포함되어 있지 않습니다. 다만 실습이 안되거나, 잘못된 내용의 경우는 알려주시면 가능한 빠르게 조치하겠습니다! [질문 전 답변] 1. 강의에서 다룬 내용과 관련된 질문인가요? 예 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예 3. 질문 잘하기 법을 읽어보셨나요? [예 | 아니요] (https://www.inflearn.com/blogs/1719) 4. 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 5. vagrant up 에서 발생하는 문제는 주로 호스트 시스템(Windows, MacOS)과 연관된 다양한 조건에 의해 발생합니다. 따라서 이를 모두 제가 파악할 수 없어서 해결이 어렵습니다. vagrant up 으로 진행이 어렵다면 제공해 드리는 가상 머신(VM) 이미지를 import해서 진행하시기 바랍니다. ( https://www.inflearn.com/questions/992407/comment/281901 ) [질문 하기] controlplane_ node.sh 실행시 오류가 발생합니다. cp: cannot stat '/etc/kubernetes/admin.conf': No such file or directory 라고 출력됩니다. 실제로 cp-k8s 컨테이너 안에 해당 경로 파일이 존재하지 않습니다. 제가 더 확인해야 할게 있을까요? 아래 내용은 진행해 보았습니다. 2.코드 새로 내려받기 (https://github.com/sysnet4admin/_Lecture_k8s_learning.kit) 3.호스트에서 여기 접속되는지 확인 ( https://raw.githubusercontent.com/sysnet4admin/IaC/main/k8s/CNI/172.16_net_calico_v3.26.0.yaml ) 4.문제발생시 cp-k8s에 접속해서 ( https://raw.githubusercontent.com/sysnet4admin/IaC/main/k8s/CNI/172.16_net_calico_v3.26.0.yaml 접속되는지 확인. curl로 확인하시면 됩니다.) controlplane_node.sh k8s_env_build.sh k8s_pkg_cfg.sh _Lecture_k8s_starter.kit tabby-v1.0.207 Vagrantfile vagrant-v2.4.1 virtualbox-v7.0.18 worker_nodes.sh root@cp-k8s:~/_Lecture_k8s_learning.kit/ch1/1.5# ./controlplane_node.sh I1222 18:00:09.315839 3931 version.go:256] remote version is much newer: v1.32.0; falling back to: stable-1.30 [init] Using Kubernetes version: v1.30.8 [preflight] Running pre-flight checks error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR FileContent--proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1 [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...` To see the stack trace of this error execute with --v=5 or higher cp: cannot stat '/etc/kubernetes/admin.conf': No such file or directory chown: cannot access '/root/.kube/config': No such file or directory error: error validating "https://raw.githubusercontent.com/sysnet4admin/IaC/main/k8s/CNI/172.16_net_calico_v3.26.0.yaml": error validating data: failed to download openapi: Get "http://localhost:8080/openapi/v2?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused; if you choose to ignore these errors, turn validation off with --validate=false fatal: destination path '_Lecture_k8s_starter.kit' already exists and is not an empty directory. mv: cannot stat '/home/vagrant/_Lecture_k8s_starter.kit': No such file or directory find: ‘/root/_Lecture_k8s_starter.kit’: No such file or directory Cloning into '/tmp/update-kube-cert'... remote: Enumerating objects: 166, done. remote: Counting objects: 100% (54/54), done. remote: Compressing objects: 100% (45/45), done. remote: Total 166 (delta 18), reused 20 (delta 8), pack-reused 112 (from 1) Receiving objects: 100% (166/166), 63.56 KiB | 7.95 MiB/s, done. Resolving deltas: 100% (81/81), done. CERTIFICATE EXPIRES grep: /etc/kubernetes/controller-manager.conf: No such file or directory Could not read certificate from /dev/fd/63 Unable to load certificate /etc/kubernetes/controller-manager.config grep: /etc/kubernetes/scheduler.conf: No such file or directory Could not read certificate from /dev/fd/63 Unable to load certificate /etc/kubernetes/scheduler.config grep: /etc/kubernetes/admin.conf: No such file or directory Could not read certificate from /dev/fd/63 Unable to load certificate /etc/kubernetes/admin.config Could not open file or uri for loading certificate from /etc/kubernetes/pki/ca.crt 402726755D7F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file 402726755D7F0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/kubernetes/pki/ca.crt) Unable to load certificate /etc/kubernetes/pki/ca.crt Could not open file or uri for loading certificate from /etc/kubernetes/pki/apiserver.crt 4067E2CBF37F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file 4067E2CBF37F0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/kubernetes/pki/apiserver.crt) Unable to load certificate /etc/kubernetes/pki/apiserver.crt Could not open file or uri for loading certificate from /etc/kubernetes/pki/apiserver-kubelet-client.crt 4037BCF84B7F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file 4037BCF84B7F0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/kubernetes/pki/apiserver-kubelet-client.crt) Unable to load certificate /etc/kubernetes/pki/apiserver-kubelet-client.crt Could not open file or uri for loading certificate from /etc/kubernetes/pki/front-proxy-ca.crt 40D7C0B37F7F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file 40D7C0B37F7F0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/kubernetes/pki/front-proxy-ca.crt) Unable to load certificate /etc/kubernetes/pki/front-proxy-ca.crt Could not open file or uri for loading certificate from /etc/kubernetes/pki/front-proxy-client.crt 40F732D0707F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file 40F732D0707F0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/kubernetes/pki/front-proxy-client.crt) Unable to load certificate /etc/kubernetes/pki/front-proxy-client.crt Could not open file or uri for loading certificate from /etc/kubernetes/pki/etcd/ca.crt 40478D1F957F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file 40478D1F957F0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/kubernetes/pki/etcd/ca.crt) Unable to load certificate /etc/kubernetes/pki/etcd/ca.crt Could not open file or uri for loading certificate from /etc/kubernetes/pki/etcd/server.crt 4067A803637F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file 4067A803637F0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/kubernetes/pki/etcd/server.crt) Unable to load certificate /etc/kubernetes/pki/etcd/server.crt Could not open file or uri for loading certificate from /etc/kubernetes/pki/etcd/peer.crt 40374471317F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file 40374471317F0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/kubernetes/pki/etcd/peer.crt) Unable to load certificate /etc/kubernetes/pki/etcd/peer.crt Could not open file or uri for loading certificate from /etc/kubernetes/pki/etcd/healthcheck-client.crt 405798E15C7F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file 405798E15C7F0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/kubernetes/pki/etcd/healthcheck-client.crt) Unable to load certificate /etc/kubernetes/pki/etcd/healthcheck-client.crt Could not open file or uri for loading certificate from /etc/kubernetes/pki/apiserver-etcd-client.crt 40473BA4FA7F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file 40473BA4FA7F0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/kubernetes/pki/apiserver-etcd-client.crt) Unable to load certificate /etc/kubernetes/pki/apiserver-etcd-client.crt [2024-12-22T18:00:11.00+0900][WARNING] does not backup, /etc/kubernetes.old-20241222 already exists [2024-12-22T18:00:11.00+0900][INFO] updating... Wait 30 seconds for restarting the Control-Plane Node... root@cp-k8s:~/_Lecture_k8s_learning.kit/ch1/1.5# ls controlplane_node.sh k8s_env_build.sh k8s_pkg_cfg.sh _Lecture_k8s_starter.kit tabby-v1.0.207 Vagrantfile vagrant-v2.4.1 virtualbox-v7.0.18 worker_nodes.sh root@cp-k8s:~/_Lecture_k8s_learning.kit/ch1/1.5# ls /etc/kubernetes manifests root@cp-k8s:~/_Lecture_k8s_learning.kit/ch1/1.5#
안녕하세요. 강의를 듣던 중 섹션 2의 "컨테이너 가상화, 도커, 컨테이너 실행" 이렇게 총 3개 강의의 강의 화면이 나오지 않고 음성만 나옵니다. 세션 문제인가 싶어 시크릿모드로 진행했는데도 동일한 현상이 발생하네요. 저는 현재 맥북을 사용하고 있고, 휴대폰 앱으로 실행했을 때는 잘 되는데 노트북에서 크롬으로 실행하니 화면이 안나오네요.. 혹시 이에 대해서 해결 방법이 있으면 알려주시면 감사하겠습니다!
안녕하세요! docker 강의 정말 잘 듣고 있습니다! 처음에 docker pull nginx를 실행하고 docker image ls를 사용하여 현재 다운받은 이미지들을 조회하면 잘 나왔습니다! 하지만 이 세션을 다 듣고 복습을 하면서 docker pull nginx를 하면 다음과 같은 로고가 뜨고 docker image ls로 조회를 해도 나오지 않습니다. 하지만 조회할땐 아무것도 나오지 않지만 docker create nginx를 하면 정상적으로 컨테이너가 생성이 됩니다... 무슨 이유인지 잘 모르겠습니다 ㅠㅠ docker run 명령어로 이미지를 다운과 동시에 컨테이너를 생성하고부터 이렇게 된거 같습니다. 현재 docker pull nginx를 하면 다음과 같은 로고가 뜹니다 Using default tag: latest latest: Pulling from library/nginx Digest: sha256:fb197595ebe76b9c0c14ab68159fd3c08bd067ec62300583543f0ebda353b5be Status: Image is up to date for nginx:latest docker.io/library/nginx:latest What's next: View a summary of image vulnerabilities and recommendations → docker scout quickview nginx
stop, rm 해서 mysql 지우고 mysql 경로 만든 다음에 docker run -d -p 3305:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=true --name mysql -v 제 경로/mysql:/var/lib/mysql mariadb:10.9 다시 하고 docker exec -it mysql mysql create database wp CHARACTER SET utf8; grant all privileges on wp.* to wp@'%' identified by 'wp'; flush privileges; quit 이거까지 정상적으로 잘했습니다. docker ps로 mysql로 잘 떠있는 것도 확인 가능합니다. 그런데 localhost :8080으로 workpress 띄우면 error establishing a database connection이 뜹니다. 3306이 이미 사용중이라고 해서 3305로 했고 -v 옵션 하기전에는 3305로 잘떠서 실습에 문제 없었습니다. 확인 좀 부탁드리겠습니다 ㅠㅠ
질문 답변을 제공하지만, 강의 비용에는 Q&A는 포함되어 있지 않습니다. 다만 실습이 안되거나, 잘못된 내용의 경우는 알려주시면 가능한 빠르게 조치하겠습니다! [질문 전 답변] 1. 강의에서 다룬 내용과 관련된 질문인가요? [예] 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? [예] 3. 질문 잘하기 법을 읽어보셨나요? [예] ( https://www.inflearn.com/blogs/1719 ) 4. 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 5. vagrant up 에서 발생하는 문제는 주로 호스트 시스템(Windows, MacOS)과 연관된 다양한 조건에 의해 발생합니다. 따라서 이를 모두 제가 파악할 수 없어서 해결이 어렵습니다. vagrant up 으로 진행이 어렵다면 제공해 드리는 가상 머신(VM) 이미지를 import해서 진행하시기 바랍니다. ( https://www.inflearn.com/questions/992407/comment/281901 ) [질문 하기] 안녕하세요? 아래의 질문들이 있어요~ "쉽게 시작하는 쿠버네티스(v1.30) - {{ x86-64, arm64 }} | 학습 페이지"의 "2.4.베이그런트(Vagrant)+VMware Fusion으로 쿠버네티스 환경 구축하기 (arm64 사용자)-v1.30" 에서 강의 영상과 "수업 노트"의 " 소스: https://github.com/sysnet4admin/_Lecture_k8s_starter.kit"에서 깃헙 소스 URL이 서로 달라요~ 그냥 강의 영상을 따라하다가, Tabby를 강의 영상에서 사용하시는 것 같아서, Tabby를 Homebrew로 먼저 설치하고, 강의 영상을 따라가다보니까, 강의 영상에서 Tabby를 설치하더군요...;; 강의 영상을 따라가면서, ls 명령어를 실행 했을 때, 영상과는 다르게 디렉토리가 없는 것을 알아채고, 찬찬히 들여다 보니까, git pull한 깃헙 URL이 "수업 노트"의 " 소스" URL과는 서로 달라서 해당 디렉토리가 없는 것을 알게 되었습니다. 아무튼 강의 영상과 수업 노트의 깃헙 URL이 서로 다른데 이유가 있을까요? 강의 영상을 따라가면서 "VMware Fusion"을 설치할 때, 강의 영상에서는 이미 설치하신 항목들을 삭제합니다. 저는 "VMware Fusion"을 설치 아래와 같이 나오는데, 어떤 것을 선택해야 하나요? M1 맥북에서 "vagrant up"이 실행이 안되어요...ㅠㅠ "2.4.베이그런트(Vagrant)+VMware Fusion으로 쿠버네티스 환경 구축하기 (arm64 사용자)-v1.30" 강의를 따라가다가, "vagrant up" 명령어를 실행 시켰을 때, 실행이 안되는 내용입니다. % cd k8s-adv % vagrant up Bringing machine 'cp-k8s-1.30.1' up with 'vmware_desktop' provider... Bringing machine 'w1-k8s-1.30.1' up with 'vmware_desktop' provider... Bringing machine 'w2-k8s-1.30.1' up with 'vmware_desktop' provider... Bringing machine 'w3-k8s-1.30.1' up with 'vmware_desktop' provider... ==> cp-k8s-1.30.1: Box 'sysnet4admin/Ubuntu-k8s' could not be found. Attempting to find and install... cp-k8s-1.30.1: Box Provider: vmware_desktop, vmware_fusion, vmware_workstation cp-k8s-1.30.1: Box Version: >= 0 ==> cp-k8s-1.30.1: Loading metadata for box 'sysnet4admin/Ubuntu-k8s' cp-k8s-1.30.1: URL: https://vagrantcloud.com/api/v2/vagrant/sysnet4admin/Ubuntu-k8s The box you're attempting to add doesn't support the provider you requested. Please find an alternate box or use an alternate provider. Double-check your requested provider to verify you didn't simply misspell it. If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is released. Name: sysnet4admin/Ubuntu-k8s Address: https://vagrantcloud.com/api/v2/vagrant/sysnet4admin/Ubuntu-k8s Requested provider: vmware_desktop vmware_fusion vmware_workstation (amd64) 참고로, % vagrant up --debug 명령어 실행 했을 때, 마지막 부분에 이렇게 나옵니다. INFO interface: error: The box you're attempting to add doesn't support the provider you requested. Please find an alternate box or use an alternate provider. Double-check your requested provider to verify you didn't simply misspell it. If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is released. Name: sysnet4admin/Ubuntu-k8s Address: https://vagrantcloud.com/api/v2/vagrant/sysnet4admin/Ubuntu-k8s Requested provider: vmware_desktop vmware_fusion vmware_workstation (amd64) The box you're attempting to add doesn't support the provider you requested. Please find an alternate box or use an alternate provider. Double-check your requested provider to verify you didn't simply misspell it. If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is released. Name: sysnet4admin/Ubuntu-k8s Address: https://vagrantcloud.com/api/v2/vagrant/sysnet4admin/Ubuntu-k8s Requested provider: vmware_desktop vmware_fusion vmware_workstation (amd64) INFO interface: Machine: error-exit ["Vagrant::Errors::BoxAddNoMatchingProvider", "The box you're attempting to add doesn't support the provider\nyou requested. Please find an alternate box or use an alternate\nprovider. Double-check your requested provider to verify you didn't\nsimply misspell it.\n\nIf you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is\nreleased.\n\nName: sysnet4admin/Ubuntu-k8s\nAddress: https://vagrantcloud.com/api/v2/vagrant/sysnet4admin/Ubuntu-k8s\nRequested provider: vmware_desktop vmware_fusion vmware_workstation (amd64)"] 챗 GPT가 알려준 아래의 명령어를 실행해도 결과는 마찬가지였습니다...도와주시겠어요?ㅠㅠ % vagrant plugin install vagrant-vmware-desktop
안녕하세요, 강의 잘 보고 있습니다! 정말 감사합니다. ConfigMap, Secret 등 환경 변수 관리 값들을 조절해보면서 나름대로 테스트를 해보고 있습니다. 그런데 갑자기 궁금증이 생겨 문의드려요. 혹시 kubectl apply -f 를 통해 ConfigMap, Secret에 대한 설정을 변경했을 때, Deployment를 재구동하지 않고 실시간으로 반영시킬 수 있는 방법은 없을까요? Deployment가 지금처럼 몇 대 안될 때는 상관 없을 것 같은데 되게 많을 경우에는 재구동하는 것도 부담이 되는 작업일 수도 있을 것 같아서요. ( 제 개인적인 생각 입니다.. )
s3에 압축된 실행파일 업로드 ecr에 빌드된 이미지 업로드 빌드할때마다 이 두과정을 거쳐서 각각 S3와 ECR에 파일과 이미지가 쌓여서, 만약 배포를 10번 하면 10개의 실행파일과 이미지가 불필요하게 저장됩니다. 혹시 $GITHUB_SHA 같은 생성되는 변수를 사용하지 않고 고정된 이름을 사용해서 덮어 씌워서 사용해도 문제는 없나요?
안녕하세요 강사님! 항상 강의로 재미있게 공부하고 있습니다! 다름이 아니라 ACM으로 SSL 인증서를 적용하면 로드밸런서의 리스너 규칙을 HTTPS 만 허용하고 HTTP 리스너는 404 응답을 보내게 설정해도 되는 걸까요? 로드밸런서 리스너 규칙 HTTPS HTTP 이렇게 하려는 이유는 기존 HTTP 리스너만 있는 상태에서 웹소켓으로 통신을 하려고 하는데, 프론트에서 HTTPS로 웹소켓 연결 요청을 보내게 되면, "Handshake failed due to invalid Upgrade header: null" 이런 에러가 뜨더라고요! 그래서 찾아본 결과 ALB가 리버스 프록시로서 HTTP 요청을 HTTPS로 리다이렉션 하는 과정에서 WebSocket upgrade 헤더 손실이 발생한다고 하더라고요!(이게 맞는 내용일까요..?) 아직 에러를 해결하는 중이라 이게 정답인지 아닌지는 아직 잘 모르겠지만.. 이런 문제로 HTTPS 리스너를 추가해 보려고 합니다! 그리고 하는 김에 보안강화를 위해 HTTP는 404응답, HTTPS 요청만 허용해 보려고 하는데 이렇게 해도 되는 걸까요? + 추가로 이렇게 되면 ALB 보안그룹의 인바운드를 HTTPS를 허용하면 되는 거겠죠?!
docker-compose build가 안되요!ㅠㅠㅠㅠㅠ 도커라 도커컴포즈 삭제하고 다시 까는거는 5시간동안 했는데... 챗gpt가 하라는데로 5시간동안 했는데 해결이 안되네요! Traceback (most recent call last): File "urllib3/ connectionpool.py ", line 677, in urlopen File "urllib3/ connectionpool.py ", line 426, in make request File "<string>", line 3, in raise_from File "urllib3/ connectionpool.py ", line 421, in make request File "http/ client.py ", line 1369, in getresponse File "http/ client.py ", line 310, in begin File "http/ client.py ", line 271, in read status File " socket.py ", line 589, in readinto ConnectionResetError: [Errno 104] Connection reset by peer During handling of the above exception, another exception occurred: Traceback (most recent call last): File "requests/ adapters.py ", line 449, in send File "urllib3/ connectionpool.py ", line 727, in urlopen File "urllib3/util/ retry.py ", line 410, in increment File "urllib3/packages/ six.py ", line 734, in reraise File "urllib3/ connectionpool.py ", line 677, in urlopen File "urllib3/ connectionpool.py ", line 426, in make request File "<string>", line 3, in raise_from File "urllib3/ connectionpool.py ", line 421, in make request File "http/ client.py ", line 1369, in getresponse File "http/ client.py ", line 310, in begin File "http/ client.py ", line 271, in read status File " socket.py ", line 589, in readinto urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "docker/api/ client.py ", line 214, in retrieve server_version File "docker/api/ daemon.py ", line 181, in version File "docker/utils/ decorators.py ", line 46, in inner File "docker/api/ client.py ", line 237, in _get File "requests/ sessions.py ", line 543, in get File "requests/ sessions.py ", line 530, in request File "requests/ sessions.py ", line 643, in send File "requests/ adapters.py ", line 498, in send requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "docker-compose", line 3, in <module> File "compose/cli/ main.py ", line 81, in main File "compose/cli/ main.py ", line 200, in perform_command File "compose/cli/ command.py ", line 70, in project_from_options File "compose/cli/ command.py ", line 153, in get_project File "compose/cli/docker_ client.py ", line 43, in get_client File "compose/cli/docker_ client.py ", line 170, in docker_client File "docker/api/ client.py ", line 197, in init File "docker/api/ client.py ", line 222, in retrieve server_version docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) [119730] Failed to execute script docker-compose 챗 gpt에 물어보고 똑같이 해봐도 해결이 안됩니다. ㅜㅜㅜㅜㅜ
Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 16m default-scheduler Successfully assigned default/spring-deployment-6d776f4dc5-5fg5k to ip-172-31-40-146 Normal Pulling 14m (x4 over 16m) kubelet Pulling image " 149536500787.dkr.ecr.ap-northeast-2.amazonaws.com/kube-ecr:1.0 " Warning Failed 14m (x4 over 16m) kubelet Failed to pull image " 149536500787.dkr.ecr.ap-northeast-2.amazonaws.com/kube-ecr:1.0 ": rpc error: code = NotFound desc = failed to pull and unpack image " 149536500787.dkr.ecr.ap-northeast-2.amazonaws.com/kube-ecr:1.0 ": no match for platform in manifest: not found Warning Failed 14m (x4 over 16m) kubelet Error: ErrImagePull Warning Failed 14m (x6 over 16m) kubelet Error: ImagePullBackOff Normal BackOff 62s (x63 over 16m) kubelet Back-off pulling image " 149536500787.dkr.ecr.ap-northeast-2.amazonaws.com/kube-ecr:1.0 " 쿠버네티스로 AWS에 배포하는 과정에서 위와 같은 에러가 발생합니다. 어떻게 해결해야 될까요?
안녕하세요 깃허브액션작업은 성공했고, codedeploy에서 ec2에 배포하는 과정에서 에러가났습니다 에러미시지: The deployment failed because a specified file already exists at this location: /home/ubuntu/github-actions-practice/package.json 2024-12-14T02:35:19 INFO [codedeploy-agent(3496)]: [Aws::CodeDeployCommand::Client 200 0.023341 0 retries] put_host_command_complete(command_status:"Failed",diagnostics:{format:"JSON",payload:"{\"error_code\":5,\"script_name\":\"\",\"message\":\"The deployment failed because a specified file already exists at this location: /home/ubuntu/github-actions-practice/package.json\",\"log\":\"\"}"} 그런데 EC2의 프로젝트 디렉토리에는 기존 플젝코드가 있는게 당연한 것 아닌가요?? 그럼 appspec.yml에 기존 코드를 삭제하고 새로운 코드를 덮어쓰는 옵션같은 것을 추가해야하는 걸까요? 이 에러가 왜 발생한것인지 어떻게 해결해야하는지 몰라서 질문드립니다!
현재 실무에서 ORM(Prisma)을 채택해서 백엔드를 만들고 있어요. ORM으로 할 수록 Repository패턴과 조합이 좋지않다고 생각이 들고 실제 팀리더도 Repository패턴을 같이 쓰는거에 부정적이고 실제로 사용하지 않아요. 그렇다고 service 하나에 몰아 넣으니 저는 코드 읽기가 점점 힘들어지는거 같아요. 대체할만한걸 검색해보니 CQRS패턴이나 Query Object가 나오는데 아니면 서비스파일을 여러개 두거나... 강사님 같은 경우에는 실무에서 어떻게 대처하시는지 궁금합니다.
입문자를 위한 Spring Boot with Kotlin - 나만의 포트폴리오 사이트 만들기
안녕하세요. 크롬에서 프로그램을 열 수 없습니다. ( 11:00 ) https://github.com/bohuiKang/portfolio_bohui 아래에 에러 메시지입니다. 어떤 부분이 문제인지 찾지 못했습니다.. 어디가 문제인지 알 수 있을까요? 2024-12-12 18:14:04 2024-12-12T09:14:04.434Z INFO 1 --- [nio-8080-exec-8] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2024-12-12 18:14:04 2024-12-12T09:14:04.434Z WARN 1 --- [ main] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 08S01 2024-12-12 18:14:04 2024-12-12T09:14:04.434Z ERROR 1 --- [ main] o.h.engine.jdbc.spi.SqlExceptionHelper : Communications link failure 2024-12-12 18:14:04 2024-12-12 18:14:04 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 2024-12-12 18:14:04 2024-12-12T09:14:04.436Z WARN 1 --- [ main] o.h.e.j.e.i.JdbcEnvironmentInitiator : HHH000342: Could not obtain connection to query metadata 2024-12-12 18:14:04 2024-12-12 18:14:04 org.hibernate.exception.JDBCConnectionException: unable to obtain isolated JDBC connection [Communications link failure ... 2024-12-12 18:14:04 2024-12-12T09:14:04.574Z WARN 1 --- [ main] org.hibernate.orm.deprecation : HHH90000025: MySQLDialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) ... 2024-12-12 18:14:21 2024-12-12T09:14:21.680Z WARN 1 --- [nio-8080-exec-1] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 08S01 2024-12-12 18:14:21 2024-12-12T09:14:21.680Z ERROR 1 --- [nio-8080-exec-1] o.h.engine.jdbc.spi.SqlExceptionHelper : Communications link failure 2024-12-12 18:14:21 2024-12-12 18:14:21 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 2024-12-12 18:14:21 2024-12-12T09:14:21.742Z INFO 1 --- [nio-8080-exec-1] c.b.p.a.advice.AdminApiControllerAdvice : Could not open JPA EntityManager for transaction 2024-12-12 18:14:21 2024-12-12 18:14:21 org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction ...
안녕하세요 강의 설명이 너무 좋아 잘 따라가고있습니다ㅎㅎ 저는 Docker + Spring Boot로 배포 자동화 시키는게 목표입니다! 문제는 기존에 로컬 DB 연결로 테스트 코드를 작성했었는데요!(개인 프젝) 이 때문에 빌드가 안되다보니 따라가는데 조금 어려움이 있었습니다..! EC2안에 도커로 DB 띄워서 해결해야만 할 것 같은데 이렇게 해도 Docker+Spring Boot 목차를 따라가는데 문제 없을까요? 테스트 파일을 삭제하고 싶진 않아서요!! 다른 좋은 방법이 있으시다면 알려주시면 감사하겠습니다!
안녕하세요~ k8s v1.27 버전 설치 를 참고해서 윈도우 11 환경에서 클러스터를 설치했는데요. vagrant up 설정 완료 후, xshell로 master에서 cat ~/join.sh 을 사용해 토큰 및 join 명령어를 복사해 node에 실행하면 [ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists 에러가 발생해, 해결방법을 찾아보다가 master와 node에 kubeadm reset 을 실행했습니다. 여기서 질문드리고 싶은 것은 두가지가 있는데요. kubeadm reset 을 실행했는데 vagrant destroy 로 다 없앤 뒤 vagrant up 으로 다시 세팅할 필요가 없을까요? join 명령어로 발생한 첫 에러는 공유기 IP 고정할당이 안되서 생긴 문제 가능성도 있을까요?