Migrate ghost from helm to manifests

This commit is contained in:
2025-03-23 17:39:05 +01:00
parent b33225cce3
commit bc492f8f22
9 changed files with 85 additions and 89 deletions

View File

@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ghost
namespace: ghost
labels:
app: ghost
spec:
replicas: 1
selector:
matchLabels:
app: ghost
template:
metadata:
labels:
app: ghost
spec:
containers:
- name: ghost
image: ghost:5-alpine
ports:
- containerPort: 2368
name: http
env:
- name: database__client
value: sqlite3
- name: NODE_ENV
value: production
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi

View File

@@ -1,10 +0,0 @@
# /apps/base/ghost/repository.yaml
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: bitnami
namespace: ghost
spec:
interval: 24h
type: oci
url: oci://registry-1.docker.io/bitnamicharts

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: ghost
namespace: ghost
labels:
app: ghost
spec:
selector:
app: ghost
ports:
- port: 80
targetPort: 2368
name: http
type: ClusterIP