You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
672 B

  1. ---
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. namespace: kube-system
  6. name: kubernetes-services-endpoint
  7. data:
  8. {% if calico_bpf_enabled %}
  9. {% if loadbalancer_apiserver is defined %}
  10. KUBERNETES_SERVICE_HOST: "{{ apiserver_loadbalancer_domain_name }}"
  11. KUBERNETES_SERVICE_PORT: "{{ loadbalancer_apiserver.port | default(kube_apiserver_port) }}"
  12. {%- elif use_localhost_as_kubeapi_loadbalancer|default(False)|bool %}
  13. KUBERNETES_SERVICE_HOST: "127.0.0.1"
  14. KUBERNETES_SERVICE_PORT: "{{ kube_apiserver_port }}"
  15. {%- else %}
  16. KUBERNETES_SERVICE_HOST: "{{ first_kube_control_plane_address }}"
  17. KUBERNETES_SERVICE_PORT: "{{ kube_apiserver_port }}"
  18. {%- endif %}
  19. {% endif %}