File tree Expand file tree Collapse file tree 1 file changed +94
-0
lines changed
Expand file tree Collapse file tree 1 file changed +94
-0
lines changed Original file line number Diff line number Diff line change 1+ # deployment/dashboard.yaml
2+ apiVersion : v1
3+ kind : Service
4+ metadata :
5+ name : dashboard
6+ namespace : autoshield-system
7+ labels :
8+ app : autoshield
9+ component : dashboard
10+ spec :
11+ ports :
12+ - port : 8081
13+ targetPort : 8081
14+ name : http
15+ - port : 9090
16+ targetPort : 9090
17+ name : metrics
18+ selector :
19+ app : autoshield
20+ component : dashboard
21+ ---
22+ apiVersion : apps/v1
23+ kind : Deployment
24+ metadata :
25+ name : dashboard
26+ namespace : autoshield-system
27+ labels :
28+ app : autoshield
29+ component : dashboard
30+ spec :
31+ replicas : 1
32+ selector :
33+ matchLabels :
34+ app : autoshield
35+ component : dashboard
36+ template :
37+ metadata :
38+ labels :
39+ app : autoshield
40+ component : dashboard
41+ spec :
42+ serviceAccountName : dashboard
43+ containers :
44+ - name : dashboard
45+ image : autoshield/dashboard:latest
46+ imagePullPolicy : IfNotPresent
47+ ports :
48+ - containerPort : 8081
49+ name : http
50+ - containerPort : 9090
51+ name : metrics
52+ env :
53+ - name : PROMETHEUS_URL
54+ value : " http://prometheus-operated.monitoring:9090"
55+ - name : ALERTMANAGER_URL
56+ value : " http://alertmanager-operated.monitoring:9093"
57+ resources :
58+ requests :
59+ memory : " 256Mi"
60+ cpu : " 250m"
61+ limits :
62+ memory : " 512Mi"
63+ cpu : " 500m"
64+ readinessProbe :
65+ httpGet :
66+ path : /health
67+ port : 8081
68+ initialDelaySeconds : 10
69+ periodSeconds : 5
70+ livenessProbe :
71+ httpGet :
72+ path : /health
73+ port : 8081
74+ initialDelaySeconds : 30
75+ periodSeconds : 10
76+ volumeMounts :
77+ - name : grafana-dashboards
78+ mountPath : /app/monitoring/grafana/dashboards
79+ readOnly : true
80+ volumes :
81+ - name : grafana-dashboards
82+ configMap :
83+ name : grafana-dashboards
84+ ---
85+ apiVersion : v1
86+ kind : ConfigMap
87+ metadata :
88+ name : grafana-dashboards
89+ namespace : autoshield-system
90+ data :
91+ autoshield-overview.json : |
92+ # [Paste the overview.json content here]
93+ autoshield-detection.json : |
94+ # [Paste the detection.json content here]
You can’t perform that action at this time.
0 commit comments