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