Migrate to the stack theme

This commit is contained in:
2024-02-13 15:33:11 +01:00
parent b98dc56fb3
commit b2b29a6f0f
143 changed files with 297 additions and 1363 deletions

View File

@ -2,11 +2,10 @@ apiVersion: v2
name: badhouseplants-net
description: A Helm chart for Kubernetes
type: application
version: 0.7.1
version: 0.8.5
appVersion: "4.20.0"
dependencies:
- name: remark42
version: 0.5.5
repository: https://groundhog2k.github.io/helm-charts/
condition: remark42.enabled

View File

@ -41,7 +41,7 @@ spec:
mountPath: "/tmp"
readOnly: true
- name: {{ .Values.volumes.rclone.name }}
mountPath: /static
mountPath: /assets
readOnly: false
resources:
{{- toYaml .Values.rclone.container.resources | nindent 12 }}
@ -59,8 +59,8 @@ spec:
{{- end }}
volumeMounts:
- name: {{ .Values.volumes.rclone.name }}
mountPath: /src/static
readOnly: true
mountPath: /src/assets
readOnly: false
- name: {{ .Values.volumes.public.name }}
mountPath: /src/public
readOnly: false
@ -88,7 +88,7 @@ spec:
volumes:
- name: rclone-config
secret:
secretName: rclone-config
secretName: rclone-config-{{ .Release.Name }}
- name: {{ .Values.volumes.rclone.name }}
emptyDir:
sizeLimit: {{ .Values.volumes.rclone.sizeLimit }}
@ -97,5 +97,5 @@ spec:
sizeLimit: {{ .Values.volumes.public.sizeLimit }}
- name: nginx-config
configMap:
name: nginx-config
name: nginx-config-{{ .Release.Name }}

View File

@ -1,16 +0,0 @@
{{- if .Values.istio.enabled -}}
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.namespace.name }}
labels:
{{- include "badhouseplants-net.labels" . | nindent 4 }}
{{- range $key, $value := .Values.namespace.labels}}
{{ $key }}: {{ $value }}
{{- end }}
{{- with .Values.namespace.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

View File

@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-config
name: nginx-config-{{ .Release.Name }}
labels:
{{- include "badhouseplants-net.labels" . | nindent 4 }}
data:

View File

@ -1,7 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: rclone-config
name: rclone-config-{{ .Release.Name }}
labels:
{{- include "badhouseplants-net.labels" . | nindent 4 }}
type: generic

View File

@ -1,12 +1,5 @@
replicaCount: 1
namespace:
annotations: {}
labels:
istio-injection: enabled
enabled: true
name: badhouseplants-main
nginx:
container:
name: nginx
@ -17,7 +10,7 @@ nginx:
tag: latest
rclone:
command: "rclone copy -P badhouseplants-public:/badhouseplants-net-main /static"
command: "rclone copy -P badhouseplants-public:/badhouseplants-net-main /assets"
container:
name: rclone
resources: {}
@ -37,7 +30,7 @@ hugo:
container:
name: badhouseplants-net
resources: {}
image:
image:
repository: git.badhouseplants.net/badhouseplants/badhouseplants-net
pullPolicy: Always
tag: latest
@ -56,17 +49,17 @@ istio:
volumes:
# ----------------------------------------------
# -- An emptydir volume where hugo should
# -- An emptydir volume where hugo should
# -- put the static content
# ----------------------------------------------
public:
name: public-content
sizeLimit: 1Gi
sizeLimit: 1Gi
# ----------------------------------------------
# -- An emptydir volume where rclone should
# -- An emptydir volume where rclone should
# -- download pictures
# ----------------------------------------------
rclone:
rclone:
name: s3-data
sizeLimit: 1Gi