diff --git a/README.md b/README.md index fe28119cf..13f4e5ec5 100644 --- a/README.md +++ b/README.md @@ -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 ``` + \ No newline at end of file diff --git a/namespace-staging.json b/namespace-staging.json new file mode 100644 index 000000000..6b71bc772 --- /dev/null +++ b/namespace-staging.json @@ -0,0 +1,10 @@ +{ + "kind": "Namespace", + "apiVersion": "v1", + "metadata": { + "name": "staging", + "labels": { + "name": "staging" + } + } +} \ No newline at end of file diff --git a/staging/secrets.yaml.template b/staging/secrets.yaml.template index 33b8e472b..f8a4642a3 100644 --- a/staging/secrets.yaml.template +++ b/staging/secrets.yaml.template @@ -1,7 +1,7 @@ apiVersion: v1 kind: Secret data: - JWT_SECRET: "HgfiztF679FvIZtvv3" + JWT_SECRET: "aHVtYW5jb25uZWN0aW9uLWRlcGxveW1lbnQ=" metadata: name: staging namespace: staging