---
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
apiVersion: getambassador.io/v3alpha1
kind: Mapping
metadata:
name: prometheus
labels:
prometheshost: promethes-host
spec:
prefix: /
service: generated-prometheus-server.observability:9090
hostname: "*"
prefix rewrite하는거 찾아야됨!