< Return to Video

Installing Kubernetes with Rancher in 2024!

  • 0:01 - 0:04
    >> Hi. I'm Chris Mutchler,
  • 0:04 - 0:05
    Principal Enterprise
    Architect and
  • 0:05 - 0:09
    VCDX 257 from
    virtualelephant.com.
  • 0:09 - 0:11
    And in this video,
    we're going to
  • 0:11 - 0:13
    once again deep dive
    into the world of
  • 0:13 - 0:15
    Rancher and show
    you how you can
  • 0:15 - 0:16
    leverage it as
    a management
  • 0:16 - 0:18
    tool for deploying,
  • 0:18 - 0:19
    configuring and operating
  • 0:19 - 0:21
    Kubernetes
    clusters at scale.
  • 0:21 - 0:23
    Let's get started.
  • 0:23 - 0:24
    [MUSIC]
  • 0:33 - 0:35
    In this video,
  • 0:35 - 0:37
    we were going to deep dive
  • 0:37 - 0:39
    into Rancher once again.
  • 0:39 - 0:41
    Back in 2023, I
  • 0:41 - 0:43
    recorded my first
    video on Rancher
  • 0:43 - 0:45
    showing you how you
    could deploy Kubernetes
  • 0:45 - 0:48
    clusters inside of a
    vSphere environment,
  • 0:48 - 0:50
    leveraging the Rancher
    management tool.
  • 0:50 - 0:52
    Now, since that time,
    it's become one
  • 0:52 - 0:54
    of my top viewed
    videos on the channel,
  • 0:54 - 0:55
    and I thought
    it was time for
  • 0:55 - 0:58
    an update for 2024.
  • 0:58 - 1:00
    One of the strengths
    of Rancher
  • 1:00 - 1:02
    as a management tool is
  • 1:02 - 1:05
    its capability to be able to
    deploy Kubernetes clusters
  • 1:05 - 1:07
    across a myriad of
    environment types.
  • 1:07 - 1:09
    From vSphere environments,
  • 1:09 - 1:10
    which I'll show you
  • 1:10 - 1:12
    once again in this
    video to Azure,
  • 1:12 - 1:16
    AWS, GCE, and several
    other Cloud providers,
  • 1:16 - 1:18
    Rancher can become that
  • 1:18 - 1:19
    single management tool
  • 1:19 - 1:22
    for all of your
    Kubernetes clusters,
  • 1:22 - 1:24
    thus allowing you to
    be able to create
  • 1:24 - 1:27
    an enterprise grade
    service offering
  • 1:27 - 1:30
    for Kubernetes
    based on Rancher.
  • 1:30 - 1:32
    One of the things
    that I appreciate
  • 1:32 - 1:33
    most about Rancher
  • 1:33 - 1:37
    is its simplicity and
    ease of operations.
  • 1:37 - 1:40
    Anyone can get a
    Rancher management tool
  • 1:40 - 1:42
    running up in their
    environment in
  • 1:42 - 1:44
    just a few moments
    once they have
  • 1:44 - 1:45
    a machine or operating
  • 1:45 - 1:47
    system available to them,
  • 1:47 - 1:49
    and its ability to almost
  • 1:49 - 1:50
    instantaneously
    begin deploying
  • 1:50 - 1:53
    Kubernetes clusters
    makes it one of
  • 1:53 - 1:54
    the easiest
    management tools
  • 1:54 - 1:56
    out there to be
    able to configure,
  • 1:56 - 1:58
    install, and
    then manage from
  • 1:58 - 2:01
    an SRE or operations
    perspective.
  • 2:01 - 2:03
    So let's dive
    right into the UI.
  • 2:03 - 2:05
    Let me show you what's
    changed and how
  • 2:05 - 2:07
    I began leveraging Rancher
  • 2:07 - 2:10
    once again with these
    updates to be able to
  • 2:10 - 2:11
    deploy clusters within
  • 2:11 - 2:13
    a lab environment
    very easily.
  • 2:13 - 2:15
    Once you've got
  • 2:15 - 2:18
    the Rancher docker
    image running,
  • 2:18 - 2:20
    and I have it running
    here inside of
  • 2:20 - 2:22
    a virtual machine
    that I've
  • 2:22 - 2:25
    deployed inside of
    my VCR environment,
  • 2:25 - 2:26
    and I've actually created
  • 2:26 - 2:29
    a persistent volume or
  • 2:29 - 2:32
    static storage for
    the docker container
  • 2:32 - 2:34
    to be able to survive
    after reboots,
  • 2:34 - 2:36
    the first thing
    that you'll see in
  • 2:36 - 2:38
    the UI screen here is
  • 2:38 - 2:39
    instructions on how to get
  • 2:39 - 2:43
    the boot password from
    the container itself.
  • 2:43 - 2:44
    Now once you've done that,
  • 2:44 - 2:46
    you can copy the password
  • 2:46 - 2:48
    straight into the UI here,
  • 2:48 - 2:50
    and then once
    you've done that,
  • 2:50 - 2:53
    it will prompt you to
    change the password
  • 2:53 - 2:55
    or accept one that they
  • 2:55 - 2:57
    randomly generate for you.
  • 2:57 - 2:59
    And once you've
    done that, it
  • 2:59 - 3:00
    will log you straight into
  • 3:00 - 3:04
    the main dashboard
    or UI of Rancher.
  • 3:04 - 3:06
    The first thing that you
  • 3:06 - 3:07
    want to do is actually
  • 3:07 - 3:08
    click on the menu and
  • 3:08 - 3:10
    select Cluster Management.
  • 3:10 - 3:12
    And from there, you want
  • 3:12 - 3:14
    to select Cloud
    Credentials.
  • 3:14 - 3:15
    Now you can see you
  • 3:15 - 3:16
    have multiple
    options here.
  • 3:16 - 3:18
    I'm going to go
    ahead and create
  • 3:18 - 3:20
    a VSR credential
    that points
  • 3:20 - 3:21
    to my vCenter Server that
  • 3:21 - 3:23
    I have running in the lab.
  • 3:23 - 3:26
    I'm going to specify
    the URL for vCenter.
  • 3:26 - 3:27
    I'm going to make
    sure that I tell it
  • 3:27 - 3:29
    Port 443 and then
    I'm going to
  • 3:29 - 3:31
    enter the username and
    password information
  • 3:31 - 3:33
    for that vCenter Server.
  • 3:33 - 3:35
    Once that's done, we're
  • 3:35 - 3:36
    actually ready to start to
  • 3:36 - 3:41
    pulling a cluster of
    Kubernetes via Rancher.
  • 3:41 - 3:43
    So once we get back to
  • 3:43 - 3:44
    the cluster
    management screen,
  • 3:44 - 3:46
    we can go ahead
    and click Create.
  • 3:46 - 3:49
    This new cluster create
    screen is one of
  • 3:49 - 3:51
    the key differences
    between
  • 3:51 - 3:52
    the old version of
  • 3:52 - 3:54
    Rancher and the
    new version.
  • 3:54 - 3:56
    You can see here that
  • 3:56 - 3:59
    before we had to create
    some templates to
  • 3:59 - 4:01
    use specifically to point
  • 4:01 - 4:03
    to certain pieces of
    information that were
  • 4:03 - 4:05
    relevant to our
    vSphere environment
  • 4:05 - 4:08
    for an RKE cluster
    to be deployed.
  • 4:08 - 4:10
    In this new version
    of Rancher,
  • 4:10 - 4:12
    you no longer
    have to do that.
  • 4:12 - 4:13
    And so you can
    go ahead and
  • 4:13 - 4:15
    click Create, come
    to this screen,
  • 4:15 - 4:18
    and you can see that
    it's prepopulated with
  • 4:18 - 4:21
    some information
    that is specific
  • 4:21 - 4:23
    to deploying Kubernetes
  • 4:23 - 4:25
    in a vSphere environment.
  • 4:25 - 4:27
    So as you would
    typically expect,
  • 4:27 - 4:29
    you can give it
    a cluster name,
  • 4:29 - 4:30
    you can give it
    a description.
  • 4:30 - 4:32
    And then from
    there, you can
  • 4:32 - 4:33
    see that it's created
  • 4:33 - 4:36
    this default pool
    and this pool is
  • 4:36 - 4:38
    going to be a set
    of virtual machines
  • 4:38 - 4:39
    that it's going to create.
  • 4:39 - 4:41
    And you can see the
    default actually selects
  • 4:41 - 4:44
    SCT control plane as
    well as worker nodes.
  • 4:44 - 4:46
    Now we're going to want to
  • 4:46 - 4:47
    separate out the control
  • 4:47 - 4:48
    plane from the data plane,
  • 4:48 - 4:50
    and so we're
    going to unselect
  • 4:50 - 4:52
    the worker for this pool.
  • 4:52 - 4:55
    We're going to give
    it a different name
  • 4:55 - 4:56
    and then we're going
    to go through and
  • 4:56 - 4:58
    specify some information
  • 4:58 - 5:00
    specific to how I want
  • 5:00 - 5:02
    the controllers
    to be deployed
  • 5:02 - 5:05
    for Kubernetes within
    my own environment.
  • 5:05 - 5:06
    Now one of the
    key things that
  • 5:06 - 5:08
    I've done prior
    to getting to
  • 5:08 - 5:10
    this screen is
    that I've already
  • 5:10 - 5:13
    downloaded an Ubuntu
    Cloud Image OVA
  • 5:13 - 5:16
    and I've imported
    that OVA into
  • 5:16 - 5:17
    my vCenter Server and
  • 5:17 - 5:19
    I've converted that
    to a template.
  • 5:19 - 5:22
    And that's going
    to let me specify
  • 5:22 - 5:23
    here on the screen which
  • 5:23 - 5:25
    template I want to use.
  • 5:25 - 5:27
    If you haven't
    done this before,
  • 5:27 - 5:29
    just Google Ubuntu
    Cloud Image.
  • 5:29 - 5:32
    You'll see the
    first result
  • 5:32 - 5:33
    there will be the one
    that you want to click.
  • 5:33 - 5:35
    You go through, you select
  • 5:35 - 5:37
    the version of a Ubuntu
    you want and then
  • 5:37 - 5:39
    download the Cloud
    image that you're
  • 5:39 - 5:42
    choosing to deploy
    for your platform.
  • 5:42 - 5:45
    In my case,
    vSphere OVA file.
  • 5:45 - 5:46
    So you're going
    to go through.
  • 5:46 - 5:48
    You can give it
    a pool name,
  • 5:48 - 5:50
    you can give it
    the number of
  • 5:50 - 5:52
    virtual machines
    that you wanted to
  • 5:52 - 5:54
    deploy. So I'm
    going to do three.
  • 5:54 - 5:57
    Three is the
    typical amount
  • 5:57 - 5:59
    of controllers that I
    recommend deploying.
  • 5:59 - 6:00
    Have to make
    sure because of
  • 6:00 - 6:02
    SCD and core Arm,
  • 6:02 - 6:03
    it needs to be
    an odd number,
  • 6:03 - 6:06
    so 1, 3, 5, 7, etc.
  • 6:06 - 6:07
    And then you
    can go through
  • 6:07 - 6:08
    and you can change
  • 6:08 - 6:11
    certain things like the
    data center object,
  • 6:11 - 6:14
    the data store that it's
    going to deploy to.
  • 6:14 - 6:16
    You can also specify
    the folder that
  • 6:16 - 6:17
    you want the
    virtual machines
  • 6:17 - 6:19
    to be deployed to.
  • 6:19 - 6:20
    And then once
    you've done that,
  • 6:20 - 6:22
    you can go ahead and edit
  • 6:22 - 6:25
    the CPU and the
    memory size to
  • 6:25 - 6:26
    be able to make
    sure that you have
  • 6:26 - 6:28
    enough available capacity
  • 6:28 - 6:30
    for those controllers.
  • 6:30 - 6:32
    And then you can see here
  • 6:32 - 6:33
    in the drop down menu for
  • 6:33 - 6:36
    template where
    I've actually
  • 6:36 - 6:38
    installed the Cloud
    image template,
  • 6:38 - 6:39
    you can see that
    I can select it.
  • 6:39 - 6:42
    Now, make sure you
    select the right image.
  • 6:42 - 6:44
    Otherwise, when
    you go to create
  • 6:44 - 6:46
    this cluster, it's
    not going to work.
  • 6:46 - 6:49
    Now, once I've selected
    the cluster image,
  • 6:49 - 6:51
    the next thing that
    you can edit here is
  • 6:51 - 6:54
    the Cloud config
    YAML area.
  • 6:54 - 6:56
    And so one of the
    things that I
  • 6:56 - 6:57
    like to customize
    here for all
  • 6:57 - 7:00
    of my nodes is
    I like to add
  • 7:00 - 7:02
    a rancher user to
    every virtual machine.
  • 7:02 - 7:04
    I make it part of
    the wheel group,
  • 7:04 - 7:06
    I give it pseudo
    privileges,
  • 7:06 - 7:09
    and then I add
    an RSA key for
  • 7:09 - 7:12
    SSH to be able to log into
  • 7:12 - 7:14
    those virtual machines
    once they've deployed.
  • 7:14 - 7:17
    And you can add all
    different things here in
  • 7:17 - 7:19
    the Cloud config depending
  • 7:19 - 7:21
    on your needs and
    requirements.
  • 7:21 - 7:22
    Like I said, at a minimum,
  • 7:22 - 7:25
    I recommend at least
    adding an SSH key to
  • 7:25 - 7:27
    a user so that you
  • 7:27 - 7:29
    have access into the
    virtual machines.
  • 7:29 - 7:31
    Now once that's done,
  • 7:31 - 7:33
    you can go ahead and
    select the network.
  • 7:33 - 7:34
    This is the port group in
  • 7:34 - 7:36
    the vSphere environment
    that you're going
  • 7:36 - 7:39
    to be attaching the
    virtual machines to.
  • 7:39 - 7:41
    Make sure they have DHCP.
  • 7:41 - 7:43
    That is a requirement
    that I found with
  • 7:43 - 7:47
    Rancher so that
    the machines
  • 7:47 - 7:48
    automatically come up with
  • 7:48 - 7:50
    IP address information so
  • 7:50 - 7:51
    that there's
    no requirement
  • 7:51 - 7:53
    on you to try and modify
  • 7:53 - 7:55
    IP configs somewhere in
  • 7:55 - 7:56
    the middle of the
    boot process,
  • 7:56 - 7:59
    which typically
    just doesn't work.
  • 7:59 - 8:01
    And then once
    you've done that,
  • 8:01 - 8:02
    you want to go ahead and
  • 8:02 - 8:03
    create another pool by
  • 8:03 - 8:04
    clicking the plus sign
  • 8:04 - 8:06
    there on the lower
    left screen.
  • 8:06 - 8:08
    Now we're going to
    create our workers and
  • 8:08 - 8:09
    we're going to fill out
  • 8:09 - 8:11
    that very same
    information,
  • 8:11 - 8:13
    including that Cloud
    config file and
  • 8:13 - 8:14
    making sure that we choose
  • 8:14 - 8:16
    the right
    template as well.
  • 8:16 - 8:18
    The last thing that
    I want to do is you
  • 8:18 - 8:20
    scroll down on the
    UI screen prior
  • 8:20 - 8:22
    to clicking Create is
  • 8:22 - 8:25
    actually to select
    the CNI selection.
  • 8:25 - 8:26
    So you can see here in
  • 8:26 - 8:28
    the dropdown menu
    that there's
  • 8:28 - 8:32
    multiple choices now for
    CNIs within Rancher,
  • 8:32 - 8:34
    and you can see, again,
  • 8:34 - 8:37
    my favorite Cilium
    is now available.
  • 8:37 - 8:38
    So we're going
    to go ahead and
  • 8:38 - 8:39
    deploy this cluster with
  • 8:39 - 8:42
    Cilium to see how Cilium
  • 8:42 - 8:43
    is integrated through
  • 8:43 - 8:45
    Rancher and
    what components
  • 8:45 - 8:46
    are there for us to
    be able to start
  • 8:46 - 8:48
    leveraging straight
    out of the box.
  • 8:48 - 8:51
    Now once we've gone
    ahead and selected that,
  • 8:51 - 8:53
    we can review
    everything that we've
  • 8:53 - 8:56
    already inputted
    into the UI
  • 8:56 - 8:57
    just to make sure that
    everything looks good.
  • 8:57 - 8:59
    And then we can go ahead
  • 8:59 - 9:01
    and click that
    Create button and
  • 9:01 - 9:03
    it's going to
    start deploying
  • 9:03 - 9:05
    the Kubernetes
    cluster inside
  • 9:05 - 9:06
    of our vSphere
    environment.
  • 9:06 - 9:09
    So once Rancher has
  • 9:09 - 9:11
    started creating
    the environment,
  • 9:11 - 9:13
    we can go and we
    can see that it
  • 9:13 - 9:15
    goes into this
    provisioning state.
  • 9:15 - 9:17
    We can click on
    the cluster name
  • 9:17 - 9:19
    to be able to see the
    detailed information,
  • 9:19 - 9:21
    as well as
    switching over to
  • 9:21 - 9:23
    the vSphere
    environment to see
  • 9:23 - 9:25
    the virtual machines
    being created.
  • 9:25 - 9:28
    We can watch them
    from that perspective
  • 9:28 - 9:29
    or we can switch back to
  • 9:29 - 9:31
    the Rancher UI to
    be able to watch
  • 9:31 - 9:33
    the cluster deploy and
    the various states.
  • 9:33 - 9:36
    As before, your
    mileage may vary for
  • 9:36 - 9:37
    how long it takes
    to actually
  • 9:37 - 9:39
    deploy the
    Kubernetes cluster.
  • 9:39 - 9:41
    Within my homelab
    environment,
  • 9:41 - 9:43
    it generally takes
    about 20 minutes
  • 9:43 - 9:45
    depending on how long it
  • 9:45 - 9:46
    takes to clone
    the template,
  • 9:46 - 9:49
    as well as start up
    the virtual machines,
  • 9:49 - 9:50
    get a DHCP address,
  • 9:50 - 9:52
    and then for Rancher
    to take over and start
  • 9:52 - 9:54
    installing the
    various Kubernetes
  • 9:54 - 9:55
    bits and services.
  • 9:55 - 9:57
    Typically, within
    20 minutes,
  • 9:57 - 9:58
    I'll have a cluster that's
  • 9:58 - 10:00
    online and ready
    for me to start
  • 10:00 - 10:03
    further configuring
    additional services
  • 10:03 - 10:06
    within the Kubernetes
    cluster itself,
  • 10:06 - 10:09
    such as persistent
    storage and NFS.
  • 10:09 - 10:11
    Other things like the
    Ingress Controller
  • 10:11 - 10:14
    is obviously a
    critical one as well.
  • 10:14 - 10:15
    And so at that point,
  • 10:15 - 10:16
    we'll have a cluster that
  • 10:16 - 10:17
    we can start leveraging.
  • 10:17 - 10:20
    So you can see here
    on the screen,
  • 10:20 - 10:21
    the cluster is online.
  • 10:21 - 10:22
    We can go ahead and
    click it and we'll
  • 10:22 - 10:25
    actually be brought to
    the cluster dashboard,
  • 10:25 - 10:27
    where we can see some
    very basic information
  • 10:27 - 10:30
    around what's going on
    within the cluster.
  • 10:30 - 10:31
    We can also download the
  • 10:31 - 10:33
    Kube config
    file to be able
  • 10:33 - 10:37
    to connect to the
    cluster via CLI.
  • 10:37 - 10:39
    I do that and I actually
  • 10:39 - 10:41
    run the CLI
    straight off of
  • 10:41 - 10:43
    my Rancher virtual machine
  • 10:43 - 10:44
    where Rancher's actually
  • 10:44 - 10:46
    running as a
    docker container.
  • 10:46 - 10:47
    And that just becomes my
  • 10:47 - 10:48
    central point for all of
  • 10:48 - 10:50
    my future configurations
  • 10:50 - 10:52
    and deployments
    and whatnot.
  • 10:52 - 10:53
    So one of the things
  • 10:53 - 10:54
    here you can
    see is there's
  • 10:54 - 10:56
    a lot of information
  • 10:56 - 10:57
    about the cluster itself.
  • 10:57 - 11:00
    You can see what the
    nodes are doing,
  • 11:00 - 11:01
    you can see what
    pods are running,
  • 11:01 - 11:02
    you can see
    what additional
  • 11:02 - 11:04
    tools are
    available to you.
  • 11:04 - 11:06
    And then we can
    go through and
  • 11:06 - 11:07
    we can actually
    start installing
  • 11:07 - 11:09
    Prometheus and Grafana as
  • 11:09 - 11:11
    a monitoring tool first
  • 11:11 - 11:13
    thing within the
    environment.
  • 11:13 - 11:15
    Now, the first
    thing that I do and
  • 11:15 - 11:17
    that you can see here
    on the screen is
  • 11:17 - 11:19
    I actually install
    an NFS pod
  • 11:19 - 11:22
    inside of the cluster
    that connects back
  • 11:22 - 11:25
    to an NFS server that
    I have running within
  • 11:25 - 11:26
    my lab that I can
  • 11:26 - 11:28
    then create persistent
    volumes on.
  • 11:28 - 11:30
    So I install
    the NFS piece.
  • 11:30 - 11:32
    If you want to see
    how to do that,
  • 11:32 - 11:35
    I'll link in
    the description
  • 11:35 - 11:39
    below a link to my
    GitHub repository for
  • 11:39 - 11:40
    my Kubernetes sample app
  • 11:40 - 11:43
    where I use this same pod
  • 11:43 - 11:47
    to be able to do persistent
    storage for RabbitMQ.
  • 11:47 - 11:49
    And then I go ahead
    and I've created
  • 11:49 - 11:51
    a storage class
    specific that I want
  • 11:51 - 11:53
    to leverage off of
  • 11:53 - 11:54
    my NFS server within
  • 11:54 - 11:56
    this Kubernetes
    environment.
  • 11:56 - 11:58
    And then once
    I've done that,
  • 11:58 - 12:00
    then we're ready to
    actually install
  • 12:00 - 12:02
    Prometheus and Grafana and
  • 12:02 - 12:04
    make sure that we have
    persistent storage for
  • 12:04 - 12:05
    those metrics so that they
  • 12:05 - 12:08
    maintain state over a
    long period of time.
  • 12:08 - 12:10
    And so you can
    just click on
  • 12:10 - 12:14
    the Install Monitoring
    inside of Rancher.
  • 12:14 - 12:16
    Again, this is
    one of the things
  • 12:16 - 12:18
    that Rancher does
    really well for us
  • 12:18 - 12:20
    is that it bundles a lot
  • 12:20 - 12:21
    of these things that
    are commonplace
  • 12:21 - 12:24
    within Kubernetes
    clusters directly
  • 12:24 - 12:27
    through the Rancher UI
    for us to leverage,
  • 12:27 - 12:28
    so we don't
    have to go hunt
  • 12:28 - 12:31
    down other YAML files
    or figure out what
  • 12:31 - 12:33
    other people have
    done for how they've
  • 12:33 - 12:35
    deployed some of the
    common applications.
  • 12:35 - 12:38
    And so you can see all
    of the charts within
  • 12:38 - 12:39
    Rancher for the
    various things
  • 12:39 - 12:41
    that we want to be
    able to install.
  • 12:41 - 12:43
    And again, they
    link right there in
  • 12:43 - 12:45
    the top right corner or
  • 12:45 - 12:48
    install monitoring
    on a fresh cluster.
  • 12:48 - 12:50
    We then select the
    monitoring chart,
  • 12:50 - 12:51
    and then we get here to
  • 12:51 - 12:54
    the screen for Prometheus
    and being able to
  • 12:54 - 12:58
    configure Prometheus and
    Grafana and customize
  • 12:58 - 13:00
    that configuration
    for our environment.
  • 13:00 - 13:01
    So the first
    thing that we're
  • 13:01 - 13:02
    going to do is
    we're going to
  • 13:02 - 13:05
    select where we're
    going to install it,
  • 13:05 - 13:07
    so we'll install it in
    the default project,
  • 13:07 - 13:09
    and then we're
    going to go through
  • 13:09 - 13:11
    here and we're
    going to modify
  • 13:11 - 13:13
    Prometheus to be able
  • 13:13 - 13:15
    to leverage
    persistent storage.
  • 13:15 - 13:17
    So we're going to
    check that box
  • 13:17 - 13:19
    there on the screen for
    persistent storage,
  • 13:19 - 13:21
    and then you
    can see we have
  • 13:21 - 13:22
    an expanded set of
  • 13:22 - 13:24
    options that we
    want to be able
  • 13:24 - 13:26
    to leverage specific to
  • 13:26 - 13:28
    persistent storage and
    persistent volumes.
  • 13:28 - 13:30
    You can see when we click
  • 13:30 - 13:32
    on that storage
    class name,
  • 13:32 - 13:34
    you can see that
    there's the NFS client.
  • 13:34 - 13:36
    That's what default
    comes with the pod,
  • 13:36 - 13:37
    and then I've created
  • 13:37 - 13:39
    that standard
    storage class
  • 13:39 - 13:41
    for my Kubernetes cluster.
  • 13:41 - 13:43
    So we go ahead and
    click Standard,
  • 13:43 - 13:46
    that's now hooked back
    into my NFS server.
  • 13:46 - 13:48
    You can specify or
  • 13:48 - 13:50
    modify the size
    if you need to.
  • 13:50 - 13:51
    And then we're going to
  • 13:51 - 13:53
    do a similar thing
    for Grafana.
  • 13:53 - 13:55
    We're going to select that
  • 13:55 - 13:58
    enable with PVC
    template radio button,
  • 13:58 - 13:59
    and then it's going to
  • 13:59 - 14:00
    populate some
    information on
  • 14:00 - 14:02
    the screen force that's
  • 14:02 - 14:05
    specific to
    persistent volumes.
  • 14:05 - 14:07
    Again, pick that standard
    storage class name,
  • 14:07 - 14:09
    read write once many,
  • 14:09 - 14:12
    and then we can
    specify a size,
  • 14:12 - 14:15
    and then we can go ahead
    and click Install.
  • 14:15 - 14:17
    And Rancher is going to
  • 14:17 - 14:20
    automatically install
    Prometheus and Grafana.
  • 14:20 - 14:21
    It's going to preconfigure
  • 14:21 - 14:23
    it with a wide variety of
  • 14:23 - 14:24
    dashboards right out of
  • 14:24 - 14:27
    the gate for us to
    be able to leverage.
  • 14:27 - 14:29
    And it's also
    going to open up
  • 14:29 - 14:31
    this mini shell window
  • 14:31 - 14:33
    within the UI as it shows
  • 14:33 - 14:35
    us how it's installing
  • 14:35 - 14:37
    Prometheus and Grafana
  • 14:37 - 14:39
    within the
    Kubernetes cluster.
  • 14:39 - 14:41
    And then once that's done,
  • 14:41 - 14:43
    we'll be able to
    see some tie ins to
  • 14:43 - 14:47
    Grafana immediately
    in the branch or UI
  • 14:47 - 14:49
    for our cluster without
    actually having to
  • 14:49 - 14:53
    go out to the Grafana
    service that's running.
  • 14:53 - 14:54
    Although there
    is a hyperlink,
  • 14:54 - 14:56
    and you'll see us
    hit it here on
  • 14:56 - 14:57
    the screen in
    just a moment.
  • 14:57 - 15:00
    To be able to select
    the Grafana UI,
  • 15:00 - 15:03
    it opened a new window
    for us in our browser.
  • 15:03 - 15:07
    Once we click that
    Grafana UI hyperlink
  • 15:07 - 15:09
    and it opens up
    the new browser,
  • 15:09 - 15:11
    then we're going
    to see a myriad of
  • 15:11 - 15:13
    other dashboards that
    instantly become
  • 15:13 - 15:14
    available for
    us to be able
  • 15:14 - 15:17
    to leverage inside of
  • 15:17 - 15:19
    our Rancher Kubernetes
    cluster that it's
  • 15:19 - 15:22
    deployed and is
    managing for us.
  • 15:22 - 15:26
    And it's really this
    streamlined operation that
  • 15:26 - 15:28
    differentiates
    Rancher from several
  • 15:28 - 15:30
    of the other Kubernetes
    management tools.
  • 15:30 - 15:32
    So it's had a little bit
    more time to bake in
  • 15:32 - 15:34
    these features to get
  • 15:34 - 15:36
    this UI streamlined
    force and to
  • 15:36 - 15:38
    make it very easy for
  • 15:38 - 15:40
    operators and Cloud
    architects to be able
  • 15:40 - 15:42
    to manage and operate
  • 15:42 - 15:43
    a Kubernetes service
  • 15:43 - 15:45
    offering directly
    through Rancher.
  • 15:45 - 15:46
    And so there you have it.
  • 15:46 - 15:49
    Once again, we can
    see how streamlined
  • 15:49 - 15:51
    Rancher is as a management
  • 15:51 - 15:52
    tool for Kubernetes.
  • 15:52 - 15:54
    We can see how
    quickly you can
  • 15:54 - 15:56
    spin up a Kubernetes
    environment.
  • 15:56 - 15:59
    In future videos, I'm
    going to show you how
  • 15:59 - 16:01
    to leverage
    Rancher for Azure,
  • 16:01 - 16:03
    as well as deep
    dive more into
  • 16:03 - 16:06
    the Cilium integrations
    that we now see
  • 16:06 - 16:07
    within Rancher so that we
  • 16:07 - 16:09
    can understand what
    is built in from
  • 16:09 - 16:11
    a Cilium stack perspective
  • 16:11 - 16:14
    via the Rancher installer,
  • 16:14 - 16:17
    and how we're going
    to manage Cilium and
  • 16:17 - 16:19
    Rancher Kubernetes
    clusters from
  • 16:19 - 16:21
    a life cycle perspective
    going forward,
  • 16:21 - 16:23
    as far as doing
    version upgrades,
  • 16:23 - 16:26
    deploying additional
    tools like Hubble,
  • 16:26 - 16:27
    being able to leverage
  • 16:27 - 16:30
    service mesh via Cilium,
  • 16:30 - 16:33
    as well as the Ingress
    Controller for Cilium
  • 16:33 - 16:34
    as well so that
    we can it be
  • 16:34 - 16:38
    our simplistic CNI
    stack that runs
  • 16:38 - 16:39
    everything for us from
  • 16:39 - 16:41
    a networking perspective
  • 16:41 - 16:43
    within our
    Kubernetes clusters.
  • 16:43 - 16:45
    Now if you're enjoying
    this content,
  • 16:45 - 16:48
    I encourage you to
    subscribe to my channel,
  • 16:48 - 16:50
    turn on those
    notifications
  • 16:50 - 16:51
    and hit the like button
  • 16:51 - 16:52
    and let me know
    what you thought
  • 16:52 - 16:54
    of this video in
    the comments below.
  • 16:54 - 16:56
    I hope this
    updated version of
  • 16:56 - 16:58
    Rancher is
    helpful to all of
  • 16:58 - 16:59
    you out there who are
  • 16:59 - 17:02
    striving to learn more
    about Kubernetes.
  • 17:02 - 17:03
    As I've talked about in
  • 17:03 - 17:05
    previous videos this year,
  • 17:05 - 17:06
    I think that Kubernetes is
  • 17:06 - 17:08
    the one thing that
    all of us should be
  • 17:08 - 17:10
    focused on in 2024 from
  • 17:10 - 17:12
    a skill set perspective
  • 17:12 - 17:13
    so that we can broaden
  • 17:13 - 17:15
    our capabilities
    to be able to
  • 17:15 - 17:17
    make ourselves
    more marketable
  • 17:17 - 17:18
    out there in the
    job market in
  • 17:18 - 17:19
    these difficult times that
  • 17:19 - 17:21
    we find ourselves in.
  • 17:21 - 17:23
    So I hope that you're
    enjoying the series,
  • 17:23 - 17:23
    I hope that you're
  • 17:23 - 17:26
    finding these
    videos useful.
  • 17:26 - 17:28
    Please leave me
    a comment below.
  • 17:28 - 17:31
    Please reach out to me
    on X, @chrismutchler.
  • 17:31 - 17:33
    Let me know what
    you think and
  • 17:33 - 17:36
    until next time, I'll
    talk to you soon.
Title:
Installing Kubernetes with Rancher in 2024!
Description:

more » « less
Video Language:
English
Duration:
17:36

English subtitles

Revisions