Skip to content

Commit 7ba0814

Browse files
authored
Add k8s deployment for auto-failover
1 parent 71b8f58 commit 7ba0814

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

deploy/auto_failover.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: trident-failover
5+
labels:
6+
app: trident-failover
7+
spec:
8+
replicas: 3
9+
selector:
10+
matchLabels:
11+
app: trident-failover
12+
template:
13+
metadata:
14+
labels:
15+
app: trident-failover
16+
spec:
17+
containers:
18+
- name: trident-failover
19+
image: busybox:1.36
20+
command: ["sleep", "infinity"]
21+
affinity:
22+
podAntiAffinity:
23+
requiredDuringSchedulingIgnoredDuringExecution:
24+
- labelSelector:
25+
matchExpressions:
26+
- key: app
27+
operator: In
28+
values:
29+
- trident-failover
30+
topologyKey: kubernetes.io/hostname

0 commit comments

Comments
 (0)