{% if server.target.kubernetes.cert_name is defined %}cert_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.cert_name }}{%- endif %}
{% if server.target.kubernetes.key_name is defined %}key_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.key_name }}{%- endif %}
kubernetes_sd_configs:
- api_server:{{server.target.kubernetes.api_ip }}
role:endpoints
tls_config:
insecure_skip_verify:true
{% if server.target.kubernetes.cert_name is defined %}cert_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.cert_name }}{%- endif %}
{% if server.target.kubernetes.key_name is defined %}key_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.key_name }}{%- endif %}
{% if server.target.kubernetes.cert_name is defined %}cert_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.cert_name }}{%- endif %}
{% if server.target.kubernetes.key_name is defined %}key_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.key_name }}{%- endif %}
kubernetes_sd_configs:
- api_server:{{server.target.kubernetes.api_ip }}
role:node
tls_config:
insecure_skip_verify:true
{% if server.target.kubernetes.cert_name is defined %}cert_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.cert_name }}{%- endif %}
{% if server.target.kubernetes.key_name is defined %}key_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.key_name }}{%- endif %}
relabel_configs:
- action:labelmap
regex:__meta_kubernetes_node_label_(.+)
- job_name:'kubernetes-service-endpoint'
scheme:https
tls_config:
insecure_skip_verify:true
{% if server.target.kubernetes.cert_name is defined %}cert_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.cert_name }}{%- endif %}
{% if server.target.kubernetes.key_name is defined %}key_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.key_name }}{%- endif %}
kubernetes_sd_configs:
- api_server:{{server.target.kubernetes.api_ip }}
role:endpoints
tls_config:
insecure_skip_verify:true
{% if server.target.kubernetes.cert_name is defined %}cert_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.cert_name }}{%- endif %}
{% if server.target.kubernetes.key_name is defined %}key_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.key_name }}{%- endif %}
{% if server.target.kubernetes.cert_name is defined %}cert_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.cert_name }}{%- endif %}
{% if server.target.kubernetes.key_name is defined %}key_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.key_name }}{%- endif %}
kubernetes_sd_configs:
- api_server:{{server.target.kubernetes.api_ip }}
role:pod
tls_config:
insecure_skip_verify:true
{% if server.target.kubernetes.cert_name is defined %}cert_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.cert_name }}{%- endif %}
{% if server.target.kubernetes.key_name is defined %}key_file:{{server.target.kubernetes.ssl_dir }}/{{ server.target.kubernetes.key_name }}{%- endif %}