You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using EKS with only Calico CNI the Kubernetes API server on the control plane (managed by AWS) cannot reach webhooks that use a service pointing to pods on Calico pod network.
The visible error is the following:
Error: Internal error occurred: failed calling webhook "validate-image-cache.kubefledged.io": Post "https://kubefledged-operator-kube-fledged-webhook-server.kubefledged.svc:3443/validate-image-cache?timeout=1s": Address is not allowed
In order to make the webhook pod accessible (on Calico) from the control plane (not on Calico) I need to expose the service port on the hosting node. hostNetwork: true
Can you please add the option of configuring the hostNetwork on the webhook server's deployment manifest?
#helm-charts/kubefledged/templates/deployment-webhook-server.yamlapiVersion: apps/v1kind: Deploymentmetadata:
name: {{ include "kubefledged.fullname" . }}-webhook-serverlabels:
{{- include "kubefledged.labels" . | nindent 4 }}spec:
replicas: {{ .Values.replicaCount }}selector:
matchLabels:
{{- include "kubefledged.selectorLabels" . | nindent 6 }}-webhook-servertemplate:
metadata:
labels:
{{- include "kubefledged.selectorLabels" . | nindent 8 }}-webhook-serverspec:
#SOMETHING ALONG THESE LINES {{- if .Values.args.webhookServerHostNetwork }}hostNetwork: true{{- end }}
Hi,
When using EKS with only Calico CNI the Kubernetes API server on the control plane (managed by AWS) cannot reach webhooks that use a service pointing to pods on Calico pod network.
The visible error is the following:
In order to make the webhook pod accessible (on Calico) from the control plane (not on Calico) I need to expose the service port on the hosting node.
hostNetwork: true
Can you please add the option of configuring the
hostNetwork
on the webhook server's deployment manifest?source: https://medium.com/@denisstortisilva/kubernetes-eks-calico-and-custom-admission-webhooks-a2956b49bd0d
The text was updated successfully, but these errors were encountered: