Skip to content

Commit

Permalink
Specify network policy labels for admission component
Browse files Browse the repository at this point in the history
- allow talking to DNS and to virtual KAPI
- allow being reached by KAPI (via 'all-webhook-targets')
  • Loading branch information
rfranzke committed May 9, 2023
1 parent 9fbf711 commit 02182f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ spec:
checksum/gardener-extension-admission-aws-kubeconfig: {{ include (print $.Template.BasePath "/secret-kubeconfig.yaml") . | sha256sum }}
{{- end }}
labels:
networking.gardener.cloud/to-dns: allowed
networking.resources.gardener.cloud/to-virtual-garden-kube-apiserver-tcp-443: allowed
{{ include "labels" . | indent 8 }}
spec:
{{- if not .Values.global.virtualGarden.enabled }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ kind: Service
metadata:
name: {{ include "name" . }}
namespace: {{ .Release.Namespace }}
{{- if .Values.global.service.topologyAwareRouting.enabled }}
annotations:
networking.resources.gardener.cloud/from-all-webhook-targets-allowed-ports: '[{"protocol":"TCP","port":{{ .Values.global.webhookConfig.serverPort }}}]'
{{- if .Values.global.service.topologyAwareRouting.enabled }}
service.kubernetes.io/topology-aware-hints: "auto"
{{- end }}
labels:
Expand Down

0 comments on commit 02182f9

Please sign in to comment.