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
750 B

# 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