Disable the Datadog Admission Controller with the Cluster Agent
Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel,
n'hésitez pas à nous contacter.
Overview
The Datadog Cluster Agent manages the Datadog Admission Controller by creating, updating, and deleting Admission Controllers as needed.
To disable the Admission Controller or remove the Cluster Agent, you must first disable the Admission Controller features in the Cluster Agent configuration and redeploy the Cluster Agent.
Once the Admission Controllers are removed, the Cluster Agent can be safely removed if necessary.
Prerequisites
Datadog Cluster Agent v7.63+
Steps
To disable the Admission Controllers with your Cluster Agent managed by the Datadog Operator:
- Set
features.admissionController.enabled to false in your DatadogAgent configuration. - Set
features.admissionController.validation.enabled to false in your DatadogAgent configuration. - Set
features.admissionController.mutation.enabled to false in your DatadogAgent configuration.
apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
name: datadog
spec:
features:
admissionController:
enabled: false
validation:
enabled: false
mutation:
enabled: false
After redeploying the Cluster Agent with the updated configuration, the Admission Controllers are removed.
To disable the Admission Controllers with your Cluster Agent managed by the Datadog Helm Chart:
- Set
clusterAgent.admissionController.enabled to false. - Set
clusterAgent.admissionController.validation.enabled to false. - Set
clusterAgent.admissionController.mutation.enabled to false.
clusterAgent:
enabled: true
admissionController:
enabled: false
validation:
enabled: false
mutation:
enabled: false
You can confirm the Admission Controllers are removed by checking ValidatingWebhookConfiguration and MutatingWebhookConfiguration resources in your cluster.
kubectl get validatingwebhookconfigurations.admissionregistration.k8s.io
kubectl get mutatingwebhookconfigurations.admissionregistration.k8s.io
Further Reading
Documentation, liens et articles supplémentaires utiles: