We have discussed ngix/gateway deployment on aks in the below posts.
- Deploy Nginx-Gateway-Fabric
- Setup Nginx-Gateway Routes and Create Gateway Policies to Map with Ingress Nginx Annotations
Then we fixed an issue with cert renewal at deployment as explained in the below post.
The nginx gateway setup explained in above posts has two parts that talk to each other over a secure connection:
- The control part (Fabric) sends configuration.
- The traffic part (nginx pods) receives it and routes user traffic.
To trust each other, both use certificates. We use cert-manager to create and renew them. There are three certificates:
- A CA certificate. This is the "boss" certificate. It signs the other two.
- A server certificate for the control part.
- A client certificate for the nginx pods.