https://github.com/krisnova/stateful-app
A great stateful application
https://github.com/krisnova/stateful-app
Last synced: about 1 year ago
JSON representation
A great stateful application
- Host: GitHub
- URL: https://github.com/krisnova/stateful-app
- Owner: krisnova
- Created: 2018-06-11T20:51:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-14T18:45:39.000Z (about 7 years ago)
- Last Synced: 2023-12-18T05:28:18.513Z (over 2 years ago)
- Language: Go
- Size: 118 KB
- Stars: 20
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Welcome to the Kris Nova Stateful Application!
### Deploying the application:
```bash
kubectl create -f manifests/
```
### Delete the application
```bash
kubectl delete -f manifests
```
### Update docker registry with a new build
```bash
make container push
```
### Get the public address
```bash
k get svc -owide | grep statefulapp-service | cut -d " " -f 16
```
### Create database in server
```bash
k exec -it $(k get po | grep postgres | cut -d " " -f 1) -- bash -c "psql -c 'CREATE DATABASE stateful_app_development;' -U postgres"
```