100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CKAD Theory Test Questions & Answers 2024/2025 $8.49   Add to cart

Exam (elaborations)

CKAD Theory Test Questions & Answers 2024/2025

 12 views  0 purchase
  • Course
  • CKAD Theory
  • Institution
  • CKAD Theory

CKAD Theory Test Questions & Answers 2024/2025 what is a pod - ANSWERS- abstraction of a server, minimal entity that can be managed by k8s - can contain multiple containers that has shared resources (volumes/ect) exposed by a single IP address - in real-work scenarios: pods are started throu...

[Show more]

Preview 2 out of 9  pages

  • August 26, 2024
  • 9
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CKAD Theory
  • CKAD Theory
avatar-seller
Bensuda
CKAD Theory Test Questions & Answers
2024/2025

what is a pod - ANSWERS- abstraction of a server, minimal entity that can be managed by k8s

- can contain multiple containers that has shared resources (volumes/ect) exposed by a single IP address

- in real-work scenarios: pods are started through deployments



declarative vs imperative approach - ANSWERSimperative using the kubectl commands (useful on exam)

declarative using yaml files (how it's done on real work for automation and checked-in configs)



what is a sidecar container - ANSWERS- enhances or provides additional functionality to the main
container where it makes no sense on running on separate pod

- e.g logging, monitoring, synching

- the key is that the main container and the sidecar have access to shared resources to pass info (e.g.
volumes)



what is an ambassador container - ANSWERS- represents the primary container to the outside world
such as a proxy

- in java design pattern, think of front controller pattern

- in spring world, think dispatcherservlet



what is an adapter container - ANSWERSadopt the traffic or data pattern to match the traffic or data
pattern in other applications in the cluster



create namespace - ANSWERSkubectl create ns <name>



show all pods in all namespaces - ANSWERSkubectl get pods -A

or

kubectl get pods --all-namespaces

, basic fields on all yaml resources - ANSWERSapiVersion, kind, metadata, spec



create a namespace in declarative way (generate yaml) - ANSWERSkubectl create ns <namespace> --dry-
run=client -o yaml



setup nano to be default k8s editor - ANSWERSexport KUBE_EDITOR=nano



edit file using nano with tab as 2 spaces - ANSWERSnano <filename> -ET2



split terminal window (so 1 is terminal, 1 for kubectl explain) - ANSWERStmux

ctrl+b to send command to tmux

list of commands after ctrl+b

% (to create a new vertical split)

" (to create a new vertical split)

o (to switch between splits)

x (to remove the split)



setup kubectl autocomplete and alias for kubectl -
ANSWERShttps://kubernetes.io/docs/reference/kubectl/cheatsheet/ (bookmark this!)



env variables shortcut - ANSWERSsudo -i (to eliminate any further issues later that might required root)

alias kgc="kubectl config get-contexts"

alias ksc="kubectl config set-context --current --namespace"

export dr="--dry-run=client -o yaml"

export f="--force --grace-period=0"



inspect pods - ANSWERSkubectl describe <type> <name>

kubectl logs <pod name> -n <namespace> -c <container>

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Bensuda. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

64438 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.49
  • (0)
  Add to cart