Skip to content

xamma/Apikube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apikube

Docker Image CI

This project is meant to learn Kubernetes and how to build Microservices.
You can configure the static website with a ConfigMap.
Also you will see the different hostnames, when the deployment handles multiple replicas.

UI

The App

Cloudnative Microservice written in Python using FastAPI for the API.
Frontend is just simple static HTML content rendered with Jinja2.
Allows passing ENVs via ConfigMap in Kubernetes and can be further configured with Helm Charts.

How to run

Build Docker image

docker build -t apikube:latest .

Run Docker container

docker run -dp 80:8000 apikube:latest
OR
docker run -dp 80:8000 ghcr.io/xamma/apikube:latest

Deploy to Kubernetes

kubectl create ns apikube
kubectl apply -f k8s-manifests

Note: I'm using GitOps with ArgoCD for deployments.

About

Cloudnative Microservice for K8s.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages