static-site
Helm chartv0.0.24App 1.17.9-alpine
A Helm chart for deploying a static-site with auto-updating
About this chart
查看中文说明文档
Static Site Deployment with Automatic Updating on Kubernetes
This is a helm chart supporting deploying a static website onto Kubernetes and enable auto-polling to its Git repository.
Usage
helm install my-cool-site ./ --set "repo.location=https://git-location-of-your-static-site"
Supported Helm Settings
The following table lists the settings of the chart and their default values.
| Parameter | Description | Default | Required |
|---|---|---|---|
repo.location | HTTP(s) based URL of your git repository that stores source of the site | Y | |
repo.branch | Name of git branch you want to deploy | master | N |
repo.credential.username | Username to of the git repository | N | |
repo.credential.password | Password to of the git repository | N | |
site.enableDirectoryListing | Whether enable directory listing for the site | false | N |
replicas | Number of replicas of the deployment | 2 | N |
autoUpdateCron | The CRON expression scheduling the auto update polling job | * * * * *, which means every minute | N |
Deploy static-site with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has static-site 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 chartstatic-site is pinned at v0.0.24 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