UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

add netpol for wait job pod

Merged Alozie Obuh requested to merge add-netpol into main
5 files
+ 28
13
Compare changes
  • Side-by-side
  • Inline
Files
5
{{- if and .Values.networkPolicies.enabled .Values.waitJob.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-wait-job-api-egress
namespace: {{ .Release.Namespace }}
spec:
podSelector:
matchLabels:
job-name: mattermost-wait-job
policyTypes:
- Egress
egress:
- to:
- ipBlock:
cidr: 0.0.0.0/0
except:
- 169.254.169.254/32
{{- end }}
\ No newline at end of file
Loading