Tools for IT/- Kubernetes
-
CKAD - Use Ingress rules to expose applicationsTools for IT/- Kubernetes 2024. 4. 10. 23:51
Ingress Ingress는 클러스터 외부에서 클러스터 내부 Service로 HTTP와 HTTPS 경로를 열어준다. Ingress resource에 규칙을 정하여 트래픽을 컨트롤할 수 있다(Load Balance). Ingress는 외부에서 서비스로 접속이 가능한 URL, 로드 밸런스 트래픽, SSL/TLS 종료, 이름 기반의 가상 호스팅 기능을 구성할 수 있다. Ingress Controller는 일반적으로 로드 밸런서(ex. Nginx)를 사용해서 Ingress를 수행할 책임이 있으며, 트래픽을 처리하는데 도움이 되도록 에지 라우터 또는 추가 프런트 엔드를 구성할 수도 있다. Ingress는 임의의 포트 또는 프로토콜을 노출시키지 않는다. HTTP와 HTTPS 이외의 서비스를 인터넷에 노출하려면 보..
-
CKAD - Provide and troubleshoot access to applications via servicesTools for IT/- Kubernetes 2024. 3. 19. 22:03
서비스 Service는 동일한 기능을 제공하는 Pod 그룹에 대한 안정적인 접근 방식을 제공한다. Service는 클라이언트가 Pod 그룹을 네트워크에서 사용할 수 있도록 해준다. 서비스 타입 ClusterIP Service에 내부 IP를 할당하여 클러스터 내부에서만 접근할 수 있게 한다. NodePort ClusterIP에 기반하며, 각 Node의 지정된 Port를 통해 외부에서 Service에 접근할 수 있게 한다. Ports port targetPort nodePort NodePort 서비스 생성 YAML apiVersion: v1 kind: Service metadata: name: my-service spec: type: NodePort selector: app: MyApp ports: - po..
-
CKAD - Application DeploymentTools for IT/- Kubernetes 2024. 3. 11. 17:59
Understand Deployments and how to perform rolling updates Use Kubernetes primitives to implement common deployment strategies (e.g. blue/green or canary) Deployment Create kubectl create -f Get kubectl get deployments Describe kubectl describe deployment Update Apply file kubectl apply -f Set image kubectl set image deployment/ = Status Status kubectl rollout status deployment/ History kubectl r..