v2 app deployment--templating mainly in manifest now.
This commit is contained in:
@@ -28,23 +28,23 @@ spec:
|
||||
readOnlyRootFilesystem: false
|
||||
env:
|
||||
- name: PGHOST
|
||||
value: {{ .apps.listmonk.dbHost }}
|
||||
value: {{ .dbHost }}
|
||||
- name: PGUSER
|
||||
value: postgres
|
||||
- name: PGPASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: listmonk-secrets
|
||||
key: apps.postgres.password
|
||||
key: postgres.password
|
||||
- name: DB_NAME
|
||||
value: {{ .apps.listmonk.dbName }}
|
||||
value: {{ .dbName }}
|
||||
- name: DB_USER
|
||||
value: {{ .apps.listmonk.dbUser }}
|
||||
value: {{ .dbUser }}
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: listmonk-secrets
|
||||
key: apps.listmonk.dbPassword
|
||||
key: dbPassword
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
|
||||
@@ -30,21 +30,23 @@ spec:
|
||||
env:
|
||||
- name: LISTMONK_app__address
|
||||
value: "0.0.0.0:9000"
|
||||
- name: LISTMONK_app__root_url
|
||||
value: "{{ .rootUrl }}"
|
||||
- name: LISTMONK_db__host
|
||||
value: {{ .apps.listmonk.dbHost }}
|
||||
value: {{ .dbHost }}
|
||||
- name: LISTMONK_db__port
|
||||
value: "{{ .apps.listmonk.dbPort }}"
|
||||
value: "{{ .dbPort }}"
|
||||
- name: LISTMONK_db__user
|
||||
value: {{ .apps.listmonk.dbUser }}
|
||||
value: {{ .dbUser }}
|
||||
- name: LISTMONK_db__database
|
||||
value: {{ .apps.listmonk.dbName }}
|
||||
value: {{ .dbName }}
|
||||
- name: LISTMONK_db__ssl_mode
|
||||
value: {{ .apps.listmonk.dbSSLMode }}
|
||||
value: {{ .dbSSLMode }}
|
||||
- name: LISTMONK_db__password
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: listmonk-secrets
|
||||
key: apps.listmonk.dbPassword
|
||||
key: dbPassword
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
|
||||
@@ -6,16 +6,16 @@ metadata:
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
external-dns.alpha.kubernetes.io/target: {{ .cloud.domain }}
|
||||
external-dns.alpha.kubernetes.io/target: {{ .externalDnsDomain }}
|
||||
external-dns.alpha.kubernetes.io/cloudflare-proxied: "false"
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ .apps.listmonk.domain }}
|
||||
secretName: {{ .apps.listmonk.tlsSecretName }}
|
||||
- {{ .domain }}
|
||||
secretName: {{ .tlsSecretName }}
|
||||
rules:
|
||||
- host: {{ .apps.listmonk.domain }}
|
||||
- host: {{ .domain }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
name: listmonk
|
||||
description: Listmonk is a standalone, self-hosted, newsletter and mailing list manager. It is fast, feature-rich, and packed into a single binary.
|
||||
description: Listmonk is a standalone, self-hosted, newsletter and mailing list manager.
|
||||
It is fast, feature-rich, and packed into a single binary.
|
||||
version: 5.0.3
|
||||
icon: https://listmonk.app/static/images/logo.svg
|
||||
requires:
|
||||
- name: postgres
|
||||
- name: postgres
|
||||
defaultConfig:
|
||||
namespace: listmonk
|
||||
externalDnsDomain: '{{ .cloud.domain }}'
|
||||
domain: listmonk.{{ .cloud.domain }}
|
||||
rootUrl: https://listmonk.{{ .cloud.domain }}
|
||||
tlsSecretName: wildcard-wild-cloud-tls
|
||||
storage: 1Gi
|
||||
dbHost: postgres.postgres.svc.cluster.local
|
||||
@@ -15,6 +19,8 @@ defaultConfig:
|
||||
dbSSLMode: disable
|
||||
timezone: UTC
|
||||
defaultSecrets:
|
||||
- key: apps.listmonk.dbPassword
|
||||
- key: apps.listmonk.dbUrl
|
||||
- key: apps.postgres.password
|
||||
- key: dbPassword
|
||||
- key: dbUrl
|
||||
default: 'postgres://{{ .app.dbUser }}:{{ .secrets.dbPassword }}@{{ .app.dbHost }}:{{ .app.dbPort }}/{{ .app.dbName }}?sslmode={{ .app.dbSSLMode }}'
|
||||
requiredSecrets:
|
||||
- postgres.password
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: listmonk
|
||||
name: "{{ .namespace }}"
|
||||
@@ -8,4 +8,4 @@ spec:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .apps.listmonk.storage }}
|
||||
storage: {{ .storage }}
|
||||
Reference in New Issue
Block a user