apiVersion: apps/v1
kind: Deployment
metadata:
  name: opendesign-datapertus-test-deployment
  namespace: opendesign-datapertus-test
spec:
  replicas: 2
  strategy:
    rollingUpdate:
      maxUnavailable: 1
    type: RollingUpdate
  selector:
    matchLabels:
      app: opendesign-datapertus-test
  template:
    metadata:
      labels:
        app: opendesign-datapertus-test
    spec:
      containers:
      - name: opendesign-datapertus-test
        image: swr.cn-north-4.myhuaweicloud.com/opensourceway/dataset-test:v0.0.1
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 8080
          name: http
          protocol: TCP
      imagePullSecrets:
      - name: huawei-swr-image-pull-secret
