Hi,
I have exposed service using the following command:
oc expose docker-registry --hostname=
docker-registry-default.ec2-52-59-245-55.eu-central-1.compute.amazonaws.com.nip.io
I can see route created properly:
$ oc get routes
NAME HOST/PORT
PATH SERVICES PORT
TERMINATION WILDCARD
docker-registry
docker-registry-default.ec2-52-59-245-55.eu-central-1.compute.amazonaws.com.nip.io
docker-registry 5000-tcp None
However it seems that router cannot match my hostname with the service:
$ curl
http://docker-registry-default.ec2-52-59-245-55.eu-central-1.compute.amazonaws.com.nip.io
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html>
Everything works fine when I expose service without --hostname option and
rely on docker-registry-default.router.default.svc.cluster.local hostname.
How can I debug why is that happening?
Many thanks!
--
Henryk Konsek
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users