23 lines
572 B
YAML
23 lines
572 B
YAML
![]() |
{{- if .Values.global.openshift }}
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: NetworkPolicy
|
||
|
metadata:
|
||
|
name: {{ template "vault.fullname" . }}
|
||
|
labels:
|
||
|
app.kubernetes.io/name: {{ template "vault.name" . }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
spec:
|
||
|
podSelector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/name: {{ template "vault.name" . }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
ingress:
|
||
|
- from:
|
||
|
- namespaceSelector: {}
|
||
|
ports:
|
||
|
- port: 8200
|
||
|
protocol: TCP
|
||
|
- port: 8201
|
||
|
protocol: TCP
|
||
|
{{ end }}
|