-
Notifications
You must be signed in to change notification settings - Fork 34
/
app-deployment.yaml
53 lines (53 loc) · 1.28 KB
/
app-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-deployment
spec:
selector:
matchLabels:
app: frontend
replicas: 3
template:
metadata:
labels:
app: frontend
# tags.datadoghq.com/env: "production"
# tags.datadoghq.com/service: "my-frontend-app"
# tags.datadoghq.com/version: "v1.9.3"
# annotations:
# ad.datadoghq.com/frontend.check_names: '["app-metrics"]'
# ad.datadoghq.com/frontend.init_configs: '[{}]'
# ad.datadoghq.com/frontend.instances: |
# [
# {
# "prometheus_url": "http://frontend-service:80/metrics",
# "namespace": "mvc_kubernetes",
# "metrics": [ {"dotnet_total_memory_bytes": "prometheus.dotnet.total.memory.bytes"}]
# }
# ]
spec:
containers:
- name: frontend
image: aaacr.azurecr.io/web-app:1.0
ports:
- containerPort: 80
resources:
limits:
cpu: 300m
memory: "100Mi"
requests:
cpu: 100m
memory: "50Mi"
---
kind: Service
apiVersion: v1
metadata:
name: frontend-service
spec:
selector:
app: frontend
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer