apiVersion: apps/v1
kind: Deployment
metadata:
  name: paint
  namespace: js-days
spec:
  selector:
    matchLabels:
      app: paint
  template:
    metadata:
      labels:
        app: paint
    spec:
      containers:
      - name: main
        image: jsdays2021.azurecr.io/paint:latest
        imagePullPolicy: Always
        resources:
          requests:
            memory: "48Mi"
            cpu: "100m"
          limits:
            memory: "64Mi"
            cpu: "150m"
        readinessProbe:
          httpGet:
            path: /favicon.ico
            port: http
        livenessProbe:
          httpGet:
            path: /favicon.ico
            port: http
        ports:
        - containerPort: 80
          name: http
