rancher-partner-charts/charts/kubecost/cost-analyzer/templates/prometheus-server-networkpo...

16 lines
501 B
YAML
Raw Normal View History

{{- if and (.Values.global.prometheus.enabled) (.Values.prometheus.server.enabled) (.Values.networkPolicy.enabled) }}
apiVersion: networking.k8s.io/v1
2021-06-24 01:55:05 +00:00
kind: NetworkPolicy
metadata:
name: {{ template "prometheus.server.fullname" . }}
namespace: {{ .Release.Namespace }}
2021-06-24 01:55:05 +00:00
labels:
{{- include "prometheus.server.labels" . | nindent 4 }}
spec:
podSelector:
matchLabels:
{{- include "prometheus.server.matchLabels" . | nindent 6 }}
ingress:
- ports:
- port: 9090
{{- end }}