$helminstall--namenginx-ingresslocal/nginx-ingressNAME:nginx-ingressLASTDEPLOYED:FriOct2718:26:582017NAMESPACE:defaultSTATUS:DEPLOYEDRESOURCES:==> rbac.authorization.k8s.io/v1beta1/RoleNAMEKINDnginx-ingress-nginx-ingressRole.v1beta1.rbac.authorization.k8s.io==> rbac.authorization.k8s.io/v1beta1/RoleBindingnginx-ingress-nginx-ingressRoleBinding.v1beta1.rbac.authorization.k8s.io==> v1/ServiceNAMECLUSTER-IPEXTERNAL-IPPORT(S) AGEnginx-ingress-nginx-ingress-controller10.254.100.108<nodes>80:30484/TCP,443:31053/TCP1snginx-ingress-nginx-ingress-default-backend10.254.58.156<none>80/TCP1s==> extensions/v1beta1/DeploymentNAMEDESIREDCURRENTUP-TO-DATEAVAILABLEAGEnginx-ingress-nginx-ingress-default-backend11101snginx-ingress-nginx-ingress-controller11101s==> v1/ConfigMapNAMEDATAAGEnginx-ingress-nginx-ingress-controller11s==> v1/ServiceAccountNAMESECRETSAGEnginx-ingress-nginx-ingress11s==> rbac.authorization.k8s.io/v1beta1/ClusterRoleNAMEKINDnginx-ingress-nginx-ingressClusterRole.v1beta1.rbac.authorization.k8s.io==> rbac.authorization.k8s.io/v1beta1/ClusterRoleBindingnginx-ingress-nginx-ingressClusterRoleBinding.v1beta1.rbac.authorization.k8s.ioNOTES:Thenginx-ingresscontrollerhasbeeninstalled.GettheapplicationURLbyrunningthesecommands: export HTTP_NODE_PORT=$(kubectl --namespace default get services -o jsonpath="{.spec.ports[0].nodePort}" nginx-ingress-nginx-ingress-controller)
export HTTPS_NODE_PORT=$(kubectl --namespace default get services -o jsonpath="{.spec.ports[1].nodePort}" nginx-ingress-nginx-ingress-controller)
export NODE_IP=$(kubectl--namespacedefaultgetnodes-ojsonpath="{.items[0].status.addresses[1].address}")echo"Visit http://$NODE_IP:$HTTP_NODE_PORT to access your application via HTTP."echo"Visit https://$NODE_IP:$HTTPS_NODE_PORT to access your application via HTTPS."AnexampleIngressthatmakesuseofthecontroller:apiVersion:extensions/v1beta1kind:Ingressmetadata:annotations:kubernetes.io/ingress.class:nginxname:examplenamespace:foospec:rules:-host:www.example.comhttp:paths:-backend:serviceName:exampleServiceservicePort:80path:/# This section is only required if TLS is to be enabled for the Ingresstls:-hosts:-www.example.comsecretName:example-tlsIfTLSisenabledfortheIngress,aSecretcontainingthecertificateandkeymustalsobeprovided:apiVersion:v1kind:Secretmetadata:name:example-tlsnamespace:foodata:tls.crt:<base64encodedcert>tls.key:<base64encodedkey>type:kubernetes.io/tls
export HTTP_NODE_PORT=$(kubectl --namespace default get services -o jsonpath="{.spec.ports[0].nodePort}" nginx-ingress-nginx-ingress-controller)
export HTTPS_NODE_PORT=$(kubectl --namespace default get services -o jsonpath="{.spec.ports[1].nodePort}" nginx-ingress-nginx-ingress-controller)
export NODE_IP=$(kubectl--namespacedefaultgetnodes-ojsonpath="{.items[0].status.addresses[1].address}")echo"Visit http://$NODE_IP:$HTTP_NODE_PORT to access your application via HTTP."echo"Visit https://$NODE_IP:$HTTPS_NODE_PORT to access your application via HTTPS."Visithttp://172.20.0.113:30484toaccessyourapplicationviaHTTP.Visithttps://172.20.0.113:31053toaccessyourapplicationviaHTTPS.