apiVersion: apps/v1
kind: Deployment
metadata:
  name: dongtai-engine
  namespace: iast-dev
  annotations:
    kubesphere.io/description: dongtai-engine
  labels:
    app: dongtai-engine
spec:
  replicas: 1
  selector:
    matchLabels:
      app: dongtai-engine
  template:
    metadata:
      labels:
        app: dongtai-engine
    spec:
      containers:
        - name: dongtai-engine-container
          image: registry.cn-beijing.aliyuncs.com/secnium/iast-saas-engine-dev:VERSION
          imagePullPolicy: Always
          volumeMounts:
            - name: configfile
              mountPath: /opt/dongtai/engine/conf/config.ini
              subPath: config.ini
          resources:
            limits:
              cpu: "500m"
              memory: 1000Mi
            requests:
              cpu: "500m"
              memory: 1000Mi
          env:
            - name: "active.profile"
              value: "TEST"
      volumes:
        - name: configfile
          secret:
            secretName: dongtai-iast-config.ini
      imagePullSecrets:
        - name: aliyun-registry-secret
