Merge pull request #9635 from krousey/example_phabricator

Change Phabricator example to use v1
pull/6/head
Abhi Shah 2015-06-12 12:56:25 -07:00
commit f39f2f0495
4 changed files with 19 additions and 17 deletions

View File

@ -26,7 +26,7 @@ To start Phabricator server use the file [`examples/phabricator/phabricator-cont
```js ```js
{ {
"kind": "ReplicationController", "kind": "ReplicationController",
"apiVersion": "v1beta3", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "phabricator-controller", "name": "phabricator-controller",
"labels": { "labels": {
@ -118,7 +118,7 @@ To automate this process and make sure that a proper host is authorized even if
```js ```js
{ {
"kind": "ReplicationController", "kind": "ReplicationController",
"apiVersion": "v1beta3", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "authenticator-controller", "name": "authenticator-controller",
"labels": { "labels": {
@ -174,7 +174,7 @@ Use the file [`examples/phabricator/phabricator-service.json`](phabricator-servi
```js ```js
{ {
"kind": "Service", "kind": "Service",
"apiVersion": "v1beta3", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "phabricator" "name": "phabricator"
}, },
@ -188,10 +188,7 @@ Use the file [`examples/phabricator/phabricator-service.json`](phabricator-servi
"selector": { "selector": {
"name": "phabricator" "name": "phabricator"
}, },
"createExternalLoadBalancer": true, "type": "LoadBalancer"
"publicIPs": [
"107.178.210.6"
]
} }
} }
``` ```
@ -203,7 +200,15 @@ $ kubectl create -f examples/phabricator/phabricator-service.json
phabricator 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 ```shell
$ gcloud compute firewall-rules create phabricator-node-80 --allow=tcp:80 --target-tags kubernetes-minion $ gcloud compute firewall-rules create phabricator-node-80 --allow=tcp:80 --target-tags kubernetes-minion

View File

@ -1,6 +1,6 @@
{ {
"kind": "ReplicationController", "kind": "ReplicationController",
"apiVersion": "v1beta3", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "authenticator-controller", "name": "authenticator-controller",
"labels": { "labels": {

View File

@ -1,6 +1,6 @@
{ {
"kind": "ReplicationController", "kind": "ReplicationController",
"apiVersion": "v1beta3", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "phabricator-controller", "name": "phabricator-controller",
"labels": { "labels": {
@ -34,4 +34,4 @@
} }
} }
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"kind": "Service", "kind": "Service",
"apiVersion": "v1beta3", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "phabricator" "name": "phabricator"
}, },
@ -14,9 +14,6 @@
"selector": { "selector": {
"name": "phabricator" "name": "phabricator"
}, },
"createExternalLoadBalancer": true, "type": "LoadBalancer"
"publicIPs": [
"107.178.210.6"
]
} }
} }