Emissary Ingress

문학적인유사성·2023년 6월 23일
0

뎁옵깃옵쿠베

목록 보기
14/53
post-custom-banner

listener 생성

listener 공식문서

---
apiVersion: getambassador.io/v3alpha1
kind: Listener
metadata:
  name: http-listener
  namespace: default
spec:
  port: 8080
  protocol: HTTP
  securityModel: XFP
  hostBinding:
    namespace:
      from: ALL
---
apiVersion: getambassador.io/v3alpha1
kind: Listener
metadata:
  name: https-listener
  namespace: default
spec:
  port: 8443
  protocol: HTTPS
  securityModel: XFP
  hostBinding:
    namespace:
      from: ALL
---
apiVersion: getambassador.io/v3alpha1
kind: Listener
metadata:
  name: listener-9090
spec:
  protocol: HTTP
  port: 9090
  securityModel: XFP
  hostBinding:     # This may well need editing for your case!
    selector:
      matchLabels:
        tenant: prometheus
        
        
kubectl label ns observability tenant=prometheus

emissaryIngress 매핑하기

공식문서 Mapping


apiVersion: getambassador.io/v3alpha1
kind: Mapping
metadata:
  name: prometheus
  labels:
    prometheshost: promethes-host
spec:
  prefix: /
  service: generated-prometheus-server.observability:9090
  hostname: "*"

prefix rewrite하는거 찾아야됨!

profile
Are you nervous? Don't be
post-custom-banner

0개의 댓글