100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CKAD QUESTIONS AND ANSWERS $8.99   Add to cart

Exam (elaborations)

CKAD QUESTIONS AND ANSWERS

 0 view  0 purchase
  • Course
  • CKAD
  • Institution
  • CKAD

CKAD kubectl api-resources -o name - Answer- command will list the object types currently available on the cluster kubectl describe $object_type $object_name - Answer- get information about an object's spec and status kubectl get pods - Answer- Gets pods currently running (in the default n...

[Show more]

Preview 2 out of 5  pages

  • August 11, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CKAD
  • CKAD
avatar-seller
Freshy
CKAD
kubectl api-resources -o name - Answer- command will list the object types currently
available on the cluster

kubectl describe $object_type $object_name - Answer- get information about an
object's spec and status

kubectl get pods - Answer- Gets pods currently running (in the default namespace)

kubectl get nodes - Answer- gets all nodes currently running in cluster

kubectl get node $node_name - Answer- Gets name, status, version, etc. about
node that is specified

kubectl get node $node_name -o yaml - Answer- Gets very detailed information
about the node that is specified in yaml information defining the object and it's spec

Pods - Answer- The basic building blocks of any application running in kubernetes

Pod - Answer- Consists of one or more containers and a set of resources shared by
those containers. All containers managed by a Kubernetes cluster are part of a POD

kubecutl create -f mypod.yml - Answer- create a pod from the yaml definition file

kubectl apply -f my-pod.yml - Answer- Edit a pod by updating the yaml definition and
reapplying it

kubectl edit pod my-pod - Answer- Edit a pod

kubectl delete pod my-pod - Answer- Delete a pd

kubectl get namespaces - Answer- You can get a list of the namespaces in the
cluster

kubectl create ns namespace_name - Answer- command to create a namespace

namespaces - Answer- virtual cluster that makes it easier to manage environments
with man users across multiple teams or projects

command: ['echo'] - Answer- Under the spec for your container you can specify a
command this way.

args: [" array", "of", "arguments"] - Answer- The command option in specs also takes
an array of arguments (as strings).

, - containerPort: 80 - Answer- Your container may want to network with other
containers. This will require you to specify a port for the container (port 80 in this
example).

config maps - Answer- a k8s object that stores confguration data in a key-value
format. This config data can then be used to configure software running in a
container, by referencing the configMap in the pod spec.

kubectl logs pod_name - Answer- Dumps pod logs to STDOUT

kubectl exec my-pod -- ls / - Answer- Executes a command inside a pod, in this case
"ls /"

resource request - Answer- the amount of resources necessary to run a container

resource limit - Answer- A max value for the resource usage of a container

service accounts - Answer- allow containers running in pods to access the K8s API.
Some apps may need to interact with the cluser itself. This provides a way to let

kubectl create serviceacccount my-serviceaccount - Answer- Command to create a
service account in K8S

serviceAccountName - Answer- Key name for naming a service account.

multi-container pod - Answer- pods with more than one container that al work
together as a single unit. It's typically better to keep them separate, but there are
some uses cases where they can be beneficial.

shareProcessNamespace: true - Answer- With the process namespace sharing
enabled, containers in the same pod can interact with and signal one another's
processes.

sidecar pod pattern - Answer- uses a container that enhances or adds functionality to
the main container in some way. For example, checking if there have been updating
in an external repo and pushing them to the pain container if there have been
changes.

ambassador pod pattern - Answer- Uses a container to accept network traffic and
pass it on to the main container. For example, the container listens on a custom port
and forwards the traffic to the main container on it's hard coded port.

adapter pod pattern - Answer- uses a container to change the output of the main
container in some way (e.g., formats and decorates log output from the main
container).

probes - Answer- Allow you to customize how K8s determines the status of your
containers

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 Freshy. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80435 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.99
  • (0)
  Add to cart