Add instructions to docs, fix kubectl commands

This commit is contained in:
Matt Rider 2019-01-22 10:43:26 -02:00
parent 81e211f6fb
commit 1dc8e13dfa
3 changed files with 23 additions and 4 deletions

View File

@ -12,14 +12,22 @@
> The dummy directory has some lb configurations that did not work properly on Digital Ocean but could be used as a starting point for getting it right
## Install Minikube, kubectl
There are many Kubernetes distributions, but if you're just getting started, Minikube is a tool that you can use to get your feet wet.
[Install Minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/)
## Create a namespace locally
```shell
kubectl create -f namespace-staging.json
```
## Apply the config map to staging namespace
```shell
cd ./staging
kubectl apply -f configmap-neo4j.yaml -f configmap-backend.yaml -f configmap-web.yaml
kubectl apply -f neo4j-configmap.yaml -f backend-configmap.yaml -f web-configmap.yaml
```
## Setup secrets and deploy themn
```shell
cd ./staging
@ -31,5 +39,6 @@ kubectl apply -f secrets.yaml
## Deploy the app
```shell
cd ./staging
kubectl apply -f deployment-neo4j.yaml -f deployment-backend.yaml -f deployment-web.yaml
kubectl apply -f neo4j-deployment.yaml -f backend-deployment.yaml -f web-deployment.yaml
```

10
namespace-staging.json Normal file
View File

@ -0,0 +1,10 @@
{
"kind": "Namespace",
"apiVersion": "v1",
"metadata": {
"name": "staging",
"labels": {
"name": "staging"
}
}
}

View File

@ -1,7 +1,7 @@
apiVersion: v1
kind: Secret
data:
JWT_SECRET: "HgfiztF679FvIZtvv3"
JWT_SECRET: "aHVtYW5jb25uZWN0aW9uLWRlcGxveW1lbnQ="
metadata:
name: staging
namespace: staging