mirror of
https://github.com/bitnami/charts.git
synced 2026-03-27 15:27:10 +08:00
[bitnami/kong] Allow deploying extra objects (#2468)
* [bitnami/kong] Allow deploying extra objects * [bitnami/kong] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
committed by
GitHub
parent
a0f9f97ed0
commit
a8ce5330f0
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: kong
|
||||
version: 1.0.4
|
||||
version: 1.1.0
|
||||
appVersion: 2.0.4
|
||||
description: Kong is a scalable, open source API layer (aka API gateway or API middleware) that runs in front of any RESTful API. Extra functionalities beyond the core platform are extended through plugins. Kong is built on top of reliable technologies like NGINX and provides an easy-to-use RESTful API to operate and configure the system.
|
||||
keywords:
|
||||
|
||||
@@ -101,6 +101,7 @@ The following tables list the configurable parameters of the kong chart and thei
|
||||
| `ingressController.extraVolumeMounts` | Array of extra volume mounts to be added to the Kong Ingress Controller container (evaluated as template). Normally used with `extraVolumes`. | `nil` |
|
||||
| `migration.resources` | Configure resource requests and limits (migration container) | `nil` |
|
||||
| `migration.extraVolumeMounts` | Array of extra volume mounts to be added to the Kong Container (evaluated as template). Normally used with `extraVolumes`. | `nil` |
|
||||
| `extraDeploy` | Array of extra objects to deploy with the release (evaluated as a template). | `nil` |
|
||||
|
||||
### Traffic Exposure Parameters
|
||||
|
||||
@@ -369,6 +370,25 @@ initScriptsCM=special-scripts
|
||||
initScriptsSecret=special-scripts-sensitive
|
||||
```
|
||||
|
||||
### Deploying extra resources
|
||||
|
||||
There are cases where you may want to deploy extra objects, such as KongPlugins, KongConsumers, amongst others. For covering this case, the chart allows adding the full specification of other objects using the `extraDeploy` parameter. The following example would activate a plugin at deployment time.
|
||||
|
||||
```yaml
|
||||
## Extra objects to deploy (value evaluated as a template)
|
||||
##
|
||||
extraDeploy: |-
|
||||
- apiVersion: configuration.konghq.com/v1
|
||||
kind: KongPlugin
|
||||
metadata:
|
||||
name: {{ include "kong.fullname" . }}-plugin-correlation
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "kong.labels" . | nindent 6 }}
|
||||
config:
|
||||
header_name: my-request-id
|
||||
plugin: correlation-id
|
||||
```
|
||||
|
||||
## Upgrade
|
||||
|
||||
It's necessary to specify the existing passwords while performing a upgrade to ensure the secrets are not updated with invalid randomly generated passwords. Remember to specify the existing values of the `postgresql.postgresqlPassword` or `cassandra.password` parameters when upgrading the chart:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
dependencies:
|
||||
- name: postgresql
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
version: 8.9.2
|
||||
version: 8.9.3
|
||||
- name: cassandra
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
version: 5.3.3
|
||||
digest: sha256:ffc0a6f28fac8949827adcd6d3f302000ef84509dd824d44308b6cbfc05384d0
|
||||
generated: "2020-04-23T21:23:10.774911844Z"
|
||||
digest: sha256:966009425d3bb612336fa40d2e5f66ed31d3b3b2a4688b8d064c34708c19eeb1
|
||||
generated: "2020-04-29T17:41:01.524339329Z"
|
||||
|
||||
5
bitnami/kong/templates/extra-list.yaml
Normal file
5
bitnami/kong/templates/extra-list.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
{{- if .Values.extraDeploy }}
|
||||
apiVersion: v1
|
||||
kind: List
|
||||
items: {{- include "kong.tplValue" (dict "value" .Values.extraDeploy "context" $) | nindent 2 }}
|
||||
{{- end }}
|
||||
@@ -14,7 +14,7 @@
|
||||
image:
|
||||
registry: docker.io
|
||||
repository: bitnami/kong
|
||||
tag: 2.0.4-debian-10-r4
|
||||
tag: 2.0.4-debian-10-r8
|
||||
## Specify a imagePullPolicy
|
||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||
@@ -137,7 +137,7 @@ ingressController:
|
||||
image:
|
||||
registry: docker.io
|
||||
repository: bitnami/kong-ingress-controller
|
||||
tag: 0.8.1-debian-10-r13
|
||||
tag: 0.8.1-debian-10-r19
|
||||
## Specify a imagePullPolicy
|
||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||
@@ -478,6 +478,10 @@ pdb:
|
||||
enabled: true
|
||||
maxUnavailable: "50%"
|
||||
|
||||
## Extra objects to deploy (value evaluated as a template)
|
||||
##
|
||||
extraDeploy: []
|
||||
|
||||
## PostgreSQL properties
|
||||
##
|
||||
postgresql:
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
image:
|
||||
registry: docker.io
|
||||
repository: bitnami/kong
|
||||
tag: 2.0.4-debian-10-r4
|
||||
tag: 2.0.4-debian-10-r8
|
||||
## Specify a imagePullPolicy
|
||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||
@@ -137,7 +137,7 @@ ingressController:
|
||||
image:
|
||||
registry: docker.io
|
||||
repository: bitnami/kong-ingress-controller
|
||||
tag: 0.8.1-debian-10-r13
|
||||
tag: 0.8.1-debian-10-r19
|
||||
## Specify a imagePullPolicy
|
||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||
@@ -484,6 +484,10 @@ pdb:
|
||||
enabled: false
|
||||
maxUnavailable: "50%"
|
||||
|
||||
## Extra objects to deploy (value evaluated as a template)
|
||||
##
|
||||
extraDeploy: []
|
||||
|
||||
## PostgreSQL properties
|
||||
##
|
||||
postgresql:
|
||||
|
||||
Reference in New Issue
Block a user