|
| 1 | +## Bitnami NGINX Ingress controller image version |
| 2 | +## ref: https://hub.docker.com/r/bitnami/nginx-ingress-controller/tags/ |
| 3 | +name: controller |
| 4 | +image: |
| 5 | + registry: docker.io |
| 6 | + repository: bitnami/nginx-ingress-controller |
| 7 | + tag: 0.20.0-debian-9 |
| 8 | + ## Specify a imagePullPolicy |
| 9 | + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' |
| 10 | + ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images |
| 11 | + ## |
| 12 | + pullPolicy: IfNotPresent |
| 13 | + |
| 14 | +config: {} |
| 15 | +# Will add custom header to Nginx https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/customization/custom-headers |
| 16 | +headers: {} |
| 17 | + |
| 18 | +# Required for use with CNI based kubernetes installations (such as ones set up by kubeadm), |
| 19 | +# since CNI and hostport don't mix yet. Can be deprecated once https://github.com/kubernetes/kubernetes/issues/23920 |
| 20 | +# is merged |
| 21 | +hostNetwork: false |
| 22 | + |
| 23 | +# Optionally change this to ClusterFirstWithHostNet in case you have 'hostNetwork: true'. |
| 24 | +# By default, while using host network, name resolution uses the host's DNS. If you wish nginx-controller |
| 25 | +# to keep resolving names inside the k8s network, use ClusterFirstWithHostNet. |
| 26 | +dnsPolicy: ClusterFirst |
| 27 | + |
| 28 | +## Use host ports 80 and 443 |
| 29 | +daemonset: |
| 30 | + useHostPort: false |
| 31 | + |
| 32 | + hostPorts: |
| 33 | + http: 80 |
| 34 | + https: 443 |
| 35 | + |
| 36 | +## Required only if defaultBackend.enabled = false |
| 37 | +## Must be <namespace>/<service_name> |
| 38 | +## |
| 39 | +defaultBackendService: "" |
| 40 | + |
| 41 | +## Election ID to use for status update |
| 42 | +## |
| 43 | +electionID: ingress-controller-leader |
| 44 | + |
| 45 | +## Name of the ingress class to route through this controller |
| 46 | +## |
| 47 | +ingressClass: nginx |
| 48 | + |
| 49 | +# labels to add to the pod container metadata |
| 50 | +podLabels: {} |
| 51 | +# key: value |
| 52 | + |
| 53 | +## Allows customization of the external service |
| 54 | +## the ingress will be bound to via DNS |
| 55 | +publishService: |
| 56 | + enabled: false |
| 57 | + ## Allows overriding of the publish service to bind to |
| 58 | + ## Must be <namespace>/<service_name> |
| 59 | + ## |
| 60 | + pathOverride: "" |
| 61 | + |
| 62 | +## Limit the scope of the controller |
| 63 | +## |
| 64 | +scope: |
| 65 | + enabled: false |
| 66 | + namespace: "" # defaults to .Release.Namespace |
| 67 | + |
| 68 | +## Additional command line arguments to pass to nginx-ingress-controller |
| 69 | +## E.g. to specify the default SSL certificate you can use |
| 70 | +## extraArgs: |
| 71 | +## default-ssl-certificate: "<namespace>/<secret_name>" |
| 72 | +extraArgs: {} |
| 73 | + |
| 74 | +## Additional environment variables to set |
| 75 | +extraEnvs: [] |
| 76 | +# extraEnvs: |
| 77 | +# - name: FOO |
| 78 | +# valueFrom: |
| 79 | +# secretKeyRef: |
| 80 | +# key: FOO |
| 81 | +# name: secret-resource |
| 82 | + |
| 83 | +## DaemonSet or Deployment |
| 84 | +## |
| 85 | +kind: Deployment |
| 86 | + |
| 87 | +# The update strategy to apply to the Deployment or DaemonSet |
| 88 | +## |
| 89 | +updateStrategy: {} |
| 90 | +# rollingUpdate: |
| 91 | +# maxUnavailable: 1 |
| 92 | +# type: RollingUpdate |
| 93 | + |
| 94 | +# minReadySeconds to avoid killing pods before we are ready |
| 95 | +## |
| 96 | +minReadySeconds: 0 |
| 97 | + |
| 98 | +## Node tolerations for server scheduling to nodes with taints |
| 99 | +## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ |
| 100 | +## |
| 101 | +tolerations: [] |
| 102 | +# - key: "key" |
| 103 | +# operator: "Equal|Exists" |
| 104 | +# value: "value" |
| 105 | +# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)" |
| 106 | + |
| 107 | +affinity: {} |
| 108 | + |
| 109 | +## Node labels for controller pod assignment |
| 110 | +## Ref: https://kubernetes.io/docs/user-guide/node-selection/ |
| 111 | +## |
| 112 | +nodeSelector: {} |
| 113 | + |
| 114 | +## Liveness and readiness probe values |
| 115 | +## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes |
| 116 | +## |
| 117 | +livenessProbe: |
| 118 | + failureThreshold: 3 |
| 119 | + initialDelaySeconds: 10 |
| 120 | + periodSeconds: 10 |
| 121 | + successThreshold: 1 |
| 122 | + timeoutSeconds: 1 |
| 123 | + port: 10254 |
| 124 | +readinessProbe: |
| 125 | + failureThreshold: 3 |
| 126 | + initialDelaySeconds: 10 |
| 127 | + periodSeconds: 10 |
| 128 | + successThreshold: 1 |
| 129 | + timeoutSeconds: 1 |
| 130 | + port: 10254 |
| 131 | + |
| 132 | +## Annotations to be added to controller pods |
| 133 | +## |
| 134 | +podAnnotations: {} |
| 135 | + |
| 136 | +replicaCount: 1 |
| 137 | + |
| 138 | +minAvailable: 1 |
| 139 | + |
| 140 | +resources: {} |
| 141 | +# limits: |
| 142 | +# cpu: 100m |
| 143 | +# memory: 64Mi |
| 144 | +# requests: |
| 145 | +# cpu: 100m |
| 146 | +# memory: 64Mi |
| 147 | + |
| 148 | +autoscaling: |
| 149 | + enabled: false |
| 150 | +# minReplicas: 1 |
| 151 | +# maxReplicas: 11 |
| 152 | +# targetCPUUtilizationPercentage: 50 |
| 153 | +# targetMemoryUtilizationPercentage: 50 |
| 154 | + |
| 155 | +## Override NGINX template |
| 156 | +customTemplate: |
| 157 | + configMapName: "" |
| 158 | + configMapKey: "" |
| 159 | + |
| 160 | +service: |
| 161 | + annotations: {} |
| 162 | + labels: {} |
| 163 | + clusterIP: "" |
| 164 | + |
| 165 | + ## List of IP addresses at which the controller services are available |
| 166 | + ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips |
| 167 | + ## |
| 168 | + externalIPs: [] |
| 169 | + |
| 170 | + loadBalancerIP: "" |
| 171 | + loadBalancerSourceRanges: [] |
| 172 | + |
| 173 | + enableHttp: true |
| 174 | + enableHttps: true |
| 175 | + |
| 176 | + ## Set external traffic policy to: "Local" to preserve source IP on |
| 177 | + ## providers supporting it |
| 178 | + ## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer |
| 179 | + externalTrafficPolicy: "" |
| 180 | + |
| 181 | + healthCheckNodePort: 0 |
| 182 | + |
| 183 | + targetPorts: |
| 184 | + http: http |
| 185 | + https: https |
| 186 | + |
| 187 | + type: LoadBalancer |
| 188 | + |
| 189 | + # type: NodePort |
| 190 | + # nodePorts: |
| 191 | + # http: 32080 |
| 192 | + # https: 32443 |
| 193 | + nodePorts: |
| 194 | + http: "" |
| 195 | + https: "" |
| 196 | + |
| 197 | +extraContainers: [] |
| 198 | +## Additional containers to be added to the controller pod. |
| 199 | +## See https://github.com/lemonldap-ng-controller/lemonldap-ng-controller as example. |
| 200 | +# - name: my-sidecar |
| 201 | +# image: nginx:latest |
| 202 | +# - name: lemonldap-ng-controller |
| 203 | +# image: lemonldapng/lemonldap-ng-controller:0.2.0 |
| 204 | +# args: |
| 205 | +# - /lemonldap-ng-controller |
| 206 | +# - --alsologtostderr |
| 207 | +# - --configmap=$(POD_NAMESPACE)/lemonldap-ng-configuration |
| 208 | +# env: |
| 209 | +# - name: POD_NAME |
| 210 | +# valueFrom: |
| 211 | +# fieldRef: |
| 212 | +# fieldPath: metadata.name |
| 213 | +# - name: POD_NAMESPACE |
| 214 | +# valueFrom: |
| 215 | +# fieldRef: |
| 216 | +# fieldPath: metadata.namespace |
| 217 | +# volumeMounts: |
| 218 | +# - name: copy-portal-skins |
| 219 | +# mountPath: /srv/var/lib/lemonldap-ng/portal/skins |
| 220 | + |
| 221 | +extraVolumeMounts: [] |
| 222 | +## Additional volumeMounts to the controller main container. |
| 223 | +# - name: copy-portal-skins |
| 224 | +# mountPath: /var/lib/lemonldap-ng/portal/skins |
| 225 | + |
| 226 | +extraVolumes: [] |
| 227 | +## Additional volumes to the controller pod. |
| 228 | +# - name: copy-portal-skins |
| 229 | +# emptyDir: {} |
| 230 | + |
| 231 | +extraInitContainers: [] |
| 232 | +## Containers, which are run before the app containers are started. |
| 233 | +# - name: init-myservice |
| 234 | +# image: busybox |
| 235 | +# command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;'] |
| 236 | + |
| 237 | +stats: |
| 238 | + enabled: true |
| 239 | + |
| 240 | + service: |
| 241 | + annotations: {} |
| 242 | + clusterIP: "" |
| 243 | + |
| 244 | + ## List of IP addresses at which the stats service is available |
| 245 | + ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips |
| 246 | + ## |
| 247 | + externalIPs: [] |
| 248 | + |
| 249 | + loadBalancerIP: "" |
| 250 | + loadBalancerSourceRanges: [] |
| 251 | + servicePort: 18080 |
| 252 | + type: ClusterIP |
| 253 | + |
| 254 | +## If controller.stats.enabled = true and controller.metrics.enabled = true, Prometheus metrics will be exported |
| 255 | +## |
| 256 | +metrics: |
| 257 | + enabled: true |
| 258 | + |
| 259 | + service: |
| 260 | + annotations: |
| 261 | + prometheus.io/scrape: "true" |
| 262 | + prometheus.io/port: "10254" |
| 263 | + |
| 264 | + clusterIP: "" |
| 265 | + |
| 266 | + ## List of IP addresses at which the stats-exporter service is available |
| 267 | + ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips |
| 268 | + ## |
| 269 | + externalIPs: [] |
| 270 | + |
| 271 | + loadBalancerIP: "" |
| 272 | + loadBalancerSourceRanges: [] |
| 273 | + servicePort: 9913 |
| 274 | + type: ClusterIP |
| 275 | + |
| 276 | +lifecycle: {} |
| 277 | + |
| 278 | +priorityClassName: "" |
| 279 | + |
| 280 | +## Rollback limit |
| 281 | +## |
| 282 | +revisionHistoryLimit: 10 |
| 283 | + |
| 284 | +## Default 404 backend |
| 285 | +## |
| 286 | +defaultBackend: |
| 287 | + |
| 288 | + ## If false, controller.defaultBackendService must be provided |
| 289 | + ## |
| 290 | + enabled: true |
| 291 | + |
| 292 | + name: default-backend |
| 293 | + image: |
| 294 | + repository: k8s.gcr.io/defaultbackend |
| 295 | + tag: "1.4" |
| 296 | + pullPolicy: IfNotPresent |
| 297 | + |
| 298 | + extraArgs: {} |
| 299 | + |
| 300 | + port: 8080 |
| 301 | + |
| 302 | + ## Node tolerations for server scheduling to nodes with taints |
| 303 | + ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ |
| 304 | + ## |
| 305 | + tolerations: [] |
| 306 | + # - key: "key" |
| 307 | + # operator: "Equal|Exists" |
| 308 | + # value: "value" |
| 309 | + # effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)" |
| 310 | + |
| 311 | + affinity: {} |
| 312 | + |
| 313 | + # labels to add to the pod container metadata |
| 314 | + podLabels: {} |
| 315 | + # key: value |
| 316 | + |
| 317 | + ## Node labels for default backend pod assignment |
| 318 | + ## Ref: https://kubernetes.io/docs/user-guide/node-selection/ |
| 319 | + ## |
| 320 | + nodeSelector: {} |
| 321 | + |
| 322 | + ## Annotations to be added to default backend pods |
| 323 | + ## |
| 324 | + podAnnotations: {} |
| 325 | + |
| 326 | + replicaCount: 1 |
| 327 | + |
| 328 | + minAvailable: 1 |
| 329 | + |
| 330 | + resources: {} |
| 331 | + # limits: |
| 332 | + # cpu: 10m |
| 333 | + # memory: 20Mi |
| 334 | + # requests: |
| 335 | + # cpu: 10m |
| 336 | + # memory: 20Mi |
| 337 | + |
| 338 | + service: |
| 339 | + annotations: {} |
| 340 | + clusterIP: "" |
| 341 | + |
| 342 | + ## List of IP addresses at which the default backend service is available |
| 343 | + ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips |
| 344 | + ## |
| 345 | + externalIPs: [] |
| 346 | + |
| 347 | + loadBalancerIP: "" |
| 348 | + loadBalancerSourceRanges: [] |
| 349 | + servicePort: 80 |
| 350 | + type: ClusterIP |
| 351 | + |
| 352 | + priorityClassName: "" |
| 353 | + |
| 354 | +## Enable RBAC as per https://github.com/kubernetes/ingress/tree/master/examples/rbac/nginx and https://github.com/kubernetes/ingress/issues/266 |
| 355 | +rbac: |
| 356 | + create: true |
| 357 | + |
| 358 | +## Kubernetes Security Context |
| 359 | +## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 360 | +## |
| 361 | +securityContext: |
| 362 | + fsGroup: 1001 |
| 363 | + runAsUser: 1001 |
| 364 | + |
| 365 | +# If true, create & use Pod Security Policy resources |
| 366 | +# https://kubernetes.io/docs/concepts/policy/pod-security-policy/ |
| 367 | +podSecurityPolicy: |
| 368 | + enabled: false |
| 369 | + |
| 370 | +serviceAccount: |
| 371 | + create: true |
| 372 | + name: |
| 373 | + |
| 374 | +## Optional array of imagePullSecrets containing private registry credentials |
| 375 | +## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ |
| 376 | +imagePullSecrets: [] |
| 377 | +# - name: secretName |
| 378 | + |
| 379 | +# TCP service key:value pairs |
| 380 | +# Ref: https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/tcp |
| 381 | +## |
| 382 | +tcp: {} |
| 383 | +# 8080: "default/example-tcp-svc:9000" |
| 384 | + |
| 385 | +# UDP service key:value pairs |
| 386 | +# Ref: https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/udp |
| 387 | +## |
| 388 | +udp: {} |
| 389 | +# 53: "kube-system/kube-dns:53" |
0 commit comments