diff options
Diffstat (limited to '')
| -rw-r--r-- | grumpy/gitolite/templates/gitolite-networkpolicy.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/grumpy/gitolite/templates/gitolite-networkpolicy.yaml b/grumpy/gitolite/templates/gitolite-networkpolicy.yaml new file mode 100644 index 0000000..23b4180 --- /dev/null +++ b/grumpy/gitolite/templates/gitolite-networkpolicy.yaml @@ -0,0 +1,14 @@ +{{- if .Values.NetworkPolicy.Enabled }} +kind: NetworkPolicy +apiVersion: {{ .Values.NetworkPolicy.ApiVersion }} +metadata: + name: "{{ .Release.Name }}-{{ .Values.Component }}" +spec: + podSelector: + matchLabels: + component: "{{ .Release.Name }}-{{ .Values.Component }}" + ingress: + # Allow web access to the UI + - ports: + - port: {{ .Values.ContainerPort }} +{{- end }} |