Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (27 sloc) 687 Bytes
kind: Deployment
apiVersion: apps/v1beta1
metadata:
name: authors
spec:
replicas: 1
template:
metadata:
labels:
app: authors
version: v1
spec:
containers:
- name: authors
image: docker-registry.default.svc:5000/cloud-native-starter/authors:latest
ports:
- containerPort: 3000
livenessProbe:
exec:
command: ["sh", "-c", "curl -s http://localhost:3000/"]
initialDelaySeconds: 20
readinessProbe:
exec:
command: ["sh", "-c", "curl -s http://localhost:3000/health | grep -q authors"]
initialDelaySeconds: 40
restartPolicy: Always
---
You can’t perform that action at this time.