Skip to content

Commit

Permalink
kubeadm: allow empty domain
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Feb 18, 2025
1 parent 3dc3846 commit 6e8e191
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion kvirt/cluster/kubeadm/config_bootstrap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{% set api_fqdn = "api.%s.sslip.io" % api_ip.replace('.', '-').replace(':', '-') if sslip|default(False) else "api.%s.%s" % (cluster, domain) %}
{% if sslip|default(False) %}
{% set api_fqdn = "api.%s.sslip.io" % api_ip.replace('.', '-').replace(':', '-') %}
{% elif domain != None %}
{% set api_fqdn = "api.%s.%s" % (cluster, domain) %}
{% else %}
{% set api_fqdn = api_ip %}
{% endif %}

{% if feature_gates %}
{% set feature_gates_string = [] %}
{% for entry in feature_gates %}
Expand Down Expand Up @@ -33,7 +40,9 @@ controlPlaneEndpoint: {{ api_fqdn }}:6443
networking:
podSubnet: {{ cluster_network_ipv4 }}
serviceSubnet: {{ service_network_ipv4 }}
{% if domain != None %}
dnsDomain: "{{ cluster }}.{{ domain }}"
{% endif %}
{% if disconnected_url != None %}
imageRepository: {{ disconnected_url }}
{% endif %}
Expand Down

0 comments on commit 6e8e191

Please sign in to comment.