-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeployment.yaml
More file actions
69 lines (69 loc) · 1.73 KB
/
deployment.yaml
File metadata and controls
69 lines (69 loc) · 1.73 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: shelly-exporter
namespace: monitoring
labels:
app.kubernetes.io/name: shelly-exporter
app.kubernetes.io/component: exporter
spec:
replicas: 1
selector:
matchLabels:
app: shelly-exporter
template:
metadata:
labels:
app: shelly-exporter
app.kubernetes.io/name: shelly-exporter
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9090"
prometheus.io/path: "/metrics"
spec:
containers:
- name: shelly-exporter
image: ghcr.io/tj-smith47/shelly-cli:latest
args:
- metrics
- prometheus
- --port
- "9090"
ports:
- containerPort: 9090
name: metrics
protocol: TCP
volumeMounts:
- name: config
mountPath: /root/.config/shelly
readOnly: true
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 100m
memory: 64Mi
livenessProbe:
httpGet:
path: /metrics
port: 9090
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /metrics
port: 9090
initialDelaySeconds: 5
periodSeconds: 10
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: false
allowPrivilegeEscalation: false
volumes:
- name: config
configMap:
name: shelly-config
securityContext:
seccompProfile:
type: RuntimeDefault