Skip to content

Commit 2e9a1f6

Browse files
author
kmova
committed
feat(install):provide setup file for amazon linux
Signed-off-by: kmova <kiran.mova@mayadata.io>
1 parent b25f882 commit 2e9a1f6

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

docs/openebs-amazonlinux-setup.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
apiVersion: extensions/v1beta1
3+
kind: DaemonSet
4+
metadata:
5+
namespace: openebs
6+
name: openebs-amazonlinux-init
7+
labels:
8+
openebs.io/component-name: openebs-amazonlinux-init
9+
openebs.io/version: 1.4.0
10+
annotations:
11+
command: &cmd yum install iscsi-initiator-utils -y && sudo systemctl enable iscsid && sudo systemctl start iscsid
12+
spec:
13+
selector:
14+
matchLabels:
15+
openebs.io/component-name: openebs-amazonlinux-init
16+
template:
17+
metadata:
18+
labels:
19+
openebs.io/component-name: openebs-amazonlinux-init
20+
spec:
21+
hostNetwork: true
22+
initContainers:
23+
- name: init-node
24+
command:
25+
- nsenter
26+
- --mount=/proc/1/ns/mnt
27+
- --
28+
- sh
29+
- -c
30+
- *cmd
31+
image: alpine:3.7
32+
securityContext:
33+
privileged: true
34+
hostPID: true
35+
containers:
36+
- name: wait
37+
image: k8s.gcr.io/pause:3.1
38+
hostPID: true
39+
hostNetwork: true
40+
tolerations:
41+
- effect: NoSchedule
42+
key: node-role.kubernetes.io/master
43+
updateStrategy:
44+
type: RollingUpdate

docs/openebs-ubuntu-setup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
openebs.io/component-name: openebs-ubuntu-init
99
openebs.io/version: 1.4.0
1010
annotations:
11-
command: &cmd apt-get update -qy && apt-get install -qy open-iscsi xfsprogs
11+
command: &cmd apt-get update -qy && apt-get install -qy open-iscsi xfsprogs && sudo systemctl enable iscsid && sudo systemctl start iscsid
1212
spec:
1313
selector:
1414
matchLabels:

0 commit comments

Comments
 (0)