-
[Project] NCP Centos7 KubernetesProject 2024. 7. 8. 10:21728x90
java -jar 파일이름.jar
NCP에서 CentOS-Base.repo의 설정을 바꿔야 한다. 아래 포스팅을 참고해서 수정하면 된다.
https://code-space.tistory.com/438
[Project] NCP CentOS7 cannot find a valid baseurl for repo base/7/x86_64
naver cloud platfom에서 CentOS7 서버를 생성하고 Mysql8을 설치하려는 중에 설치가 안되는 오류가 났다. mysql repository설치하고 repository목록 확인을 하면 status가 다 0이다.설치에 필요한 내부 파일들이
code-space.tistory.com
yum update -y yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum install docker-ce docker-ce-cli containerd.io -y docker -v docker systemctl start docker
systemctl start docker systemctl enable docker systemctl status docker
vim /etc/yum.repos.d/kubernetes.repo
yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes systemctl enable kubelet && systemctl start kubelet kubeadm version -o short kubectl version --short kubectl version kubelet --version
vim /etc/hosts ... [서버 ip] [서버 이름]
kubeadm init
명령어 입력하고 에러 발생하면 아래 작업 해야 함
$ sudo vi /etc/containerd/config.toml
disabled_plugins = ["cri"]위 내용 주석처리
export KUBECONFIG=/etc/kubernetes/admin.conf
vim deployment.yaml
kubectl apply -f deployment.yaml kubectl get deployment kubectl get pod
vim service.yaml kubectl apply -f service.yaml kubectl get service
kubectl get all kubectl scale deployment devops-spring-deployment --replicas=0 kubectl scale deployment devops-spring-deployment --replicas=1
8080
cp /etc/kubernetes/admin.conf $HOME/.kube/config
참고
쿠버네티스
https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/change-package-repository/
https://coding-business.tistory.com/134
https://toridori.tistory.com/186
https://yes-admit.tistory.com/123
https://velog.io/@shdrnrhd113/kubectl-%EB%A1%9C-service-%EC%83%9D%EC%84%B1%ED%95%98%EA%B8%B0
오류 해결
springboot 쿠버네티스 배포
jenkins
https://guide.ncloud-docs.com/docs/devtools-devtools-1-1
728x90'Project' 카테고리의 다른 글
[Project] NCP CentOS7 cannot find a valid baseurl for repo base/7/x86_64 (0) 2024.07.05 [Project] NCP centOS MySQL8 설치 (0) 2024.07.04 [Project] SSLHandshakeException (0) 2024.07.04 [Project] NCP MySQL Server workbench 외부 접속 (0) 2024.07.03 [Project] NCP centOS7 nginx설치 (0) 2024.07.02