gbazack / local-k8s

Kubernetes environment for testing on local Linux computers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

local-k8s

This toolkit enables deploying a three-node Kubernetes cluster on a Linux-based computer. It also deploys a Symfony application with a Mariadb database server.

Requirements

Name Version
Kind ~> 0.23.0
kubectl ~> 1.29
docker ~> 27.0

How to deploy the local k8s

  1. Create the cluster with namespaces, service accounts, secrets and the Nginx ingress controller:
make create-env
  1. Deploy the Mariadb database
make deploy-database
  1. Deploy the Symfony backend
make deploy-backend
  1. Wait one (01) minute for the ingress controller to be ready before exposing the backend via an ingress
make deploy-ingress

N.B: The command make dev performs tasks 1, 2 and 3.

  1. Once the backend is exposed, it will be reachable from the local host via http://localhost:80.

  2. Clean up everything with the following command:

make clean

About

Kubernetes environment for testing on local Linux computers.


Languages

Language:Makefile 100.0%