From 700eac4bd153d78d08a3bea048a454ef76845e8b Mon Sep 17 00:00:00 2001 From: Chad Beaulac Date: Wed, 10 Jan 2024 10:20:09 -0800 Subject: [PATCH] Nameserver config (#103) * Added nameserver config. Incremental commit * Add port 53 --- charts/localstack/templates/deployment.yaml | 4 ++++ charts/localstack/templates/service.yaml | 3 +++ charts/localstack/values.yaml | 1 + 3 files changed, 8 insertions(+) diff --git a/charts/localstack/templates/deployment.yaml b/charts/localstack/templates/deployment.yaml index 7b56cbc..af949a7 100644 --- a/charts/localstack/templates/deployment.yaml +++ b/charts/localstack/templates/deployment.yaml @@ -50,6 +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/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 }} 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