CKA KUBERNETES EXAM QUESTIONS AND
CORRECT ANSWERS.
Create a namespace called ggckad-s0 in your cluster.
Run the following pods in this namespace.
A pod called pod-a with a single container running the kubegoldenguide/simple-http-server
image
A pod called pod-b that has one container running the kubegoldenguide/alpine-spin:1.0.0
image, and one container running nginx:1.7.9
Write down the output of kubectl get pods for the ggckad-s0 namespace.
kubectl create namespace ggckad-s0
kubectl run pod-a --image kubegoldenguide/simple-http-server -n ggckad-s0
kubectl run pod-b--image kubegoldenguide/apline-spin:1.0.0
kubectl run pod-b--image nginx:1.7.9
What is a pod?
group of one or more containers, with shared storage/network, and a specification for how to run
the containers.
What is a service?
A Service is an abstraction which defines a logical set of Pods and a policy by which to access
them.
What is kubelet?
An agent service which runs on each node and enables the slave to communicate with the master.
What is kubectl-proxy?
A network proxy which reflects the services as configured in Kubernetes API on each node.
What does the kube-apiserver do?
The API server is a component of the Kubernetes control plane that exposes the Kubernetes API.
The API server is the front end for the Kubernetes control plane.
, What does the kube scheduler do?
The kube-scheduler is responsible for scheduling and distribution, and management of workloads
on the worker nodes.
What is ETCD and what does it do for Kubernetes?
Consistent and highly-available key value store used as Kubernetes' backing store for all cluster
data.
What is Ingress?
Ingress exposes HTTP and HTTPS routes from outside the cluster to services within the cluster.
Traffic routing is controlled by rules defined on the Ingress resource.
What is an ingress controller? Give some examples of Ingress Controllers.
An Ingress controller is responsible for fulfilling the Ingress, usually with a load balancer,
though it may also configure your edge router or additional frontends to help handle the traffic.
Ambassador, ISTIO, NGINX.
What are the types of ingress?
Single Service, SImple Fanout, Name Based Virtual Hosting, TLS, Load Balancing.
All operations in this question should be performed in the ggckad-s2 namespace.
Create a ConfigMap called app-config that contains the following two entries:
'connection_string' set to 'localhost:4096'
'external_url' set to 'google.com'
Run a pod called question-two-pod with a single container running the
kubegoldenguide/alpine-spin:1.0.0 image, and expose these configuration settings as
environment variables inside the container.
kubectl create configmap my-config --from-literal=connection_string=localhost:4096 --from-
literal=external_url=google.com -n ggckad-s2
apiVersion: v1
CORRECT ANSWERS.
Create a namespace called ggckad-s0 in your cluster.
Run the following pods in this namespace.
A pod called pod-a with a single container running the kubegoldenguide/simple-http-server
image
A pod called pod-b that has one container running the kubegoldenguide/alpine-spin:1.0.0
image, and one container running nginx:1.7.9
Write down the output of kubectl get pods for the ggckad-s0 namespace.
kubectl create namespace ggckad-s0
kubectl run pod-a --image kubegoldenguide/simple-http-server -n ggckad-s0
kubectl run pod-b--image kubegoldenguide/apline-spin:1.0.0
kubectl run pod-b--image nginx:1.7.9
What is a pod?
group of one or more containers, with shared storage/network, and a specification for how to run
the containers.
What is a service?
A Service is an abstraction which defines a logical set of Pods and a policy by which to access
them.
What is kubelet?
An agent service which runs on each node and enables the slave to communicate with the master.
What is kubectl-proxy?
A network proxy which reflects the services as configured in Kubernetes API on each node.
What does the kube-apiserver do?
The API server is a component of the Kubernetes control plane that exposes the Kubernetes API.
The API server is the front end for the Kubernetes control plane.
, What does the kube scheduler do?
The kube-scheduler is responsible for scheduling and distribution, and management of workloads
on the worker nodes.
What is ETCD and what does it do for Kubernetes?
Consistent and highly-available key value store used as Kubernetes' backing store for all cluster
data.
What is Ingress?
Ingress exposes HTTP and HTTPS routes from outside the cluster to services within the cluster.
Traffic routing is controlled by rules defined on the Ingress resource.
What is an ingress controller? Give some examples of Ingress Controllers.
An Ingress controller is responsible for fulfilling the Ingress, usually with a load balancer,
though it may also configure your edge router or additional frontends to help handle the traffic.
Ambassador, ISTIO, NGINX.
What are the types of ingress?
Single Service, SImple Fanout, Name Based Virtual Hosting, TLS, Load Balancing.
All operations in this question should be performed in the ggckad-s2 namespace.
Create a ConfigMap called app-config that contains the following two entries:
'connection_string' set to 'localhost:4096'
'external_url' set to 'google.com'
Run a pod called question-two-pod with a single container running the
kubegoldenguide/alpine-spin:1.0.0 image, and expose these configuration settings as
environment variables inside the container.
kubectl create configmap my-config --from-literal=connection_string=localhost:4096 --from-
literal=external_url=google.com -n ggckad-s2
apiVersion: v1