Compare commits

...

2 Commits

Author SHA1 Message Date
dd6556fdef Start writing exercise 5. 2024-04-14 17:01:32 +12:00
ba30dd5ea3 Finalise exercise 4. 2024-04-14 16:46:57 +12:00
4 changed files with 74 additions and 25 deletions

View File

@ -426,10 +426,46 @@ oc --namespace demotestwtf17 get VirtualMachineInstance fedora
** Exercise four - What about balancing vm workloads?
#+begin_src tmux
# Create required namespace
# Create required namespace for vm
oc create namespace itsjustyaml
# Create the suggested namespace for descheduler operator
oc create namespace openshift-kube-descheduler-operator
# Create the subscription for the kube deschedular operator
cat << EOF | oc apply --namespace openshift-kube-descheduler-operator --filename -
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: cluster-kube-descheduler-operator
namespace: openshift-kube-descheduler-operator
spec:
channel: stable
installPlanApproval: Automatic
name: cluster-kube-descheduler-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
EOF
# Create the instance of descheduler
cat << EOF | oc apply --namespace openshift-kube-descheduler-operator --filename -
apiVersion: operator.openshift.io/v1
kind: KubeDescheduler
metadata:
name: cluster
namespace: openshift-kube-descheduler-operator
spec:
deschedulingIntervalSeconds: 3600
logLevel: Normal
managementState: Managed
mode: Automatic
operatorLogLevel: Normal
profileCustomizations:
devLowNodeUtilizationThresholds: Medium
profiles:
- AffinityAndTaints
- DevPreviewLongLifecycle
EOF
#+end_src
* Automated scenario cleanup

View File

@ -23,7 +23,7 @@ The Acme Financial Services team have put you on the spot, can you pull off a vi
## 3.1 - Initiate the live migration
For this task, your team must live migrate the virtual machine named `fedora` in namespace `demotestwtf17` from one node to another and record the name of the node the vm has migrated to.
For this challenge, your team must live migrate the virtual machine named `fedora` in namespace `demotestwtf17` from one node to another and record the name of the node the vm has migrated to.
No command line is required. However before you can complete the migration you will first need to investigate and correct why the virtual machine is not running. You had one too many coke zeros last night and can't remember how you got the machine into the state it's in 🤦.

View File

@ -1,5 +1,5 @@
---
title: What about rebalancing virtual machines?
title: What about balancing vm workloads?
exercise: 4
date: '2024-04-14'
tags: ['openshift','virtualisation','kubernetes','kubevirt']
@ -16,12 +16,12 @@ One of the goals of the pilot is to ensure their virtual machine workloads will
The Acme team are stuck on how they might implement this goal within their current sprint. They told you they found some documentation online on this thing called *"deschedular"* but have decided it would be easier to email Red Hat and ask for a walkthrough.
Your account manager has voluntold you to setup an example environment for them and step through how to enable the feature. No worries right. After all, how hard can it be?
Your local pre-sales team has offered to setup an example environment for Acme and step through how to enable the feature. No worries right. After all, how hard can it be?
<Zoom>
|![workshop](/workshops/static/images/hackathon/yaml-file.jpeg) |
|:-----------------------------------------------------------------------------:|
| *"We've all said it"* |
| *"We've all said it 😂"* |
</Zoom>
@ -29,10 +29,11 @@ Your account manager has voluntold you to setup an example environment for them
Your challenge for this task is to enable the **Technology Preview** feature for Virtual Machine workload balancing in OpenShift at the cluster level.
Once enabled at the cluster level you then need to deploy a **CentOS Stream 9** virtual machine called `centos` running in a new namespace called `itsjustyaml`.
Once enabled at the cluster level you then need to deploy a **CentOS Stream 9** virtual machine called `centos` running in a new namespace called `itsjustyaml`. No command line is required.
Documentation you may find helpful is:
- https://docs.openshift.com/container-platform/4.15/virt/virtual_machines/advanced_vm_management/virt-enabling-descheduler-evictions.html
- https://docs.openshift.com/container-platform/4.15/virt/virtual_machines/creating_vms_rh/virt-creating-vms-from-templates.html
## 4.2 - Check your work

View File

@ -1,36 +1,48 @@
---
title: How do I resize virtual machine disks again?
exercise: 4
date: '2024-04-12'
exercise: 5
date: '2024-04-14'
tags: ['openshift','virtualisation','kubernetes','kubevirt']
draft: false
authors: ['default']
summary: "Persistent volume what??"
---
Acme Financial Services have agreed to run a small scale proof of concept for OpenShift Virtualisation.
They have spun up a bare metal OpenShift cluster, installed OpenShift Virtualisation and now have a small number of virtual machines running.
One of the goals of the pilot is to ensure their virtual machine workloads will run efficiently on their new infrastructure and continually auto balance over time based on available underlying infrastructure capacity so they don't have some nodes much busier than others.
The Acme team are stuck on how they might implement this goal within the poc. They told you they found some documentation online on this thing called "deschedular" but didn't have any luck setting it up.
Your pre-sales team have offered to setup an example environment for them and give them a quick demo on how it works.
The proof of concept has been going well at Acme Financial Services. Their team are a few sprints in and have just pinged you an email:
## 3.1 - Install de-schedular operator
> Subject: Quick Help Needed: Expanding Storage for VM!
>
> Hey Red Hat Pre-Sales Team,
>
> Hope you're doing awesome! 🚀
>
> I'm the storage guru over at Acme Financial Services, we met last sprint review. I need your brainpower to help with a little incident. One of our virtual machines in our Red Hat playground will run out of disk in 2 hours based on current rates.
> Are you free to jump on a call, like nowish so we can fix it???
> Would not be a good look if this thing blows up 😅
>
> Thanks a ton for your help!
>
> Cheers,
> Chad McStorageGuy
> Chief Principal Lead Storage Architect Engineer
> Acme Financial Services
Ruh roh. Normally this would just be handled via support but you know it might take longer for a response as this isn't technically a production environment. You agree to help Chad to try and prevent any bad news for the proof of concept.
Time to roll up your sleeves, join the Acme Skype for Business™ video call and get it sorted. Tick tock...
## 5.1 - Expand the vm storage
...
## 3.2 - Enabling evictions for a virtual machine
## 5.2 - Check your work
...
If you've successfully for a virtual machine please post a message in `#event-anz-ocp-virt-hackathon` with the message:
## 3.3 - Check your work
If you've successfully enabled deschedular evictions for a virtual machine please post a message in `#event-anz-ocp-virt-hackathon` with the message:
> Please review team [name] solution for exercise 4.
> 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.