Kubernetes Engine Flashcards

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

Kubernetes Engine Cluster Modes

A

1) Standard: user-self managed cluster

2) Autopilot: GKE managed cluster, reduce operational cost

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

Gcloud container clusters create

A

Create Kubernetes cluster

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

gcloud container clusters get-credentials

A

connecting to Kubernetes cluster

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

kubectl create deployment

A

deploying microservice to the cluster

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

kubectl get deployment

A

reveal status of the microservice

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

kubectl expose deployment

A

expose microservice external IP

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

kubectl get service

A

checking status of the service, gives out

1) cluster internal IP
2) external IP
3) port used for the service
4) type expose of the service

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

kubectl scale deployment

A

scale number of instances service in the cluster

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

gcloud container clusters resize

A

increase number of nodes in Kubernetes cluster

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

Command to autoscale microservice

A

kubectl autoscale deployment –max = –cpu-percent = 70

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

Command to autoscale Kubernetes existing cluster

A

gcloud containers clusters update –enable-autoscaling –min-nodes= 1 –max-nodes=10

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

command to create autoscale cluster

A

gcloud containers clusters create –enable-autoscaling –min-nodes=1 –max-nodes=10

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

kubectl create configmap

A

create additional configuration to microservice

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

kubectl create secret generic

A

create password configuration

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

Master node

A

Manage cluster. Have 4 components:

1) API server
2) Scheduler
3) Control manager
4) etcd

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

API server

A

Handle communication for clusters from outside and nodes by exposing the API

17
Q

Scheduler

A

Decide placement of the pods

18
Q

Control manager

A

Manage deployment and replica sets

19
Q

etcd

A

distributed database storing cluster configuration

20
Q

Worker node

A

Run the workloads and the pods

21
Q

Kubelet

A

Component of the worker node. Handle communication with the master nodes

22
Q

Pods

A

Contain one or more containers. All containers in a pod share same network, storage, ports and volumes

23
Q

Deployment

A

Created for each microservice

24
Q

Replica set

A

Managing specific number of pods running for specific microservice version

25
Q

Services

A

Help to expose application to the outside world using three types:

1) ClusterIP: for intra network communication, expose service only between internal IP
2) LoadBalancer: expose service externally using GCP Load Balancer. One load balancer is used for one microservice deployed
3) NodePort: expose service on each node’s IP by creating Ingress component to load balance multiple microservice

26
Q

Stateful deployments

A

Use Stateful set where each set of pods come with unique, persistent identities and stable hostnames

27
Q

Daemon Set

A

Run services on nodes for logging and monitoring

28
Q

kubectl apply -f deployment.yaml

A

Update the deployment

29
Q

kubectl rollout undo deployment

A

rolling back the deployment to previous version

30
Q

Pod “PENDING” state

A

Pod cannot be schedule onto a node due to insufficient resources

31
Q

Pod “WAITING” state

A

Fail to pull image