Closed gaussye closed 1 week ago
duplicated with issue https://github.com/cert-manager/cert-manager/issues/3645
@gaussye as you already found it there is an issue with deploying cert-manager on EKS when not using the VPC CNI. I tried the following sequence to overcome the error
aws ec2 authorize-security-group-ingress --group-id "$EKS_CLUSTER_SG" --protocol tcp --port 10260 --cidr "$EKS_VPC_CIDR"
helm install \
cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
--version v1.16.1 \
--set crds.enabled=true \
--set webhook.hostNetwork=true \
--set webhook.securePort=10260
hostNetwork: true
kubectl patch deployment peer-pods-webhook-controller-manager -n peer-pods-webhook-system --type='json' -p='[{"op": "add", "path": "/spec/template/spec/hostNetwork", "value": true}]'
I'll add it to the README. Also you can use default AWS VPC CNI. It works now with latest code. I'll create a PR soon to update the README
Documentation updated via - https://github.com/confidential-containers/cloud-api-adaptor/pull/2148
@bpradipt I want to deploy the CAA on my local k8s (v1.31.2, not EKS) cluter, and I use cilium (v1.16.3) as the CNI.
I still have the same bug on the latest doc.
The commands of #3645 were also tried
kubectl delete -A ValidatingWebhookConfiguration cert-manager-webhook
kubectl delete -A mutatingwebhookconfigurations cert-manager-webhook
If I use make deploy
to install the CAA by operators, do I need to install the cert-manager by helm manually?
If so, how to allow port 10260 for my local cluster?
Thank you for your time.
Describe the bug
I follow the guide https://github.com/confidential-containers/cloud-api-adaptor/blob/main/src/cloud-api-adaptor/aws/README.md to deploy CAA on EKS(1.30), i got the following error message. It blocks the remaining steps.
clusterrolebinding.rbac.authorization.k8s.io/peer-pods-webhook-manager-rolebinding created clusterrolebinding.rbac.authorization.k8s.io/peer-pods-webhook-proxy-rolebinding created configmap/peer-pods-webhook-manager-config created service/peer-pods-webhook-controller-manager-metrics-service created service/peer-pods-webhook-webhook-service created deployment.apps/peer-pods-webhook-controller-manager created mutatingwebhookconfiguration.admissionregistration.k8s.io/peer-pods-webhook-mutating-webhook-configuration created Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "webhook.cert-manager.io": failed to call webhook: Post "https://cert-manager-webhook.cert-manager.svc:443/validate?timeout=30s": Address is not allowed Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "webhook.cert-manager.io": failed to call webhook: Post "https://cert-manager-webhook.cert-manager.svc:443/validate?timeout=30s": Address is not allowed make[1]: [deploy] Error 1 make[1]: Leaving directory `/kata-container-testing/cloud-api-adaptor/src/webhook' make: [deploy] Error 2
How to reproduce
follow the guide https://github.com/confidential-containers/cloud-api-adaptor/blob/main/src/cloud-api-adaptor/aws/README.md
CoCo version information
quay.io/confidential-containers/operator:v0.10.0
What TEE are you seeing the problem on
None
Failing command and relevant log output
No response