From 1c2a56fbd42a247bd994a66cfb6d4e0c7b753b3a Mon Sep 17 00:00:00 2001 From: Chad Beaulac Date: Wed, 10 Jan 2024 17:41:28 -0800 Subject: [PATCH 1/2] Add command to override the entrypoint in order to set open file descrioptor limits --- charts/localstack/templates/deployment.yaml | 4 ++++ charts/localstack/values.yaml | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/charts/localstack/templates/deployment.yaml b/charts/localstack/templates/deployment.yaml index af949a7..d75d656 100644 --- a/charts/localstack/templates/deployment.yaml +++ b/charts/localstack/templates/deployment.yaml @@ -41,6 +41,10 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if $.Values.command }} + command: + {{ toYaml .Values.command.cmd | nindent 12 }} + {{- end }} ports: - name: {{ .Values.service.edgeService.name }} containerPort: {{ .Values.service.edgeService.targetPort }} diff --git a/charts/localstack/values.yaml b/charts/localstack/values.yaml index 0164140..3958012 100644 --- a/charts/localstack/values.yaml +++ b/charts/localstack/values.yaml @@ -10,6 +10,17 @@ replicaCount: 1 updateStrategy: type: RollingUpdate +## @param Command array to give to the pod to run at startup +## ref: https://repost.aws/knowledge-center/eks-fargate-increase-ulimit-values +## Example +## command: ["/bin/bash", "-c", "echo 'ulimit -Sn 65536' >> /root/.bashrc && echo 'ulimit -Su 16384' >> /root/.bashrc && sleep 100"] +#command: +# cmd: +# - /bin/bash +# - -c +# - echo 'ulimit -Sn 32767' >> /root/.bashrc && echo 'ulimit -Su 16383' >> /root/.bashrc && docker-entrypoint.sh + + image: repository: localstack/localstack tag: "latest" @@ -114,7 +125,7 @@ service: externalServicePorts: start: 4510 end: 4560 -# dnsService: true + # dnsService: true ingress: enabled: false From 9fabf289773ff6c91703ef25e4123ecf89fadf91 Mon Sep 17 00:00:00 2001 From: Chad Beaulac Date: Wed, 10 Jan 2024 17:47:38 -0800 Subject: [PATCH 2/2] remove comment --- charts/localstack/values.yaml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/charts/localstack/values.yaml b/charts/localstack/values.yaml index 3958012..0971c48 100644 --- a/charts/localstack/values.yaml +++ b/charts/localstack/values.yaml @@ -10,17 +10,6 @@ replicaCount: 1 updateStrategy: type: RollingUpdate -## @param Command array to give to the pod to run at startup -## ref: https://repost.aws/knowledge-center/eks-fargate-increase-ulimit-values -## Example -## command: ["/bin/bash", "-c", "echo 'ulimit -Sn 65536' >> /root/.bashrc && echo 'ulimit -Su 16384' >> /root/.bashrc && sleep 100"] -#command: -# cmd: -# - /bin/bash -# - -c -# - echo 'ulimit -Sn 32767' >> /root/.bashrc && echo 'ulimit -Su 16383' >> /root/.bashrc && docker-entrypoint.sh - - image: repository: localstack/localstack tag: "latest"