madana-node

by MADANA

Helm chartv0.4.4App 1.0Verified publisher

A Helm chart for Kubernetes

About this chart

usage with private repo

before installing the chart, create a secret on the kubernetes cluster which holds the credentials for your docker registry

kubectl create secret docker-registry regcred --docker-server="your-registry-server" --docker-username="your-name" --docker-password="your-pword"

e.g.:

kubectl create secret docker-registry regcred --docker-server=https://registry.gitlab.com --docker-username=MaddyTheBot --docker-password=***********

Install the chart

cd /madana-node/chart helm install ./ --generate-name

helm cheat sheet

Connect to cluster

Connect to kubernetes cluster by pointing to the config file helm --kubeconfig C:\Users\J.-Fabian Wenisch\.kube\config

List releases in a certain namespace

helm list -n madana-node-15571863-master

List all enclanves in a certain namespace

All enclaves have a alphanumeric name with a length of 30 helm list --filter '^([a-zA-Z0-9_-]){30,30}$' -n madana-node-15571863-master

Delete a release in a certain namespace

helm delete zlp8nnwilfccjyjmymjpbhzetlk14p -n madana-node-15571863-master

kubectl cheat sheet

https://kubernetes.io/docs/reference/kubectl/cheatsheet/

get an overview of deployments on all namespaces (-A)

kubectl get -A all

get an overview of deployments on default namespaces

kubectl get all

get an overview of deployments on foo namespaces

kubectl -n foo get all

important resources

identitaet behalten: nur config im persitent storage behalten?

attestation wireguard ports als env variable

bearer token pfad

documentation

kubectl explain pods (service, ingress, etc.)

resources

simple info

kubectl get {resource_name}

complete info

kubectl -o yaml get {resource_name}

debug failures, similiar to get -o yaml

kubectl describe {resource_name}

get logs from container

kubectl logs {resource_name} -c {container_name}

stream logs from container

kubectl logs -f {resource_name} -c {container_name}

execute command in container ( use sh or bash as command for interactive shell)

kubectl exec -it {resource_name} -c {container_name} {command}

pods vs deployments, (daemonsets, replicasets)

services, ingress

persistent volume (claims), HostPath, EmptyDir

serviceaccounts, roles, rolebindings

Deploy madana-node with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has madana-node on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmadana-node is pinned at v0.4.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply