forked from fonoster/routr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fonoster Team
committed
May 24, 2019
1 parent
0434e57
commit d89e58b
Showing
7 changed files
with
97 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
This document is a short guide about running the dockerized version of Routr Server on Kubernetes. | ||
|
||
## Run in Kubernetes | ||
|
||
To run Routr in Kubernetes, you must set your ROUTR_EXTERN_ADDR in `k8s/routr.yml`. | ||
|
||
> This variable must be set to the public address(if running Routr locally, use your host address) | ||
Additionally, you must create the following Kubernetes resources: | ||
|
||
```bash | ||
kubectl create -f k8s/configmaps.yml | ||
kubectl create -f k8s/redis.yml | ||
kubectl create -f k8s/routr.yml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: redis | ||
labels: | ||
app: routr | ||
spec: | ||
ports: | ||
- port: 6379 | ||
selector: | ||
app: routr | ||
tier: database | ||
clusterIP: None | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: redis | ||
labels: | ||
app: routr | ||
spec: | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: routr | ||
tier: database | ||
spec: | ||
containers: | ||
- name: redis | ||
image: redis:4.0.5-alpine | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 6379 | ||
name: redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters