Files
cstest/k8s/deployment.yaml
T

42 lines
859 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: cstest
namespace: apps
spec:
replicas: 2
selector:
matchLabels:
app: cstest
template:
metadata:
labels:
app: cstest
spec:
imagePullSecrets:
- name: harbor-registry-cred
containers:
- name: cstest
image: IMAGE_PLACEHOLDER
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 3
periodSeconds: 5
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: "50m"
memory: "128Mi"
limits:
cpu: "250m"
memory: "256Mi"