Library

Video Player is loading.
 
Current Time 0:00
Duration 4:18
Loaded: 0.00%
 

x1.00


Back

Games & Quizzes

Training Mode - Typing
Fill the gaps to the Lyric - Best method
Training Mode - Picking
Pick the correct word to fill in the gap
Fill In The Blank
Find the missing words in a sentence Requires 5 vocabulary annotations
Vocabulary Match
Match the words to the definitions Requires 10 vocabulary annotations

You may need to watch a part of the video to unlock quizzes

Don't forget to Sign In to save your points

Challenge Accomplished

PERFECT HITS +NaN
HITS +NaN
LONGEST STREAK +NaN
TOTAL +
- //

We couldn't find definitions for the word you were looking for.
Or maybe the current language is not supported

  • 00:00

    [MUSIC PLAYING]
    [MUSIC PLAYING]

  • 00:06

    SPEAKER: In this video, you will learn about Kubernetes events,
    SPEAKER: In this video, you will learn about Kubernetes events,

  • 00:09

    their use cases, how to view them,
    their use cases, how to view them,

  • 00:11

    and how to use them to troubleshoot
    and how to use them to troubleshoot

  • 00:12

    a common issue with Google Kubernetes Engine,
    a common issue with Google Kubernetes Engine,

  • 00:14

    or GKE, clusters.
    or GKE, clusters.

  • 00:16

    Let's get started by understanding
    Let's get started by understanding

  • 00:17

    what Kubernetes events are.
    what Kubernetes events are.

  • 00:19

    Kubernetes events are objects that
    Kubernetes events are objects that

  • 00:21

    give insights about what's happening inside a GKE cluster.
    give insights about what's happening inside a GKE cluster.

  • 00:24

    They are usually generated when a cluster's resources,
    They are usually generated when a cluster's resources,

  • 00:26

    such as nodes, Pods, or containers, change state.
    such as nodes, Pods, or containers, change state.

  • 00:29

    These events can be used to monitor your application
    These events can be used to monitor your application

  • 00:32

    and cluster state, respond to failures,
    and cluster state, respond to failures,

  • 00:34

    and perform diagnostics.
    and perform diagnostics.

  • 00:35

    Remember, events have a limited retention time
    Remember, events have a limited retention time

  • 00:37

    and will eventually be deleted.
    and will eventually be deleted.

  • 00:39

    So you must monitor and collect events as they happen.
    So you must monitor and collect events as they happen.

  • 00:41

    Kubernetes events can be useful in multiple scenarios.
    Kubernetes events can be useful in multiple scenarios.

  • 00:44

    Here are a couple common use cases.
    Here are a couple common use cases.

  • 00:46

    Pods not running within your cluster--
    Pods not running within your cluster--

  • 00:49

    viewing the Kubernetes events for a Pod
    viewing the Kubernetes events for a Pod

  • 00:51

    can reveal why it is not running,
    can reveal why it is not running,

  • 00:52

    leading to a quick resolution.
    leading to a quick resolution.

  • 00:53

    For example, you may see ImagePullBackOff,
    For example, you may see ImagePullBackOff,

  • 00:56

    indicating the cluster or node is
    indicating the cluster or node is

  • 00:58

    unable to access the repository where the container image is
    unable to access the repository where the container image is

  • 01:00

    hosted.
    hosted.

  • 01:02

    A node in your cluster with a Not Ready status--
    A node in your cluster with a Not Ready status--

  • 01:04

    viewing the Kubernetes events can indicate
    viewing the Kubernetes events can indicate

  • 01:06

    why the node is not ready.
    why the node is not ready.

  • 01:07

    For example, a node might have disk pressure,
    For example, a node might have disk pressure,

  • 01:10

    indicating that the underlying node is running out
    indicating that the underlying node is running out

  • 01:12

    of disk space.
    of disk space.

  • 01:13

    Kubernetes events can be viewed in three different ways
    Kubernetes events can be viewed in three different ways

  • 01:15

    with a GKE cluster--
    with a GKE cluster--

  • 01:17

    in the Kubernetes Engine Console,
    in the Kubernetes Engine Console,

  • 01:18

    Logging Console, and within the Terminal using Kubectl.
    Logging Console, and within the Terminal using Kubectl.

  • 01:22

    Before you can view the Kubernetes events,
    Before you can view the Kubernetes events,

  • 01:24

    ensure that users are granted with the appropriate identity
    ensure that users are granted with the appropriate identity

  • 01:26

    and access management or IAM roles.
    and access management or IAM roles.

  • 01:29

    Viewing events using the Kubernetes Engine
    Viewing events using the Kubernetes Engine

  • 01:31

    Console requires the following IAM roles--
    Console requires the following IAM roles--

  • 01:33

    Kubernetes Engine Viewer, Kubernetes Engine Cluster
    Kubernetes Engine Viewer, Kubernetes Engine Cluster

  • 01:36

    Viewer, and Logging Logs Viewer.
    Viewer, and Logging Logs Viewer.

  • 01:39

    Viewing events using the Logging Console requires
    Viewing events using the Logging Console requires

  • 01:41

    only the following IAM roles--
    only the following IAM roles--

  • 01:43

    Logging Logs Viewer.
    Logging Logs Viewer.

  • 01:45

    To view Kubernetes events in the Terminal using Kubectl,
    To view Kubernetes events in the Terminal using Kubectl,

  • 01:48

    your credentials must have at least the default cluster role
    your credentials must have at least the default cluster role

  • 01:51

    view or a cluster role that allows access
    view or a cluster role that allows access

  • 01:53

    to the Resource Events and the ability
    to the Resource Events and the ability

  • 01:55

    to call get, list, and watch.
    to call get, list, and watch.

  • 01:58

    Let's now look at how to view Kubernetes events.
    Let's now look at how to view Kubernetes events.

  • 02:00

    Within Google Cloud, you can view events
    Within Google Cloud, you can view events

  • 02:02

    across all levels of the Kubernetes hierarchy,
    across all levels of the Kubernetes hierarchy,

  • 02:04

    including cluster, nodes, and workloads.
    including cluster, nodes, and workloads.

  • 02:07

    Remember, for Kubernetes clusters,
    Remember, for Kubernetes clusters,

  • 02:09

    events are only available for about 60 minutes.
    events are only available for about 60 minutes.

  • 02:11

    For GKE, events are exported and are available using the Logging
    For GKE, events are exported and are available using the Logging

  • 02:15

    Console.
    Console.

  • 02:16

    Next, you can view Kubernetes events
    Next, you can view Kubernetes events

  • 02:18

    in Cloud Logging with the following query--
    in Cloud Logging with the following query--

  • 02:20

    log_ID("events") and resource.label.cluster
    log_ID("events") and resource.label.cluster

  • 02:24

    name="CLUSTER NAME".
    name="CLUSTER NAME".

  • 02:28

    Finally, you can view Kubernetes events from Kubectl
    Finally, you can view Kubernetes events from Kubectl

  • 02:31

    by running kubectl events -A or, for a specific resource,
    by running kubectl events -A or, for a specific resource,

  • 02:35

    kubectl events --for the resource
    kubectl events --for the resource

  • 02:38

    forward slash the resource name.
    forward slash the resource name.

  • 02:39

    For example, kubectl events --for pod/ubuntu.
    For example, kubectl events --for pod/ubuntu.

  • 02:44

    Another useful way to view events
    Another useful way to view events

  • 02:46

    is with the describe command for a specific resource.
    is with the describe command for a specific resource.

  • 02:49

    For example, kubectl describe pod ubuntu.
    For example, kubectl describe pod ubuntu.

  • 02:52

    The Kubernetes events for the specific resource
    The Kubernetes events for the specific resource

  • 02:54

    are included at the bottom of the output.
    are included at the bottom of the output.

  • 02:57

    Let's dive into a demo and check out
    Let's dive into a demo and check out

  • 02:59

    how to use Kubernetes events for troubleshooting a common issue
    how to use Kubernetes events for troubleshooting a common issue

  • 03:02

    in the GKE cluster.
    in the GKE cluster.

  • 03:03

    This cluster has a number of workloads running,
    This cluster has a number of workloads running,

  • 03:05

    but there appears to be one workload with no Pods running.
    but there appears to be one workload with no Pods running.

  • 03:08

    Let's get the Kubernetes events for the Pod in this deployment
    Let's get the Kubernetes events for the Pod in this deployment

  • 03:11

    by running the following command--
    by running the following command--

  • 03:13

    kubectl events -n k8sevents --for the Pod, forward slash,
    kubectl events -n k8sevents --for the Pod, forward slash,

  • 03:18

    and the Pod name.
    and the Pod name.

  • 03:20

    Oh, it looks like there's insufficient memory
    Oh, it looks like there's insufficient memory

  • 03:22

    in the cluster for the Pod to be scheduled.
    in the cluster for the Pod to be scheduled.

  • 03:24

    The solution here is to scale up.
    The solution here is to scale up.

  • 03:26

    So let's add more nodes.
    So let's add more nodes.

  • 03:29

    Now that the additional notes are ready,
    Now that the additional notes are ready,

  • 03:31

    let's check the status of the workload.
    let's check the status of the workload.

  • 03:34

    Hm, eventsdeployment workload still has no Pods running.
    Hm, eventsdeployment workload still has no Pods running.

  • 03:37

    Let's view the events again.
    Let's view the events again.

  • 03:39

    The pods are unscheduled, as they could not
    The pods are unscheduled, as they could not

  • 03:41

    meet the taint and toleration requirement to be
    meet the taint and toleration requirement to be

  • 03:43

    scheduled on the new node.
    scheduled on the new node.

  • 03:44

    Let's add the toleration to the workload.
    Let's add the toleration to the workload.

  • 03:47

    Success.
    Success.

  • 03:48

    All the Pods in the workload are running.
    All the Pods in the workload are running.

  • 03:52

    This is just one scenario where Kubernetes events assisted us
    This is just one scenario where Kubernetes events assisted us

  • 03:55

    in quickly identifying and resolving
    in quickly identifying and resolving

  • 03:57

    our issue of a deployment not running.
    our issue of a deployment not running.

  • 03:59

    The next time you see a problem with your cluster,
    The next time you see a problem with your cluster,

  • 04:01

    try using Kubernetes events to identify and resolve issues.
    try using Kubernetes events to identify and resolve issues.

  • 04:05

    For more details about Kubernetes events,
    For more details about Kubernetes events,

  • 04:06

    check out the following documentation.
    check out the following documentation.

  • 04:08

    Thanks for watching.
    Thanks for watching.

  • 04:10

    [MUSIC PLAYING]
    [MUSIC PLAYING]

All

GKE: Using Kubernetes Events

2,356 views

Video Language:

  • english

Caption Language:

  • English (en)

Accent:

Speech Time:

NaN%
  • 04:08 / Invalid date

Speech Rate:

  • 170 wpm - Fast

Category:

  • Unkown

Tags :

Intro:

[MUSIC PLAYING]. SPEAKER: In this video, you will learn about Kubernetes events,
their use cases, how to view them,. and how to use them to troubleshoot. a common issue with Google Kubernetes Engine,. or GKE, clusters.. Let's get started by understanding. what Kubernetes events are.. Kubernetes events are objects that. give insights about what's happening inside a GKE cluster.
They are usually generated when a cluster's resources,
such as nodes, Pods, or containers, change state.. These events can be used to monitor your application
and cluster state, respond to failures,. and perform diagnostics.. Remember, events have a limited retention time. and will eventually be deleted.. So you must monitor and collect events as they happen.
Kubernetes events can be useful in multiple scenarios.
Here are a couple common use cases..

Video Vocabulary