---
apiVersion: apps/v1
kind: "Deployment"
metadata:
  name: "streaming-movie-ratings"
  namespace: "default"
  labels:
    app: "streaming-movie-ratings"
spec:
  replicas: 1
  selector:
    matchLabels:
      app: "streaming-movie-ratings"
  template:
    metadata:
      labels:
        app: "streaming-movie-ratings"
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            - labelSelector:
                matchExpressions:
                  - key: app
                    operator: In
                    values:
                      - "streaming-movie-ratings"
              topologyKey: "kubernetes.io/hostname"
      containers:
        - name: streaming-movie-ratings
          image: gamov-docker.jfrog.io/dev/streaming-movie-ratings:latest
          env:
            - name: JAVA_TOOL_OPTIONS
              value: -DLOGLEVEL=INFO
      imagePullSecrets:
        - name: regcred
