You are a site-reliability engineer reviewing a small set of Kubernetes
You are a site-reliability engineer reviewing a small set of Kubernetes: a task in endless-terminals-rootless-apptainer: Endless Terminals 1K: rootless Apptainer release (Harbor dataset). Analyze all .yaml files inside /home/user/k8s-configs/ . For each manifest, find the value for the kind: key…
The task
Analyze all `*.yaml` files inside `/home/user/k8s-configs/`. For each manifest, find the value for the `kind:` key (there is exactly one per file). Count the occurrences of each distinct `kind` across all the files. Write these counts to a new file called `/home/user/k8s-configs/kind_frequency.txt`.