controller.wildcardTLS.secret - what is used for and how? #3859
-
We start a new app with a TLS certificate we just generated.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are thinking about this the exact same way I did when I first ran across it. If fact the wildcard certificate pattern with Ingress was available long before K8s officially supported a wildcard hostname. The pattern with a wildcard secret is that you can define it once and continue to use it without specifically referencing it again. Personally, I recommend getting accustomed to the pattern of defining a secret and then referencing it explicitly each time you use it. Basically, a secret is a secret. Put your certificate into one, name it, reference it each time you use it. If you want to grasp how Gateway API will be working in the future, take a look at the CRDs this project offers as they are extremely similar to the evolving Gateway API. https://docs.nginx.com/nginx-ingress-controller/configuration/virtualserver-and-virtualserverroute-resources/ |
Beta Was this translation helpful? Give feedback.
You are thinking about this the exact same way I did when I first ran across it.
The 'wildcard' has no reference to this being a 'wildcard certificate' - as in it is *.domain
Instead it refers to how the certificate is used.
If fact the wildcard certificate pattern with Ingress was available long before K8s officially supported a wildcard hostname.
The pattern with a wildcard secret is that you can define it once and continue to use it without specifically referencing it again.
This pattern is unique to the Ingress resource and is legacy at this point.
Personally, I recommend getting accustomed to the pattern of defining a secret and then referencing it explicitly each time you use it.
Th…