---
# Source: robot-shop/templates/shipping-deployment-hang-1.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: shipping-hang-1
  labels:
    service: shipping
spec:
  replicas: 0
  selector:
    matchLabels:
      service: shipping
  template:
    metadata:
      labels:
        service: shipping
        version: 2.0.13-hang-1
    spec:
      
      containers:
      - name: shipping
        image: sysobs/rs-shipping:2.0.13-hang-1
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 8080
        # it's Java it needs lots of memory
        resources:
          limits:
            cpu: 2000m
            memory: 2000Mi
          requests:
            cpu: 100m
            memory: 500Mi
        readinessProbe:
          httpGet:
            path: /health
            port: 8080
          initialDelaySeconds: 5
          periodSeconds: 5
          failureThreshold: 30
          successThreshold: 1
      restartPolicy: Always
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: beta.kubernetes.io/instance-type
                operator: In
                values:
                - t3.large
              - key: node.kubernetes.io/instance-type
                operator: In
                values:
                - t3.large
