gohttpserver

by ygqygq2

Helm chartv2.0.0App 1.0Verified publisher

A Helm chart for Kubernetes

About this chart

gohttpserver - The best HTTP Static File Server, write with golang+vue.

gohttpserverThe best HTTP Static File Server, write with golang+vue demo site: https://gohttpserver.herokuapp.com/

Introduction

This chart bootstraps gohttpserver deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.6+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

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

$ helm install my-release gohttpserver

tip: The default user is: admin The default password is: admin

The command deploys gohttpserver cluster on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstall

To uninstall/delete the my-release deployment:

$ helm delete my-release

Configuration

The following table lists the configurable parameters of the gohttpserver chart and their default values.

ParameterDescriptionDefault
replicaCountreplicas number1
serviceService type, protocol, portClusterIP TCP 8000
auth.typetype of gohttpserver authhttp
auth.userNameuser name of gohttpserver authadmin
auth.passWordpassword of gohttpserver authadmin
auth.uploadenable upload supporttrue
auth.deleteenable delete supporttrue
imagegohttpserver image, tag.codeskyblue/gohttpserver latest
ingressIngress for the gohttpserver.false
persistentVolume.enabledCreate a volume to store datafalse
persistentVolume.storageClassType of persistent volume claimnil
persistentVolume.accessModesPersistent volume access modes[ReadWriteMany]
persistentVolume.sizePersistent volume access modes2Gi
persistentVolume.existingClaimPersistent volume existingClaim name[]
persistentVolume.annotationsPersistent volume annotations{}
resourcesCPU/Memory resource requests/limitsMemory: 128Mi, CPU: 100m

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Persistence

The gohttpserver image stores the data and configurations at the /app/public path of the container.

Deploy gohttpserver with OpenTenant

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