Skip to content

Instantly share code, notes, and snippets.

@agileguy
Created November 3, 2019 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agileguy/a8b0463a3cfca18a11804ea6c8cd55c6 to your computer and use it in GitHub Desktop.
Save agileguy/a8b0463a3cfca18a11804ea6c8cd55c6 to your computer and use it in GitHub Desktop.
Deployment of Ghost
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:3.0.2-alpine
imagePullPolicy: Always
ports:
- containerPort: 2368
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
env:
- name: url
value: https://blog.devopsculture.ca
volumeMounts:
- mountPath: /var/lib/ghost/content
name: content
volumes:
- name: content
persistentVolumeClaim:
claimName: blog-content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment