static-site

by joaquinito2051

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.

ParameterDescriptionDefaultRequired
repo.locationHTTP(s) based URL of your git repository that stores source of the siteY
repo.branchName of git branch you want to deploymasterN
repo.credential.usernameUsername to of the git repositoryN
repo.credential.passwordPassword to of the git repositoryN
site.enableDirectoryListingWhether enable directory listing for the sitefalseN
replicasNumber of replicas of the deployment2N
autoUpdateCronThe CRON expression scheduling the auto update polling job* * * * *, which means every minuteN

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartstatic-site is pinned at v0.0.24 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