Skip to content

Commit

Permalink
adding an ocp4_aio_odflite option with lowered odf req
Browse files Browse the repository at this point in the history
  • Loading branch information
hgeaydem committed Sep 1, 2022
1 parent ffa0b2e commit c397ef8
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 2 deletions.
3 changes: 2 additions & 1 deletion defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ocp4_aio_nanodf: False
ocp4_aio_nanodf: False
ocp4_aio_odflite: False
59 changes: 59 additions & 0 deletions files/storage-cluster-lite.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
apiVersion: ocs.openshift.io/v1
kind: StorageCluster
metadata:
name: ocs-storagecluster
namespace: openshift-storage
spec:
resources:
mon:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 125m
memory: 1Gi
mds:
limits:
cpu: 3
memory: 256Mi
requests:
cpu: 125m
memory: 128Mi
mgr:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 125m
memory: 512Mi
rgw:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 125m
memory: 256Mi
manageNodes: false
monDataDirHostPath: /var/lib/rook
storageDeviceSets:
- count: 2
dataPVCTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
storageClassName: localblock
volumeMode: Block
name: ocs-deviceset
resources:
limits:
cpu: 2
memory: 3Gi
requests:
cpu: 2
memory: 1500Mi
placement: {}
portable: false
replica: 3
15 changes: 14 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,20 @@
retries: 20
delay: 30
until: storage_cluster_success is not failed
when: not ocp4_aio_nanodf
when: not ocp4_aio_nanodf and not ocp4_aio_odflite

- name: Apply lightweight storage-cluster configuration
k8s:
state: present
definition: "{{ lookup('file', 'storage-cluster-lite.yaml') }}"
register: storage_cluster_success
retries: 20
delay: 30
until: storage_cluster_success is not failed
when:
- not ocp4_aio_nanodf
- ocp4_aio_odflite


- name: Apply Extra config for rook for ODF Nano
k8s:
Expand Down

0 comments on commit c397ef8

Please sign in to comment.