From b0d7115e9b95460afdc9f97f52b0e9c031b9821d Mon Sep 17 00:00:00 2001 From: Keyvan Hedayati Date: Sun, 18 Feb 2018 11:16:03 +0330 Subject: [PATCH] hswong3i/kubespray#3: Use {{ cluster_name }} for valid FQDN in REGISTRY_HOST --- .../kubernetes-apps/registry/templates/registry-proxy-ds.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/registry/templates/registry-proxy-ds.yml.j2 b/roles/kubernetes-apps/registry/templates/registry-proxy-ds.yml.j2 index de55d3018..84bf1cf5a 100644 --- a/roles/kubernetes-apps/registry/templates/registry-proxy-ds.yml.j2 +++ b/roles/kubernetes-apps/registry/templates/registry-proxy-ds.yml.j2 @@ -27,7 +27,7 @@ spec: imagePullPolicy: {{ k8s_image_pull_policy }} env: - name: REGISTRY_HOST - value: registry.{{ registry_namespace }}.svc.cluster.local + value: registry.{{ registry_namespace }}.svc.{{ cluster_name }} - name: REGISTRY_PORT value: "5000" ports: