Skip to content

Commit 0036354

Browse files
committed
Merge branch 'adding-helm' into 'main'
Add helm charts See merge request smarter-project/smarter-device-manager!1
2 parents fe5dca8 + c42e925 commit 0036354

File tree

5 files changed

+142
-0
lines changed

5 files changed

+142
-0
lines changed

chart/.helmignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj
22+
.vscode/
23+
# OWNERS file for Kubernetes
24+
OWNERS
25+
# helm-docs templates
26+
*.gotmpl

chart/Chart.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apiVersion: v2
2+
name: smarter-device-manager
3+
description: smarter-device-manager chart for SMARTER edge devices
4+
home: https://gitlab.com/smarter-project/smarter-device-manager/helm
5+
version: 0.0.2
6+
appVersion: v1.20.11
7+
kubeVersion: ">=1.16.0-0"
8+
keywords:
9+
- kubernetes
10+
- device
11+
- hardware
12+
sources:
13+
- https://gitlab.com/smarter-project/smarter-device-manager
14+
#dependencies:
15+
# - name: smarter-common
16+
# repository: https://gitlab.com/smarter-project/documentation
17+
# version: 0.0.1
18+
19+
annotations:
20+
artifacthub.io/changes: |
21+
- Fix template
22+
- Add annotations
23+
artifacthub.io/license: Apache-2.0
24+
artifacthub.io/maintainers: |
25+
- name: Alexandre Ferreira
26+
27+
artifacthub.io/prerelease: "false"
28+
artifacthub.io/signKey: |
29+
fingerprint: 82AD709FEC4ECA4C84B093889BDC9DE410CFC23B
30+
url: https://keybase.io/alexandref75/pgp_keys.asc

chart/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# smarter-device-manager
2+
3+
## TL;DR
4+
5+
```console
6+
helm install smarter-device-manager chart
7+
```
8+

chart/templates/common.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
apiVersion: apps/v1
2+
kind: DaemonSet
3+
metadata:
4+
name: {{ .Values.application.appName }}
5+
namespace: {{ .Values.application.namespace }}
6+
labels:
7+
name: {{ .Values.application.appName }}
8+
role: agent
9+
spec:
10+
selector:
11+
matchLabels:
12+
name: {{ .Values.application.appName }}
13+
updateStrategy:
14+
type: RollingUpdate
15+
template:
16+
metadata:
17+
labels:
18+
name: {{ .Values.application.appName }}
19+
annotations:
20+
node.kubernetes.io/bootstrap-checkpoint: "true"
21+
spec:
22+
nodeSelector:
23+
smarter-device-manager : enabled
24+
tolerations:
25+
- key: "smarter.type"
26+
operator: "Equal"
27+
value: "edge"
28+
effect: "NoSchedule"
29+
priorityClassName: "system-node-critical"
30+
hostname: {{ .Values.application.appName }}
31+
hostNetwork: true
32+
dnsPolicy: ClusterFirstWithHostNet
33+
containers:
34+
- name: {{ .Values.application.appName }}
35+
image: {{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}
36+
imagePullPolicy: {{ .Values.pullPolicy }}
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop: ["ALL"]
41+
resources:
42+
limits:
43+
cpu: 100m
44+
memory: 15Mi
45+
requests:
46+
cpu: 10m
47+
memory: 15Mi
48+
volumeMounts:
49+
- name: device-plugin
50+
mountPath: /var/lib/kubelet/device-plugins
51+
- name: dev-dir
52+
mountPath: /dev
53+
- name: sys-dir
54+
mountPath: /sys
55+
volumes:
56+
- name: device-plugin
57+
hostPath:
58+
path: /var/lib/kubelet/device-plugins
59+
- name: dev-dir
60+
hostPath:
61+
path: /dev
62+
- name: sys-dir
63+
hostPath:
64+
path: /sys
65+
terminationGracePeriodSeconds: 30
66+

chart/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
3+
application:
4+
namespace: smarter
5+
appName: smarter-device-manager
6+
7+
image:
8+
repository: registry.gitlab.com/arm-research/smarter/smarter-device-manager
9+
#repository: registry.gitlab.com/smarter-project/smarter-device-manager
10+
# @default -- chart.appVersion
11+
tag: ""
12+
pullPolicy: IfNotPresent

0 commit comments

Comments
 (0)