apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: yuanqisenlin-web
  name: yuanqisenlin-web-deploy
  namespace: digital
  
spec:
  replicas: 1
  selector:
    matchLabels:
      app: yuanqisenlin-web
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: yuanqisenlin-web
    spec:
      containers:
        - image: ${IMAGE_NAME}
          imagePullPolicy: IfNotPresent
          name: yuanqisenlin-web
          resources:
            limits:
              cpu: '2'
              memory: 1024Mi
            requests:
              cpu: 1000m
              memory: 512Mi
      imagePullSecrets:
        - name: regsecret
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
