Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Kubernetes CNCF Test Questions with Correct Answers Already Passed

Rating
-
Sold
-
Pages
23
Grade
A+
Uploaded on
07-04-2025
Written in
2024/2025

Kubernetes CNCF Test Questions with Correct Answers Already Passed apt-get update && apt-get upgrade -y apt-get install -y vim /etc/apt/.d/ deb curl -s | apt-key add - apt-get update apt-get install -y kubeadm=1.9.1-00 kubelet=1.9.1-00 wget kubeadm init --pod-network-cidr 10.244.0.0/16 mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/ $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config kubectl apply -f - Answers Install kubernetes kubectl get node kubectl describe node lfs458-node-1a0a kubectl get pods --all-namespaces kubectl taint nodes --all kubectl describe node lfs458-node-1a0a | grep -i taint - Answers Smoke test and initial Kubernetes setup apt-get update && apt-get upgrade -y apt-get install -y vim /etc/apt/.d/ deb curl -s | apt-key add - apt-get update apt-get install -y kubeadm=1.9.1-00 kubelet=1.9.1-00 sudo kubeadm token list openssl x509 -pubkey -in /etc/kubernetes/pki/ | openssl rsa -pubin -outform der 2/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //' kubeadm join --token 27eee4.6e66ff60318da929 10.128.0.3:6443 --discovery-token-ca-cert-hash sha256:6d541678b05652e1fa5d43908e75e67376e994c3483d6683f2a18673e5d2a1b0 - Answers Grow the cluster kubectl run nginx --image nginx - Answers Run nginx deployment with nginx image pod kubectl get events - Answers Get the latest Kubernetes events kubectl expose -h - Answers Get help within a command spec: containers: - image: nginx

Show more Read less
Institution
Kubernetes CNCF
Course
Kubernetes CNCF

Content preview

Kubernetes CNCF Test Questions with Correct Answers Already Passed

apt-get update && apt-get upgrade -y



apt-get install -y docker.io



vim /etc/apt/sources.list.d/kubernetes.list

deb http://apt.kubernetes.io/ kubernetes-xenial main



curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg \

| apt-key add -



apt-get update



apt-get install -y kubeadm=1.9.1-00 kubelet=1.9.1-00



wget \

https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml



kubeadm init --pod-network-cidr 10.244.0.0/16



mkdir -p $HOME/.kube

sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

sudo chown $(id -u):$(id -g) $HOME/.kube/config



kubectl apply -f kube-flannel.yml - Answers Install kubernetes

,kubectl get node



kubectl describe node lfs458-node-1a0a



kubectl get pods --all-namespaces



kubectl taint nodes --all node-role.kubernetes.io/master-



kubectl describe node lfs458-node-1a0a | grep -i taint - Answers Smoke test and initial Kubernetes setup

apt-get update && apt-get upgrade -y

apt-get install -y docker.io

vim /etc/apt/sources.list.d/kubernetes.list

deb http://apt.kubernetes.io/ kubernetes-xenial main

curl -s \

https://packages.cloud.google.com/apt/doc/apt-key.gpg \

| apt-key add -



apt-get update



apt-get install -y kubeadm=1.9.1-00 kubelet=1.9.1-00



sudo kubeadm token list

openssl x509 -pubkey \

-in /etc/kubernetes/pki/ca.crt | openssl rsa \

-pubin -outform der 2>/dev/null | openssl dgst \

, -sha256 -hex | sed 's/^.* //'



kubeadm join \

--token 27eee4.6e66ff60318da929 10.128.0.3:6443

--discovery-token-ca-cert-hash \

sha256:6d541678b05652e1fa5d43908e75e67376e994c3483d6683f2a18673e5d2a1b0 - Answers Grow
the cluster

kubectl run nginx --image nginx - Answers Run nginx deployment with nginx image pod

kubectl get events - Answers Get the latest Kubernetes events

kubectl expose -h - Answers Get help within a command

spec:

containers:

- image: nginx

imagePullPolicy: Always

name: nginx

ports:

- containerPort: 80

protocol: TCP - Answers Container port declaration in yaml

kubectl apply -f first.yaml - Answers Apply changes in yaml

kubectl expose deployment/nginx - Answers Exposing a deployment with default options

kubectl get svc nginx

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE

nginx ClusterIP 10.107.44.200 <none> 80/TCP 56s - Answers Get info about a service

kubectl get ep nginx

NAME ENDPOINTS AGE

nginx 10.244.3.12:80 1m - Answers Get info about endpoints

Written for

Institution
Kubernetes CNCF
Course
Kubernetes CNCF

Document information

Uploaded on
April 7, 2025
Number of pages
23
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.89
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TutorJosh Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
457
Member since
1 year
Number of followers
16
Documents
32174
Last sold
2 days ago
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.4

74 reviews

5
26
4
16
3
14
2
1
1
17

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions