Kubernetes Engine Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Uptime Checks

A

Resource health is an integral part of cloud administration. Operations Suite can validate if a service is available by ensuring it can be accessed from any GCP data center globally. A best practice is to configure an uptime check, which is an alerting policy to ensure the system properly utilizes the default configuration. An uptime check can be created directly from the navigation pane in Operations Suite or using the Alerting Policy interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do engineers monitor Kubernetes?

A

Numerous monitoring tools can help an engineer ensure the system remains operational, including uptime checks and alerting policies. Uptime checks and alerting policies can be applied to a single instance within a cluster or to measure the performance of the entire cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Alerting Policies

A

Alerting policies, similar to uptime checks, inform you if the performance of an instance within a cluster, an entire cluster, or a container breaches an expected performance threshold.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how do you monitor Node Pools

A

node pools. Given a cluster is made up of several nodes, it only makes sense to evaluate the performance of each one. Scroll to the bottom of the cluster details page and then select the link under the node pool you would like to evaluate. Upon clicking the link, you will find details about the configuration of each node, the metadata parameters, security configuration details, instance group details, and node-specific performance metrics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Objects

A

Objects are persistent entities within Google Kubernetes Engine. Kubernetes uses objects as a means to manage the operational state of a cluster. A Kubernetes object has three main purposes:
*It helps identify what containerized applications are running.
*It provides resource availability among those applications.
*It supports policy assignment around those applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Workloads

A

Workloads are the packaging of containerized, hardware-independent, isolated applications. Each container, whether it contains an application or batch job, is known as a workload.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Pods

A

Pods are single instances in a cluster where a process is actively operating. A Pod must contain at least one container.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Storage

A

Pod shared-storage volumes are available between one or more containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Services

A

Services in Kubernetes Engine enable many sets of Pod endpoints to become a single resource using configurable grouping options. The default design of a Service includes a stable cluster IP address that a client may use to contact other Pods using the same Service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

ReplicaSet

A

The purpose of the ReplicaSet is to ensure a stable set of Pods run perpetually. ReplicaSets are associated with fields, including a selector to set parameters such as the number of Pods that can be acquired, the number of replicas that can be maintained, and a template for establishing the creation of new replicas should new Pods be required.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

StatefulSet

A

Pods that maintain unique, persistent identities as well as stable hostnames that Kubernetes Engine can support regardless of schedule are known as a StatefulSet. The use of StatefulSets is similar to Deployments; however, unique identifiers are available to each Po

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

DaemonSet

A

Making sure that all nodes run Pods is essential to container management. The use of a DaemonSet ensures that if Pods are added to a node, similar actions occur with a cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Jobs

A

Jobs are another type of controller object in GKE. Unlike other controller objects, a Job will operate until completion instead of ceasing when it reaches a given state. Jobs are most often associated with the handling with finite tasks, although they are quite useful for complex operational activities such as computational and batch-oriented tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Cluster

A

A cluster is the core object in the Google Kubernetes Engine that runs on top of the container application (see Figure 4-1). The cluster master is responsible for the Kubernetes control plane processes. A control plane process might include the API server, scheduler, and resource controllers. The cluster master life cycle occurs during the creation and deletion of a cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Draw a zonal GKE cluster
Wat does each secton do.

A

Control plane
The control plane runs the control plane processes, including the Kubernetes API server, scheduler, and core resource controllers. The lifecycle of the control plane is managed by GKE when you create or delete a cluster.

Nodes
A cluster typically has one or more nodes, which are the worker machines that run your containerized applications and other workloads. The individual machines are Compute Engine VM instances that GKE creates on your behalf when you create a cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are regional clusters like?

A

In contrast to zonal clusters that have a single control plane in a single zone, regional clusters increase the availability of both a cluster’s control plane and its nodes by replicating them across multiple zones in a region.

If one zone in a region experiences an outage, the cluster’s control plane remains accessible as long as two replicas of the control plane remain available.
During cluster maintenance such as a cluster upgrade, only one replica of the control plane is unavailable at a time, and the cluster is still operational.
The control plane is replicated across three zones of a region. For node pools, you can manually specify the zone(s) in which the cluster’s node pools run or you can use the default configuration, which replicates each node pool across three zones of the control plane’s region. All zones must be within the same region as the cluster’s control plane.

Use regional clusters to run your production workloads, as they offer higher availability than zonal clusters.

17
Q

What are pod deployments?

A

Deployments are sets of like-kind Pods managed by the Kubernetes Deployment controller that does not have any unique characteristics. When an instance becomes unhealthy, a Deployment can run one or more replicas of an application to replace failed or unresponsive instances. Deployments ensure that application instances are available to serve user requests as necessary.

Deployments makes use of the Pod template to describe a Pod specification. The Pod specification acts as a blueprint detailing what the Pod should act and look like throughout its entire life cycle

18
Q

Deployments

A

Deployments are sets of like-kind Pods managed by the Kubernetes Deployment controller that do not have any unique characteristics. When an instance becomes unhealthy, a Deployment can run one or more replicas of an application to replace failed or unresponsive instances. Deployments ensure that application instances are available to serve user requests as necessary.

19
Q

What are StatefulSets

A

Deployments are well suited to stateless applications. Those are applications that do not need to keep track of their state. For example, an application that calls an API to perform a calculation on the input values does not need to keep track of previous calls or calculations. An application that calls that API may reach a different pod each time it makes a call. There are times, however, when it is advantageous to have a single pod respond to all calls for a client during a single session.
StatefulSets are like deployments, but they assign unique identifiers to pods. This enables Kubernetes to track which pod is used by which client and keep them together. StatefulSets are used when an application needs a unique network identifier or stable persistent storage.

20
Q

DaemonSet

A

Making sure that all nodes run Pods is essential to container management. The use of a DaemonSet ensures that if Pods are added to a node, similar actions occur with a cluster. A deletion of a Pod from a cluster results in removal. Deleted Pods are accessible through garbage collection. A DaemonSet acts as a clean-up mechanism for those instances it creates. Should a cloud engineer decide to use a DaemonSet for GKE, it has many applications, including establishing shared storage, running logs per node in a cluster, and enabling node-based monitoring agents. DaemonSets use a Pod specification to maintain Pod requirements.

21
Q

Job

A

A job is an abstraction about a workload. Jobs create pods and run them until the application completes a workload. Job specifications are specified in a configuration file and include specifications about the container to use and what command to run.