Files

45 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: hiyv
namespace: hiyv
labels:
app.kubernetes.io/name: hiyv
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: hiyv
template:
metadata:
labels:
app.kubernetes.io/name: hiyv
spec:
containers:
- name: hiyv
image: git.mancheff.com/hiyv-demo/hiyv-nginx:1.0.3
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 80
protocol: TCP
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 2
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 5
periodSeconds: 30
resources:
requests:
cpu: 25m
memory: 32Mi
limits:
cpu: 250m
memory: 128Mi