https://github.com/kengu/json-server-deployment
Simple test of deploying a json_server_test with a db.json file
https://github.com/kengu/json-server-deployment
Last synced: 4 months ago
JSON representation
Simple test of deploying a json_server_test with a db.json file
- Host: GitHub
- URL: https://github.com/kengu/json-server-deployment
- Owner: kengu
- Created: 2019-02-07T21:50:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-07T21:59:10.000Z (over 7 years ago)
- Last Synced: 2025-09-10T09:18:23.434Z (9 months ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
json_server_test
================
Simple test of deploying a json_server_test with a db.json file
* locally using docker
* remotely using kubernetes
Deploying locally
-----------------
```bash
> docker build -t $(whoami)/json_server_test:v1 .
> docker run -d -p 80:80 $(whoami)/json_server_test:v1
> curl http://localhost | jq
```
Deploying to Kubernetes
-----------------------
```bash
> kubectl create configmap json-server-test-config --from-file=db.json
> kubectl create -f deployment.yaml
> kubectl expose deployment json-server-test --type=ClusterIP --port=80 --target-port=80
> kubectl create -f ingress.yaml
> curl http://status.discoos.io/db | jq
```