게시글
질문&답변
2023.01.26
질문 하나 드립니다..
강의에서는 docker container가 돌고 있는 상태입니다. k8s는 cri라는 container runtime interface스펙에 맞는 컨테이너 런타임이면 설치해서 사용 가능합니다.
- 0
- 1
- 252
질문&답변
2023.01.25
authorized key 질문
해결했습니다.
- 0
- 2
- 441
질문&답변
2022.11.28
e다른 ip로 db접근시 오류
결론이 Master Node에서 mysql -u root -p -h ${Worker_Node ip} 명령어로 접속한것이 결국 db001 서비스에 접속한 것이 되는건가요 ? 그리고 초기에 -e MYSQL_ROOT_PASSWORD 로 db001 서비스에 비번을 root로 주었는데 Worker Node에서 비번을 다시 root로 바꾸어야 접속이 되는 이유가 무엇인가요? 제 생각에는 마스터에서 워커 노드 ip로 접속을 할 때 클러스터 내부의 db001컨테이너에 접속이 되는 것이 아닌 그냥 워커 노드 서버의 mysql에 접속하고 있는것 같습니다.
- 0
- 4
- 277
질문&답변
2022.11.28
e다른 ip로 db접근시 오류
각 서버에 3306 열려있습니다
- 0
- 4
- 277
질문&답변
2022.11.28
e다른 ip로 db접근시 오류
111오류가 아닌 110 오류입니다.
- 0
- 4
- 277
질문&답변
2022.11.15
nginx.conf 수정관련
감사합니다 덕분에 살았어요 ㅋㅋㅋㅋㅋㅋ
- 3
- 3
- 363
질문&답변
2022.11.15
docker run -d -p 9999:80 명령어에 대해
1) ec2 환경의 보안 그룹 인바운드 옵션에 9999포트를 열어주면 내 컴퓨터에 9999번 포트로 상대방이 요청을 할 수 있습니다. 실습환경이 ec2 서버 안에 도커아파치 서버(컨테이너)가 있습니다 웹 데몬 서버는 80(http)번 프로토콜로 클라이언트의 http요청을 대기합니다. 그래서 외부에서 ec2(내 컴퓨터) 9999번으로 들어오면 아파치80 번으로 들어오게끔 매칭을 시켜준 것입니다. 하나의 포트포워딩 개념입니다. 클라이언트 -> 9999번 요청 -> 9999번이열린 컴퓨터(ec2) -> 9999번으로 들어온 것을 80번 으로 보내라 -> 80번은 웹서버 2) 아파치2 웹 서버의 기본 파일 경로입니다. 해당 디렉터리에 html 문서를 넣고 인터넷에서 아파치 서버로 접속하면 그 html 문서가 나옵니다. 3) 컨테이너는 커널을 포함하지 않고 커널 외부 요소만 포함한 경량 서버 단위라고 할 수 있습니다. 그래서 경량화를 하는것입니다. 하나가 들어갈 때도 있고 여러개가 들어갈 때도 있습니다. 어떤 서비스를 운영하느냐에 따라 다릅니다.
- 0
- 1
- 397
질문&답변
2022.11.13
블로그 정리에 사용해도 괜찮나요?
비공개로 하셔야 되요
- 0
- 1
- 179
질문&답변
2022.10.05
설치에러
혹시 해결하셨나요? 같은 문제가 나오고 있는데 2일째 해결 못하는 중이에요 ㅠㅠ
- 0
- 2
- 163
질문&답변
2022.10.05
varant up 오류
vagrant-vbguest 0.30 일때 $ vagrant up Bringing machine 'cent1' up with 'virtualbox' provider... Bringing machine 'cent2' up with 'virtualbox' provider... Bringing machine 'cent3' up with 'virtualbox' provider... ==> cent1: Preparing master VM for linked clones... cent1: This is a one time operation. Once the master VM is prepared, cent1: it will be used as a base for linked clones, making the creation cent1: of new VMs take milliseconds on a modern system. ==> cent1: Importing base box 'rockylinux/8'... ==> cent1: Cloning VM... ==> cent1: Matching MAC address for NAT networking... ==> cent1: Checking if box 'rockylinux/8' version '5.0.0' is up to date... ==> cent1: Setting the name of the VM: cent1 ==> cent1: Clearing any previously set network interfaces... ==> cent1: Preparing network interfaces based on configuration... cent1: Adapter 1: nat cent1: Adapter 2: hostonly cent1: Adapter 3: hostonly ==> cent1: Forwarding ports... cent1: 22 (guest) => 2222 (host) (adapter 1) ==> cent1: Running 'pre-boot' VM customizations... ==> cent1: Booting VM... ==> cent1: Waiting for machine to boot. This may take a few minutes... cent1: SSH address: 127.0.0.1:2222 cent1: SSH username: vagrant cent1: SSH auth method: private key cent1: cent1: Vagrant insecure key detected. Vagrant will automatically replace cent1: this with a newly generated keypair for better security. cent1: cent1: Inserting generated public key within guest... cent1: Removing insecure key from the guest if it's present... cent1: Key inserted! Disconnecting and reconnecting using new SSH key... ==> cent1: Machine booted and ready! [cent1] No Virtualbox Guest Additions installation found. Last metadata expiration check: 0:00:03 ago on Wed 05 Oct 2022 01:15:33 PM UTC. Package rocky-release-8.5-3.el8.noarch is already installed. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Upgrading: rocky-release noarch 8.6-4.el8 baseos 21 k rocky-repos noarch 8.6-4.el8 baseos 14 k Transaction Summary ================================================================================ Upgrade 2 Packages Total download size: 35 k Downloading Packages: (1/2): rocky-repos-8.6-4.el8.noarch.rpm 421 kB/s | 14 kB 00:00 (2/2): rocky-release-8.6-4.el8.noarch.rpm 589 kB/s | 21 kB 00:00 -------------------------------------------------------------------------------- Total 57 kB/s | 35 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: rocky-repos-8.6-4.el8.noarch 1/1 Upgrading : rocky-repos-8.6-4.el8.noarch 1/4 Upgrading : rocky-release-8.6-4.el8.noarch 2/4 Cleanup : rocky-release-8.5-3.el8.noarch 3/4 Cleanup : rocky-repos-8.5-3.el8.noarch 4/4 Running scriptlet: rocky-repos-8.5-3.el8.noarch 4/4 Verifying : rocky-release-8.6-4.el8.noarch 1/4 Verifying : rocky-release-8.5-3.el8.noarch 2/4 Verifying : rocky-repos-8.6-4.el8.noarch 3/4 Verifying : rocky-repos-8.5-3.el8.noarch 4/4 Upgraded: rocky-release-8.6-4.el8.noarch rocky-repos-8.6-4.el8.noarch Complete! Last metadata expiration check: 0:00:05 ago on Wed 05 Oct 2022 01:15:33 PM UTC. No match for argument: kernel-devel-4.18.0-348.20.1.el8_5.x86_64 Error: Unable to find a match: kernel-devel-4.18.0-348.20.1.el8_5.x86_64 Unmounting Virtualbox Guest Additions ISO from: /mnt umount: /mnt: not mounted. ==> cent1: Checking for guest additions in VM... cent1: No guest additions were detected on the base box for this VM! Guest cent1: additions are required for forwarded ports, shared folders, host only cent1: networking, and more. If SSH fails on this machine, please install cent1: the guest additions and repackage the box to continue. cent1: cent1: This is not an error message; everything may continue to work properly, cent1: 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! umount /mnt Stdout from the command: Stderr from the command: umount: /mnt: not mounted. vagrant-vbguest 0.21 일때 cent1: cent1: Complete! ==> cent1: Running provisioner: shell... cent1: Running: C:/Users/junbo/AppData/Local/Temp/vagrant-shell20221005-3480-v071rw.sh cent1: hosts에 각 서버를 등록합니다. cent1: fstab에 nfs정보를 등록합니다. cent1: root유저의 환경설정을 합니다. cent1: ssh 설정을 등록합니다. cent1: 서버 접속 메세지를 설정합니다. cent1: selinux를 무효화합니다. cent1: 처리항목에 없는 서버입니다. 호스트를 확인해주세요. cent1: 서버를 재시작합니다. ==> cent2: Cloning VM... ==> cent2: Matching MAC address for NAT networking... ==> cent2: Checking if box 'rockylinux/8' version '5.0.0' is up to date... ==> cent2: Setting the name of the VM: cent2 ==> cent2: Fixed port collision for 22 => 2222. Now on port 2200. ==> cent2: Clearing any previously set network interfaces... ==> cent2: Preparing network interfaces based on configuration... cent2: Adapter 1: nat cent2: Adapter 2: hostonly cent2: Adapter 3: hostonly ==> cent2: Forwarding ports... cent2: 22 (guest) => 2200 (host) (adapter 1) ==> cent2: Running 'pre-boot' VM customizations... ==> cent2: Booting VM... ==> cent2: Waiting for machine to boot. This may take a few minutes... cent2: SSH address: 127.0.0.1:2200 cent2: SSH username: vagrant cent2: SSH auth method: private key cent2: cent2: Vagrant insecure key detected. Vagrant will automatically replace cent2: this with a newly generated keypair for better security. cent2: cent2: Inserting generated public key within guest... cent2: Removing insecure key from the guest if it's present... cent2: Key inserted! Disconnecting and reconnecting using new SSH key... ==> cent2: Machine booted and ready! [cent2] No Virtualbox Guest Additions installation found. Last metadata expiration check: 0:00:01 ago on Wed 05 Oct 2022 01:25:18 PM UTC. Package rocky-release-8.5-3.el8.noarch is already installed. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Upgrading: rocky-release noarch 8.6-4.el8 baseos 21 k rocky-repos noarch 8.6-4.el8 baseos 14 k Transaction Summary ================================================================================ Upgrade 2 Packages Total download size: 35 k Downloading Packages: (1/2): rocky-repos-8.6-4.el8.noarch.rpm 454 kB/s | 14 kB 00:00 (2/2): rocky-release-8.6-4.el8.noarch.rpm 477 kB/s | 21 kB 00:00 -------------------------------------------------------------------------------- Total 27 kB/s | 35 kB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: rocky-repos-8.6-4.el8.noarch 1/1 Upgrading : rocky-repos-8.6-4.el8.noarch 1/4 Upgrading : rocky-release-8.6-4.el8.noarch 2/4 Cleanup : rocky-release-8.5-3.el8.noarch 3/4 Cleanup : rocky-repos-8.5-3.el8.noarch 4/4 Running scriptlet: rocky-repos-8.5-3.el8.noarch 4/4 Verifying : rocky-release-8.6-4.el8.noarch 1/4 Verifying : rocky-release-8.5-3.el8.noarch 2/4 Verifying : rocky-repos-8.6-4.el8.noarch 3/4 Verifying : rocky-repos-8.5-3.el8.noarch 4/4 Upgraded: rocky-release-8.6-4.el8.noarch rocky-repos-8.6-4.el8.noarch Complete! Error: Unknown repo: 'C*-base' ==> cent2: Checking for guest additions in VM... cent2: No guest additions were detected on the base box for this VM! Guest cent2: additions are required for forwarded ports, shared folders, host only cent2: networking, and more. If SSH fails on this machine, please install cent2: the guest additions and repackage the box to continue. cent2: cent2: This is not an error message; everything may continue to work properly, cent2: 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*-updates Stdout from the command: Stderr from the command: Error: Unknown repo: 'C*-base' (사진)
- 0
- 5
- 280