18 lines
446 B
Django/Jinja
18 lines
446 B
Django/Jinja
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: etcd-metrics
|
|
namespace: kube-system
|
|
labels:
|
|
k8s-app: etcd
|
|
app.kubernetes.io/managed-by: Kubespray
|
|
subsets:
|
|
{% for etcd_metrics_address in etcd_metrics_addresses.split(',') %}
|
|
- addresses:
|
|
- ip: {{ etcd_metrics_address | urlsplit('hostname') }}
|
|
ports:
|
|
- name: http-metrics
|
|
port: {{ etcd_metrics_address | urlsplit('port') }}
|
|
protocol: TCP
|
|
{% endfor %}
|