Installing Longhorn on a on raspberry pi kubernetes cluster

Photo by Jasmin Sessler on Unsplash

The Plan

The problem

The solution

Prerequisites

sudo apt-get install open-iscsi
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1

Installation

helm repo add longhorn https://charts.longhorn.io
helm repo update
helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace

Access longhorn ui

192.168.2.20 longhorn

Add dynamic volume

kubectl -n default apply -f ghost-claim.yaml

Creating Ghost deployment

kubectl -n default  get pods

Create service

Create ingress route

kubectl -n default apply -f ghost-service.yaml
kubectl apply -f ghost-ingress-rule.yaml

See the result

kubectl -n default delete -f deployment.yaml
kubectl -n default apply -f deployment.yaml

Summary

  • We installed longhorn on our cluster
  • We created a volume
  • We deployed a real app with is using the volume

Limitations

What’s next

Loves sport, software-engineering and music

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Tutorial #5— Introduction to Django Project and Applications and understanding Directory Structure.

Dates in JavaScript, design tips, Typescript, NFTs, and more

Launch of the Public Beta

THINK LIKE A PROGRAMMER!

Asus mesh router

The Definite Express.js Stack in 2020

5 Key Ingredients to Being a Top-notch Software Developer

“What is Chrome?”

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michael Tissen

Michael Tissen

Loves sport, software-engineering and music

More from Medium

Secure your services — Production like Kubernetes on Raspberry Pi

Kind, Keycloak and ArgoCD with SSO

What’s Sysbox by Nestybox?

What’s Sysbox

Working Kubernetes for your personal projects for 5 Euros / Month