Hands-On Kubernetes on Azure - Second Edition by Nills Franssens Shivakumar Gopalakrishnan and Gunther Lenz
Author:Nills Franssens, Shivakumar Gopalakrishnan, and Gunther Lenz
Language: eng
Format: epub
Publisher: Packt Publishing Pvt. Ltd.
Published: 2020-05-12T00:00:00+00:00
Next, we will create an Ingress so that any URL that goes to handsonaks-ingress-<yourname>.<your azure region>.cloudapp.azure.com/oauth will be redirected to the oauth2-proxy service. The same Let's Encrypt certificate issuer is used here (the oauth2_ingress.yaml file in the source code for this chapter):1 apiVersion: extensions/v1beta1
2 kind: Ingress
3 metadata:
4 name: oauth2-proxy-ingress
5 annotations:
6 kubernetes.io/ingress.class: nginx
7 cert-manager.io/issuer: "letsencrypt-prod"
8 spec:
9 tls:
10 - hosts:
11 - <your DNS prefix>.<your azure region>.cloudapp.azure.com
12 secretName: tls-secret
13 rules:
14 - host: <your DNS prefix>.<your azure region>.cloudapp.azure.com
15 http:
16 paths:
17 - path: /oauth2
18 backend:
19 serviceName: oauth2-proxy
20 servicePort: 4180
There is one interesting line to point out in this Ingress. Line 17 introduced a new path to our Ingress. As mentioned earlier in this chapter, the same Ingress can have multiple paths being directed to different back-end services. This is what we are configuring here.
Create this Ingress by using the following command:
kubectl create -f oauth2_ingress.yaml
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
What's Done in Darkness by Kayla Perrin(25490)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(18208)
Shot Through the Heart by Mercy Celeste(18151)
The Fifty Shades Trilogy & Grey by E L James(17767)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(13179)
The Subtle Art of Not Giving a F*ck by Mark Manson(12896)
Scorched Earth by Nick Kyme(11821)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(11013)
Drei Generationen auf dem Jakobsweg by Stein Pia(10208)
Suna by Ziefle Pia(10176)
Scythe by Neal Shusterman(9249)
International Relations from the Global South; Worlds of Difference; First Edition by Arlene B. Tickner & Karen Smith(8599)
Successful Proposal Strategies for Small Businesses: Using Knowledge Management ot Win Govenment, Private Sector, and International Contracts 3rd Edition by Robert Frey(8404)
This is Going to Hurt by Adam Kay(7680)
Dirty Filthy Fix: A Fixed Trilogy Novella by Laurelin Paige(6444)
He Loves Me...KNOT by RC Boldt(5795)
How to Make Love to a Negro Without Getting Tired by Dany LaFerrière(5366)
Interdimensional Brothel by F4U(5298)
Thankful For Her by Alexa Riley(5148)