diff --git a/charts/kong/README.md b/charts/kong/README.md index e3cca2bf3..cecbec917 100644 --- a/charts/kong/README.md +++ b/charts/kong/README.md @@ -907,6 +907,7 @@ On the Gateway release side, set either `admin.tls.client.secretName` to the nam | podAnnotations | Annotations to add to each pod | see `values.yaml` | | podLabels | Labels to add to each pod | `{}` | | resources | Pod resource requests & limits | `{}` | +| initContainerResources | Init container resource requests & limits | `{}` | | tolerations | List of node taints to tolerate | `[]` | | dnsPolicy | Pod dnsPolicy | | | dnsConfig | Pod dnsConfig | | diff --git a/charts/kong/templates/deployment.yaml b/charts/kong/templates/deployment.yaml index ce7c21113..5018aed66 100644 --- a/charts/kong/templates/deployment.yaml +++ b/charts/kong/templates/deployment.yaml @@ -105,7 +105,7 @@ spec: securityContext: {{ toYaml .Values.containerSecurityContext | nindent 10 }} resources: -{{ toYaml .Values.resources | indent 10 }} +{{ toYaml (default .Values.resources .Values.initContainerResources) | indent 10 }} command: - "rm" - "-vrf" diff --git a/charts/kong/values.yaml b/charts/kong/values.yaml index 2272a263e..adc8e691e 100644 --- a/charts/kong/values.yaml +++ b/charts/kong/values.yaml @@ -914,6 +914,16 @@ resources: {} # cpu: 1 # memory: 2G +# Resources for initContainers (clear-stale-pid) +# If not specified, defaults to the main container resources defined above +initContainerResources: {} + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 50m + # memory: 64Mi + # readinessProbe for Kong pods readinessProbe: httpGet: