update examples/meteor to v1
This commit is contained in:
parent
5c37d4a0e9
commit
da683a9c67
|
@ -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
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"kind": "ReplicationController",
|
"kind": "ReplicationController",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "meteor-controller",
|
"name": "meteor-controller",
|
||||||
"labels": {
|
"labels": {
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
{
|
{
|
||||||
"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 @@
|
||||||
"selector": {
|
"selector": {
|
||||||
"name": "meteor"
|
"name": "meteor"
|
||||||
},
|
},
|
||||||
"createExternalLoadBalancer": true,
|
"sessionAffinity": "ClientIP",
|
||||||
"sessionAffinity": "ClientIP"
|
"type": "LoadBalancer"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "mongo",
|
"name": "mongo",
|
||||||
"labels": {
|
"labels": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"kind": "Service",
|
"kind": "Service",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "mongo",
|
"name": "mongo",
|
||||||
"labels": {
|
"labels": {
|
||||||
|
|
Loading…
Reference in New Issue