mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-23 00:54:26 +00:00
Migrate ghost from helm to manifests
This commit is contained in:
35
apps/base/ghost/deployment.yaml
Normal file
35
apps/base/ghost/deployment.yaml
Normal 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
|
||||
@@ -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
|
||||
15
apps/base/ghost/service.yaml
Normal file
15
apps/base/ghost/service.yaml
Normal 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
|
||||
Reference in New Issue
Block a user