Skip to content

Instantly share code, notes, and snippets.

View benjaminknox's full-sized avatar
🗿

Benjamin Knox benjaminknox

🗿
View GitHub Profile
@benjaminknox
benjaminknox / minio-k8s-statefulset.md
Created December 8, 2023 19:00
Deploying Minio to k8s as a StatefulSet

Deploying Minio to k8s as a StatefulSet

Minio is an S3 compatible object storage application that is free to use and built to deploy into a kubernetes cluster. This guide is a set of instructions for deploying Minio into your cluster, it will walk through creating a persistent volume, statefulset, and service on a loadbalancer.

Before anything else we may want to create a new namespace in our cluster for minio, should you want to separate out this deployment you can with this command:

$  kubectl create namespace minio
@benjaminknox
benjaminknox / minikube-loadbalancer.md
Last active December 8, 2023 15:48
Create a load balancer with minikube

Minikube LoadBalancers

This is a guide for creating minikube in a kubernetes cluster, based on this guide: Minikube LoadBalancer Docs

I always prefer having everything locally set up and working as closely to production as possible, it helps debug and ensures that if anything goes wrong in production it is reproducible locally. On minikube you can expose your k8s containers with a LoadBalancer on local ip addresses, accessing them just like you normally would your clusters running on your cloud provider. In this guide we will start the LoadBalancer in minikube and make a deployment that has an apache web host to demonstrate a local LoadBalancer configuration.

The first step is to run this command in your terminal:

$ minikube tunnel