raneto

by Gabisonfire

Helm chartv0.1.2App 0.16.6

Raneto is an open source Knowledgebase platform that uses static Markdown files to power your Knowledgebase.

About this chart

Raneto

Raneto is a free, open, simple Markdown powered knowledge base for Node.js.

Raneto Raneto is a free, open, simple Markdown powered knowledge base for Node.js.

QuickStart

$ helm repo add gabisonfire https://gabisonfire.github.io/charts/
$ helm repo update
$ helm install foo gabisonfire/raneto --namespace bar

Introduction

This chart deploys Raneto based on https://hub.docker.com/r/linuxserver/raneto

Prerequisites

  • Kubernetes 1.14+

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release gabisonfire/raneto --namespace bar

Tip: List all releases using helm list

In order to deploy this chart under Kubernetes 1.9+, the kubeMeta.deploymentApiVersion MUST be set to "apps/v1".

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release --purge

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The configurable parameters of the Raneto chart and their descriptions can be seen in values.yaml.

Tip: You can use the default values.yaml

Here are the most common:

ParameterDescriptionDefault
replicaCountNumber of replicas1
image.repositoryThe image to runghcr.io/linuxserver/raneto
image.tagThe image tag to pullversion-0.16.6
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSpecify image pull secretsnil
service.typeType of ServiceClusterIP
service.portPort for kubernetes service3000
ingress.enabledEnable ingressfalse
ingress.annotationsAnnotations for ingress{}
ingress.hosts[0].hostIngress host"chart-example.local"
ingress.hosts[0].pathsIngress paths[]
ingress.tlsIngress tls settings[]
resourcesKubernetes ressources options{}
podSecurityContextPod security context settings{}
securityContextSecurity context settings{}
podAnnotationsPod annotations[]
nodeSelectorNode selector{}
tolerationsTolerations[]
affinityAffinity{}
persistence.content.enabledPersistence for Markdown filestrue
persistence.images.enabledPersistence for image filestrue
gitsync.enabledEnable git repo syncingfalse
gitsync.repoRepository to synchronize''
gitsync.destinationDestination folderrepo
gitsync.everySync every x seconds600
gitsync.authenticateUse git authentication (see below)false
gitsync.sshUse SSH for authenticationfalse
raneto.site_titleSite titleRaneto
raneto.authenticationEnable basic authenticationtrue
raneto.authentication_for_editEnable authentication for editingtrue
raneto.authentication_for_readEnable authentication for readingfalse
raneto.home_meta.titleHome titleCustom Home Title
raneto.home_meta.descriptionHome DescriptionCustom Home Description
raneto.table_of_contentsEnable table of contentfalse

Gitsync

Setting gitsync.enabled to true will sync gitsync.repo to gitsync.destination relative to /content/ which is the folder containing your markdown files. The sync will occur at start and then every x seconds defined by gitsync.every.

Authentication

If you need to use authenticated git repo, you will need to set gitsync.authenticate to true and then either provide a secret name to gitsync.password.secret.

Here's an example:

apiVersion: v1
kind: Secret
metadata:
  name: raneto-gitsync
type: Opaque
data:
  password: eW91IHJlYWxseSB0b29rIHRoZSB0aW1lIHRvIGRlY29kZSB0aGlzPw==

For ssh authentication, you'll need to set gitsync.ssh to true. Then you will have to specify a secret containing your ssh key gitsync.ssh_secret You can create a secret using:

kubectl create secret generic raneto-gitsync-ssh --from-file=ssh=/path/to/.ssh/id_rsa

Deploy raneto with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has raneto 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 chartraneto is pinned at v0.1.2 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