From 437f096b7c7fbca08b748d3754be8a6f84faba06 Mon Sep 17 00:00:00 2001 From: Andrew Butcher Date: Fri, 9 Sep 2016 11:25:03 -0400 Subject: Set config/namespace where missing for secure registry deployment. --- roles/openshift_hosted/tasks/registry/secure.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/openshift_hosted/tasks') diff --git a/roles/openshift_hosted/tasks/registry/secure.yml b/roles/openshift_hosted/tasks/registry/secure.yml index ef1c7c5bc..4cb85df04 100644 --- a/roles/openshift_hosted/tasks/registry/secure.yml +++ b/roles/openshift_hosted/tasks/registry/secure.yml @@ -13,6 +13,8 @@ command: > {{ openshift.common.client_binary }} get service docker-registry --template='{{ '{{' }} .spec.clusterIP {{ '}}' }}' + --config={{ openshift_hosted_kubeconfig }} + -n default register: docker_registry_service_ip changed_when: false @@ -74,6 +76,8 @@ {{ openshift.common.client_binary }} env dc/docker-registry REGISTRY_HTTP_TLS_CERTIFICATE=/etc/secrets/registry.crt REGISTRY_HTTP_TLS_KEY=/etc/secrets/registry.key + --config={{ openshift_hosted_kubeconfig }} + -n default # These commands are on a single line to preserve patch json. - name: Update registry liveness probe from HTTP to HTTPS -- cgit v1.2.3