apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: score-app
    env: qa
  name: sotr-app
  namespace: mlops
spec:
  replicas: 2 # Creating two PODs for our app
  selector:
    matchLabels:
      app: sotr-app
  template:
    metadata:
      labels:
        app: sotr-app
        env: qa
    spec:
      containers:
      - image: wsosnowski2/sotr # Docker image name, that we pushed to GCR
        name: sotr-project     # POD name
        ports:
        - containerPort: 8010
          protocol: TCP