Gateway API TLS configuration

Yu Sang Min·2025년 9월 16일

CKA

목록 보기
109/110
post-thumbnail

📄 예시


apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
  name: example-gateway
spec:
  gatewayClassName: example-class
  listeners:
	- protocol: HTTPS
	  name: https
	  port: 443
	  hostname: foo.example.com
	  tls:
		mode: Terminate
		certificateRefs:
		  - kind: Secret
			group: ""  #  Can be omitted if it is from the main API group (empty by default)
			name: tls-secret
  • TLS 인증서 적용을 위해 작성된 필드
    • spec.listeners.protocol 필드의 값을 HTTPS 로 설정
    • spec.listeners.port : 443
    • spec.listeners.tls.mode : Terminate
    • spec.listeners.tls.certificateRefs : 생성된 secrets 참조
profile
React, Node.js, AWS, Git, Github, Github Action, Docker, K8S

0개의 댓글