From 1dc8e13dfa224c6f8a22ced71e90757034399dc8 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Tue, 22 Jan 2019 10:43:26 -0200 Subject: [PATCH] Add instructions to docs, fix kubectl commands --- README.md | 15 ++++++++++++--- namespace-staging.json | 10 ++++++++++ staging/secrets.yaml.template | 2 +- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 namespace-staging.json 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