0b73242b65
Most ingresses annotations should be work with small changes.
20 lines
468 B
YAML
20 lines
468 B
YAML
{{- if .Values.clusterConfig.cilium.enabled }}
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: allow-prometheus-metrics
|
|
namespace: ingress-haproxy
|
|
spec:
|
|
endpointSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/instance: ingress-haproxy
|
|
ingress:
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
io.kubernetes.pod.namespace: prometheus
|
|
- toPorts:
|
|
- ports:
|
|
- port: "1024"
|
|
protocol: TCP
|
|
{{- end }}
|