Skip to content

Commit

Permalink
update crash fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
free6om committed Oct 31, 2023
1 parent 7010c9b commit 9ead759
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deploy/etcd-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ resources: { }
persistence:
## @param shard[*].persistence.enabled Enable persistence using Persistent Volume Claims
##
enabled: false
enabled: true
## `data` volume settings
##
data:
Expand All @@ -71,7 +71,7 @@ persistence:
storageClassName:
## @param shard[*].persistence.size Size of data volume
##
size: 10Gi
size: 1Gi

ingress:
## @param ingress.enabled Enable ingress record generation for etcd
Expand Down
5 changes: 2 additions & 3 deletions deploy/etcd/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
isLeader: false
canVote: true
roleProbe:
probeActions:
customHandler:
- image: quay.io/coreos/etcd:v3.5.6
command:
- |
Expand Down Expand Up @@ -70,13 +70,12 @@ spec:
# TODO: clusterDomain 'cluster.local' requires configurable
MY_PEER=$KB_POD_FQDN{{ .Values.clusterDomain }}
exec etcd --name ${HOSTNAME} \
--experimental-initial-corrupt-check=true \
--listen-peer-urls http://0.0.0.0:2380 \
--listen-client-urls http://0.0.0.0:2379 \
--advertise-client-urls http://${MY_PEER}:2379 \
--initial-advertise-peer-urls http://${MY_PEER}:2380 \
--initial-cluster-token etcd-cluster-1 \
--initial-cluster ${PEERS} \
--initial-cluster-state new \
--data-dir /var/run/etcd/default.etcd
connectionCredential:
username: root
Expand Down
9 changes: 9 additions & 0 deletions test/e2e/testdata/smoketest/etcd/00_etcdcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ spec:
monitor: false
replicas: 3
serviceAccountName: kb-etcd-cluster
volumeClaimTemplates:
- name: data # ref clusterdefinition components.containers.volumeMounts.name
spec:
storageClassName:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

0 comments on commit 9ead759

Please sign in to comment.