The Intro to Kubernetes Room is a subscriber only room from TryHackMe and is part of the DevSecOps learning path. It is available for subscribers at: https://tryhackme.com/r/room/introtok8s
1.1 Which benefit of Kubernetes means that it can run anywhere on any type of infrastructure?
Answer: highly portable
1.2 Fill in the blank “Kubernetes is a _________ _____________ system”.
Answer: container orchestration
2.1 What is the smallest deployable unit of computing you can create in Kubernetes?
Answer: pod
2.2 Which control plane component is a key/value store which contains data pertaining to the cluster and its current state?
Answer: etcd
2.3 Which worker node component is responsible for network communication within the cluster?
Answer: kube-proxy
3.1 Which Kubernetes component exposes pods and serves as an access point?
Answer: service
3.2 Which Kubernetes component can guarantee the availability of X number of pods?
Answer: replicaset
3.3 What Kubernetes component is used to define a desired state?
Answer: deployments
4.1 In a config file, you have just declared that you want 4 nginx pods. In which one of the ‘required fields’ has this been declared?
Answer: spec
4.2 The configuration file is for a deployment. In which one of the ‘required fields’ is this declared?
Answer: kind
4.3 The pods in this deployment will be exposed by a service. In the service configuration file, the target port was set to 80. What should you put as the ‘containerPort’?
Answer: 80
5.1 …troubleshoot a pod by gathering some details about it?
Answer: describe
5.2 …access the container’s shell?
Answer: exec
5.3 …check the status of running pods?
Answer: get
5.4 …turn a defined configuration (YAML file) into a running process?
Answer: apply
6.1 Which best container security practice is used to regulate access to a Kubernetes cluster and its resources?
Answer: RBAC
6.2 What is used to define security policies at 3 levels?
Answer: Pod Security Standards
6.3 What enforces these policies?
Answer: Pod Security Admission
6.4 What Kubernetes object can be used to store sensitive information and should, therefore, be managed securely?
Answer: Secret
7.1 Can you master the basics of Kubernetes and retrieve the flag?
Answer:THM{k8s_k3nno1ssarus}
7.2 What apiVersion is used for the RoleBinding?
Answer: rbac.authorization.k8s.io/v1