After creation of your first webhook, the following manual steps are necessary to make the webhook work in Amazon EKS environment.
- Edit
el-tekton-webhooks-eventlistener
Ingress and add 2 annotations in themetadata
section.
metadata:
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
kubernetes.io/ingress.class: alb
- Edit
tekton-webhooks-eventlistener
EventListener and addserviceType
LoadBalancer
in thespec
section
spec:
serviceType: LoadBalancer
-
Wait for
get ingress el-tekton-webhooks-eventlistener -n tekton-pipelines
showing the ADDRESS for the el-tekton-webhooks-eventlistener ingress -
Edit
el-tekton-webhooks-eventlistener
Ingress again and update the URL of thehost
with the ADDRESS of the ingress
spec:
rules:
- host: xxxx.yyy.elb.amazonaws.com
- Update the
Payload URL
in the webhook in github.com repositry (Settings->Webhoks->"webhook with dummy URL"->Payload URL) to the ADDRESS of the ingress