본문 바로가기

식사법

검색하기
식사법
프로필사진 식사법

  • 분류 전체보기 (23)
    • Terraform (5)
      • Study (5)
    • Ansible (4)
      • Study (4)
    • K8s (14)
      • 컨테이너 격리 (3)
      • K8S Flannel CNI & PAUSE (3)
      • Calico (2)
      • K8s Service (1)
      • K3s Ingress & Gateway API (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록K8s/K8s Service (1)

식사법

K8s Service

K8S service0. YamlapiVersion: v1kind: Servicemetadata: name: pod-servicespec: selector: app: test ports: - protocol: TCP port: 80 targetPort: 80 nodePort: 31234 type: NodePortk8s 상에서 통신을 하는 법을 알기 위해서 기본적으로 알아야 하는 부분으로 spec.selector와 spec.ports.port와 spec.ports.targetPort를 알고 있어야 합니다.spec.selector.port는 사용자가 접근 할때 사용하는 port로 생각하면 됩니다.spec.ports.targetPort는 pod ..

K8s/K8s Service 2024. 9. 28. 21:10
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바