Compare commits
2 Commits
e8eeb281cf
...
53c78e39fc
| Author | SHA1 | Date | |
|---|---|---|---|
| 53c78e39fc | |||
| af8990759a |
@ -206,6 +206,13 @@ spec:
|
|||||||
EOF
|
EOF
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src tmux
|
||||||
|
# Break the storage class for exercise five
|
||||||
|
oc patch storageclass ocs-storagecluster-ceph-rbd --type='merge' --patch-file /dev/stdin <<-EOF
|
||||||
|
allowVolumeExpansion: false
|
||||||
|
EOF
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
* Automated scenario population
|
* Automated scenario population
|
||||||
|
|
||||||
@ -560,8 +567,40 @@ EOF
|
|||||||
|
|
||||||
** Exercise five - How do I resize virtual machine disks again?
|
** Exercise five - How do I resize virtual machine disks again?
|
||||||
|
|
||||||
asdas
|
#+begin_src tmux
|
||||||
|
# Patch the storageclass to enable volume expansion
|
||||||
|
oc patch storageclass ocs-storagecluster-ceph-rbd --type='merge' --patch-file /dev/stdin <<-EOF
|
||||||
|
allowVolumeExpansion: true
|
||||||
|
EOF
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src tmux
|
||||||
|
# Patch the claim to increase sizea
|
||||||
|
oc --namespace super-important-dont-deleteme patch persistentvolumeclaim cryto-carnivore-cpuminer3000 --type='merge' --patch-file /dev/stdin <<-EOF
|
||||||
|
spec:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 60Gi
|
||||||
|
EOF
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src tmux
|
||||||
|
# Create new claim for wannacry volume
|
||||||
|
cat << EOF | oc --namespace super-important-dont-deleteme apply --filename -
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: wannacry
|
||||||
|
namespace: super-important-dont-deleteme
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
volumeMode: Block
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 20Gi
|
||||||
|
EOF
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Automated scenario cleanup
|
* Automated scenario cleanup
|
||||||
|
|
||||||
|
|||||||
@ -49,13 +49,20 @@ Documentation you may find helpful is:
|
|||||||
|
|
||||||
## 5.2 - But wait there's more!
|
## 5.2 - But wait there's more!
|
||||||
|
|
||||||
While you're on the Skype for Business™ video call with Chad fixing the `crypto-carnivore-cpuminer3000` stprage he also puts you on the spot and asks for some guidance on how to add an additional disk to the vm for a new ~~cve-ridden-literal-malware~~workload that Acme is developing.
|
While you're on the Skype for Business™ video call with Chad fixing the `crypto-carnivore-cpuminer3000` storage incident he also puts you on the spot and asks for some guidance on how to add an additional disk to the vm for a new ~~cve-ridden-literal-malware~~workload that Acme is developing.
|
||||||
|
|
||||||
|
This is a straightforward table stakes procedure for any virtualisation platform so you offer to step Chad through it then and there and get it out of the way.
|
||||||
|
|
||||||
|
Your task is to add an additional `20GiB` disk labelled `wannacry` to the virtual machine. No command line is required.
|
||||||
|
|
||||||
|
Documentation you may find helpful is:
|
||||||
|
- https://docs.openshift.com/container-platform/4.15/virt/virtual_machines/virtual_disks/virt-hot-plugging-virtual-disks.html
|
||||||
|
|
||||||
|
|
||||||
## 5.2 - Check your work
|
## 5.3 - Check your work
|
||||||
|
|
||||||
If you've successfully for a virtual machine please post a message in `#event-anz-ocp-virt-hackathon` with the message:
|
If you've successfully resolved Chad's storage concerns please post a message in `#event-anz-ocp-virt-hackathon` with the message:
|
||||||
|
|
||||||
> Please review team [name] solution for exercise 5.
|
> Please review [team name] solution for exercise 5.
|
||||||
|
|
||||||
This exercise is worth 25 points. The event team will reply in slack to confirm your updated team total score.
|
This exercise is worth 25 points. The event team will reply in slack to confirm your updated team total score.
|
||||||
|
|||||||
Reference in New Issue
Block a user