1
0
mirror of https://gitlab.com/MisterBiggs/anson-k8s.git synced 2025-06-15 14:46:43 +00:00
This commit is contained in:
Anson Biggs 2019-11-23 21:51:41 +00:00
parent bb2bddae99
commit c8983cb684
3 changed files with 48 additions and 0 deletions

25
ghost/deployment.yaml Normal file
View 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
View 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
View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: blog-content
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: do-block-storage