Last active
June 21, 2019 10:56
-
-
Save yuriburger/fd78851e6e6979473f21d7f95f23f455 to your computer and use it in GitHub Desktop.
[nginx ingress] Create a nginx-ingress controller on kubernetes #helm #kubernetes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vim: syntax=bash | |
# Based on Nginx stable repo | |
# | |
helm repo add nginx-stable https://helm.nginx.com/stable | |
helm repo update | |
helm install nginx-stable/nginx-ingress --name <name> --namespace <namespace> --set controller.service.loadBalancerIP="<ip address>" --set controller.replicaCount=1 | |
# Based on Helm default stable repo | |
# | |
helm install stable/nginx-ingress --name <name> --namespace <namespace> --set controller.service.loadBalancerIP="<ip address>" --set controller.replicaCount=1 | |
# and if you want source ip preservation, add --set controller.service.externalTrafficPolicy=Local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment