Hi Team,
For the question as below, the second part evaluation is always going to fail as by the end of exam few more pods will be created. Can you confirm whether that’s the issue? if so help rectify. TIA
This scenario is categorized into two parts. Please find them below.
Part I :
We have already deployed several pods in the default namespace. Create a ClusterIP
service .i.e. service-3421-svcn
, which should expose the pods, namely, pod-23
and pod-21
, with port set to 8080
and targetport to 80
.
Part II :
Store the pod names and their ip addresses from all namespaces
at /root/pod_ips_ckad02_svcn
where the output is sorted by their IPs.