Google Kubernetes Workloads Flashcards

1
Q

What does kubectl config view command do?

A

It tells you about the kubectl command itself, other tell you about the cluster config etc

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

What are the features of kubernetes?

A
Supports stateful and stateless applications
Autoscaling
Resource limits
Extensibility
Portability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Please state Compute engine use cases

A

Complete control over the OS and virtual hardware
Well suited for lift-and-shift
Most flexible solution when a managed solution is too restrictive.

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

App engine use cases

A

Websites
Mobile app and gaming backends
RESTful APIs

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

How many types of parallel jobs are there?

A

Two:

1) Fixed Completion count
2) Process work queue

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

Suppose you have a Job in which each Pod performs work drawn from a work queue. How should this Job’s manifest be configured?

A

Specify a parallelism value

Leave spec.completions unset

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

What is the cmd to enable kubectl autocompletion?

A

source ‘less then sign’(kubectl completion bash)

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

Whats the kubernetes cmd to create a cluster in cloud shell?

A

gcloud container clusters create $my_cluster –num-nodes 3 –zone $my_zone –enable-ip-alias

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

What is the kubernetes resize cluster cmd in cloud shell?

A

gcloud container clusters resize $my_cluster –zone $my_zone –num-nodes=4
When issuing cluster commands, you typically must specify both the cluster name and the cluster location (region or zone)

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

To get more information on a specific pod which cmd would you run?

A

kubectl describe [pod-name]

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

What are deployments designed for?

A

Stateless applications for eg web front end. k8 objects are used to manage back ends and state.

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

What are the possible values for the concurrencyPolicy when setting up a CronJob?

A

Allow, Forbid, Replace

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