From f05de36e607b67dd9370685d626c82733d5ffd06 Mon Sep 17 00:00:00 2001 From: Kris Rousey Date: Wed, 10 Jun 2015 15:58:13 -0700 Subject: [PATCH] Change Phabricator example to use v1 --- examples/phabricator/README.md | 21 ++++++++++++------- .../phabricator/authenticator-controller.json | 2 +- .../phabricator/phabricator-controller.json | 4 ++-- examples/phabricator/phabricator-service.json | 9 +++----- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/examples/phabricator/README.md b/examples/phabricator/README.md index 484a59ea123..edddf276547 100644 --- a/examples/phabricator/README.md +++ b/examples/phabricator/README.md @@ -26,7 +26,7 @@ To start Phabricator server use the file [`examples/phabricator/phabricator-cont ```js { "kind": "ReplicationController", - "apiVersion": "v1beta3", + "apiVersion": "v1", "metadata": { "name": "phabricator-controller", "labels": { @@ -118,7 +118,7 @@ To automate this process and make sure that a proper host is authorized even if ```js { "kind": "ReplicationController", - "apiVersion": "v1beta3", + "apiVersion": "v1", "metadata": { "name": "authenticator-controller", "labels": { @@ -174,7 +174,7 @@ Use the file [`examples/phabricator/phabricator-service.json`](phabricator-servi ```js { "kind": "Service", - "apiVersion": "v1beta3", + "apiVersion": "v1", "metadata": { "name": "phabricator" }, @@ -188,10 +188,7 @@ Use the file [`examples/phabricator/phabricator-service.json`](phabricator-servi "selector": { "name": "phabricator" }, - "createExternalLoadBalancer": true, - "publicIPs": [ - "107.178.210.6" - ] + "type": "LoadBalancer" } } ``` @@ -203,7 +200,15 @@ $ kubectl create -f examples/phabricator/phabricator-service.json phabricator ``` -Note that it will also create an external load balancer so that we can access it from outside. You may need to open the firewall for port 80 using the [console][cloud-console] or the `gcloud` tool. The following command will allow traffic from any source to instances tagged `kubernetes-minion`: +To play with the service itself, find the external IP of the load balancer: + +```shell +$ kubectl get services guestbook -o template --template='{{(index .status.loadBalancer.ingress 0).ip}}' +``` + +and then visit port 80 of that IP address. + +**Note**: You may need to open the firewall for port 80 using the [console][cloud-console] or the `gcloud` tool. The following command will allow traffic from any source to instances tagged `kubernetes-minion`: ```shell $ gcloud compute firewall-rules create phabricator-node-80 --allow=tcp:80 --target-tags kubernetes-minion diff --git a/examples/phabricator/authenticator-controller.json b/examples/phabricator/authenticator-controller.json index 1da45113e90..fbc449a73dd 100644 --- a/examples/phabricator/authenticator-controller.json +++ b/examples/phabricator/authenticator-controller.json @@ -1,6 +1,6 @@ { "kind": "ReplicationController", - "apiVersion": "v1beta3", + "apiVersion": "v1", "metadata": { "name": "authenticator-controller", "labels": { diff --git a/examples/phabricator/phabricator-controller.json b/examples/phabricator/phabricator-controller.json index 795f0b24f0d..7a6355cd05d 100644 --- a/examples/phabricator/phabricator-controller.json +++ b/examples/phabricator/phabricator-controller.json @@ -1,6 +1,6 @@ { "kind": "ReplicationController", - "apiVersion": "v1beta3", + "apiVersion": "v1", "metadata": { "name": "phabricator-controller", "labels": { @@ -34,4 +34,4 @@ } } } -} \ No newline at end of file +} diff --git a/examples/phabricator/phabricator-service.json b/examples/phabricator/phabricator-service.json index 8448d720552..b2ec74cf4e6 100644 --- a/examples/phabricator/phabricator-service.json +++ b/examples/phabricator/phabricator-service.json @@ -1,6 +1,6 @@ { "kind": "Service", - "apiVersion": "v1beta3", + "apiVersion": "v1", "metadata": { "name": "phabricator" }, @@ -14,9 +14,6 @@ "selector": { "name": "phabricator" }, - "createExternalLoadBalancer": true, - "publicIPs": [ - "107.178.210.6" - ] + "type": "LoadBalancer" } -} \ No newline at end of file +}