13. Ingress-nginx
13.1. Install Nginx Ingress Controller
git clone https://github.com/graphistry/graphistry-helm && cd graphistry-helm cd charts/ingress-nginx && helm dep build helm upgrade -i ingress-nginx ./charts/ingress-nginx --namespace ingress-nginx --create-namespacehelm upgrade -i ingress-nginx ingress-nginx --repo https://kubernetes.github.io/ingress-nginx --namespace ingress-nginx --create-namespacehelm repo add graphistry-helm https://graphistry.github.io/graphistry-helm/ helm upgrade -i ingress-nginx graphistry-helm/ingress-nginx --namespace ingress-nginx --create-namespace
13.2. Configuration
The following table lists the configurable parameters of the Ingress-nginx chart and their default values.
Parameter |
Description |
Default |
|---|---|---|
|
Enables Prometheus metrics |
|
|
Enables the Service Monitor |
|
|
Adds a label to the Service Monitor |
|
To enable the Service Monitor, you must have Prometheus Operator installed in your cluster. Here are the values you can set to configure the Service Monitor to gather metrics with prometheus in the ingress-nginx values.yaml, or in the master values.yaml for all of your charts:
ingress-nginx: controller: metrics: enabled: true serviceMonitor: enabled: true additionalLabels: release: "prometheus"
For more information on the Nginx Ingress Controller visit the documentation: Nginx Ingress Controller Documentation