k8s Flashcards

1
Q

create a pod with the image nginx

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

create pod with 2 containers, nginx and busybox

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

create a replicaset

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

create a deployment

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

create a namespace and set context to it

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

create 2 pods, curl one side from the other with dns name

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

create a clusterip & nodeport for a deployment

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

manually schedule a pod on a node by using the node’s name

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

schedule a deploy on a set of nodes based on the node’s tier (labels)

what if you want the deploy to run on nodes that satisfy either tier large or tier medium?

what if it should meet any nodes that has the label ‘supernode’ set?

what if the requirement would kick deployment off the node?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

apply & remove a taint to a node
if the node is already running an app without the toleration, make sure its rescheduled on another node after a grace period of 10 seconds

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

apply tolerations to a deployment

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

specify resource request and limit for cpu and ram

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

create a static pod, restart this static pod

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

get list of pods by label
get list of deployment by label
get list of nodes by label

whether using json or the label selector

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

taint a node with key=value and the effect of NoScheduled

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

remove taint from a node
remove toleration from a deployment

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

set a label on a node

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

remove a label from a nod

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

play with nodeAffiniity, podAffinity, podAntiAffinity

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

set pod nodeaffinity to a node with label color=blue,
requiredDuringSchedulingIgnoredDuringExecution

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

the nodeaffinity preferredDuringSchedulingIgnoredDuringExecution seems very hard to setup, please try set it again..?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

create a pod, set the limit to 1 cpu
0.1% of cpu
1 % of cpu
memory and all that stuff
set the limit 10m memory

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

find kubelet configurations

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

create a service account

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

create a custom scheduler
use the custom scheduler to run a pod

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

which node use the most CPU

A
28
Q

Set up a rolling update deployment with 50%

A
29
Q

load environment variable from configmap

A
30
Q

mount configmap to volume /tmp

A
31
Q

create a service account token secret

A
32
Q

Communicate Between Containers in the Same Pod Using a Shared Volume

A
33
Q

kubeadm upgradeto 1.27.0
https://github.com/kodekloudhub/certified-kubernetes-administrator-course/blob/master/docs/06-Cluster-Maintenance/06-Practice-Test-Cluster-Upgrade-Process.md

A
34
Q

restore etcd snapshot

A
35
Q

create a CSR, thena pprove or reject it

A
36
Q

csr groups, csr usage

A
36
Q

change authorization mode

A
37
Q

run command as user

A
38
Q

create roles with api group settings?

A
39
Q

use curl to hit the kubernete api server to get the groups,
use kubeproxy so you dont have to specify the certs

A
40
Q

how can i check if my user can create deployment or another user can create deployment?

A
41
Q

grant a user access to create a storage class and persistent volume

A
42
Q

grant a user to create/delete a deployment within certain namespace with a certain name

what if it’s a cluster wide settings? what if it’s a namespaced setting?

A
43
Q

create a service account token

A
44
Q

change the mounted service account and the token used on a deployment

A
45
Q

find where in a pod i can find the token which is mounted by default

A
46
Q

change the cluster so that no authentication is required to access the api server

A
47
Q

create a user assign a rolebinding, assign a role

A
48
Q

create a CSR request with a rsa private key… assign the user to a group

A
49
Q

kodekloud 10 mock exam special

A
50
Q

setup vim

A

set tabstop=2 shiftwidth=2 expandtab
set nu
set ai

51
Q

setup tmux

A

bind -n C-k select-pane -U
bind -n C-j select-pane -D

52
Q

set docker pull image from private registry and using private docker credentials

A
53
Q

pod run command as user

A
54
Q

grant sys_time capabilities to pod

A
55
Q

securityContext capabilities add vs remove? whatis the difference when to use which? do you know?

A
56
Q

allow a web deployment specified by label to access a db deployment, and do not allow anything else to access the db deployment.
The label matches all namespace resources, restrict to only one namespace. how to allow ip addresses? how to do and vs or?

A
57
Q

create a network policy which denies all ingress traffic,
how about one that allows all ingress traffic?

A
58
Q

create a hostPath volume on a pod and mount as /log

A
59
Q

create a hostpath pv, then pvc it, then mount it into container

A
60
Q

create a storage class of local-storage, then pv and pvc it then mount to container

A
61
Q

https://github.com/alijahnas/CKA-practice-exercises/blob/CKA-v1.23/storage.md#know-how-to-configure-applications-with-persistent-storage

A
62
Q

skipped CNI and CNI-weave setup

A

https://github.com/kodekloudhub/certified-kubernetes-administrator-course/blob/master/docs/09-Networking/11-CNI-in-Kubernetes.md

63
Q

create an ingress

A
64
Q

https://github.com/mmumshad/kubernetes-the-hard-way

A
65
Q
A