https://github.com/jwsy/simplest-k8s
Simplest k8s deployment
https://github.com/jwsy/simplest-k8s
helm kubernetes rancher-desktop yaml
Last synced: 4 months ago
JSON representation
Simplest k8s deployment
- Host: GitHub
- URL: https://github.com/jwsy/simplest-k8s
- Owner: jwsy
- Created: 2021-11-12T22:17:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-11-29T03:56:51.000Z (7 months ago)
- Last Synced: 2025-11-30T21:38:11.029Z (7 months ago)
- Topics: helm, kubernetes, rancher-desktop, yaml
- Homepage: https://itnext.io/simplest-minimal-k8s-app-tutorial-with-rancher-desktop-in-5-min-5481edb9a4a5
- Size: 28.3 KB
- Stars: 16
- Watchers: 1
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simplest-k8s
Simplest k8s deployment as described in this article https://itnext.io/simplest-minimal-k8s-app-tutorial-with-rancher-desktop-in-5-min-5481edb9a4a5
The declarative yaml manifests in this repo are:
* `jade-shooter-deployment.yaml`: deploys a scalable `deployment` of a simple app which creates a scalable number of K8s `pod`s which respond to port 80 and encapsulate a container
* `jade-shooter-service.yaml`: creates a `service` that allows this webapp's port 80 to communicate outside of its K8s namespace (AKA dedicated secure cluster) via port 8080
* `jade-shooter-ingress.yaml`: creates an `ingress` that exposes the `service` to requests outside of the K8s cluster at https://jade-shooter.rancher.localhost
## Usage
1. Install Rancher Desktop https://rancherdesktop.io/, the easiest way to get a local K8s lab imo. Here's how I set mine up: https://medium.com/macoclock/rancher-desktop-setup-for-k8s-on-your-macos-laptop-6f1c576ceb48
2. Clone this repo
```
git clone https://github.com/jwsy/simplest-k8s.git
```
3. Apply the manifests in this repo
```bash
cd simplest-k8s/
kubectl apply -f .
```
4. Browse to https://jade-shooter.rancher.localhost
## Notes
* The app is this customizable Kaboom space shooter created in this article: https://javascript.plainenglish.io/kaboom-js-repl-it-custom-top-down-shooter-in-5-min-ebad8157073a?postPublishedType=repub