mirror of https://github.com/dapr/quickstarts.git
28 lines
581 B
YAML
28 lines
581 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: subtractapp
|
|
labels:
|
|
app: subtract
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: subtract
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: subtract
|
|
annotations:
|
|
dapr.io/enabled: "true"
|
|
dapr.io/app-id: "subtractapp"
|
|
dapr.io/app-port: "80"
|
|
dapr.io/config: "appconfig"
|
|
spec:
|
|
containers:
|
|
- name: subtract
|
|
image: ghcr.io/dapr/samples/distributed-calculator-csharp:latest
|
|
ports:
|
|
- containerPort: 80
|
|
imagePullPolicy: Always
|