# Copyright (c) Microsoft Corporation and Dapr Contributors.
# Licensed under the MIT License.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: demoactorapp
  labels:
    app: demoactor
spec:
  replicas: 1
  selector:
    matchLabels:
      app: demoactor
  template:
    metadata:
      labels:
        app: demoactor
      annotations:
        dapr.io/enabled: "true"
        dapr.io/app-id: "demoactor"
        dapr.io/app-port: "3000"
    spec:
      containers:
      - name: demoactor
        image: demo_actor:latest  # EDIT HERE: Replace the image nmae with [docker registry]/demo_actor:latest
        command: ["uvicorn"]
        args: ["--port", "3000", "--reload-dir", "/app", "demo_actor_service:app"]
        ports:
        - containerPort: 3000
        imagePullPolicy: Always
