[bitnami/kong] Use the new helper for HPA API version (#10201)

* Use the new helper for HPA API version

Signed-off-by: Miguel A. Cabrera Minagorri <devgorri@gmail.com>

* [skip ci] Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
Miguel Ángel Cabrera Miñagorri
2022-05-14 12:09:21 +02:00
committed by GitHub
parent 624e1bffc0
commit 04cae78054
5 changed files with 44 additions and 47 deletions

View File

@@ -1,12 +1,12 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 11.1.26
version: 11.1.29
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.13.1
version: 1.14.0
- name: cassandra
repository: https://charts.bitnami.com/bitnami
version: 9.1.18
digest: sha256:da3f96261f5305b9e550b7675e7f6d9f60108b1e74060b44384f697c0a185bf0
generated: "2022-05-03T15:48:40.093219286Z"
version: 9.1.19
digest: sha256:8c4ed72ba7897fe0318c9f723b1c89d4622d2420ab8d6445d6222afbc62d211a
generated: "2022-05-13T15:09:21.645423+02:00"

View File

@@ -34,4 +34,4 @@ name: kong
sources:
- https://github.com/bitnami/bitnami-docker-kong
- https://konghq.com/
version: 6.1.22
version: 6.1.23

View File

@@ -92,43 +92,42 @@ To uninstall/delete the `my-release` deployment:
### Kong deployment / daemonset parameters
| Name | Description | Value |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
| `useDaemonset` | Use a daemonset instead of a deployment. `replicaCount` will not take effect. | `false` |
| `replicaCount` | Number of Kong replicas | `2` |
| `containerSecurityContext.enabled` | Enabled Kong containers' Security Context | `true` |
| `containerSecurityContext.runAsUser` | Set Kong container's Security Context runAsUser | `1001` |
| `containerSecurityContext.runAsNonRoot` | Set Kong container's Security Context runAsNonRoot | `true` |
| `podSecurityContext.enabled` | Enabled Kong pods' Security Context | `false` |
| `podSecurityContext.fsGroup` | Set Kong pod's Security Context fsGroup | `1001` |
| `updateStrategy.type` | Kong update strategy | `RollingUpdate` |
| `updateStrategy.rollingUpdate` | Kong deployment rolling update configuration parameters | `{}` |
| `hostAliases` | Add deployment host aliases | `[]` |
| `topologySpreadConstraints` | Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template | `{}` |
| `priorityClassName` | Priority Class Name | `""` |
| `schedulerName` | Use an alternate scheduler, e.g. "stork". | `""` |
| `terminationGracePeriodSeconds` | Seconds Kong pod needs to terminate gracefully | `""` |
| `podAnnotations` | Additional pod annotations | `{}` |
| `podLabels` | Additional pod labels | `{}` |
| `podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `nodeAffinityPreset.key` | Node label key to match Ignored if `affinity` is set. | `""` |
| `nodeAffinityPreset.values` | Node label values to match. Ignored if `affinity` is set. | `[]` |
| `affinity` | Affinity for pod assignment | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | Tolerations for pod assignment | `[]` |
| `extraVolumes` | Array of extra volumes to be added to the Kong deployment deployment (evaluated as template). Requires setting `extraVolumeMounts` | `[]` |
| `initContainers` | Add additional init containers to the Kong pods | `[]` |
| `sidecars` | Add additional sidecar containers to the Kong pods | `[]` |
| `autoscaling.enabled` | Deploy a HorizontalPodAutoscaler object for the Kong deployment | `false` |
| `autoscaling.apiVersion` | API Version of the HPA object (for compatibility with Openshift) | `autoscaling/v2beta1` |
| `autoscaling.minReplicas` | Minimum number of replicas to scale back | `2` |
| `autoscaling.maxReplicas` | Maximum number of replicas to scale out | `5` |
| `autoscaling.metrics` | Metrics to use when deciding to scale the deployment (evaluated as a template) | `[]` |
| `pdb.create` | Deploy a PodDisruptionBudget object for Kong deployment | `false` |
| `pdb.minAvailable` | Minimum available Kong replicas (expressed in percentage) | `""` |
| `pdb.maxUnavailable` | Maximum unavailable Kong replicas (expressed in percentage) | `50%` |
| Name | Description | Value |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------- |
| `useDaemonset` | Use a daemonset instead of a deployment. `replicaCount` will not take effect. | `false` |
| `replicaCount` | Number of Kong replicas | `2` |
| `containerSecurityContext.enabled` | Enabled Kong containers' Security Context | `true` |
| `containerSecurityContext.runAsUser` | Set Kong container's Security Context runAsUser | `1001` |
| `containerSecurityContext.runAsNonRoot` | Set Kong container's Security Context runAsNonRoot | `true` |
| `podSecurityContext.enabled` | Enabled Kong pods' Security Context | `false` |
| `podSecurityContext.fsGroup` | Set Kong pod's Security Context fsGroup | `1001` |
| `updateStrategy.type` | Kong update strategy | `RollingUpdate` |
| `updateStrategy.rollingUpdate` | Kong deployment rolling update configuration parameters | `{}` |
| `hostAliases` | Add deployment host aliases | `[]` |
| `topologySpreadConstraints` | Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template | `{}` |
| `priorityClassName` | Priority Class Name | `""` |
| `schedulerName` | Use an alternate scheduler, e.g. "stork". | `""` |
| `terminationGracePeriodSeconds` | Seconds Kong pod needs to terminate gracefully | `""` |
| `podAnnotations` | Additional pod annotations | `{}` |
| `podLabels` | Additional pod labels | `{}` |
| `podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `nodeAffinityPreset.key` | Node label key to match Ignored if `affinity` is set. | `""` |
| `nodeAffinityPreset.values` | Node label values to match. Ignored if `affinity` is set. | `[]` |
| `affinity` | Affinity for pod assignment | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | Tolerations for pod assignment | `[]` |
| `extraVolumes` | Array of extra volumes to be added to the Kong deployment deployment (evaluated as template). Requires setting `extraVolumeMounts` | `[]` |
| `initContainers` | Add additional init containers to the Kong pods | `[]` |
| `sidecars` | Add additional sidecar containers to the Kong pods | `[]` |
| `autoscaling.enabled` | Deploy a HorizontalPodAutoscaler object for the Kong deployment | `false` |
| `autoscaling.minReplicas` | Minimum number of replicas to scale back | `2` |
| `autoscaling.maxReplicas` | Maximum number of replicas to scale out | `5` |
| `autoscaling.metrics` | Metrics to use when deciding to scale the deployment (evaluated as a template) | `[]` |
| `pdb.create` | Deploy a PodDisruptionBudget object for Kong deployment | `false` |
| `pdb.minAvailable` | Minimum available Kong replicas (expressed in percentage) | `""` |
| `pdb.maxUnavailable` | Maximum unavailable Kong replicas (expressed in percentage) | `50%` |
### Kong Container Parameters
@@ -631,4 +630,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.

View File

@@ -1,5 +1,5 @@
{{- if and .Values.autoscaling.enabled (not .Values.useDaemonset) }}
apiVersion: {{ .Values.autoscaling.apiVersion }}
apiVersion: {{ include "common.capabilities.hpa.apiVersion" . }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "common.names.fullname" . }}

View File

@@ -225,14 +225,12 @@ sidecars: []
## Add an horizontal pod autoscaler
## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
## @param autoscaling.enabled Deploy a HorizontalPodAutoscaler object for the Kong deployment
## @param autoscaling.apiVersion API Version of the HPA object (for compatibility with Openshift)
## @param autoscaling.minReplicas Minimum number of replicas to scale back
## @param autoscaling.maxReplicas Maximum number of replicas to scale out
## @param autoscaling.metrics [array] Metrics to use when deciding to scale the deployment (evaluated as a template)
##
autoscaling:
enabled: false
apiVersion: autoscaling/v2beta1
minReplicas: 2
maxReplicas: 5
metrics: