spec:
size: 3
This will use the default version chosen by the etcd-operator.
spec:
size: 3
version: "3.2.13"
Note: change $cluster_name to the EtcdCluster's name.
spec:
size: 3
pod:
nodeSelector:
diskType: ssd
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: etcd_cluster
operator: In
values: ["$cluster_name"]
topologyKey: kubernetes.io/hostname
For other topology keys, see https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ .
spec:
size: 3
pod:
resources:
limits:
cpu: 300m
memory: 200Mi
requests:
cpu: 200m
memory: 100Mi
etcd members could be configured via env: https://coreos.com/etcd/docs/latest/op-guide/configuration.html
spec:
size: 3
pod:
etcdEnv:
- name: ETCD_AUTO_COMPACTION_RETENTION
value: "1"
For more information on working with TLS, see Cluster TLS policy.
spec:
size: 3
pod:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "2379"
For more information on pod security context see the Kubernetes docs.
spec:
size: 3
pod:
securityContext:
runAsNonRoot: true
runAsUser: 9000
# The FSGroup is needed to let the etcd container access mounted volumes
fsGroup: 9000