Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5195e36b
Commit
5195e36b
authored
Jun 10, 2015
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update examples/meteor to v1
parent
bdeb4f31
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
9 deletions
+8
-9
README.md
examples/meteor/README.md
+2
-2
meteor-controller.json
examples/meteor/meteor-controller.json
+1
-1
meteor-service.json
examples/meteor/meteor-service.json
+3
-4
mongo-pod.json
examples/meteor/mongo-pod.json
+1
-1
mongo-service.json
examples/meteor/mongo-service.json
+1
-1
No files found.
examples/meteor/README.md
View file @
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 a
n 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
...
...
examples/meteor/meteor-controller.json
View file @
5195e36b
{
{
"kind"
:
"ReplicationController"
,
"kind"
:
"ReplicationController"
,
"apiVersion"
:
"v1
beta3
"
,
"apiVersion"
:
"v1"
,
"metadata"
:
{
"metadata"
:
{
"name"
:
"meteor-controller"
,
"name"
:
"meteor-controller"
,
"labels"
:
{
"labels"
:
{
...
...
examples/meteor/meteor-service.json
View file @
5195e36b
{
{
"kind"
:
"Service"
,
"kind"
:
"Service"
,
"apiVersion"
:
"v1
beta3
"
,
"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
"
}
}
}
}
examples/meteor/mongo-pod.json
View file @
5195e36b
{
{
"kind"
:
"Pod"
,
"kind"
:
"Pod"
,
"apiVersion"
:
"v1
beta3
"
,
"apiVersion"
:
"v1"
,
"metadata"
:
{
"metadata"
:
{
"name"
:
"mongo"
,
"name"
:
"mongo"
,
"labels"
:
{
"labels"
:
{
...
...
examples/meteor/mongo-service.json
View file @
5195e36b
{
{
"kind"
:
"Service"
,
"kind"
:
"Service"
,
"apiVersion"
:
"v1
beta3
"
,
"apiVersion"
:
"v1"
,
"metadata"
:
{
"metadata"
:
{
"name"
:
"mongo"
,
"name"
:
"mongo"
,
"labels"
:
{
"labels"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment