31 lines
509 B
YAML
31 lines
509 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: vweb
|
|
labels:
|
|
kiamol: ch09
|
|
spec:
|
|
replicas: 4
|
|
selector:
|
|
matchLabels:
|
|
app: vweb
|
|
minReadySeconds: 60
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
maxSurge: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: vweb
|
|
version: v1
|
|
spec:
|
|
containers:
|
|
- name: web
|
|
image: kiamol/ch09-vweb:v1
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
|