跳至內容

YAML output for pvc-protection-controller

0

Is there a way we can view the YAML output spec for any pvc-protection-controller pods? If it’s already configured with a volume-mount with a path of /var/run/secrets/kubernetes.io/serviceaccount and a name set to kube-api-access-000 then it’s already using the projected service account volume with short-term credentials.

AWS
已提問 4 個月前檢視次數 29 次
1 個回答
0

The pvc-protection-controller is part of the Kubernetes controller manager, not a standalone pod that you can directly view with kubectl. It's a controller that runs within the kube-controller-manager component of the Kubernetes control plane.

To view metrics related to the controller manager (which includes the pvc-protection-controller), you can use the following command for EKS clusters running Kubernetes version 1.28 and above:

kubectl get --raw "/apis/metrics.eks.amazonaws.com/v1/kcm/container/metrics"

This will return metrics in Prometheus format, which may include workqueue metrics for the pvc-protection-controller.

Regarding service account volume mounts, the controller manager itself would have the appropriate volume mounts configured by EKS as part of the control plane setup. Since the pvc-protection-controller runs as part of the controller manager process and not as a separate pod, you wouldn't be able to directly inspect its volume mounts in the same way you would for a standalone pod.

If you're concerned about credential management for EKS components, EKS now supports Pod Identity for add-ons, which simplifies IAM permissions for Kubernetes workloads. This feature allows for more direct IAM permission assignment without requiring OpenID Connect (OIDC) providers.
Sources
Fetch control plane raw metrics in Prometheus format - Amazon EKS
Simplifying IAM Permissions for Amazon EKS Addons with EKS Pod Identity | Containers

已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。