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 QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
14
Grade
A+
Uploaded on
24-09-2024
Written in
2024/2025

KUBERNETES CNCF QUESTIONS AND ANSWERS

Institution
KUBERNETES CNCF
Course
KUBERNETES CNCF

Content preview

KUBERNETES CNCF QUESTIONS AND ANSWERS
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

kubectl scale deployment nginx --replicas 3 - Answers -Scale a deployment

Written for

Institution
KUBERNETES CNCF
Course
KUBERNETES CNCF

Document information

Uploaded on
September 24, 2024
Number of pages
14
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.99
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.
GEEKA YALA UNIVERSITY
Follow You need to be logged in order to follow users or courses
Sold
2120
Member since
4 year
Number of followers
1446
Documents
55964
Last sold
19 hours ago

3.8

360 reviews

5
179
4
61
3
48
2
17
1
55

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