@@ -7,6 +7,9 @@ metadata:
7
7
{{- include "localstack.labels" . | nindent 4 }}
8
8
annotations :
9
9
{{- include "localstack.annotations" . | nindent 4 }}
10
+ {{- with .Values.service.annotations }}
11
+ {{- tpl (toYaml .) $ | nindent 4 }}
12
+ {{- end }}
10
13
spec :
11
14
replicas : {{ .Values.replicaCount }}
12
15
strategy : {{- include "common.tplvalues.render" (dict "value" .Values.updateStrategy "context" $ ) | nindent 4 }}
39
42
- name : {{ .Values.service.edgeService.name }}
40
43
containerPort : {{ .Values.service.edgeService.targetPort }}
41
44
protocol : TCP
42
- {{- range .Values.service.apiServices }}
43
- - name : {{ .name }}
44
- containerPort : {{ .targetPort }}
45
+ {{- range untilStep ( .Values.service.externalServicePorts.start|int) (.Values.service.externalServicePorts.end|int) 1 }}
46
+ - name : " ext-svc- {{ . }}"
47
+ containerPort : {{ . }}
45
48
protocol : TCP
46
49
{{- end }}
47
50
livenessProbe :
74
77
env :
75
78
- name : DEBUG
76
79
value : {{ ternary "1" "0" .Values.debug | quote }}
80
+ {{- if .Values.service.externalServicePorts.start }}
81
+ - name : EXTERNAL_SERVICE_PORTS_START
82
+ value : {{ .Values.service.externalServicePorts.start | quote }}
83
+ {{- end }}
84
+ {{- if .Values.service.externalServicePorts.end }}
85
+ - name : EXTERNAL_SERVICE_PORTS_END
86
+ value : {{ .Values.service.externalServicePorts.end | quote }}
87
+ {{- end }}
77
88
{{- if .Values.kinesisErrorProbability }}
78
89
- name : KINESIS_ERROR_PROBABILITY
79
90
value : {{ .Values.kinesisErrorProbability | quote }}
82
93
- name : LAMBDA_EXECUTOR
83
94
value : {{ .Values.lambdaExecutor | quote }}
84
95
{{- end }}
96
+ - name : LOCALSTACK_K8S_SERVICE_NAME
97
+ value : {{ include "localstack.fullname" . }}
98
+ - name : LOCALSTACK_K8S_NAMESPACE
99
+ valueFrom :
100
+ fieldRef :
101
+ fieldPath : metadata.namespace
102
+ {{- if include "localstack.lambda.labels" . }}
103
+ - name : LAMBDA_K8S_LABELS
104
+ value : {{ include "localstack.lambda.labels" . | quote }}
105
+ {{- end }}
106
+ {{- if .Values.lambda.executor }}
107
+ - name : LAMBDA_RUNTIME_EXECUTOR
108
+ value : {{ .Values.lambda.executor | quote }}
109
+ {{- end }}
110
+ {{- if .Values.lambda.image_prefix }}
111
+ - name : LAMBDA_K8S_IMAGE_PREFIX
112
+ value : {{ .Values.lambda.image_prefix | quote }}
113
+ {{- end }}
114
+ {{- if .Values.lambda.environment_timeout }}
115
+ - name : LAMBDA_RUNTIME_ENVIRONMENT_TIMEOUT
116
+ value : {{ .Values.lambda.environment_timeout | quote }}
117
+ {{- end }}
85
118
{{- if .Values.persistence.enabled }}
86
119
- name : DATA_DIR
87
120
value : /tmp/localstack/data
90
123
- name : SERVICES
91
124
value : {{ .Values.startServices | quote }}
92
125
{{- end }}
126
+ - name : OVERRIDE_IN_DOCKER
127
+ value : " 1"
93
128
{{- if .Values.mountDind.enabled }}
94
129
{{- if .Values.mountDind.forceTLS }}
95
130
- name : DOCKER_HOST
0 commit comments