Hide Forgot
PR: https://github.com/openshift/openshift-ansible/pull/11566
Verified with openshift-ansible-3.11.117-1.git.0.add13ff.el7 and issue has been fixed. Adding below options to inventory and run "ansible-playbook -i inventory /usr/share/ansible/openshift-ansible/playbooks/openshift-hosted/deploy_router.yml" # Router Options openshift_hosted_routers=[{"name":"router-ch-prod","certificate":{"certfile":"server.crt","keyfile":"server.key","cafile":"rootCA.pem"},"replicas":1,"serviceaccount":"router","namespace":"default","stats_port":1936,"edits":[{"action":"append","key":"spec.template.spec.containers[0].env","value":{"name":"NAMESPACE_LABELS","value":"router=router-ch-prod"}},{"action":"append","key":"spec.template.spec.containers[0].env","value":{"name":"ROUTER_OVERRIDE_HOSTNAME","value":"true"}},{"action":"append","key":"spec.template.spec.containers[0].env","value":{"name":"ROUTER_SUBDOMAIN","value":"${name}-${namespace}.apps.my.test.com"}}],"images":"registry.reg-aws.openshift.com:443/openshift3/ose-${component}:${version}","selector":"router=ch-prod","ports":["80:80","443:443"]}] Then check the new deployment of router: # oc get dc/router-ch-prod -o yaml | grep SUBDOMAIN -C 1 value: "true" - name: ROUTER_SUBDOMAIN value: ${name}-${namespace}.apps.my.test.com
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:1605