Standardize config.
This commit is contained in:
@@ -29,13 +29,13 @@ spec:
|
||||
name: mysql-secrets
|
||||
key: rootPassword
|
||||
- name: DB_HOSTNAME
|
||||
value: "{{ .dbHost }}"
|
||||
value: "{{ .db.host }}"
|
||||
- name: DB_PORT
|
||||
value: "{{ .dbPort }}"
|
||||
value: "{{ .db.port }}"
|
||||
- name: DB_DATABASE_NAME
|
||||
value: "{{ .dbName }}"
|
||||
value: "{{ .db.name }}"
|
||||
- name: DB_USERNAME
|
||||
value: "{{ .dbUser }}"
|
||||
value: "{{ .db.user }}"
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
||||
@@ -17,10 +17,10 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: ghost
|
||||
image: {{ .image }}
|
||||
image: docker.io/bitnami/ghost:5.118.1-debian-12-r0
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .port }}
|
||||
containerPort: 2368
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: BITNAMI_DEBUG
|
||||
@@ -28,13 +28,13 @@ spec:
|
||||
- name: ALLOW_EMPTY_PASSWORD
|
||||
value: "yes"
|
||||
- name: GHOST_DATABASE_HOST
|
||||
value: {{ .dbHost }}
|
||||
value: {{ .db.host }}
|
||||
- name: GHOST_DATABASE_PORT_NUMBER
|
||||
value: "{{ .dbPort }}"
|
||||
value: "{{ .db.port }}"
|
||||
- name: GHOST_DATABASE_NAME
|
||||
value: {{ .dbName }}
|
||||
value: {{ .db.name }}
|
||||
- name: GHOST_DATABASE_USER
|
||||
value: {{ .dbUser }}
|
||||
value: {{ .db.user }}
|
||||
- name: GHOST_DATABASE_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
@@ -43,7 +43,7 @@ spec:
|
||||
- name: GHOST_HOST
|
||||
value: {{ .domain }}
|
||||
- name: GHOST_PORT_NUMBER
|
||||
value: "{{ .port }}"
|
||||
value: "2368"
|
||||
- name: GHOST_USERNAME
|
||||
value: {{ .adminUser }}
|
||||
- name: GHOST_PASSWORD
|
||||
@@ -92,7 +92,7 @@ spec:
|
||||
mountPath: /bitnami/ghost
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: {{ .port }}
|
||||
port: 2368
|
||||
initialDelaySeconds: 120
|
||||
timeoutSeconds: 5
|
||||
periodSeconds: 10
|
||||
|
||||
@@ -2,7 +2,7 @@ name: ghost
|
||||
is: ghost
|
||||
description: Ghost is a powerful app for new-media creators to publish, share, and
|
||||
grow a business around their content.
|
||||
version: 5.118.1
|
||||
version: 5.118.1-1
|
||||
icon: https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/ghost.png
|
||||
requires:
|
||||
- name: mysql
|
||||
@@ -10,19 +10,17 @@ requires:
|
||||
defaultConfig:
|
||||
namespace: ghost
|
||||
externalDnsDomain: '{{ .cloud.domain }}'
|
||||
image: docker.io/bitnami/ghost:5.118.1-debian-12-r0
|
||||
domain: ghost.{{ .cloud.domain }}
|
||||
tlsSecretName: wildcard-wild-cloud-tls
|
||||
port: 2368
|
||||
storage: 10Gi
|
||||
dbHost: mysql.mysql.svc.cluster.local
|
||||
dbPort: 3306
|
||||
dbName: ghost
|
||||
dbUser: ghost
|
||||
adminUser: admin
|
||||
adminEmail: {{ .operator.email }}
|
||||
adminEmail: '{{ .operator.email }}'
|
||||
blogTitle: My Blog
|
||||
timezone: UTC
|
||||
db:
|
||||
host: '{{ .apps.mysql.host }}'
|
||||
port: '3306'
|
||||
name: ghost
|
||||
user: ghost
|
||||
smtp:
|
||||
host: '{{ .apps.smtp.host }}'
|
||||
port: '{{ .apps.smtp.port }}'
|
||||
|
||||
@@ -9,6 +9,6 @@ spec:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: {{ .port }}
|
||||
targetPort: 2368
|
||||
selector:
|
||||
component: web
|
||||
Reference in New Issue
Block a user