{"action":"opened","issue":{"url":"https://api.github.com/repos/openshift/openshift-docs/issues/1494","labels_url":"https://api.github.com/repos/openshift/openshift-docs/issues/1494/labels{/name}","comments_url":"https://api.github.com/repos/openshift/openshift-docs/issues/1494/comments","events_url":"https://api.github.com/repos/openshift/openshift-docs/issues/1494/events","html_url":"https://github.com/openshift/openshift-docs/issues/1494","id":129581086,"number":1494,"title":"Add docs on how to retain the registry's service IP if you delete and recreate the docker-registry service","user":{"login":"ncdc","id":354,"avatar_url":"https://avatars.githubusercontent.com/u/354?v=3","gravatar_id":"","url":"https://api.github.com/users/ncdc","html_url":"https://github.com/ncdc","followers_url":"https://api.github.com/users/ncdc/followers","following_url":"https://api.github.com/users/ncdc/following{/other_user}","gists_url":"https://api.github.com/users/ncdc/gists{/gist_id}","starred_url":"https://api.github.com/users/ncdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncdc/subscriptions","organizations_url":"https://api.github.com/users/ncdc/orgs","repos_url":"https://api.github.com/users/ncdc/repos","events_url":"https://api.github.com/users/ncdc/events{/privacy}","received_events_url":"https://api.github.com/users/ncdc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-28T21:03:28Z","updated_at":"2016-01-28T21:03:28Z","closed_at":null,"body":"Until we've switched to referencing the integrated registry via DNS, we should add docs on how to retain the IP address the docker-registry service uses in the event users delete and recreate the service. I believe @smarterclayton suggested doing this:\r\n\r\n1. make note of the ClusterIP for the service\r\n1. `oc delete svc/docker-registry`\r\n1. `oadm registry ... -o json > registry.json`\r\n1. edit `registry.json`, find the Service in there, and set its `ClusterIP` to the address noted in step 1\r\n1. `oc create -f registry.json`"}}