diff options
| author | Max Resnick <max@ofmax.li> | 2020-01-01 14:18:41 -0800 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2020-01-20 16:23:01 -0800 |
| commit | 109fad80f323567d6751c9f51e20dd41582d43bf (patch) | |
| tree | 66b5f0b3c5f147badfbc3f596b089baf11cb10b6 /grumpy/gitolite/templates/gitolite-networkpolicy.yaml | |
| parent | 584857f515ab6fe30530d25483869ed517e9575d (diff) | |
| download | grumpy-charts-109fad80f323567d6751c9f51e20dd41582d43bf.tar.gz | |
add gitolite from orginal author, minor improvements
Diffstat (limited to 'grumpy/gitolite/templates/gitolite-networkpolicy.yaml')
| -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 }} |