-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenebs-ubuntu-setup.yaml
43 lines (43 loc) · 1.08 KB
/
openebs-ubuntu-setup.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
namespace: openebs
name: openebs-ubuntu-init
labels:
openebs.io/component-name: openebs-ubuntu-init
openebs.io/version: 1.4.0
annotations:
command: &cmd apt-get update -qy && apt-get install -qy open-iscsi xfsprogs && sudo systemctl enable iscsid && sudo systemctl start iscsid
spec:
selector:
matchLabels:
openebs.io/component-name: openebs-ubuntu-init
openebs.io/version: 1.4.0
template:
metadata:
labels:
openebs.io/component-name: openebs-ubuntu-init
openebs.io/version: 1.4.0
spec:
hostNetwork: true
initContainers:
- name: init-node
command:
- nsenter
- --mount=/proc/1/ns/mnt
- --
- sh
- -c
- *cmd
image: alpine:3.7
securityContext:
privileged: true
hostPID: true
containers:
- name: wait
image: k8s.gcr.io/pause:3.1
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
updateStrategy:
type: RollingUpdate