GKE Flashcards
What is GKE?
GKE is managed Kubernetes solution offered by GCP.
What is Kubernetes?
Kubernetes is a container orchestration platform.
What are the 3 primary components that makeup a Kubernetes cluster?
- Control Plane Node
- Worker Node
- Pod
The Control Plane is a master node that manages Worker Nodes and Pods. A Worker Node is a node that hosts 1 or more Pods. A Pod is the smallest deployable unit and consists of 1 or more containers that share network and storage resources within the Pod.
When using GKE Standard, what are the 3 things you are responsible for managing?
- Provisioning and managing Worker Nodes
- Network configuration
- Security
What is the billing structure difference between GKE Standard and GKE Autopilot?
In GKE Standard, you pay for all resources on nodes, regardless of Pod requests.
In GKE autopilot, you only pay for the compute resources that your workloads use while running (Pods). You don’t pay for unused capacity on your nodes, system Pods, operating system costs, or unscheduled workloads.
Which compute resources is used to serve as Kubernetes nodes?
Compute Engine instances
Which GKE edition brings all the capabilities of Anthos to GKE?
GKE Enterprise edition
What is Anthos?
Anthos is a container platform that provides a range of features for working at enterprise scale. This platform was built around the idea of the fleet, a logical grouping of Kubernetes clusters that can be managed together and benefit from sameness of namespaces, services, and/or identity across the clusters.
GKE offers persistent storage, Cloud Run does not. GKE is suited for both stateful and stateless complex microservice applications. Cloud run is only suited for stateless applications.
Using a service mesh can help you manage traffic across your distributed services. A service mesh is software that links services together, and helps decouple business logic from networking. A service mesh typically provides resiliency features like request retries, failovers, and circuit breakers.
What is a Kubernetes Service?
A Kubernetes Service is a network abstraction that provides a fixed IP address and load balancing capabilities for accessing a group of pods. These pods may be hosted in a single node or across multiple nodes.
This is important because pods are ephemeral and their IP addresses change as they are deleted and recreated. Therefore, it doesn’t make sense to use Pod IP addresses directly, hence the need for Kubernetes Services.
What is a Kubernetes Volume and what are the 2 different types you can use?
A Kubernetes Volume is a directory that is accessible to all containers in a pod. The directory is mounted to a specific path inside each container.
- Ephemeral
- Persistent
Ephemeral volumes are created and terminated when a pod is created and terminated. A persistent volume has a lifecycle independent of the pod.
Does Kubernetes support declarative and imperative configurations?
Yes.
You can declare the desired sate and Kubernetes will implement the necessary steps to achieve that state.
You can also issue commands yourself to achieve a desired state.
Which features allows Kubernetes to support stateful applications?
SatefulSet Controllers and persistent storage
What is a Kubernetes Object?
A Kubernetes Object is a record that contains the spec and status of an entity in your cluster. The spec represents the desired state and the status represents the current state.
What must you provide to Kubernetes so that it can create an Object?
You must provide Kubernetes with a manifest file.
A manifest is a specification of an Object in YAML or JSON format.