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
create a service account
26
create a custom scheduler use the custom scheduler to run a pod
27
which node use the most CPU
28
Set up a rolling update deployment with 50%
29
load environment variable from configmap
30
mount configmap to volume /tmp
31
create a service account token secret
32
Communicate Between Containers in the Same Pod Using a Shared Volume
33
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
34
restore etcd snapshot
35
create a CSR, thena pprove or reject it
36
csr groups, csr usage
36
change authorization mode
37
run command as user
38
create roles with api group settings?
39
use curl to hit the kubernete api server to get the groups, use kubeproxy so you dont have to specify the certs
40
how can i check if my user can create deployment or another user can create deployment?
41
grant a user access to create a storage class and persistent volume
42
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?
43
create a service account token
44
change the mounted service account and the token used on a deployment
45
find where in a pod i can find the token which is mounted by default
46
change the cluster so that no authentication is required to access the api server
47
create a user assign a rolebinding, assign a role
48
create a CSR request with a rsa private key... assign the user to a group
49
kodekloud 10 mock exam special
50
setup vim
set tabstop=2 shiftwidth=2 expandtab set nu set ai
51
setup tmux
bind -n C-k select-pane -U bind -n C-j select-pane -D
52
set docker pull image from private registry and using private docker credentials
53
pod run command as user
54
grant sys_time capabilities to pod
55
securityContext capabilities add vs remove? whatis the difference when to use which? do you know?
56
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?
57
create a network policy which denies all ingress traffic, how about one that allows all ingress traffic?
58
create a hostPath volume on a pod and mount as /log
59
create a hostpath pv, then pvc it, then mount it into container
60
create a storage class of local-storage, then pv and pvc it then mount to container
61
https://github.com/alijahnas/CKA-practice-exercises/blob/CKA-v1.23/storage.md#know-how-to-configure-applications-with-persistent-storage
62
skipped CNI and CNI-weave setup
https://github.com/kodekloudhub/certified-kubernetes-administrator-course/blob/master/docs/09-Networking/11-CNI-in-Kubernetes.md
63
create an ingress
64
https://github.com/mmumshad/kubernetes-the-hard-way
65