# gq-hello-nginx-deployment.yaml
|
|
#
|
|
# @version 180806:2
|
|
# @author zhangxuhong <zhangxuhong@xitu.io>
|
|
|
|
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: gq-hello-nginx
|
|
labels:
|
|
name: gq-hello-nginx
|
|
role: backend
|
|
pl: c
|
|
application: nginx
|
|
version: 1.14.0
|
|
division: infrastructure
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
name: gq-hello-nginx
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 25%
|
|
maxSurge: 25%
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: gq-hello-nginx
|
|
spec:
|
|
containers:
|
|
- name: gq-hello-nginx
|
|
image: __IMAGE__
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: gq-hello-nginx
|
|
containerPort: 80
|
|
protocol: TCP
|