{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/6284","labels_url":"https://api.github.com/repos/openshift/origin/issues/6284/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/6284/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/6284/events","html_url":"https://github.com/openshift/origin/issues/6284","id":121848699,"number":6284,"title":"How to fix the IP of router and registry service","user":{"login":"thincal","id":1206509,"avatar_url":"https://avatars.githubusercontent.com/u/1206509?v=3","gravatar_id":"","url":"https://api.github.com/users/thincal","html_url":"https://github.com/thincal","followers_url":"https://api.github.com/users/thincal/followers","following_url":"https://api.github.com/users/thincal/following{/other_user}","gists_url":"https://api.github.com/users/thincal/gists{/gist_id}","starred_url":"https://api.github.com/users/thincal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thincal/subscriptions","organizations_url":"https://api.github.com/users/thincal/orgs","repos_url":"https://api.github.com/users/thincal/repos","events_url":"https://api.github.com/users/thincal/events{/privacy}","received_events_url":"https://api.github.com/users/thincal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/imageregistry","name":"component/imageregistry","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/kind/question","name":"kind/question","color":"cc317c"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"pweil-","id":5230419,"avatar_url":"https://avatars.githubusercontent.com/u/5230419?v=3","gravatar_id":"","url":"https://api.github.com/users/pweil-","html_url":"https://github.com/pweil-","followers_url":"https://api.github.com/users/pweil-/followers","following_url":"https://api.github.com/users/pweil-/following{/other_user}","gists_url":"https://api.github.com/users/pweil-/gists{/gist_id}","starred_url":"https://api.github.com/users/pweil-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pweil-/subscriptions","organizations_url":"https://api.github.com/users/pweil-/orgs","repos_url":"https://api.github.com/users/pweil-/repos","events_url":"https://api.github.com/users/pweil-/events{/privacy}","received_events_url":"https://api.github.com/users/pweil-/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-12-12T11:04:51Z","updated_at":"2015-12-15T13:58:58Z","closed_at":"2015-12-14T20:10:59Z","body":"You know:\r\n- the router should have a fixed IP to be configured in DNS for providing the internal service routing\r\n- registry service is monitoring 5000 port instead of 80, so it seems the routing can't be done by the router, my solution is still using a fixed IP for registry service and configure the DNS.\r\n\r\nSo, is there a way to specify a fixed IP to router and registry service ?\r\nor do you have other solution to solve above requirements ? many thanks !\r\n\r\nBtw, I am using the openshift-ansible to install the openshift.."},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/164773025","html_url":"https://github.com/openshift/origin/issues/6284#issuecomment-164773025","issue_url":"https://api.github.com/repos/openshift/origin/issues/6284","id":164773025,"user":{"login":"pweil-","id":5230419,"avatar_url":"https://avatars.githubusercontent.com/u/5230419?v=3","gravatar_id":"","url":"https://api.github.com/users/pweil-","html_url":"https://github.com/pweil-","followers_url":"https://api.github.com/users/pweil-/followers","following_url":"https://api.github.com/users/pweil-/following{/other_user}","gists_url":"https://api.github.com/users/pweil-/gists{/gist_id}","starred_url":"https://api.github.com/users/pweil-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pweil-/subscriptions","organizations_url":"https://api.github.com/users/pweil-/orgs","repos_url":"https://api.github.com/users/pweil-/repos","events_url":"https://api.github.com/users/pweil-/events{/privacy}","received_events_url":"https://api.github.com/users/pweil-/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T13:58:58Z","updated_at":"2015-12-15T13:58:58Z","body":"> Could you help show an example about how to deploy the router service to a specific host ? From the scheduler doc, I can understand the concept but don't know how to.\r\n\r\nThis can be accomplished in a number of different ways.  One of the common ways is to label your nodes and use a selector in the scheduler.  For example, you can use the `oc label` command to add annotations to your nodes and then update a namespace's `node-selector` annotation so that all pods for the namespace go to a specific node.  \r\n\r\nHere is a more detailed walk through that sets up a primary and infra region with the scheduler.  The infra region is targeting a specific node while the primary region targets multiple nodes:  https://github.com/openshift/training/blob/master/02-Installation-and-Scheduler.md#regions-and-zones\r\n\r\n> Router can only redirect the service through port 80/443, but registry service is exposing 5000 port, then how to rout it via. the router ?\r\n\r\nThe router will accept the external traffic on port 80/443 and use the route information that you create to determine where the traffic will be routed.  This is based on the endpoints that the service is using which will point to <your registry pod>:5000.  So traffic will flow from <outside connect to :80/:443> -> router:80/443 -> registry pod:5000."}}