Make exercise 3 more difficult.
This commit is contained in:
@ -64,6 +64,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
domain:
|
domain:
|
||||||
cpu:
|
cpu:
|
||||||
|
model: Conroe
|
||||||
cores: 1
|
cores: 1
|
||||||
sockets: 1
|
sockets: 1
|
||||||
threads: 1
|
threads: 1
|
||||||
@ -99,7 +100,7 @@ spec:
|
|||||||
- name: default
|
- name: default
|
||||||
pod: {}
|
pod: {}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
seems: legit
|
cpumodel: totallylegitipromise
|
||||||
terminationGracePeriodSeconds: 180
|
terminationGracePeriodSeconds: 180
|
||||||
volumes:
|
volumes:
|
||||||
- dataVolume:
|
- dataVolume:
|
||||||
@ -387,22 +388,21 @@ EOF
|
|||||||
** Exercise three - But can it do live migration?
|
** Exercise three - But can it do live migration?
|
||||||
|
|
||||||
#+begin_src tmux
|
#+begin_src tmux
|
||||||
# Create the namespace
|
# Patch the bogus virtual machine nodeselector & cpumodel
|
||||||
oc create namespace demotestwtf17
|
oc patch --namespace demotestwtf17 VirtualMachine fedora --type='merge' --patch-file /dev/stdin <<-EOF
|
||||||
|
|
||||||
# Patch the bogus virtual machine nodeselector
|
|
||||||
cat << EOF | oc apply --namespace demotestwtf17 --filename -
|
|
||||||
apiVersion: kubevirt.io/v1
|
|
||||||
kind: VirtualMachine
|
|
||||||
metadata:
|
|
||||||
name: fedora
|
|
||||||
namespace: demotestwtf17
|
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
domain:
|
||||||
|
cpu:
|
||||||
|
model:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
EOF
|
EOF
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
# Restart vm manually
|
||||||
|
|
||||||
|
#+begin_src tmux
|
||||||
# Initiate the live migration
|
# Initiate the live migration
|
||||||
cat << EOF | oc create --namespace demotestwtf17 --filename -
|
cat << EOF | oc create --namespace demotestwtf17 --filename -
|
||||||
apiVersion: kubevirt.io/v1
|
apiVersion: kubevirt.io/v1
|
||||||
|
|||||||
@ -15,7 +15,7 @@ Thinking on your feet you remember the Fedora virtual machine you were tinkering
|
|||||||
The Acme Financial Services team have put you on the spot, can you pull off a virtual machine live migration? 😅
|
The Acme Financial Services team have put you on the spot, can you pull off a virtual machine live migration? 😅
|
||||||
|
|
||||||
<Zoom>
|
<Zoom>
|
||||||
| |
|
| |
|
||||||
|:-----------------------------------------------------------------------------:|
|
|:-----------------------------------------------------------------------------:|
|
||||||
| *He's dead Jim...* |
|
| *He's dead Jim...* |
|
||||||
</Zoom>
|
</Zoom>
|
||||||
@ -30,7 +30,7 @@ No command line is required. However before you can complete the migration you w
|
|||||||
Documentation you may find helpful is:
|
Documentation you may find helpful is:
|
||||||
- https://docs.openshift.com/container-platform/4.15/virt/live_migration/virt-configuring-live-migration.html
|
- https://docs.openshift.com/container-platform/4.15/virt/live_migration/virt-configuring-live-migration.html
|
||||||
- https://docs.openshift.com/container-platform/4.15/virt/virtual_machines/advanced_vm_management/virt-specifying-nodes-for-vms.html
|
- https://docs.openshift.com/container-platform/4.15/virt/virtual_machines/advanced_vm_management/virt-specifying-nodes-for-vms.html
|
||||||
|
- https://docs.openshift.com/container-platform/4.15/virt/virtual_machines/advanced_vm_management/virt-schedule-vms.html
|
||||||
|
|
||||||
## 3.2 - Check your work
|
## 3.2 - Check your work
|
||||||
|
|
||||||
|
|||||||
@ -1,27 +1,33 @@
|
|||||||
---
|
---
|
||||||
title: What about rebalancing virtual machines?
|
title: What about rebalancing virtual machines?
|
||||||
exercise: 4
|
exercise: 4
|
||||||
date: '2024-04-05'
|
date: '2024-04-14'
|
||||||
tags: ['openshift','virtualisation','kubernetes','kubevirt']
|
tags: ['openshift','virtualisation','kubernetes','kubevirt']
|
||||||
draft: false
|
draft: false
|
||||||
authors: ['default']
|
authors: ['default']
|
||||||
summary: "How do we optimally balance vm workloads across an OpenShift cluster?"
|
summary: "How do we optimally balance vm workloads across an OpenShift cluster?"
|
||||||
---
|
---
|
||||||
|
|
||||||
Acme Financial Services have agreed to run a small scale proof of concept for OpenShift Virtualisation.
|
After your teams slick demos the 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.
|
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.
|
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.
|
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 call you and ask for a walkthrough.
|
||||||
|
|
||||||
Your pre-sales team have offered to setup an example environment for them and give them a quick demo on how it works.
|
Your pre-sales team have offered to setup an example environment for them and step through how to enable the feature.
|
||||||
|
|
||||||
|
<Zoom>
|
||||||
|
| |
|
||||||
|
|:-----------------------------------------------------------------------------:|
|
||||||
|
| *He's dead Jim...* |
|
||||||
|
</Zoom>
|
||||||
|
|
||||||
|
|
||||||
## 3.1 - Enabling virtual machine balancing profiles
|
## 4.1 - Enabling virtual machine balancing profiles
|
||||||
|
|
||||||
Your challenge for this task is to enable the Technology Preview feature for Virtual Machine workload balancing in OpenShift.
|
Your challenge for this task is to enable the **Technology Preview** feature for Virtual Machine workload balancing in OpenShift.
|
||||||
|
|
||||||
You'll need to make some changes at both the cluster and virtual machine level.
|
You'll need to make some changes at both the cluster and virtual machine level.
|
||||||
|
|
||||||
@ -29,7 +35,7 @@ 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/advanced_vm_management/virt-enabling-descheduler-evictions.html
|
||||||
|
|
||||||
|
|
||||||
## 3.2 - Check your work
|
## 4.2 - 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:
|
If you've successfully enabled deschedular evictions for a virtual machine please post a message in `#event-anz-ocp-virt-hackathon` with the message:
|
||||||
|
|
||||||
|
|||||||
BIN
public/static/images/hackathon/broken-vm-wojek.png
Normal file
BIN
public/static/images/hackathon/broken-vm-wojek.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 324 KiB |
Reference in New Issue
Block a user