Allow specify externalIPs for nginx-ingress (#164)

This commit is contained in:
Andrei Kvapil
2024-06-14 15:28:10 +02:00
committed by GitHub
parent b30a9a6fcf
commit 838bee5d25
7 changed files with 59 additions and 5 deletions

View File

@@ -3,4 +3,4 @@ name: ingress
description: NGINX Ingress Controller
icon: https://docs.nginx.com/nginx-ingress-controller/images/icons/NGINX-Ingress-Controller-product-icon.svg
type: application
version: 1.0.0
version: 1.1.0

View File

@@ -4,6 +4,7 @@
### Common parameters
| Name | Description | Value |
| ---------- | -------------------------------- | ----- |
| `replicas` | Number of ingress-nginx replicas | `2` |
| Name | Description | Value |
| ------------- | -------------------------------- | ----- |
| `replicas` | Number of ingress-nginx replicas | `2` |
| `externalIPs` | List of externalIPs for service. | `[]` |

View File

@@ -0,0 +1,23 @@
{
"comments": {
"format": "##"
},
"tags": {
"param": "@param",
"section": "@section",
"descriptionStart": "@descriptionStart",
"descriptionEnd": "@descriptionEnd",
"skip": "@skip",
"extra": "@extra"
},
"modifiers": {
"array": "array",
"object": "object",
"string": "string",
"nullable": "nullable",
"default": "default"
},
"regexp": {
"paramsSectionTitle": "Parameters"
}
}

View File

@@ -27,3 +27,13 @@ spec:
admissionWebhooks:
enabled: false
{{- end }}
service:
{{- if .Values.externalIPs }}
externalIPs:
{{- toYaml .Values.externalIPs | nindent 12 }}
type: ClusterIP
externalTrafficPolicy: Cluster
{{- else }}
type: LoadBalancer
externalTrafficPolicy: Local
{{- end }}

View File

@@ -6,6 +6,14 @@
"type": "number",
"description": "Number of ingress-nginx replicas",
"default": 2
},
"externalIPs": {
"type": "array",
"description": "List of externalIPs for service.",
"default": "[]",
"items": {
"type": "string"
}
}
}
}

View File

@@ -3,3 +3,14 @@
## @param replicas Number of ingress-nginx replicas
##
replicas: 2
## @param externalIPs [array] List of externalIPs for service.
## Optional. If not specified will use LoadBalancer service by default.
##
## e.g:
## externalIPs:
## - "11.22.33.44"
## - "11.22.33.45"
## - "11.22.33.46"
##
externalIPs: []

View File

@@ -2,5 +2,6 @@ etcd 1.0.0 f7eaab0
etcd 2.0.0 a6d0f7cf
etcd 2.0.1 6fc1cc7d
etcd 2.1.0 HEAD
ingress 1.0.0 HEAD
ingress 1.0.0 f642698
ingress 1.1.0 HEAD
monitoring 1.0.0 HEAD