Nginx Kubernetes Ingress Installation
We are going to use the Nginx installation manifests based on the Nginx Ingress Controller installation guide.
For simplicity - we have already prepared an installation script.
- Run the command bellow:
./files/4ingress/ingress_install.sh
source ~/.bashrc
Output
- Expose the Nginx Ingress Dashboard.
cat << EOF | kubectl apply -f -
apiVersion: v1
kind: Service
metadata:
name: dashboard-nginx-ingress
namespace: nginx-ingress
annotations:
service.beta.kubernetes.io/azure-dns-label-name: dashboard-$randomnumber
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: nginx-ingress
EOF
- Wait for the EXTERNAL-IP to have an IP address
kubectl get svc --namespace=nginx-ingress
Output
- Get the application and ingress dashboard domain names and save them for later and try to access the sites
printf "For app browse to http://$nginx_ingress\nFor ingress dashboard browse to http://$dashboard_nginx_ingress/dashboard.html\n"