In Kubernetes environments, pods are often dynamically created and assigned unique names. The Kubernetes Pod Name Prefix identification method allows you to target a group of pods belonging to the same deployment by specifying the common prefix of their names. This is particularly useful for managing access for deployments with multiple replicas or deployments that are frequently scaled up or down.
Applicable Deployment Type
Section titled “Applicable Deployment Type”This method is suitable for Edge-based deployments.
Configuration
Section titled “Configuration”Aembit Cloud
Section titled “Aembit Cloud”- Create a new Client Workload.
- Choose Kubernetes Pod Name Prefix for client identification.
- In the Value field, enter the desired pod name prefix. This is typically the name of your deployment.
Finding the Pod Name Prefix:
Section titled “Finding the Pod Name Prefix:”- Use the
kubectl get pods
command to list all pods in your cluster. - Identify the pods belonging to your target deployment. Their names will share a common prefix.
- Use this common prefix as the Value in the Client Workload configuration.
Uniqueness
Section titled “Uniqueness”Ensure that the chosen prefix is unique enough to avoid unintentionally matching pods from other deployments. Please consult the Client Workload multiple identifiers documentation to enhance uniqueness.