serverwentdown / kompose-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kompose-example

A simple Kompose example using the tilt-avatars sample app.

Requirements

  • Kompose
  • 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 and kubectl
  4. Install Traefik Proxy
    • 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
    • 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

  1. Run docker compose build
  2. Run kompose convert -o kompose.yaml
  3. Run kubectl apply -f kompose.yaml
  4. Visit http://avatar.localdev.me

About


Languages

Language:Makefile 100.0%