Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serverwentdown/kompose-example
https://github.com/serverwentdown/kompose-example
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/serverwentdown/kompose-example
- Owner: serverwentdown
- Created: 2023-09-03T16:54:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-07T17:36:32.000Z (about 1 year ago)
- Last Synced: 2024-04-15T01:21:01.212Z (7 months ago)
- Language: Makefile
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kompose-example
A simple Kompose example using the `tilt-avatars` sample app.
## Requirements
- [Kompose](https://kompose.io/)
- Docker/Rancher Desktop
- Rancher Desktop requires less setup
- A Kubernetes cluster (Provided by Docker/Rancher Desktop)
- An ingress (Provided by Rancher Desktop)## Steps (Docker Desktop)
1. Install Docker Desktop
2. Enable Kubernetes in Docker Desktop
3. Install [Helm](https://helm.sh/docs/intro/install/) and [kubectl](https://kubernetes.io/docs/tasks/tools/)
4. Install [Traefik Proxy](https://doc.traefik.io/traefik/getting-started/install-traefik/#use-the-helm-chart)
- `helm repo add traefik https://traefik.github.io/charts && helm repo update && helm install traefik traefik/traefik`## Steps (Rancher Desktop)
1. Install Rancher Desktop in dockerd mode
2. [Forward `traefik` from port 80](https://docs.rancherdesktop.io/getting-started/installation#traefik-port-binding-access)
- `sudo sysctl net.ipv4.ip_unprivileged_port_start=0` (Only needed on Linux)
- Open "Rancher Desktop" -> "Port Forwarding" -> check "Include Kubernetes services" and click "Forward" on "traefik" "web". Key in port "80"
- You should be able to visit http://localhost and see a "404 page not found"## Run
3. Run `docker compose build`
4. Run `kompose convert -o kompose.yaml`
5. Run `kubectl apply -f kompose.yaml`
6. Visit http://avatar.localdev.me