mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
47 lines
1007 B
YAML
47 lines
1007 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: example-deploy
|
|
labels:
|
|
app: example-app
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: example-app
|
|
replicas: 2
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: example-app
|
|
spec:
|
|
containers:
|
|
- name: example-app
|
|
image: aimvector/python:1.0.4
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 5000
|
|
# livenessProbe:
|
|
# httpGet:
|
|
# path: /status
|
|
# port: 5000
|
|
# initialDelaySeconds: 3
|
|
# periodSeconds: 3
|
|
# readinessProbe:
|
|
# httpGet:
|
|
# path: /status
|
|
# port: 5000
|
|
# initialDelaySeconds: 3
|
|
# periodSeconds: 3
|
|
# resources:
|
|
# requests:
|
|
# memory: "64Mi"
|
|
# cpu: "50m"
|
|
# limits:
|
|
# memory: "256Mi"
|
|
# cpu: "500m" |