Feature flags are used in Kubernetes to:
Think about how you can enable or disable features without changing the app code or redeploying.
Feature flags allow toggling features on or off dynamically, enabling safer rollouts and testing without full redeployment.
Given a ConfigMap named feature-flags with a key newUI set to true, what does this command output?
kubectl get configmap feature-flags -o jsonpath='{.data.newUI}'Check the key value inside the ConfigMap data field.
The command extracts the value of the newUI key from the ConfigMap data, which is true.
Select the valid Kubernetes ConfigMap YAML that sets a feature flag betaFeature to enabled.
ConfigMap data must be under the data field as key-value pairs.
Option B correctly uses the data field with key-value pairs. Other options misuse fields or structure.
Put these steps in the correct order to update a feature flag stored in a ConfigMap:
Think about editing first, then saving, verifying, and finally ensuring pods use the new config.
You first edit the ConfigMap, save changes, verify the update, then ensure pods reload the new config.
You updated a feature flag in a ConfigMap, but the pod still behaves as if the old flag is active. What is the most likely reason?
Consider how pods get updated ConfigMap data during runtime.
Pods do not automatically reload ConfigMap changes unless they watch for updates or are restarted.