Skip to content
Snippets Groups Projects
Unverified Commit 507091ec authored by Olivier Lemasle's avatar Olivier Lemasle Committed by GitHub
Browse files

Replace cluster_name by dns_domain (#7923)

`cluster_name` defaults to `dns_domain` value (see [here][1] and [here][2])
but they could have different values.

`dns_domain` should be used here instead of `cluster_name` because the DNS
resolution is configured to use `dns_domain`.

[1]: https://github.com/kubernetes-sigs/kubespray/blob/0ef7af76bc234efa06183e7329e557df87f9c0ee/roles/kubespray-defaults/defaults/main.yaml#L104
[2]: https://github.com/kubernetes-sigs/kubespray/blob/1afdb05ea9e1678b97e0224191d0a9341ce84f41/inventory/sample/group_vars/k8s_cluster/k8s-cluster.yml#L196
parent c7529270
Branches
Tags
No related merge requests found
......@@ -27,7 +27,7 @@ spec:
imagePullPolicy: {{ k8s_image_pull_policy }}
env:
- name: REGISTRY_HOST
value: registry.{{ registry_namespace }}.svc.{{ cluster_name }}
value: registry.{{ registry_namespace }}.svc.{{ dns_domain }}
- name: REGISTRY_PORT
value: "{{ registry_port }}"
ports:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment