Skip to content

Commit

Permalink
Add Service in order to generate correct NetworkPolicies
Browse files Browse the repository at this point in the history
  • Loading branch information
maboehm committed Oct 15, 2024
1 parent 0a3dce2 commit 19f9611
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/gardener-extension-backup-s3/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "name" . }}
namespace: {{ .Release.Namespace }}
annotations:
networking.resources.gardener.cloud/from-all-seed-scrape-targets-allowed-ports: '[{"port":{{ .Values.metricsPort }},"protocol":"TCP"}]'
networking.resources.gardener.cloud/namespace-selectors: '[{"matchLabels":{"kubernetes.io/metadata.name":"garden"}}]'
networking.resources.gardener.cloud/pod-label-selector-namespace-alias: extensions
{{- if .Values.ignoreResources }}
resources.gardener.cloud/ignore: "true"
{{- end }}
labels:
{{ include "labels" . | indent 4 }}
spec:
type: ClusterIP
selector:
{{ include "labels" . | indent 6 }}
ports:
- name: metrics
port: {{ .Values.metricsPort }}
targetPort: {{ .Values.metricsPort }}
protocol: TCP

0 comments on commit 19f9611

Please sign in to comment.