Created
November 3, 2019 16:00
-
-
Save agileguy/a8b0463a3cfca18a11804ea6c8cd55c6 to your computer and use it in GitHub Desktop.
Deployment of Ghost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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