Closed linki closed 6 years ago
lgtm
@CyberDem0n Thanks.
It now looks at the ETCDVERSION
env variable and only adds the -listen-metrics-urls
flag when the version is greater than or equal to v3.3.x
@CyberDem0n can we get this merged?
:+1:
:+1:
@CyberDem0n let me quickly test on our cluster that it still works as expected before merging.
@CyberDem0n ok, works with 3.3
.
I need a second :+1:
@CyberDem0n Did it work for you as well?
I didn't tried. In order to build image it needs to be merged and we need a second approval for that
:+1:
etcd v3.3 introduced a new flag to allow serving
/metrics
and/health
under a different port than e.g./v2/keys
. This allows us to protect etcd's data via firewall rules but still let monitoring tools to access the monitoring information.See feature request in etcd repo: https://github.com/coreos/etcd/issues/8060. The implementation landed in v3.3: https://github.com/coreos/etcd/pull/8242
This PR instructs etcd to serve metrics and health under the additonal port
2381
unconditionally when the used etcd binary is>=v3.3.x
. However, if not explicitely set in thesenza.yaml
this port won't be mapped to the outside and therefore isn't accessible. It doesn't expose more information than anything under2379
already does. See our intended usage here: https://github.com/zalando-incubator/kubernetes-on-aws/pull/879.Note:
This fails when bundled with etcd lower than. Furthermore, serving this additional endpoint unconditionally should be safe but might not be desired. It keeps the implementation very simple, though. LMKWYTv3.3
/cc @CyberDem0n @aermakov-zalando @mikkeloscar