Skip to content

Instantly share code, notes, and snippets.

@anxious-coder-lhs
Created February 17, 2019 07:20
Show Gist options
  • Save anxious-coder-lhs/aad75ce1f628d9e184effd91ab223773 to your computer and use it in GitHub Desktop.
Save anxious-coder-lhs/aad75ce1f628d9e184effd91ab223773 to your computer and use it in GitHub Desktop.
Ghost pod descriptor with health monitor checks enabled.
apiVersion: v1
kind: Pod
metadata:
name: ghost
labels:
app: ghost
env: prod
spec:
containers:
- name: ghost
image: ghost:latest
ports:
- name: http
containerPort: 2368
resources:
limits:
cpu: 0.5
memory: "200Mi"
livenessProbe:
httpGet:
path: /ghost/api/v0.1/posts
port: 2368
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 15
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /ghost/api/v0.1/posts
port: 2368
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment