https://github.com/dtherhtun/pet-with-peer
https://github.com/dtherhtun/pet-with-peer
containers golang kubernetes-manifests pet
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dtherhtun/pet-with-peer
- Owner: dtherhtun
- Created: 2019-09-25T15:23:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-25T17:29:22.000Z (about 6 years ago)
- Last Synced: 2023-03-22T08:24:17.980Z (over 2 years ago)
- Topics: containers, golang, kubernetes-manifests, pet
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pet with peers
Mini simple [pet](http://cloudscaling.com/blog/cloud-computing/the-history-of-pets-vs-cattle/#pets) application written in golang for container environement.
Just testing purpose only. Can use curl with `POST` method to sent data and can request data with `GET` method from application.### Build image
```
$ make TAG_NAME=pet-with-peer
```### Run on ` k8s`
```
$ kubectl create -f pvs-hostpath.yaml
$ kubectl create -f hola-statefulset-peers.yaml
$ kubectl create -f hola-service-headless.yaml
$ kubectl create -f hola-service-public.yaml
```#### Reference
Kubernetes in Action