This commit is contained in:
2025-08-25 21:09:41 +02:00
parent ce1610f01e
commit d96d1cc22b

View File

@@ -15,10 +15,10 @@ metadata:
namespace: dns
spec:
selector: { app: etcd }
#ipFamilyPolicy: PreferDualStack
ipFamilyPolicy: SingleStack
ipFamilyPolicy: PreferDualStack
#ipFamilyPolicy: SingleStack
ipFamilies:
#- IPv6
- IPv6
- IPv4
ports:
- name: client
@@ -33,27 +33,22 @@ metadata:
name: etcd
namespace: dns
spec:
replicas: 1
selector: { matchLabels: { app: etcd } }
template:
metadata: { labels: { app: etcd } }
spec:
containers:
- name: etcd
image: quay.io/coreos/etcd:v3.6.4
command:
- /usr/local/bin/etcd
- --name=etcd0
- --data-dir=/var/lib/etcd
- --listen-client-urls=http://0.0.0.0:2379
- --advertise-client-urls=http://0.0.0.0:2379
ports:
- { name: client, containerPort: 2379, protocol: TCP }
volumeMounts:
- { name: data, mountPath: /var/lib/etcd }
volumes:
- name: data
persistentVolumeClaim: { claimName: etcd-data }
- name: etcd
image: quay.io/coreos/etcd:v3.6.4
command:
- /usr/local/bin/etcd
- --name=etcd0
- --data-dir=/var/lib/etcd
- --listen-client-urls=http://0.0.0.0:2379,http://[::]:2379
- --advertise-client-urls=http://etcd.dns.svc:2379
readinessProbe:
httpGet: { path: /health, port: 2379 }
initialDelaySeconds: 2
periodSeconds: 3
---
apiVersion: v1
kind: ConfigMap