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