michal-kapala / cve-k8s

Kubernetes cluster for cve-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

A local Kubernetes cluster for cve-docker deployment.

Prerequisites

How to run

  1. Create a default kind cluster and health-check it:
kind create cluster --config=kind-cluster.yaml
kubectl version
  1. Load local Docker images with kind:
kind load docker-image cve_pocketbase
kind load docker-image cve_auth
kind load docker-image cve_cve
kind load docker-image cve_t3
  1. Create pods:
kubectl apply -f cve-pocketbase-pod.yaml
kubectl apply -f cve-auth-pod.yaml
kubectl apply -f cve-cve-pod.yaml
kubectl apply -f cve-t3-pod.yaml
  1. Create services:
kubectl apply -f cve-pocketbase-svc.yaml
kubectl apply -f cve-auth-svc.yaml
kubectl apply -f cve-cve-svc.yaml
kubectl apply -f cve-t3-svc.yaml
  1. Port-forward the containers if needed:
  • PocketBase
kubectl port-forward cve-pocketbase 8090:8090
kubectl port-forward cve-auth 50051:50051
kubectl port-forward cve-cve 50052:50052
kubectl port-forward cve-t3 3000:3000

About

Kubernetes cluster for cve-docker