Google Kubernetes Workloads Flashcards
What does kubectl config view command do?
It tells you about the kubectl command itself, other tell you about the cluster config etc
What are the features of kubernetes?
Supports stateful and stateless applications Autoscaling Resource limits Extensibility Portability
Please state Compute engine use cases
Complete control over the OS and virtual hardware
Well suited for lift-and-shift
Most flexible solution when a managed solution is too restrictive.
App engine use cases
Websites
Mobile app and gaming backends
RESTful APIs
How many types of parallel jobs are there?
Two:
1) Fixed Completion count
2) Process work queue
Suppose you have a Job in which each Pod performs work drawn from a work queue. How should this Job’s manifest be configured?
Specify a parallelism value
Leave spec.completions unset
What is the cmd to enable kubectl autocompletion?
source ‘less then sign’(kubectl completion bash)
Whats the kubernetes cmd to create a cluster in cloud shell?
gcloud container clusters create $my_cluster –num-nodes 3 –zone $my_zone –enable-ip-alias
What is the kubernetes resize cluster cmd in cloud shell?
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)
To get more information on a specific pod which cmd would you run?
kubectl describe [pod-name]
What are deployments designed for?
Stateless applications for eg web front end. k8 objects are used to manage back ends and state.
What are the possible values for the concurrencyPolicy when setting up a CronJob?
Allow, Forbid, Replace