mirror of
https://gitlab.com/MisterBiggs/anson-k8s.git
synced 2025-06-15 14:46:43 +00:00
This commit is contained in:
parent
bb2bddae99
commit
c8983cb684
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