File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ {{- if and .Values.networkPolicy.enabled (eq .Values.networkPolicy.flavor "cilium") -}}
2+ ---
3+ apiVersion : cilium.io/v2
4+ kind : CiliumNetworkPolicy
5+ metadata :
6+ name : {{ include "ca-controller-for-strimzi.fullname" . }}
7+ spec :
8+ endpointSelector :
9+ matchLabels :
10+ {{- include "ca-controller-for-strimzi.selectorLabels" . | nindent 6 }}
11+ egress :
12+ - toEntities :
13+ - kube-apiserver
14+ {{- if and .Values.networkPolicy.cilium .Values.networkPolicy.cilium.egress }}
15+ {{- toYaml .Values.networkPolicy.cilium.egress | nindent 4 }}
16+ {{- end }}
17+ {{- if and .Values.networkPolicy.cilium .Values.networkPolicy.cilium.ingress }}
18+ ingress :
19+ {{- toYaml .Values.networkPolicy.cilium.ingress | nindent 4 }}
20+ {{- end }}
21+ {{- end -}}
Original file line number Diff line number Diff line change @@ -41,3 +41,29 @@ extraContainers: []
4141
4242env : {}
4343envFrom : []
44+
45+ networkPolicy :
46+ enabled : false
47+ flavor : cilium
48+ cilium :
49+ egress : []
50+ # - toEndpoints:
51+ # - matchLabels:
52+ # io.kubernetes.pod.namespace: kube-system
53+ # app.kubernetes.io/instance: coredns
54+ # app.kubernetes.io/name: coredns
55+ # toPorts:
56+ # - ports:
57+ # - port: "53"
58+ # protocol: UDP
59+ # - port: "53"
60+ # protocol: TCP
61+ ingress : []
62+ # - fromEndpoints:
63+ # - matchLabels:
64+ # io.kubernetes.pod.namespace: monitoring
65+ # app.kubernetes.io/name: prometheus
66+ # toPorts:
67+ # - ports:
68+ # - port: http
69+ # protocol: TCP
You can’t perform that action at this time.
0 commit comments