{"action":"created","issue":{"url":"https://api.github.com/repos/canonical-webteam/deployment-configs/issues/12","repository_url":"https://api.github.com/repos/canonical-webteam/deployment-configs","labels_url":"https://api.github.com/repos/canonical-webteam/deployment-configs/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/canonical-webteam/deployment-configs/issues/12/comments","events_url":"https://api.github.com/repos/canonical-webteam/deployment-configs/issues/12/events","html_url":"https://github.com/canonical-webteam/deployment-configs/pull/12","id":265450926,"number":12,"title":"Add insights.ubuntu.com","user":{"login":"anthonydillon","id":1413534,"avatar_url":"https://avatars0.githubusercontent.com/u/1413534?v=4","gravatar_id":"","url":"https://api.github.com/users/anthonydillon","html_url":"https://github.com/anthonydillon","followers_url":"https://api.github.com/users/anthonydillon/followers","following_url":"https://api.github.com/users/anthonydillon/following{/other_user}","gists_url":"https://api.github.com/users/anthonydillon/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonydillon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonydillon/subscriptions","organizations_url":"https://api.github.com/users/anthonydillon/orgs","repos_url":"https://api.github.com/users/anthonydillon/repos","events_url":"https://api.github.com/users/anthonydillon/events{/privacy}","received_events_url":"https://api.github.com/users/anthonydillon/received_events","type":"User","site_admin":false},"labels":[{"id":712377811,"url":"https://api.github.com/repos/canonical-webteam/deployment-configs/labels/Review:%20Code%20needed","name":"Review: Code needed","color":"cdcdcd","default":false},{"id":712377815,"url":"https://api.github.com/repos/canonical-webteam/deployment-configs/labels/Review:%20QA%20needed","name":"Review: QA needed","color":"cdcdcd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-14T00:40:43Z","updated_at":"2017-10-23T07:11:51Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/canonical-webteam/deployment-configs/pulls/12","html_url":"https://github.com/canonical-webteam/deployment-configs/pull/12","diff_url":"https://github.com/canonical-webteam/deployment-configs/pull/12.diff","patch_url":"https://github.com/canonical-webteam/deployment-configs/pull/12.patch"},"body":"## Done\r\nAdded insights.ubuntu.com\r\n\r\n## QA\r\n\r\n``` bash\r\n# Install VirtualBox if you haven't got it\r\nsudo apt install virtualbox\r\n\r\n# Install minikube if you haven't already\r\ncurl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.22.3/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/\r\n\r\n# Enable Ingress add-on\r\nminikube addons enable ingress\r\n\r\n# Get minkube running\r\nminikube start\r\nkubectl config set-context minikube  # To be on the safe side\r\n\r\n# Deploy new configs to minikube\r\ncat services/insights.ubuntu.com.yaml | sed 's|prod-comms.docker-registry.canonical.com/insights.ubuntu.com|canonicalwebteam/www.ubuntu.com|' | sed 's|[:][$][{]TAG_TO_DEPLOY[}]||' | sed 's|replicas: 5|replicas: 1|' | kubectl apply --namespace staging --filename -\r\ncat services/insights.ubuntu.com.yaml | sed 's|prod-comms.docker-registry.canonical.com/insights.ubuntu.com|canonicalwebteam/www.ubuntu.com|' | sed 's|[:][$][{]TAG_TO_DEPLOY[}]||' | sed 's|replicas: 5|replicas: 1|' | kubectl apply --namespace production --filename -\r\nkubectl apply --namespace staging --filename ingresses/staging/insights.staging.ubuntu.com.yaml\r\nkubectl apply --namespace production --filename ingresses/production/insights.ubuntu.com.yaml\r\n\r\n# Check everything deployed correctly\r\nkubectl get ingress,service,deployment,pod --namespace staging  # Inspect staging elements\r\nkubectl get ingress,service,deployment,pod --namespace production  # Inspect production elements\r\n\r\n# Curl the site, check for 200 status\r\ncurl -I -H 'Host: insights.ubuntu.com' `minikube ip`\r\ncurl -I -H 'Host: insights.staging.ubuntu.com' `minikube ip`\r\n```"},"comment":{"url":"https://api.github.com/repos/canonical-webteam/deployment-configs/issues/comments/338567327","html_url":"https://github.com/canonical-webteam/deployment-configs/pull/12#issuecomment-338567327","issue_url":"https://api.github.com/repos/canonical-webteam/deployment-configs/issues/12","id":338567327,"user":{"login":"anthonydillon","id":1413534,"avatar_url":"https://avatars0.githubusercontent.com/u/1413534?v=4","gravatar_id":"","url":"https://api.github.com/users/anthonydillon","html_url":"https://github.com/anthonydillon","followers_url":"https://api.github.com/users/anthonydillon/followers","following_url":"https://api.github.com/users/anthonydillon/following{/other_user}","gists_url":"https://api.github.com/users/anthonydillon/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonydillon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonydillon/subscriptions","organizations_url":"https://api.github.com/users/anthonydillon/orgs","repos_url":"https://api.github.com/users/anthonydillon/repos","events_url":"https://api.github.com/users/anthonydillon/events{/privacy}","received_events_url":"https://api.github.com/users/anthonydillon/received_events","type":"User","site_admin":false},"created_at":"2017-10-23T07:11:51Z","updated_at":"2017-10-23T07:11:51Z","author_association":"CONTRIBUTOR","body":"@nottrobin could you update the labels please."}}
{"actor":{"display_login":"anthonydillon"}}