✂️ Simplify Consul YAML a tiny bit

This commit is contained in:
Jerome Petazzoni
2021-04-09 15:26:27 +02:00
parent 25d6073b17
commit a5d857edd4
3 changed files with 9 additions and 27 deletions

View File

@@ -69,11 +69,8 @@ spec:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- persistentconsul
matchLabels:
app: consul
topologyKey: kubernetes.io/hostname
terminationGracePeriodSeconds: 10
containers:
@@ -98,7 +95,4 @@ spec:
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- consul leave
command: [ "sh", "-c", "consul leave" ]