-
Notifications
You must be signed in to change notification settings - Fork 0
/
ghost deployment.yaml
43 lines (43 loc) · 1.2 KB
/
ghost deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: apps/v1
kind: Deployment
metadata:
name: ghost-app
namespace: default
annotations:
argocd.argoproj.io/sync-options: Prune=false # Prevent ArgoCD from pruning this deployment
spec:
replicas: 1
selector:
matchLabels:
app: ghost-app
template:
metadata:
labels:
app: ghost-app
spec:
containers:
- name: ghost-app
image: jakehazex21/ubuntu-ghost-1
ports:
- containerPort: 2368
env:
- name: url
value: https://beatsinthe.cloud/blog # Correct URL
- name: database__client
value: mysql
- name: database__connection__host
value: ghost-db-service
- name: database__connection__user
valueFrom:
secretKeyRef:
name: ghost-db-secret
key: db_user # Reference secret for the database user
- name: database__connection__password
valueFrom:
secretKeyRef:
name: ghost-db-secret
key: db_password # Reference secret for the database password
- name: database__connection__database
value: ghost
imagePullSecrets:
- name: my-dockerhub-secret