# deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  labels:
    app: sun-celery
    release: sun-celery
  name: sun-celery
spec:
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: sun-celery
      release: sun-celery
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: sun-celery
        release: sun-celery
    spec:
      containers:
      - args:
        - worker
        - -A
        - api
        - -c8
        - --loglevel=INFO
        - --maxtasksperchild
        - "500"
        command:
        - celery
        image: ccr.ccs.tencentyun.com/gm-ai/like-sun:<IMAGE_TAG>
        imagePullPolicy: Always
        name: sun
      imagePullSecrets:
      - name: gm-secret
      restartPolicy: Always
