Commit 3845c091 authored by Abhi Shah's avatar Abhi Shah

Merge pull request #9619 from caesarxuchao/meteor-examples-v1

update examples/meteor to v1
parents 3a339239 5195e36b
...@@ -96,12 +96,12 @@ kubectl create -f meteor-controller.json ...@@ -96,12 +96,12 @@ kubectl create -f meteor-controller.json
kubectl create -f meteor-service.json kubectl create -f meteor-service.json
``` ```
Note that [`meteor-service.json`](meteor-service.json) creates an external load balancer, so Note that [`meteor-service.json`](meteor-service.json) creates a load balancer, so
your app should be available through the IP of that load balancer once your app should be available through the IP of that load balancer once
the Meteor pods are started. You can find the IP of your load balancer the Meteor pods are started. You can find the IP of your load balancer
by running: by running:
``` ```
kubectl get services/meteor -o template -t "{{.spec.publicIPs}}" kubectl get services/meteor --template="{{range .status.loadBalancer.ingress}} {{.ip}} {{end}}"
``` ```
You will have to open up port 80 if it's not open yet in your You will have to open up port 80 if it's not open yet in your
......
{ {
"kind": "ReplicationController", "kind": "ReplicationController",
"apiVersion": "v1beta3", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "meteor-controller", "name": "meteor-controller",
"labels": { "labels": {
......
{ {
"kind": "Service", "kind": "Service",
"apiVersion": "v1beta3", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "meteor" "name": "meteor"
}, },
"spec": { "spec": {
"ports": [ "ports": [
{ {
"protocol": "TCP",
"port": 80, "port": 80,
"targetPort": "http-server" "targetPort": "http-server"
} }
...@@ -15,7 +14,7 @@ ...@@ -15,7 +14,7 @@
"selector": { "selector": {
"name": "meteor" "name": "meteor"
}, },
"createExternalLoadBalancer": true, "sessionAffinity": "ClientIP",
"sessionAffinity": "ClientIP" "type": "LoadBalancer"
} }
} }
{ {
"kind": "Pod", "kind": "Pod",
"apiVersion": "v1beta3", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "mongo", "name": "mongo",
"labels": { "labels": {
......
{ {
"kind": "Service", "kind": "Service",
"apiVersion": "v1beta3", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "mongo", "name": "mongo",
"labels": { "labels": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment