-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.helm
More file actions
executable file
·80 lines (59 loc) · 2.69 KB
/
Copy pathsetup.helm
File metadata and controls
executable file
·80 lines (59 loc) · 2.69 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
70
71
72
73
74
75
76
#!/bin/bash
set -x
# Create a Tiller Account
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
helm init --service-account tiller --upgrade
# Create cluster role binding
kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
# Disable RBACK
kubectl apply -f https://raw.githubusercontent.com/openstack/openstack-helm/master/tools/kubeadm-aio/assets/opt/rbac/dev.yaml
# Init helm
helm init
# Serve local helm charts
helm serve &
wait 2
# Serve add repo charts
helm repo add local http://localhost:8879/charts
wait 2
make -C ${PWD}
# Label Nodes roles
kubectl label nodes ceph-mon=enabled --all
kubectl label nodes ceph-osd=enabled --all
kubectl label nodes ceph-mds=enabled --all
kubectl label nodes ceph-rgw=enabled --all
kubectl label nodes ceph=enabled --all
kubectl label nodes openvswitch=enabled --all
kubectl label nodes openstack-compute-node=enabled --all
kubectl label nodes openstack-control-plane=enabled --all
# Label nodes devices
kubectl label node fat-14 cephosd-device-scsi-0-0.0.5=enabled
kubectl label node fat-15 cephosd-device-scsi-0-0.0.5=enabled
kubectl label node fat-16 cephosd-device-scsi-0-0.0.5=enabled
kubectl label node fat-17 cephosd-device-scsi-0-0.0.5=enabled
kubectl label node fat-14 cephosd-device-scsi-0-0.0.6=enabled
kubectl label node fat-15 cephosd-device-scsi-0-0.0.6=enabled
kubectl label node fat-16 cephosd-device-scsi-0-0.0.6=enabled
kubectl label node fat-17 cephosd-device-scsi-0-0.0.6=enabled
kubectl label node fat-14 cephosd-device-scsi-0-0.0.7=enabled
kubectl label node fat-15 cephosd-device-scsi-0-0.0.7=enabled
kubectl label node fat-16 cephosd-device-scsi-0-0.0.7=enabled
kubectl label node fat-17 cephosd-device-scsi-0-0.0.7=enabled
#Label Network
export OSD_CLUSTER_NETWORK=10.20.44.0/24
export OSD_PUBLIC_NETWORK=10.20.44.0/24
export CEPH_RGW_KEYSTONE_ENABLED=true
sudo helm install --namespace=ceph ${PWD}/ceph --name=ceph \
--set endpoints.identity.namespace=openstack \
--set endpoints.object_store.namespace=ceph \
--set endpoints.ceph_mon.namespace=ceph \
--set ceph.rgw_keystone_auth=${CEPH_RGW_KEYSTONE_ENABLED} \
--set network.public=${OSD_PUBLIC_NETWORK} \
--set network.cluster=${OSD_CLUSTER_NETWORK} \
--set deployment.storage_secrets=true \
--set deployment.ceph=true \
--set deployment.rbd_provisioner=true \
--set deployment.client_secrets=true \
--set deployment.rgw_keystone_user_and_endpoints=false \
--set bootstrap.enabled=true