How is this custom column output is incorrect?

Wondering how I got part II of this question wrong. /root/pod_ips_cka05_svcn looks correct, but I got a red x. Is the scorer also checking the command and is complaining about “k get po” vs “k get pod” and --“sort-by=‘{.status.podIP}’” vs “–sort-by=.status.podIP” ?

k get po -A -o custom-columns=POD_NAME:.metadata.name,IP_ADDR:.status.podIP --sort-by='{.status.podIP}' > /root/pod_ips_cka05_svcn

cat /root/pod_ips_cka05_svcn
POD_NAME                                  IP_ADDR
helm-install-traefik-crd-k5w9w            10.42.0.2
metrics-server-668d979685-f4jsw           10.42.0.3
coredns-b96499967-7h24t                   10.42.0.4
helm-install-traefik-fflkr                10.42.0.5
local-path-provisioner-7b7dc8d6f5-5tmjb   10.42.0.6
traefik-7cd4fcff68-sw44w                  10.42.0.7
svclb-traefik-8jn2v                       10.42.0.8
logger-complete-cka04-arch                10.42.0.9
app-wl03                                  10.42.0.10
webapp-pod-wl05                           10.42.0.12
mysql-wl05                                10.42.0.14
webapp-wear-cka09-svcn-764fbd4667-rqtq6   10.42.0.15
svclb-wear-service-cka09-svcn-rs42r       10.42.0.16
server1-cka03-svcn                        10.42.0.17
pod-12                                    10.42.0.18
pod-23                                    10.42.0.19
pod-34                                    10.42.0.20
pod-21                                    10.42.0.21
pod-32                                    10.42.0.22
pod-43                                    10.42.0.23
nginx-resolver-cka06-svcn                 10.42.0.24

Hi @tzk223,

Seams like correct but which error message you have with the red x?

Regard

The same is happening to me. My output is saying it’s incorrect. I’ve even saved the command exactly as it is in the solution and used it that way, and it still says the output is incorrect.

Hi @alesharay.career,
Thanks for highlighting this. We will look into it.

Regards,