gohttpserver
by ygqygq2
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.
| Parameter | Description | Default |
|---|---|---|
replicaCount | replicas number | 1 |
service | Service type, protocol, port | ClusterIP TCP 8000 |
auth.type | type of gohttpserver auth | http |
auth.userName | user name of gohttpserver auth | admin |
auth.passWord | password of gohttpserver auth | admin |
auth.upload | enable upload support | true |
auth.delete | enable delete support | true |
image | gohttpserver image, tag. | codeskyblue/gohttpserver latest |
ingress | Ingress for the gohttpserver. | false |
persistentVolume.enabled | Create a volume to store data | false |
persistentVolume.storageClass | Type of persistent volume claim | nil |
persistentVolume.accessModes | Persistent volume access modes | [ReadWriteMany] |
persistentVolume.size | Persistent volume access modes | 2Gi |
persistentVolume.existingClaim | Persistent volume existingClaim name | [] |
persistentVolume.annotations | Persistent volume annotations | {} |
resources | CPU/Memory resource requests/limits | Memory: 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgohttpserver is pinned at v2.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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