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
1133b62f
Commit
1133b62f
authored
Jul 16, 2015
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update meteor example according to config best practices.
parent
7b82f6e1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
15 deletions
+8
-15
README.md
examples/meteor/README.md
+5
-3
meteor-controller.json
examples/meteor/meteor-controller.json
+2
-8
mongo-pod.json
examples/meteor/mongo-pod.json
+1
-3
mongo-service.json
examples/meteor/mongo-service.json
+0
-1
No files found.
examples/meteor/README.md
View file @
1133b62f
...
@@ -151,16 +151,18 @@ kubectl create -f examples/meteor/mongo-service.json
...
@@ -151,16 +151,18 @@ kubectl create -f examples/meteor/mongo-service.json
Wait until Mongo is started completely and then start up your Meteor app:
Wait until Mongo is started completely and then start up your Meteor app:
```
```
kubectl create -f examples/meteor/meteor-controller.json
kubectl create -f examples/meteor/meteor-service.json
kubectl create -f examples/meteor/meteor-service.json
kubectl create -f examples/meteor/meteor-controller.json
```
```
Note that
[
`meteor-service.json`
](
meteor-service.json
)
creates a 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. We also created the service before creating the rc to
aid the scheduler in placing pods, as the scheduler ranks pod placement according to
service anti-affinity (among other things). You can find the IP of your load balancer
by running:
by running:
```
```
kubectl get service
s/
meteor --template="{{range .status.loadBalancer.ingress}} {{.ip}} {{end}}"
kubectl get service
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 @
1133b62f
...
@@ -9,9 +9,6 @@
...
@@ -9,9 +9,6 @@
},
},
"spec"
:
{
"spec"
:
{
"replicas"
:
2
,
"replicas"
:
2
,
"selector"
:
{
"name"
:
"meteor"
},
"template"
:
{
"template"
:
{
"metadata"
:
{
"metadata"
:
{
"labels"
:
{
"labels"
:
{
...
@@ -26,12 +23,9 @@
...
@@ -26,12 +23,9 @@
"ports"
:
[
"ports"
:
[
{
{
"name"
:
"http-server"
,
"name"
:
"http-server"
,
"hostPort"
:
80
,
"containerPort"
:
8080
"containerPort"
:
8080
,
"protocol"
:
"TCP"
}
}
],
]
"resources"
:
{}
}
}
]
]
}
}
...
...
examples/meteor/mongo-pod.json
View file @
1133b62f
...
@@ -25,11 +25,9 @@
...
@@ -25,11 +25,9 @@
"ports"
:
[
"ports"
:
[
{
{
"name"
:
"mongo"
,
"name"
:
"mongo"
,
"containerPort"
:
27017
,
"containerPort"
:
27017
"protocol"
:
"TCP"
}
}
],
],
"resources"
:
{},
"volumeMounts"
:
[
"volumeMounts"
:
[
{
{
"name"
:
"mongo-disk"
,
"name"
:
"mongo-disk"
,
...
...
examples/meteor/mongo-service.json
View file @
1133b62f
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
"spec"
:
{
"spec"
:
{
"ports"
:
[
"ports"
:
[
{
{
"protocol"
:
"TCP"
,
"port"
:
27017
,
"port"
:
27017
,
"targetPort"
:
"mongo"
"targetPort"
:
"mongo"
}
}
...
...
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