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.
51 lines
1.3 KiB
51 lines
1.3 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ms-manager-saas
|
|
namespace: yibin-charge
|
|
labels:
|
|
app: ms-manager-saas
|
|
annotations:
|
|
deployment.kubernetes.io/revision: '1'
|
|
kubesphere.io/alias-name: ms-manager-saas
|
|
kubesphere.io/maxSurgePod: '2'
|
|
kubesphere.io/minAvailablePod: '1'
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ms-manager-saas
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ms-manager-saas
|
|
spec:
|
|
containers:
|
|
- name: ms-manager-saas
|
|
image: $REGISTRY/$HARBOR_NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: tcp-80
|
|
containerPort: 80
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 500Mi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 10Mi
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
imagePullPolicy: IfNotPresent
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 30
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 25%
|
|
maxSurge: 25%
|
|
revisionHistoryLimit: 10
|
|
progressDeadlineSeconds: 600 |