본문 바로가기

Delete3

3.4. namespace 1. namespace란? object를 논리적으로 분리할 수 있는 논리적 파티션. 2. namespace 확인 default : 기본 네임스페이스. 특정 네임스페이스를 지정하지 않으면 기본 네임스페이스를 사용한다. 네임스페이스의 목록은 클러스터 배포 방법 / 도구나 쿠버네티스 버전에 따라 기본 제공되는 네임스페이스 목록이 조금씩은 다를 수 있다. default : 기본 네임스페이스. kube-node-lease kubernetes node의 가용성을 체크하기 위한 네임스페이스. 하트비트를 위한 leases 오브젝트가 있다. kubernetes 1.14 이상 kubectl get leases.coordination.k8s.io -n kube-node-lease -> 노드가 살아있는지 죽어있는지 확인. k.. 2020. 7. 24.
명령형 명령어 1. replication controller(pod) 생성 kubectl run myapp-httpd --image=httpd --port=80 --generator=run/v1 kubectl run 명령을 사용하여 replication controller를 생성했다. controller의 이름 = myapp-httpd container에 사용할 image = httpd application port = 80 --gernerator 일반적으로 사용하지는 않는다. 이 옵션으로 복제 컨트롤러를 사용하여 파드를 생성한다. 사용하지 않으면 deployment object가 생성된다. 참고 https://kubernetes.io/docs/reference/kubectl/conventions/#generators.. 2020. 7. 23.
Image 생성 - error vrish delete 명령어로 삭제한 경우 dashboard에서 삭제가 안되고 error뜬다 → db 건드려야됌 grep NOVA answers.txt db password copy mysql -u nova -p show databases; use nova; show tables; instances → instance 목록을 가지고 있는 테이블 description instances; explain instances; explain instances; → 컬럼의 목록을 볼 수 있다. deleted라는 필드가 있다. select * from instances where deleted=0; update instances set deleted=1 where deleted=0; deleted=0 -> 하나 이.. 2020. 7. 7.