PHP容器化demo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
791 B

# 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