mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
35 lines
712 B
YAML
35 lines
712 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: example-deploy
|
|
labels:
|
|
app: example-app
|
|
annotations:
|
|
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/springjava:v1
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "10m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "500m" |