Skip to content

Commit

Permalink
Update example etcd cluster to 3 nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Feb 27, 2022
1 parent e47644a commit 8248d3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Added `spec.Pod.ClusterDomain` to explicitly set the cluster domain used for the etcd member URLs. [#2082](https://github.com/coreos/etcd-operator/pull/2082)
- Added `spec.Pod.HostPathVolume` to use hostpath volumes for etcd data.
- Added `spec.LimitSizeToMaxReadyNodes` to prevent scaling up clusters when there is shortage of ready nodes.
- Added `spec.Pod.RestartPolicy` to add configurable RestartPolicy for etcd pods. This is particularly useful for single-node etcd clusters that fail if the pod stops (e.g. during a node reboot).

### Changed

Expand Down
5 changes: 3 additions & 2 deletions example/mayastor/etcd-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ metadata:
name: mayastor-etcd
namespace: mayastor
spec:
size: 1
size: 3
limitSizeToMaxReadyNodes: true
version: "3.5.2"
pod:
hostPathVolume: /var/snap/microk8s/common/default-storage/mayastor-etcd/$NAME
# hostPathVolume: /var/snap/microk8s/common/default-storage/mayastor-etcd/$NAME
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down

0 comments on commit 8248d3e

Please sign in to comment.