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

Exam (elaborations)

KUBERNETES CNCF QUESTIONS AND ANSWERS

 0 view  0 purchase
  • Course
  • KUBERNETES CNCF
  • Institution
  • KUBERNETES CNCF

KUBERNETES CNCF QUESTIONS AND ANSWERS

Preview 2 out of 14  pages

  • September 24, 2024
  • 14
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • KUBERNETES CNCF
  • KUBERNETES CNCF
avatar-seller
GEEKA
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

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77764 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
$12.49
  • (0)
  Add to cart