Last active
May 23, 2019 19:07
-
-
Save thejsj/b19474595046c840a8069a795b0a6a73 to your computer and use it in GitHub Desktop.
Nginx Ingress Controller Configiguration
This file contains hidden or 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
# For Gcloud | |
kubectl create clusterrolebinding cluster-admin-binding \ | |
--clusterrole cluster-admin \ | |
--user $(gcloud config get-value account) | |
kubectl create namespace ingress-nginx | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/cloud-generic.yaml | |
kubectl edit cm -n ingress-nginx nginx-configuration |
This file contains hidden or 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
apiVersion: v1 | |
data: | |
compute-full-forwarded-for: "true" | |
proxy-body-size: 10m | |
use-forwarded-headers: "true" | |
kind: ConfigMap | |
metadata: | |
annotations: | |
kubectl.kubernetes.io/last-applied-configuration: | | |
{"apiVersion":"v1","kind":"ConfigMap","metadata":{"annotations":{},"labels":{"app.kubernetes.io/name":"ingress-nginx","app.kubernetes.io/part-of":"ingress-nginx"},"name":"nginx-configuration","namespace":"ingress-nginx"}} | |
creationTimestamp: "2019-05-23T17:24:21Z" | |
labels: | |
app.kubernetes.io/name: ingress-nginx | |
app.kubernetes.io/part-of: ingress-nginx | |
name: nginx-configuration | |
namespace: ingress-nginx | |
resourceVersion: "133381" | |
selfLink: /api/v1/namespaces/ingress-nginx/configmaps/nginx-configuration | |
uid: 9a1e5a07-7d7f-11e9-86db-42010a800029 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment