Create a Pod name Nginx-pod inside the namespace testing, Create a service for the Nginx-pod named nginx-svc, using the ingress of your choice, run the ingress on tls, secure port.
A) Explanation:
$ kubectl get ing -n <namespace-of-ingress-resource>
NAME HOSTS ADDRESS PORTS AGE
cafe-ingress cafe.com 10.0.2.15 80 25s
$ kubectl describe ing <ingress-resource-name> -n <namespace-of-ingress-resource>
Name: cafe-ingress
Namespace: default
Address: 10.0.2.15
Default backend: default-http-backend:80 (172.17.0.5:8080)
Rules:
Host Path Backends
---- ---- --------
cafe.com
/tea tea-svc:80 (<none>)
/coffee coffee-svc:80 (<none>)
Annotations:
kubectl.kubernetes.io/last-applied-configuration: {'apiVersion':'networking.k8s.io/v1','kind':'Ingress','metadata':{'annotations':{},'name':'cafe-ingress','namespace':'default','selfLink':'/apis/networking/v1/namespaces/default/ingresses/cafe-ingress'},'spec':{'rules':[{'host':'cafe.com','http':{'paths':[{'backend':{'serviceName':'tea-svc','servicePort':80},'path':'/tea'},{'backend':{'serviceName':'coffee-svc','servicePort':80},'path':'/coffee'}]}}]},'status':{'loadBalancer':{'ingress':[{'ip':'169.48.142.110'}]}}}
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal CREATE 1m ingress-nginx-controller Ingress default/cafe-ingress
Normal UPDATE 58s ingress-nginx-controller Ingress default/cafe-ingress
$ kubectl get pods -n <namespace-of-ingress-controller>
NAME READY STATUS RESTARTS AGE
ingress-nginx-controller-67956bf89d-fv58j 1/1 Running 0 1m
$ kubectl logs -n <namespace> ingress-nginx-controller-67956bf89d-fv58j
-------------------------------------------------------------------------------
NGINX Ingress controller
Release: 0.14.0
Build: git-734361d
Repository: https://github.com/kubernetes/ingress-nginx
-------------------------------------------------------------------------------
....
Sophia
7 months agoTamekia
7 months agoDesmond
7 months agoAntonio
7 months agoJohana
8 months agoDawne
8 months agoLorriane
8 months agoJunita
8 months agoMel
8 months agoSkye
8 months agoDaniel
8 months agoNicholle
8 months agoNoel
9 months agoLonny
9 months agoIsadora
9 months agoJaleesa
9 months agoSherita
9 months agoDerrick
1 year agoSkye
1 year agoDeja
1 year agoHubert
1 year agoShaun
1 year agoLashawnda
1 year agoAnglea
1 year agoGilma
1 year agoWhitney
1 year agoAretha
1 year agoDolores
1 year agoSusana
1 year agoLaura
1 year agoCherelle
1 year agoAshlee
1 year agoCarman
1 year agoLeonie
1 year agoRosendo
1 year agoHillary
1 year agoLili
1 year agoShawnee
1 year agoArminda
1 year agoShawnee
1 year ago