bynr / k8s-playground

Personal playground with k8s

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

k8s-playground 🎲🎳⚽

Personal playground with k8s


1. k3d + argo + localstack + github actions

Requirements πŸ“š

  • docker
  • kubectl
  • k3d
  • argo (client)

Resources πŸ§‘β€πŸ’»

Run πŸƒ

cd argo/

make create_cluster
make switch_context
make create_namespace
make setup_argo_controller
make setup_localstack

make submit WF_FILENAME=hello-world.yaml
make submit WF_FILENAME=https://raw.githubusercontent.com/argoproj/argo/a24bc944822c9f5eed92c0b5b07284d7992908fa/examples/dag-coinflip.yaml

2. k3d + localstack + Ingress πŸ€–

Run πŸƒ

cd ingress/

make create_cluster
make download_images
make import_images
make apply

# To run localstack's web UI, use the image with all dependencies: `localstack-full`.
make test
make upload_to_s3

3. k3d + local path + reload code πŸ‘Ύ

Useful for local development without restarting the whole cluster.

Run πŸ„

cd k3d-volume/

make create_cluster
make apply
make logs

# change src code in src/hello-loop/py
make restart_container_v2
make logs

# You will see the code is properly updated in the logs

Other resources πŸ“–

The examples seek to be:

As simple as possible to illustrate the functionality

Self-contained (ie limited to one .yaml file)

Non-conflicting (eg resource names are unique)

Clear (eg resource names are verbose and unambiguous)

About

Personal playground with k8s


Languages

Language:Makefile 99.4%Language:Python 0.6%