forked from DylanGraham/sydney-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
08-ceph-radosgateway.sh
executable file
·29 lines (26 loc) · 1.08 KB
/
08-ceph-radosgateway.sh
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
#!/bin/bash
set -x
#NOTE: Deploy command
WORK_DIR=/opt/openstack-helm
helm install --namespace=openstack ${WORK_DIR}/ceph --name=radosgw-openstack \
--set endpoints.identity.namespace=openstack \
--set endpoints.object_store.namespace=ceph \
--set endpoints.ceph_mon.namespace=ceph \
--set ceph.rgw_keystone_auth=true \
--set network.public=172.17.0.1/16 \
--set network.cluster=172.17.0.1/16 \
--set deployment.storage_secrets=false \
--set deployment.ceph=false \
--set deployment.rbd_provisioner=false \
--set deployment.client_secrets=false \
--set deployment.rgw_keystone_user_and_endpoints=true \
--values=${WORK_DIR}/tools/overrides/mvp/ceph.yaml
#NOTE: Wait for deploy
export KUBECONFIG=${HOME}/.kube/config
/opt/openstack-helm/tools/kubeadm-aio/assets/usr/bin/wait-for-kube-pods openstack
#NOTE: Validate Deployment info
helm status radosgw-openstack
export OS_CLOUD=openstack_helm
openstack service list
openstack container create 'mygreatcontainer'
openstack object create --name 'superimportantfile.jpg' 'mygreatcontainer' /home/ubuntu/important-file.jpg