-
Notifications
You must be signed in to change notification settings - Fork 209
/
aspnet.yaml
47 lines (47 loc) · 907 Bytes
/
aspnet.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: sampleapp
name: aspnetcore
spec:
replicas: 2
selector:
matchLabels:
app: aspnetcore
template:
metadata:
labels:
app: aspnetcore
spec:
containers:
- name: aspnetcore
image: devopsjourneymay2024acr.azurecr.io/devopsjourney:latest
imagePullPolicy: Always
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
ports:
- containerPort: 80
env:
- name: APPINSIGHTS_INSTRUMENTATIONKEY
valueFrom:
secretKeyRef:
name: aikey
key: aisecret
---
apiVersion: v1
kind: Service
metadata:
name: aspnetcore
namespace: sampleapp
spec:
type: LoadBalancer
ports:
- port: 80
selector:
app: aspnetcore