forked from MicrosoftDocs/mslearn-dotnet-cloudnative-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct.yml
28 lines (28 loc) · 803 Bytes
/
product.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
apiVersion: apps/v1
kind: Deployment
metadata:
name: productservice
spec:
selector: # Define the wrapping strategy
matchLabels: # Match all pods with the defined labels
app: productservice # Labels follow the `name: value` template
template: # This is the template of the pod inside the deployment
metadata:
labels:
app: productservice
spec:
nodeSelector:
kubernetes.io/os: linux
containers:
- image: [replace with your ACR name].azurecr.io/productservice:latest
name: productservice
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
ports:
- containerPort: 8080
name: http