Skip to content

Commit

Permalink
Merge pull request #744 from fmount/ceph_datasize
Browse files Browse the repository at this point in the history
Use kustomize to update the Ceph Pod OSD data size
  • Loading branch information
openshift-merge-bot[bot] authored Feb 28, 2024
2 parents 196e06e + 696c2fb commit 6f8b206
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/gen-ceph-kustomize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ CEPH_TIMEOUT=${CEPH_TIMEOUT:-30}
CEPH_HOSTNETWORK=${CEPH_HOSTNETWORK:-true}
CEPH_POOLS=("volumes" "images" "backups" "cephfs.cephfs.meta" "cephfs.cephfs.data")
CEPH_DAEMONS="osd,mds,rgw"
CEPH_DATASIZE=${CEPH_DATASIZE:-500Mi}
CEPH_DATASIZE=${CEPH_DATASIZE:-2Gi}
CEPH_WORKER=${CEPH_WORKER:-""}
CEPH_MON_CONF=${CEPH_MON_CONF:-""}
CEPH_DEMO_UID=${CEPH_DAEMON:-0}
Expand Down Expand Up @@ -122,6 +122,16 @@ patches:
- op: replace
path: /spec/containers/0/image
value: $CEPH_IMAGE
- op: replace
path: /spec/volumes/0/emptyDir/sizeLimit
value: $CEPH_DATASIZE
- op: replace
path: /spec/volumes/1/emptyDir/sizeLimit
value: $CEPH_DATASIZE
- op: replace
path: /spec/volumes/2/emptyDir/sizeLimit
value: $CEPH_DATASIZE
EOF

if [ -n "${NETWORKS_ANNOTATION}" ]; then
Expand Down

0 comments on commit 6f8b206

Please sign in to comment.