218 lines
5.3 KiB
YAML
218 lines
5.3 KiB
YAML
---
|
|
templates:
|
|
# ---------------------------
|
|
# -- Hooks
|
|
# ---------------------------
|
|
crd-management-hook:
|
|
hooks:
|
|
- events: ["preapply"]
|
|
showlogs: true
|
|
command: "sh"
|
|
args:
|
|
- -c
|
|
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }}| kubectl apply -f -"
|
|
- events: ["prepare"]
|
|
showlogs: true
|
|
command: "sh"
|
|
args:
|
|
- -c
|
|
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }} | kubectl diff -f - || true"
|
|
- events: ["postuninstall"]
|
|
showlogs: true
|
|
command: "sh"
|
|
args:
|
|
- -c
|
|
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }} | kubectl delete -f -"
|
|
# ----------------------------
|
|
# -- Configs
|
|
# ----------------------------
|
|
default-common-values:
|
|
values:
|
|
- '{{ requiredEnv "PWD" }}/commmon/values.{{ .Release.Name }}.yaml'
|
|
default-env-values:
|
|
values:
|
|
- '{{ requiredEnv "PWD" }}/{{ .Environment.Name }}/values/values.{{ .Release.Name }}.yaml'
|
|
default-env-secrets:
|
|
secrets:
|
|
- '{{ requiredEnv "PWD" }}/{{ .Environment.Name }}/values/secrets.{{ .Release.Name }}.yaml'
|
|
# ----------------------------
|
|
# -- Extensions
|
|
# ----------------------------
|
|
ext-istio-resource:
|
|
dependencies:
|
|
- chart: bedag/raw
|
|
version: 2.0.0
|
|
alias: istio
|
|
values:
|
|
- '{{ requiredEnv "PWD" }}/common/values.istio.yaml'
|
|
ext-certificate:
|
|
dependencies:
|
|
- chart: bedag/raw
|
|
version: 2.0.0
|
|
alias: certificate
|
|
values:
|
|
- '{{ requiredEnv "PWD" }}/common/values.certificate.yaml'
|
|
|
|
service-monitor:
|
|
dependencies:
|
|
- chart: bedag/raw
|
|
version: 2.0.0
|
|
alias: service-monitor
|
|
values:
|
|
- '{{ requiredEnv "PWD" }}/common/values.service-monitor.yaml'
|
|
namespace:
|
|
dependencies:
|
|
- chart: bedag/raw
|
|
version: 2.0.0
|
|
alias: ns
|
|
values:
|
|
- '{{ requiredEnv "PWD" }}/common/values.ns.yaml'
|
|
# ----------------------------
|
|
# -- Releases
|
|
# ----------------------------
|
|
# -- System
|
|
# ----------------------------
|
|
metrics-server: &metrics-server
|
|
name: metrics-server
|
|
chart: metrics-server/metrics-server
|
|
version: 3.10.0
|
|
values:
|
|
- common/values.{{ .Release.Name }}.yaml
|
|
|
|
cert-manager: &cert-manager
|
|
name: cert-manager
|
|
chart: jetstack/cert-manager
|
|
version: 1.11.1
|
|
set:
|
|
- name: installCRDs
|
|
value: true
|
|
longhorn: &longhorn
|
|
name: longhorn
|
|
chart: longhorn/longhorn
|
|
version: 1.4.1
|
|
inherit:
|
|
- template: default-env-values
|
|
|
|
argocd: &argocd
|
|
name: argocd
|
|
chart: argo/argo-cd
|
|
version: 5.29.1
|
|
inherit:
|
|
- template: default-env-values
|
|
- template: default-env-secrets
|
|
- template: ext-istio-resource
|
|
# ----------------------------
|
|
# -- Istio
|
|
# ----------------------------
|
|
istio-common:
|
|
labels:
|
|
bundle: istio
|
|
version: 1.17.2
|
|
|
|
istio-base: &istio-base
|
|
name: istio-base
|
|
chart: istio/base
|
|
inherit:
|
|
- template: crd-management-hook
|
|
- template: istio-common
|
|
|
|
istio-gateway: &istio-gateway
|
|
name: istio-ingressgateway
|
|
chart: istio/gateway
|
|
inherit:
|
|
- template: istio-common
|
|
- template: default-env-values
|
|
|
|
istiod: &istiod
|
|
name: istiod
|
|
chart: istio/istiod
|
|
inherit:
|
|
- template: istio-common
|
|
- template: default-env-values
|
|
|
|
# ----------------------------
|
|
# -- Applications
|
|
# ----------------------------
|
|
openvpn: &openvpn
|
|
name: openvpn
|
|
chart: allanger-charts/openvpn
|
|
version: 1.0.3
|
|
inherit:
|
|
- template: default-env-values
|
|
- template: ext-istio-resource
|
|
|
|
|
|
drone: &drone
|
|
name: drone
|
|
chart: drone/drone
|
|
version: 0.6.4
|
|
inherit:
|
|
- template: default-env-values
|
|
- template: default-env-secrets
|
|
- template: ext-istio-resource
|
|
|
|
drone-runner-kube: &drone-runner-kube
|
|
name: drone-runner-kube
|
|
chart: drone/drone-runner-kube
|
|
version: 0.1.10
|
|
inherit:
|
|
- template: default-env-values
|
|
- template: default-env-secrets
|
|
|
|
nrodionov: &nrodionov
|
|
name: nrodionov
|
|
chart: bitnami/wordpress
|
|
version: 16.0.0
|
|
inherit:
|
|
- template: default-env-values
|
|
- template: default-env-secrets
|
|
- template: ext-istio-resource
|
|
|
|
|
|
minio: &minio
|
|
name: minio
|
|
chart: minio/minio
|
|
version: 5.0.8
|
|
inherit:
|
|
- template: default-env-values
|
|
- template: default-env-secrets
|
|
- template: ext-istio-resource
|
|
|
|
|
|
minecraft: &minecraft
|
|
name: minecraft
|
|
chart: minecraft-server-charts/minecraft
|
|
version: 4.7.4
|
|
inherit:
|
|
- template: default-env-values
|
|
- template: ext-istio-resource
|
|
|
|
|
|
gitea: &gitea
|
|
name: gitea
|
|
chart: gitea/gitea
|
|
version: 8.1.0
|
|
inherit:
|
|
- template: default-env-values
|
|
- template: default-env-secrets
|
|
- template: ext-istio-resource
|
|
|
|
funkwhale: &funkwhale
|
|
name: funkwhale
|
|
chart: ananace-charts/funkwhale
|
|
version: 1.0.1
|
|
inherit:
|
|
- template: default-env-values
|
|
- template: default-env-secrets
|
|
- template: ext-istio-resource
|
|
|
|
mailu: &mailu
|
|
name: mailu
|
|
chart: mailu/mailu
|
|
version: 1.1.1
|
|
inherit:
|
|
- template: default-env-values
|
|
- template: default-env-secrets
|
|
- template: ext-istio-resource
|
|
- template: ext-certificate
|