Created
March 30, 2021 17:56
-
-
Save jrafanie/5060954bb544559fdd92089ca0c32397 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On my fyre infra node, I noticed there was already an nfs PV for the registry storage and I couldn’t figure out how to export a new nfs properly so I just copied it. | |
[root@jrafanie-inf data]# cat ~/image-pv.yaml | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: registry-storage | |
spec: | |
capacity: | |
storage: 200Gi | |
accessModes: | |
- ReadWriteMany | |
nfs: | |
path: /data/registry | |
server: x.x.x.x | |
persistentVolumeReclaimPolicy: Recycle | |
So, I copied it: | |
[root@jrafanie-inf data]# cat ~/pg-pv.yaml | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: pv0001 | |
spec: | |
storageClassName: manual | |
capacity: | |
storage: 16Gi | |
accessModes: | |
- ReadWriteOnce | |
nfs: | |
path: /data/pv0001 | |
server: x.x.x.x | |
persistentVolumeReclaimPolicy: Recycle | |
cd /data | |
rm -rf /data/pv0001; mkdir -m 0775 /data/pv0001 | |
oc delete pv/pv0001 | |
oc create -f ~/pg-pv.yaml | |
[root@jrafanie-inf data]# ls -altr /data | |
total 0 | |
drwxrwxrwx. 2 root root 6 Feb 6 2020 registry | |
dr-xr-xr-x. 18 root root 256 Feb 6 2020 .. | |
drwxrwxrwx. 4 root root 36 Mar 30 07:35 . | |
drwxrwxr-x 3 root root 22 Mar 30 07:45 pv0001 | |
I ensured my cr had storageClassName: manual like was in the pv above: | |
apiVersion: manageiq.org/v1alpha1 | |
kind: ManageIQ | |
metadata: | |
name: miq | |
spec: | |
applicationDomain: jrafanie-testing | |
... | |
storageClassName: manual | |
oc create -f deploy/crds/manageiq.org_manageiqs_crd.yaml; oc create -f deploy/role.yaml; oc create -f deploy/role_binding.yaml; oc create -f deploy/service_account.yaml; oc create -f deploy/crds/manageiq.org_v1alpha1_manageiq_cr.yaml; oc create -f deploy/operator.yaml | |
Note, I only needed to create the cr and operator above when I previously created the crd, role/role_bindings, service account, etc. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment