Une collection organisée de snippets de code pour accélérer votre développement. Parcourez, recherchez et copiez en un clic.
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 3
periodSeconds: 3
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: mon-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: mon-deployment
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 50
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
startupProbe:
httpGet:
path: /healthz
port: 8080
failureThreshold: 30
periodSeconds: 10