Specify etcdctl version for livenessProbe

`--command-timeout` is supported in `ETCDCTL_API` version 3 and it is NOT supported in `ETCDCTL_API` version 2. Up to etcd 3.3 (inclusive) default version of `ETCDCTL_API` was 2. This change explicitly defines used `ETCDCTL_API` and allows usage of etcd versions below 3.4.
This commit is contained in:
wpedrak 2021-06-17 14:29:14 +02:00
parent 0abb908638
commit 6cb448c10e

View File

@ -63,6 +63,10 @@
}, },
{ "name": "ETCD_HOSTNAME", { "name": "ETCD_HOSTNAME",
"value": "{{ hostname }}" "value": "{{ hostname }}"
},
{
"name": "ETCDCTL_API",
"value": "3"
} }
], ],
"livenessProbe": { "livenessProbe": {