Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(base-cluster/cert-manager): ciliumNetworkPolicy for cert-manager otherwise it can't correctly talk to letsencrypt, ... 🤣 #1115

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ spec:
defaultIssuerKind: ClusterIssuer
{{- end }}
{{ if .Values.certManager.dnsChallengeNameservers }}
{{- $nameservers := list -}}
{{- range $ip, $port := .Values.certManager.dnsChallengeNameservers }}
{{- $nameservers = append $nameservers (printf "%s:%v" $ip $port) -}}
{{- end -}}
{{- $nameservers := list -}}
{{- range $ip, $port := .Values.certManager.dnsChallengeNameservers -}}
{{- $nameservers = append $nameservers (printf "%s:%v" $ip $port) -}}
{{- end -}}
extraArgs:
- --dns01-recursive-nameservers={{- $nameservers | sortAlpha | join "," }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ spec:
- port: "9402"
protocol: TCP
egress:
- toEntities:
- world # allow access to letsencrypt and the DNS apis
toPorts:
- ports:
- port: "443"
protocol: TCP
- toEntities:
- kube-apiserver
- toPorts:
- toPorts: # needs to talk to all possible DNS servers
- ports:
- port: "53"
protocol: UDP
Expand Down Expand Up @@ -50,7 +56,7 @@ spec:
- port: "10250"
protocol: TCP
- fromEntities:
- host
- health
toPorts:
- ports:
- port: "6080"
Expand All @@ -72,7 +78,7 @@ spec:
app.kubernetes.io/name: cainjector
app.kubernetes.io/instance: cert-manager
ingress:
- { }
- {}
egress:
- toEntities:
- kube-apiserver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ metadata:
labels: {{- include "common.labels.standard" $ | nindent 4 }}
spec:
endpointSelector:
matchLabels: { }
matchLabels: {}
egress:
- toEntities:
- cluster
- host
- toEntities:
- world
toPorts:
Expand Down Expand Up @@ -38,13 +37,9 @@ spec:
matchLabels: {{- include "common.tplvalues.render" (dict "value" .Values.global.networkPolicy.dnsLabels "context" $) | nindent 6 }}
egress:
- toEntities:
- kube-apiserver
toPorts:
- ports:
- port: "6443"
protocol: TCP
- kube-apiserver
- toEntities:
- all
- all
toPorts:
- ports:
- port: "53"
Expand Down