Skip to content

Instantly share code, notes, and snippets.

@thejsj
Last active May 23, 2019 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thejsj/b19474595046c840a8069a795b0a6a73 to your computer and use it in GitHub Desktop.
Save thejsj/b19474595046c840a8069a795b0a6a73 to your computer and use it in GitHub Desktop.
Nginx Ingress Controller Configiguration
# 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
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