From 67c111ba88478abf0b4908fb8f81f104736ef48f Mon Sep 17 00:00:00 2001 From: Chad Beaulac Date: Mon, 8 Jan 2024 17:30:26 -0800 Subject: [PATCH 1/2] Added nameserver config. Incremental commit --- charts/localstack/templates/deployment.yaml | 2 ++ charts/localstack/templates/service.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/charts/localstack/templates/deployment.yaml b/charts/localstack/templates/deployment.yaml index 7b56cbc..7747ea2 100644 --- a/charts/localstack/templates/deployment.yaml +++ b/charts/localstack/templates/deployment.yaml @@ -50,6 +50,8 @@ spec: containerPort: {{ . }} protocol: TCP {{- end }} + - name: dns-svc + containerPort: 53 livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} httpGet: diff --git a/charts/localstack/templates/service.yaml b/charts/localstack/templates/service.yaml index b87bd6f..9edd18b 100644 --- a/charts/localstack/templates/service.yaml +++ b/charts/localstack/templates/service.yaml @@ -27,6 +27,9 @@ spec: {{- if .Values.service.ipFamilyPolicy }} ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }} {{- end }} + {{- if .Values.service.clusterIP }} + clusterIP: {{ .Values.service.clusterIP }} + {{- end }} ports: - name: {{ .Values.service.edgeService.name }} port: {{ .Values.service.edgeService.targetPort }} From 6a09059e150dcf342a059b647c8bc5631ea81811 Mon Sep 17 00:00:00 2001 From: Chad Beaulac Date: Wed, 10 Jan 2024 10:15:09 -0800 Subject: [PATCH 2/2] Add port 53 --- charts/localstack/templates/deployment.yaml | 2 ++ charts/localstack/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/charts/localstack/templates/deployment.yaml b/charts/localstack/templates/deployment.yaml index 7747ea2..af949a7 100644 --- a/charts/localstack/templates/deployment.yaml +++ b/charts/localstack/templates/deployment.yaml @@ -50,8 +50,10 @@ spec: containerPort: {{ . }} protocol: TCP {{- end }} + {{- if .Values.service.dnsService }} - name: dns-svc containerPort: 53 + {{- end }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} httpGet: diff --git a/charts/localstack/values.yaml b/charts/localstack/values.yaml index 2e73220..0164140 100644 --- a/charts/localstack/values.yaml +++ b/charts/localstack/values.yaml @@ -114,6 +114,7 @@ service: externalServicePorts: start: 4510 end: 4560 +# dnsService: true ingress: enabled: false