GKE 2 Flashcards

1
Q

What is GKE?

A

GKE is a managed Kubernetes solution offered by GCP.

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

At a high level, what is the billing structure difference between GKE Standard and GKE Autopilot?

A

GKE Standard charges for all resources on nodes, regardless of Pod requests.

GKE Autopilot charges for only the resources Pods request. In most situations, you only pay for the CPU, memory, and storage that your workloads request while running on GKE Autopilot. You aren’t billed for unused capacity on your nodes, because GKE manages the nodes. Exceptions to this model apply when you run Pods on specific compute classes that let Pods use the full resource capacity of the node virtual machine (VM).

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

When using GKE, are you responsible for managing the Control Plane and all of the system components that make up the Control Plane?

A

No. You are not responsible for managing the Control Plane or any of the system components that make up the Control Plane.

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

Is it possible to convert from GKE Standard to GKE Autopilot after creation?

A

No

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

What is “bin-packing”?

A

Bin-packing is the practice of placing as many Pods as possible onto each Kubernetes node to avoid wasting capacity. Because of the way GKE Autopilot is billed, this practice is not necessary. However, when using GKE Standard, this is a common practice.

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

resources:, which specifies the amount of computing resources that are available to each Pod.

If the load on your app surpasses the configured compute resources, the horizontal autoscaling Service automatically replicates Pods to handle the increased load. Autopilot mode enables this autoscaling Service by default.

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

Is GKE Autopilot regional or zonal?

A

Only regional. However, GKE Standard can be regional or zonal.

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

From the following:
Zonal clusters
Multi-zonal clusters
Regional clusters

Which one has multiple Control Plane replicas?

A

Regional clusters are the only ones that support Control Plane replicas across multiple zones.

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

What is a Node Pool?

A

A Node Pool is a group of nodes within a cluster that have the same configuration. Every cluster has at least 1 Node Pool. In fact, when a cluster is created a “default” Node Pool is created.

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

Google recommends that you use Google Cloud’s Managed Service for Prometheus to monitor your Kubernetes applications and infrastructure

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

Which OS is used for GKE Autopilot nodes? What about GKE Standard?

A

GKE Autopilot nodes use Container-optimizes OS. When using GKE Standard, you decide which OS your nodes use.

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

Which Kubernetes component is responsible for running containers in a Pod?

A

Kubelet

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

you are charged for node-to-node traffic across zones. For example, if a workload running in one zone needs to communicate with a workload in a different zone, the cross-zone traffic incurs cost.

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

When you create an Autopilot cluster with public networking, workloads in the cluster can communicate with each other and with the internet.

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

In Kubernetes, does every Pod get its own unique cluster-wide IP address?

A

Yes. This allows a Pod to communicate with any other Pod in any other node within the cluster.

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

What makes it possible for containers in a Pod to communicate with each other?

A

Containers in a Pod share the same IP address. This makes it possible for those containers to communicate with each other by using localhost with different ports.

For example:
ContainerA localhost:8080
ContainerB localhost:8081

17
Q

At a high level, what are the 4 different network communication possibilities that Kubernetes provides?

A
  1. Container-to-container communication within a Pod
  2. Pod-to-pod communication
  3. Pod-to-service communication
  4. External-to-service communication
18
Q

Pods, Nodes, and Services each have their own IP address.

A
19
Q

What is a Service and what is it used for?

A

A Service is an Object that is used to expose an application running as one or more pods in a cluster. Clients can connect to the Service instead of trying to connect to one of the various Pods. Remember, the IP address of Pods are ephemeral. A Service abstracts access to Pods.

20
Q

If you need to automatically scale the number of Pods in your cluster, what can you do?

A

You can use Horizontal Pod Autoscaling, which can scale Pods based on the built-in CPU and memory metrics, or custom metrics from Cloud Monitoring.

21
Q

If you need to deploy some Pods to a specific node because that node has special hardware, what can you do?

A

You can give the node a label and use it to specify where the Pods should be deployed. This is known as workload separation.

22
Q

Use Pod affinity and anti-affinity to co-locate Pods on a single node or to make some Pods avoid other Pods. For example, you could tell GKE to avoid scheduling frontend Pods alongside other frontend Pods on the same nodes to improve availability in case of an outage.

A
23
Q
A