apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/instance: adt-ui
  name: csi-adt-ui
  namespace: csi-uat
spec:
  replicas: 1
  selector:
    matchLabels:
      app: csi-adt-ui
      tier: frontend
      track: stable
  template:
    metadata:
      labels:
        app: csi-adt-ui
        tier: frontend
        track: stable
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            - labelSelector:
                matchExpressions:
                  - key: app
                    operator: In
                    values:
                      - csi-adt-ui
              topologyKey: kubernetes.io/hostname
      containers:
        - image: registry.cloudsolutions.com.sa/vida-qa/csi-pms-adt-ui:4.3.239.0_qa
          imagePullPolicy: IfNotPresent
          name: csi-adt-ui
          ports:
            - containerPort: 80
              name: http
          resources:
            limits:
              memory: 100Mi
            requests:
              cpu: 2m
              memory: 25Mi
      imagePullSecrets:
        - name: regcred