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.
41 lines
922 B
41 lines
922 B
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
labels:
|
|
app: $IMAGES
|
|
name: $IMAGES
|
|
namespace: yanxuan
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: $IMAGES
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 25%
|
|
maxSurge: 25%
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: $IMAGES
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: aliyun-docker-hub
|
|
containers:
|
|
- image: '$REGISTRY/$DOCKERHUB_NAMESPACE/$IMAGES:$BUILD_NUMBER'
|
|
name: app
|
|
ports:
|
|
- containerPort: $JAR_PORD
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
cpu: '0.5'
|
|
memory: 500Mi
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 30
|