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-namespace

13.2. Configuration

The following table lists the configurable parameters of the Ingress-nginx chart and their default values.

Parameter

Description

Default

ingress-nginx.controller.metrics.enabled

Enables Prometheus metrics

true

ingress-nginx.controller.metrics.serviceMonitor.enabled

Enables the Service Monitor

true

ingress-nginx.controller.metrics.serviceMonitor.additionalLabels.release

Adds a label to the Service Monitor

"prometheus"

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