-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaemonset-installer.yaml
55 lines (53 loc) · 1.46 KB
/
daemonset-installer.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: &name install-soci
labels:
app: *name
spec:
selector:
matchLabels:
app: *name
template:
metadata:
labels:
app: *name
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node.kubernetes.io/instance-type
operator: In
# This is here as an example - you can likely install
# to any instance type.
values:
- m5.4xlarge
hostNetwork: true
hostPID: true
containers:
- image: ghcr.io/converged-computing/soci-installer:latest
imagePullPolicy: Always
name: *name
# nsenter enters the process of the running host (vs. container)
# You can sleep infinity and nsenter with bash to test or debug
# command: ["sleep", "infinity"]
command: ["/bin/bash"]
# This takes the soci version on GitHub, the release tag (no "v")
args: ["/soci-install/entrypoint.sh", "0.7.0"]
resources:
requests:
{}
limits:
{}
securityContext:
privileged: true
volumeMounts:
- name: hostpath
mountPath: /mnt/install
volumes:
- name: hostpath
hostPath:
path: /mnt/install
type: DirectoryOrCreate