quickstarts/tutorials/pub-sub/deploy/python-subscriber.yaml

27 lines
592 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: python-subscriber
labels:
app: python-subscriber
spec:
replicas: 1
selector:
matchLabels:
app: python-subscriber
template:
metadata:
labels:
app: python-subscriber
annotations:
dapr.io/enabled: "true"
dapr.io/app-id: "python-subscriber"
dapr.io/app-port: "5001"
spec:
containers:
- name: python-subscriber
image: ghcr.io/dapr/samples/pubsub-python-subscriber:latest
ports:
- containerPort: 5001
imagePullPolicy: Always