https://github.com/codegold79/aurix
Example web page running on Kubernetes that uses persistent volume. Works with MVPStudio.
https://github.com/codegold79/aurix
go kubernetes persistent-storage postgres
Last synced: 5 months ago
JSON representation
Example web page running on Kubernetes that uses persistent volume. Works with MVPStudio.
- Host: GitHub
- URL: https://github.com/codegold79/aurix
- Owner: codegold79
- License: mit
- Created: 2020-07-28T06:15:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-28T06:17:19.000Z (almost 6 years ago)
- Last Synced: 2023-03-11T11:56:15.413Z (over 3 years ago)
- Topics: go, kubernetes, persistent-storage, postgres
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kubernetes Tutorial
This tutorial will demonostrate how to run a simple Go server that reads and writes
to a Postgres database. The application will run on the [MVP Studio](https://github.com/MVPStudio)
Kubernetes cluster and take advantage of the Kubernetes secrets service.
Prerequisites
- Docker
- Kubernetes cluster on MVP Studio. [Instructions here](https://github.com/MVPStudio/k8)
- Go (for local development). [Installation instructions here](https://golang.org/doc/install)
---
## Kubectl commands
- create secret with
```
kubectl create secret generic pgsecrets --from-literal=username=postgres --from-literal=password=password -n hello-world
```
- more info on secrets is in the [Kubernetes docs](https://kubernetes.io/docs/concepts/configuration/secret/)
- deploy with
```
kubectl apply -f kube/
```
- shut down app with
```
kubectl delete -f kube/
```