-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathdeploy.yaml
76 lines (76 loc) · 2.19 KB
/
deploy.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: apps/v1
kind: Deployment
metadata:
name: akstest
spec:
replicas: 1
selector:
matchLabels:
app: akstest
template:
metadata:
labels:
app: akstest
spec:
restartPolicy: Always
securityContext:
fsGroup: 1654 # Default APP_ID for the aspnetapp image
containers:
- name: publishedapp
image: mcr.microsoft.com/dotnet/samples:aspnetapp
imagePullPolicy: Always
env:
- name: ASPNETCORE_URLS
value: http://+:8080
- name: DOTNET_DiagnosticPorts
value: /diag/port.sock
volumeMounts:
- mountPath: /diag
name: diagvol
resources:
limits:
cpu: 250m
memory: 512Mi
- name: monitor
image: mcr.microsoft.com/dotnet/monitor:8
imagePullPolicy: Always
env:
- name: DotnetMonitor_DiagnosticPort__ConnectionMode
value: 'Listen'
- name: DotnetMonitor_DiagnosticPort__EndpointName
value: /diag/port.sock
# ALWAYS use the HTTPS form of the URL for deployments in production; the removal of HTTPS is done for
# demonstration purposes only in this example. Please continue reading after this example for further details.
- name: DotnetMonitor_Urls
value: 'http://localhost:52323'
- name: DotnetMonitor_Storage__DumpTempFolder
value: /diag/dumps
- name: DotnetMonitor_Logging__Console__FormatterName
value: simple
volumeMounts:
- mountPath: /diag
name: diagvol
- mountPath: /etc/dotnet-monitor
name: dotnet-monitor-config
resources:
requests:
cpu: 50m
memory: 32Mi
limits:
cpu: 250m
memory: 256Mi
volumes:
- name: diagvol
emptyDir: {}
- name: dotnet-monitor-config
projected:
defaultMode: 400
sources:
- configMap:
name: dotnet-monitor-egress
optional: false
- configMap:
name: dotnet-monitor-triggers
optional: false
- secret:
name: apikey