forked from google/trillian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
etcd-cluster.yaml
27 lines (27 loc) · 919 Bytes
/
etcd-cluster.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
apiVersion: "etcd.database.coreos.com/v1beta2"
kind: "EtcdCluster"
metadata:
name: "trillian-etcd-cluster"
annotations:
etcd.database.coreos.com/scope: clusterwide
spec:
size: 5
version: "3.2.13"
pod:
annotations:
# Do not inject an Istio sidecar, because Etcd nodes require a network
# connection on startup and don't retry on failure. This is a problem for
# Istio because it takes a moment to start its proxy sidecar and, during
# that time, all network connections will be blocked.
sidecar.istio.io/inject: "false"
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: etcd_cluster
operator: In
values:
- trillian-etcd-cluster
topologyKey: kubernetes.io/hostname