mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Add instructions to docs, fix kubectl commands
This commit is contained in:
parent
81e211f6fb
commit
1dc8e13dfa
15
README.md
15
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
|
||||
```
|
||||
|
||||
10
namespace-staging.json
Normal file
10
namespace-staging.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"kind": "Namespace",
|
||||
"apiVersion": "v1",
|
||||
"metadata": {
|
||||
"name": "staging",
|
||||
"labels": {
|
||||
"name": "staging"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
data:
|
||||
JWT_SECRET: "HgfiztF679FvIZtvv3"
|
||||
JWT_SECRET: "aHVtYW5jb25uZWN0aW9uLWRlcGxveW1lbnQ="
|
||||
metadata:
|
||||
name: staging
|
||||
namespace: staging
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user