Skip to content

Commit 000c8f8

Browse files
Merge pull request #9308 from zalando-incubator/skipper/inline-kube-health-format
skipper: use internal CIDRs variable for healthcheck routes
2 parents 02a1ff8 + 240eb6f commit 000c8f8

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

cluster/manifests/skipper/deployment.yaml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ spec:
177177
- "-kubernetes-default-lb-algorithm={{ .Cluster.ConfigItems.skipper_ingress_default_lb_algorithm }}"
178178
- "-kubernetes-disable-catchall-routes={{ .Cluster.ConfigItems.skipper_ingress_disable_catchall_routes }}"
179179
- "-enable-kubernetes-endpointslices={{ .Cluster.ConfigItems.skipper_endpointslices_enabled }}"
180-
{{ if and (eq .Cluster.Provider "zalando-eks") (eq .Cluster.ConfigItems.eks_ip_family "ipv6")}}
181-
- "-whitelisted-healthcheck-cidr={{ .Values.subnet_ipv6_cidrs }}"
182-
{{ end }}
183180
{{ end }}
184181
- "-address=:9999"
185182
- "-wait-first-route-load"
@@ -325,21 +322,18 @@ spec:
325322
- "-forwarded-headers=X-Forwarded-For,X-Forwarded-Proto=https,X-Forwarded-Port=443"
326323
- '-forwarded-headers-exclude-cidrs={{ .cluster_internal_cidrs | join "," }}'
327324
{{ end }}
328-
- >-
329-
-inline-routes=
330-
kube__healthz_down:
331-
Path("/kube-system/healthz") &&
332-
Shutdown() &&
333-
SourceFromLast("10.0.0.0/8", "192.168.0.0/16", "172.16.0.0/12", "127.0.0.1/8", "::1/128"{{- if and (eq .Cluster.Provider "zalando-eks") (eq .Cluster.ConfigItems.eks_ip_family "ipv6")}}{{ range $ip := split .Values.subnet_ipv6_cidrs "," }},"{{ $ip }}"{{ end }}{{- else }}, "fd00::/8"{{- end }})
334-
-> disableAccessLog()
335-
-> status(503)
336-
-> <shunt>;
337-
kube__healthz_up:
338-
Path("/kube-system/healthz") &&
339-
SourceFromLast("10.0.0.0/8", "192.168.0.0/16", "172.16.0.0/12", "127.0.0.1/8", "::1/128"{{- if and (eq .Cluster.Provider "zalando-eks") (eq .Cluster.ConfigItems.eks_ip_family "ipv6")}}{{ range $ip := split .Values.subnet_ipv6_cidrs "," }},"{{ $ip }}"{{ end }}{{- else }}, "fd00::/8"{{- end }})
340-
-> disableAccessLog()
341-
-> status(200)
342-
-> <shunt>;
325+
- "-inline-routes"
326+
- |
327+
kube__healthz_down: Path("/kube-system/healthz") && Shutdown()
328+
&& SourceFromLast("{{ .cluster_internal_cidrs | join `","` }}", "10.0.0.0/8", "192.168.0.0/16", "172.16.0.0/12", "127.0.0.1/8", "fd00::/8", "::1/128")
329+
-> disableAccessLog()
330+
-> status(503)
331+
-> <shunt>;
332+
kube__healthz_up: Path("/kube-system/healthz")
333+
&& SourceFromLast("{{ .cluster_internal_cidrs | join `","` }}", "10.0.0.0/8", "192.168.0.0/16", "172.16.0.0/12", "127.0.0.1/8", "fd00::/8", "::1/128")
334+
-> disableAccessLog()
335+
-> status(200)
336+
-> <shunt>;
343337
{{ .Cluster.ConfigItems.skipper_ingress_inline_routes }}
344338
345339
{{ if .Cluster.ConfigItems.skipper_ingress_health_check_options }}

0 commit comments

Comments
 (0)