Update K8S to include an auto generator of values template
This commit is contained in:
16
opencloud/charts/prometheus/templates/network-policy.yaml
Normal file
16
opencloud/charts/prometheus/templates/network-policy.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
{{- if .Values.networkPolicy.enabled }}
|
||||
apiVersion: {{ template "prometheus.networkPolicy.apiVersion" . }}
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: {{ template "prometheus.server.fullname" . }}
|
||||
namespace: {{ include "prometheus.namespace" . }}
|
||||
labels:
|
||||
{{- include "prometheus.server.labels" . | nindent 4 }}
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
{{- include "prometheus.server.matchLabels" . | nindent 6 }}
|
||||
ingress:
|
||||
- ports:
|
||||
- port: {{ default (include "prometheus.port" .) .Values.server.portName }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user