hugo

0.0.1 使用 Kubernetes 运行 hugo 博客

使用 Kubernetes 运行 hugo 博客

Hugo Chart

hugo

Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.

Introduction

This chart helps you run a blog built by hugo using a URL on a Kubernetes cluster using the Helm package manager.

Installing the Chart

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

# set source_url
$ helm install my-release hugo \
--set source_url=https://github.com/sunny0826/hugo-demo
# set ingress
$ helm install my-release hugo \
--set source_url=https://github.com/sunny0826/hugo-demo \
--set ingress.enabled=true \
--set ingress.hosts={hugo.maoxianplay.com}  

Please resolve the DNS to ingress.

Uninstall

To uninstall/delete the my-release deployment:

$ helm uninstall my-release

Configuration

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

Parameter Description Default
image.registry Image registry. docker.io
image.repository Image source repository name. nginx
image.tag Image tag. latest
image.pullPolicy Image pull policy IfNotPresent
source_url Url of source. https://github.com/sunny0826/hugo-demo
config ngxinx config. server {...}
ingress.enabled Whether to open ingress. false
ingress.hosts Ingress hosts. {}
resources CPU/Memory resource requests/limits {}

image.registry can use Aliyun image source.

image.repository can use nginx or tengine.

  • 安装

    Add repository

    helm repo add apphub https://apphub.aliyuncs.com/

    Install chart

    helm install apphub/hugo --version 0.0.2
    一键安装
  • Chart 版本

    0.0.2
  • App 版本

    0.0.1
  • 主页