Beginning Kubernates-Based MSA (with Spring Boot) - Part 1
안녕하세요. 자문자답해봅니다. PowerShell 7.6.6 PS C:\Users\MZC-USER> kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo base64: 'base64' 용어는 cmdlet, 함수, 스크립트 파일 또는 실행 프로그램의 이름으로 인식되지 않습니다. 이름의 철자를 확인하거나 경로가 포함되어 있으면 경로가 올바른지 확인하고 다시 시도합니다. 명령 파이프라인 위치 1에서 cmdlet Write-Output 다음 매개 변수에 대한 값을 제공하세요. InputObject: PS C:\Users\USER> $pwd = kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" PS C:\Users\USER> [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($pwd)) ................ PS C:\Users\USER>
ubuntu-on-win> vagrant up Bringing machine 'server1' up with 'virtualbox' provider... Bringing machine 'server2' up with 'virtualbox' provider... Bringing machine 'server3' up with 'virtualbox' provider... ==> server1: Checking if box 'bento/ubuntu-24.04' version '202510.26.0' is up to date... ==> server1: Clearing any previously set network interfaces... There was an error while executing VBoxManage , a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["hostonlyif", "create"] Stderr: 0%...E_FAIL VBoxManage.exe: error: Failed to create the host-only adapter VBoxManage.exe: error: Querying NetCfgInstanceId failed (ERROR_FILE_NOT_FOUND) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 105 of file VBoxManageHostonly.cpp
다음의 내용은 반드시 github 리포지토리의 내용을 참조하여 설치, 설정해 주세요. Jenkins, Gitea 설정을 위한 가상 머신 설치 윈도우 : https://github.com/stepanowon/ubuntu-on-win Mac : https://github.com/stepanowon/ubuntu-on-mac k8s 를 위한 가상머신 설치 윈도우 : https://github.com/stepanowon/k8s-on-win Mac : https://github.com/stepanowon/k8s-on-mac Jenkins 설치 및 설정 윈도우 : https://github.com/stepanowon/ubuntu-on-win Mac : https://github.com/stepanowon/ubuntu-on-mac 특히 Mac에서는 브라우저 보안 설정을 해야 할 수 있습니다
젠킨스 설치시 오류가 발생하여 https://pkg.jenkins.io/debian/ 에서 관련 내용 참고하며 해결하려고 했었고, 중간에 꼬였는지 계속 실패하더라구요. AI와 같이 해결했고, 같은 문제를 겪으실 분들을 위해 참고차 남깁니다~ 1. 문제 원인 GPG 키 인식 실패: NO_PUBKEY 7198F4B714ABFC68 에러는 APT가 젠킨스 저장소의 서명을 검증할 수 없을 때 발생합니다. 보안 정책 강화: 최신 Ubuntu(24.04+)에서는 기존 .asc 형태의 키보다 바이너리 형태인 .gpg 키 저장 방식을 권장하며, 경로가 일치하지 않으면 저장소를 무시합니다. 2. 해결 방법 (최신 표준 방식) 터미널에서 아래 명령어를 순서대로 실행하세요. Step 1: 기존의 잘못된 설정 파일 삭제 Bash sudo rm -f /usr/share/keyrings/jenkins-keyring.asc sudo rm -f /usr/share/keyrings/jenkins-keyring.gpg sudo rm -f /etc/apt/sources.list.d/jenkins.list Step 2: 키 서버에서 직접 키 수신 및 변환 저장 가장 확실한 방법으로 우분투 키 서버에서 직접 키를 가져와 .gpg 형식으로 저장합니다. Bash sudo gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 7198F4B714ABFC68 sudo gpg --export 7198F4B714ABFC68 | sudo tee /usr/share/keyrings/jenkins-keyring.gpg > /dev/null Step 3: Jenkins 저장소 등록 (HTTPS 사용) Bash echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.gpg] https://pkg.jenkins.io/debian-stable binary/" | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null Step 4: 업데이트 및 설치 Bash sudo apt update sudo apt install jenkins -y 3. 설치 확인 설치가 완료된 후 서비스가 정상 동작하는지 확인합니다. Bash sudo systemctl status jenkins Tip: 만약 설치 도중 Java 관련 에러가 발생한다면, 젠킨스 구동을 위해 sudo apt install openjdk-17-jre -y 명령어로 자바를 먼저 설치해 주세요.
강사님, 안녕하세요! 강의 잘듣고 있습니다. 강의 6분 50초 부분에 빌드 실패 테스트를 실습하던 중 질문이 있어서 글 올립니다! playwright-report 폴더에서 index.html 파일을 클릭하였는데 강사님과 다른 빈화면이 보입니다. 시간되시면 확인부탁드립니다. 감사합니다!
강사님, 안녕하세요~ 강의 잘듣고 있습니다! 다름이 아니라 섹션5의 방법 1과 달리 방법2를 통하여 CI/CD 배포를 하니 .git-credentials 파일이 없어도 배포가 성공한 것을 확인 할 수 있었습니다. 그 이유가 궁금합니다(이전에 git config --global credential.helper store 이 명령어로 연동을 해서 그런지 모르겠습니다) 시간되실때 답변 부탁드리겠습니다. 감사합니다!