This commit is contained in:
2025-08-25 21:17:20 +02:00
parent bd4fab4948
commit d999645a44

View File

@@ -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