85 lines
2.2 KiB
YAML
85 lines
2.2 KiB
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
namespace: tools
|
|
|
|
# https://kubectl.docs.kubernetes.io/references/kustomize/builtins/#_helmchartinflationgenerator_
|
|
helmCharts:
|
|
- name: plausible
|
|
repo: https://charts.pascaliske.dev
|
|
version: 2.0.0
|
|
releaseName: plausible
|
|
valuesFile: plausibleValues.yaml
|
|
namespace: tools
|
|
|
|
patches:
|
|
- target:
|
|
kind: IngressRoute
|
|
name: plausible-route
|
|
patch: |-
|
|
- op: add
|
|
path: /spec/tls
|
|
value:
|
|
certResolver: letsencrypt
|
|
domains:
|
|
- main: arcodange.lab
|
|
sans:
|
|
- analytics.arcodange.lab
|
|
|
|
resources:
|
|
- resources/vaultauth.yaml
|
|
- resources/vaultdynamicsecret.yaml
|
|
- resources/vaultsecret.yaml
|
|
- resources/configmap.yaml
|
|
- resources/geoipsecret.yaml
|
|
- resources/ingressroute.yaml
|
|
|
|
patchesJson6902:
|
|
- target:
|
|
version: v1
|
|
kind: Deployment
|
|
name: plausible
|
|
patch: |-
|
|
- op: replace
|
|
path: /spec/template/spec/containers/1/env/2
|
|
value:
|
|
name: GEOIPUPDATE_LICENSE_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: plausible-geoip
|
|
key: LICENSE_KEY
|
|
- op: replace
|
|
path: /spec/template/spec/containers/1/env/4
|
|
value:
|
|
name: GEOIPUPDATE_EDITION_IDS
|
|
value: "GeoLite2-Country GeoLite2-City"
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/env/2
|
|
value:
|
|
name: IP_GEOLOCATION_DB
|
|
value: /geoip/GeoLite2-City.mmdb
|
|
- op: add
|
|
path: /spec/template/spec/volumes/-
|
|
value:
|
|
name: generated-secrets
|
|
emptyDir:
|
|
medium: Memory
|
|
- op: add
|
|
path: /spec/template/spec/containers/0/envFrom
|
|
value:
|
|
- configMapRef:
|
|
name: plausible-config
|
|
- op: add
|
|
path: /spec/template/spec/initContainers/0/envFrom
|
|
value:
|
|
- configMapRef:
|
|
name: plausible-config
|
|
- op: replace
|
|
path: /spec/template/spec/initContainers/0/args
|
|
value:
|
|
- >-
|
|
sleep 10 && /entrypoint.sh db migrate
|
|
- target:
|
|
version: v1
|
|
kind: Deployment
|
|
name: plausible
|
|
path: add-initcontainer.yaml |