sparse-intern-71089
04/07/2020, 9:32 AMgorgeous-egg-16927
04/07/2020, 3:04 PMboundless-morning-59924
04/07/2020, 9:26 PMgorgeous-egg-16927
04/07/2020, 9:41 PMbreezy-hamburger-69619
04/07/2020, 10:18 PMboundless-morning-59924
04/07/2020, 10:27 PMbreezy-hamburger-69619
04/07/2020, 10:34 PM{"<http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>": "nginx"}
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#L79boundless-morning-59924
04/07/2020, 10:57 PMbreezy-hamburger-69619
04/07/2020, 11:09 PMDo 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 [1][2]. 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
externalDNS
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_ingressboundless-morning-59924
04/08/2020, 9:54 PMbreezy-hamburger-69619
04/08/2020, 9:59 PMWould 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-59924
04/08/2020, 10:18 PMbreezy-hamburger-69619
04/08/2020, 10:46 PMWould 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 [1], 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