boundless-morning-5992404/07/2020, 9:32 AM
gorgeous-egg-1692704/07/2020, 3:04 PM
boundless-morning-5992404/07/2020, 9:26 PM
gorgeous-egg-1692704/07/2020, 9:41 PM
breezy-hamburger-6961904/07/2020, 10:18 PM
boundless-morning-5992404/07/2020, 10:27 PM
breezy-hamburger-6961904/07/2020, 10:34 PM
for this purpose. This can be reconfigured if need be in the nginx instance. You would deploy nginx at this layer and then for your apps keep them in an apps stack co-located with their rules and ingress objects annotated with the class to use, which will be picked up by the nginx ing cntlr configured to watch for that class. https://github.com/pulumi/kubernetes-guides/blob/master/general-app-services/nginx-ingress-controller/index.ts#L79
boundless-morning-5992404/07/2020, 10:57 PM
breezy-hamburger-6961904/07/2020, 11:09 PM
Do you mean that there will be several Ingress-instances, one for each app?I meant that a single nginx-ingress-controller can serve many Ingress objects as long as the class annotation matches what the controller is configured to use.
As far as I understand, I can only use one global-static-ip by one Ingress/L7 Loadbalancer?Yes, as I understand only a single globoal static ip can be associated with a single ingress object . By default ingress objects backed by the GCP L7 ingress controller use ephemeral IPs. It may serve you to use this default setting, and use something like
which will automatically update DNS with the ingress IP 1 - https://cloud.google.com/kubernetes-engine/docs/tutorials/http-balancer#step_5_optional_configure_a_static_ip_address 2 - https://cloud.google.com/kubernetes-engine/docs/tutorials/configuring-domain-name-static-ip#step_2b_using_an_ingress
boundless-morning-5992404/08/2020, 9:54 PM
breezy-hamburger-6961904/08/2020, 9:59 PM
Would it be possible to create a setup with a shared Ingress in app-services-stack, and let multiple app-stacks modify the ingress-rules?Are you still wanting to use the nginx-ing-controller or the GCP L7 ingress controller?
boundless-morning-5992404/08/2020, 10:18 PM
breezy-hamburger-6961904/08/2020, 10:46 PM
Would it be possible to create a setup with a shared Ingress in app-services-stack, and let multiple app-stacks modify the ingress-rules?
Another solution that one could think of is to define all Ingress-rules in the app-services-stack, but the nest question would then be how I should get the names of all k8s-services for each app?Don’t worry about the app-services-stack if you’re using the GKE ingress controller. Simply model the ingress co-living with the deployment as shown in , but put it in your apps stack, not the app-services. Ingress objects reference the service of a deployment so it’s common to co-manage them together 1 - https://github.com/pulumi/kubernetes-guides/blob/master/general-app-services/nginx-ingress-controller/index.ts#L31-L101