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