Skip to content

Kubernetes setup

Navinn Ravindaran edited this page Jul 30, 2022 · 1 revision
  1. Start minikube and build docker images
minikube start
eval $(minikube -p minikube docker-env)
docker build . -t drawhub/base:latest --no-cache
docker compose build client server --no-cache 

1.1 Enable Ingress

minikube addons enable ingress
  1. Load Secrets
kubectl create secret generic app-secret --from-env-file ./.env
  1. Apply manifests
kubectl apply -f ./k8s/mongo.yml
kubectl apply -f ./k8s/client.yml
kubectl apply -f ./k8s/server.yml
kubectl create -f ./k8s/ingress.yml

3.1. Tunnel IP

minikube tunnel
Clone this wiki locally