-
k8s serviceComputer Science/k8s 2023. 3. 4. 20:31
apiVersion: v1 kind: Service metadata: name: rest-api-service spec: type: LoadBalancer ports: - port: 80 targetPort: 80 selector: server: rest-api-server
tag가 server: rest-api-server인 pod들을 외부 80port와 loadBalancer 형태로 열어준다.
'Computer Science > k8s' 카테고리의 다른 글
Pod - readiness, liveness, startup probe (0) 2023.03.26 Pod의 Lifecycle (0) 2023.03.26 k8s deployment (0) 2023.03.04 aws eks worker node 생성 (0) 2023.03.04 aws eks kubectl 연동 과정. (0) 2023.03.02