33 lines
841 B
YAML
33 lines
841 B
YAML
{{- if .Values.common.domainCertWatch.calicoNetpol.enabled }}
|
|
apiVersion: projectcalico.org/v3
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: domain-cert-watch-network-policy
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
order: 10
|
|
selector: dplane == 'domain-cert-watch-job'
|
|
types:
|
|
- Egress
|
|
egress:
|
|
# allow to communicate to DNS pods
|
|
- action: Allow
|
|
protocol: UDP
|
|
destination:
|
|
namespaceSelector: projectcalico.org/name == 'kube-system'
|
|
ports:
|
|
- 53
|
|
- action: Allow
|
|
protocol: TCP
|
|
destination:
|
|
namespaceSelector: projectcalico.org/name == 'kube-system'
|
|
ports:
|
|
- 53
|
|
# allow to communicate with k8s api server
|
|
- action: Allow
|
|
destination:
|
|
services:
|
|
name: kubernetes
|
|
namespace: default
|
|
protocol: TCP
|
|
{{- end}} |