Skip to content

Commit

Permalink
Add Service in order to generate correct NetworkPolicies (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
maboehm authored Oct 23, 2024
1 parent 0a3dce2 commit 64f984f
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 64f984f

Please sign in to comment.