Skip to content

Local Kubernetes cluster example with a simple webapp.

License

Notifications You must be signed in to change notification settings

lfmatosm/k8s-cluster-example

Repository files navigation

k8s-cluster-example

Local Kubernetes cluster example with a simple webapp.

Application cluster architecture

What you need?

docker and minikube. A standalone kubectl installation is not needed. Please review minikube resource requirements before installation.

Deploying the cluster locally

You don't need to build the backend and frontend application images to spin up the cluster, as they are publicly available on Docker Hub. To start the cluster, first spin minikube:

minikube start

For ease of usage, define an alias to use the internal kubectl that minikube provides:

alias kubectl="minikube kubectl --" # on .bashrc or similar

Now you can directly deploy all manifest files:

kubectl apply -f infra/

Retrieve the workload status with:

kubectl get pod,rs,deploy,svc,configmaps

Once the deploy finishes, you can access the frontend application by opening a tunnel:

minikube service post-app-service --url

Check docs/tutorial.md for a step-by-step implementation.

Notice

All rights reserved Adobe Systems Incorporated for Source Code Pro font. The original font license can be read here. The font was downloaded from https://fonts.google.com/specimen/Source+Code+Pro.

Resources

About

Local Kubernetes cluster example with a simple webapp.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published