Files
container.training/slides/k8s/handson-mlops.md
2024-11-22 02:11:18 +01:00

3.2 KiB

class: title

Tell me and I forget.
Teach me and I remember.
Involve me and I learn.

Misattributed to Benjamin Franklin

(Probably inspired by Chinese Confucian philosopher Xunzi)


Hands-on sections

  • There will be a lot of examples and demos

  • If you are attending a live workshop:

    • follow along with the demos, ask questions at any time

    • if you can, try to run some of the examples and demos in your environment

    • if things are going too fast, ask the trainer to slow down :)

  • If you are watching a recording or only reading the slides:

    • it is strongly recommended to run all the examples and demos

    • take advantage of the fact that you can pause at any time


class: in-person

Where are we going to run our containers?


class: in-person, pic

You get a cluster


If you're attending a live training or workshop

  • Each person gets a private lab environment

  • Your lab environments will be available for the duration of the workshop

    (check with your instructor to know exactly when they'll be shut down)

  • Note that for budget reasons¹, your environment will be fairly modest

    • scenario 1: 4 nodes with 2 cores and 4 GB RAM ; no cluster autoscaling

    • scenario 2: 1 node with 4 cores and 8 GB RAM ; cluster autoscaling

.footnote[¹That cloud thing is mighty expensive, yo]


Running your own lab environment

  • If you are following a self-paced course...

  • Or watching a replay of a recorded course...

  • ...You will need to set up a local environment for the labs

    or

  • If you want to use a specific cloud provider...

  • Or want to see these concepts "at scale"...

  • ...You can set up your own clusters with whatever capacity suits you


Deploying your own Kubernetes cluster

  • You need cloud provider credentials for this

  • Option 1: use the cloud provider CLI, web UI, ...

  • Option 2: use one of these Terraform configurations

    (set cluster_name, node_size, max_nodes_per_pool, location, and GO!)


Deploying your own Kubernetes cluster.red[s]

  • If you want to deliver your own training or workshop:

    • deployment scripts are available in the prepare-labs directory

    • you can use them to automatically deploy many lab environments

    • they support many different infrastructure providers

    • they can deploy dozens (even hundreds) of clusters at a time


class: in-person

Why don't we run containers locally?

  • Installing this stuff can be hard on some machines

    (32 bits CPU or OS... Laptops without administrator access... etc.)

  • "The whole team downloaded all these container images from the WiFi!
    ... and it went great!"
    (Literally no-one ever)

  • All you need is a computer (or even a phone or tablet!), with:

    • an Internet connection

    • a web browser

    • an SSH client

  • Some of the demos require multiple nodes to demonstrate scaling