https://github.com/freedomben/super-simple-k8s-app
https://github.com/freedomben/super-simple-k8s-app
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/freedomben/super-simple-k8s-app
- Owner: FreedomBen
- License: mit
- Created: 2022-04-22T01:53:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-14T00:59:51.000Z (over 3 years ago)
- Last Synced: 2025-02-16T14:59:13.905Z (over 1 year ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# super simple k8s app
A super simple "app" that you can run in k8s. Useful for things like (but not limited to):
- Testing that a new cluster runs a Deployment/Pods
- Creating some console output from a Pod that can be looked for in logs
- Testing that a logging stack/aggregator is properly receiving logs (there should be one log line per minute)
- Learning how to deploy a bare minimal application to K8s
## To Deploy
If all you want to do is deploy this to k8s, you can use the prebuilt image. Clone this repo:
```bash
git clone https://github.com/FreedomBen/super-simple-k8s-app.git \
&& cd super-simple-k8s-app
```
And `kubectl apply` the `deployment.yaml` example:
```bash
kubectl apply -f deployment.yaml
```
## To build your own image
To build the image yourself:
```bash
docker build -t /super-simple-k8s-app:latest .
```
Push:
```bash
docker push /super-simple-k8s-app:latest
```