Last active
July 15, 2018 16:02
-
-
Save pichuang/4b97d62a2d8b89974fd25fc6be199b6a to your computer and use it in GitHub Desktop.
Create PV
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
mkdir -p /var/lib/docker/pv/{01..10} | |
chmod g+w /var/lib/docker/pv/{01..10} | |
chcon -Rt svirt_sandbox_file_t /var/lib/docker/pv/ |
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
oc new-app --param PV=01 -f pv.yml | |
oc new-app --param PV=02 -f pv.yml | |
oc new-app --param PV=03 -f pv.yml | |
oc new-app --param PV=04 -f pv.yml | |
oc new-app --param PV=05 -f pv.yml | |
oc new-app --param PV=06 -f pv.yml | |
oc new-app --param PV=07 -f pv.yml | |
oc new-app --param PV=08 -f pv.yml | |
oc new-app --param PV=09 -f pv.yml | |
oc new-app --param PV=10 -f pv.yml |
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
--- | |
apiVersion: v1 | |
kind: Template | |
metadata: | |
creationTimestamp: null | |
name: "system" | |
objects: | |
- apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: pv${PV} | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
- ReadWriteMany | |
capacity: | |
storage: 10Gi | |
persistentVolumeReclaimPolicy: Recycle | |
hostPath: | |
path: ${PATH}/${PV} | |
parameters: | |
- name: PV | |
required: true | |
- name: PATH | |
value: /var/lib/docker/pv | |
required: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/VinayBhalerao/3scale-on-prem-install