2023/01 13

[go] 개발에 도움되는 오픈소스

1. cli 개발에 도움주는 패키지 각종 옵션 및 서브 명령어를 쉽게 사용 할 수 있도록 도와 줍니다. https://cli.urfave.org/ Welcome - urfave/cli Welcome to urfave/cli urfave/cli is a simple, fast, and fun package for building command line apps in Go. The goal is to enable developers to write fast and distributable command line applications in an expressive way. These are the guides for each major s cli.urfave.org

ProgrammingLang/Go 2023.01.18

[CKA] 3. ReplicaSet & Deployments

Replicaset란? Pod의 High Availablity를 지원합니다. Pod에 문제가 생기면 새로운 Pod를 Cluster 내부에 생성 합니다. 즉, ReplicaSet은 지정된 수의 동일한 Pod의 실행을 유지하려는 목적으로 사용됩니다. Replication Controller VS Replicaset Replication Controller - 오래된 기술 - Replication Controller로 생성한 것만 관리 할 수 있습니다. Replicaset - 최신 기술 - Replicaset 생성의 일부로 생성되지 않은 Pod도 Replicaset에서 관리할 수 있기 때문입니다. 가장큰 차이점 selector를 사용 할 수 있냐 없냐가 제일 큰 차이점. Replicaset 설정 디플로이먼트로..

Cloud/k8s-CKA 2023.01.11

[급한 k8s] 4. 외부 서비스

외부로 service하는 방법 1. Port forwarding 1) 개요 - master node에서 접속할 pod를 대상으로 port forwarding을 해주는 것입니다. - process레벨로 돌아가기 때문에 매번 설정을 해줘야 되서 테스트 할 때만 사용하는게 좋음 2) 설정 방법 - 배포 할 Pod root@master:~/k8s_yaml# cat nginx-pod.yaml apiVersion: v1 kind: Pod metadata: name: nginx-pod spec: containers: - name: nginx image: nginx:1.14.2 - 명령어 #kubectl port-forward --address 0.0.0.0 nginx-pod 80:80 2. NodePort 1) 개요..

Cloud/k8s 2023.01.01