mirror of
https://gitlab.com/MisterBiggs/anson-k8s.git
synced 2025-06-16 07:06:44 +00:00
Merge branch 'MisterBiggs-master-patch-07476' into 'master'
following https://mendoza.io/how-to-run-ghost-in-kubernetes/ See merge request MisterBiggs/anson-k8s!1
This commit is contained in:
commit
ab86f6e225
25
ghost/deployment.yaml
Normal file
25
ghost/deployment.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: apps/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: blog
|
||||||
|
labels:
|
||||||
|
app: blog
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: blog
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: blog
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: blog
|
||||||
|
image: ghost:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 2368
|
||||||
|
env:
|
||||||
|
- name: url
|
||||||
|
value: http://my-blog.com
|
12
ghost/service.yaml
Normal file
12
ghost/service.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: blog
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: blog
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 2368
|
11
ghost/volume.yaml
Normal file
11
ghost/volume.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: blog-content
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
|
storageClassName: do-block-storage
|
Loading…
x
Reference in New Issue
Block a user