Skip to content

Commit

Permalink
Add command to override the entrypoint in order to set open file desc…
Browse files Browse the repository at this point in the history
…rioptor limits
  • Loading branch information
cabeaulac committed Jan 11, 2024
1 parent 700eac4 commit 1c2a56f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/localstack/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
13 changes: 12 additions & 1 deletion charts/localstack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Check failure on line 17 in charts/localstack/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

17:2 [comments] missing starting space in comment
# 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"
Expand Down Expand Up @@ -114,7 +125,7 @@ service:
externalServicePorts:
start: 4510
end: 4560
# dnsService: true
# dnsService: true

ingress:
enabled: false
Expand Down

0 comments on commit 1c2a56f

Please sign in to comment.