From d999645a441c63c9e3dd07b417ce0e987dc23fe7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 25 Aug 2025 21:17:20 +0200 Subject: [PATCH] dn --- dns/dns.yaml | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/dns/dns.yaml b/dns/dns.yaml index 4c057b3..ae524c1 100644 --- a/dns/dns.yaml +++ b/dns/dns.yaml @@ -15,17 +15,13 @@ metadata: namespace: dns spec: selector: { app: etcd } - ipFamilyPolicy: PreferDualStack - #ipFamilyPolicy: SingleStack - ipFamilies: - - IPv6 - - IPv4 + ipFamilyPolicy: SingleStack + ipFamilies: [IPv6] ports: - name: client port: 2379 targetPort: 2379 protocol: TCP - --- apiVersion: apps/v1 kind: Deployment @@ -34,13 +30,9 @@ metadata: namespace: dns spec: replicas: 1 - selector: - matchLabels: - app: etcd + selector: { matchLabels: { app: etcd } } template: - metadata: - labels: - app: etcd + metadata: { labels: { app: etcd } } spec: containers: - name: etcd @@ -49,12 +41,10 @@ spec: - /usr/local/bin/etcd - --name=etcd0 - --data-dir=/var/lib/etcd - - --listen-client-urls=http://0.0.0.0:2379 + - --listen-client-urls=http://[::]:2379 - --advertise-client-urls=http://etcd.dns.svc:2379 ports: - - name: client - containerPort: 2379 - protocol: TCP + - { name: client, containerPort: 2379, protocol: TCP } readinessProbe: httpGet: { path: /health, port: 2379 } initialDelaySeconds: 2 @@ -63,10 +53,7 @@ spec: - { name: data, mountPath: /var/lib/etcd } volumes: - name: data - persistentVolumeClaim: - claimName: etcd-data - - + persistentVolumeClaim: { claimName: etcd-data } --- apiVersion: v1 kind: ConfigMap