Skip to content

Commit acf8d43

Browse files
[DOCS-6854] Add Troubleshooting/Admission Controller doc (DataDog#20911)
* Add initial framework for troubleshooting admission controller * Add containers/troubleshooting/admission controller to menu * Add overview & common problems * Add cluster agent status/logs section * Add networking and pod restrictions * Grammar and small fixes * Update further reading/troubleshooting links for new doc * More fixes, take out OpenShift SCC due to SELinux constraints * Apply suggestions from code review * significantly moving and editing things * Add referrals to Kubernetes>Distributions page for more details --------- Co-authored-by: cecilia saixue watt <cecilia.watt@datadoghq.com>
1 parent 068fb76 commit acf8d43

File tree

3 files changed

+422
-16
lines changed

3 files changed

+422
-16
lines changed

config/_default/menus/menus.en.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,11 @@ main:
666666
parent: containers_troubleshooting
667667
identifier: containers_troubleshooting_hpa
668668
weight: 804
669+
- name: Admission Controller
670+
url: containers/troubleshooting/admission-controller
671+
parent: containers_troubleshooting
672+
identifier: containers_troubleshooting_admission_controller
673+
weight: 805
669674
- name: Guides
670675
url: containers/guide
671676
parent: containers

content/en/containers/cluster_agent/admission_controller.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ further_reading:
77
- link: "/agent/cluster_agent/troubleshooting/"
88
tag: "Documentation"
99
text: "Troubleshooting the Datadog Cluster Agent"
10+
- link: "/containers/troubleshooting/admission-controller"
11+
tag: "Documentation"
12+
text: "Troubleshooting the Admission Controller"
1013
- link: "https://www.datadoghq.com/blog/auto-instrument-kubernetes-tracing-with-datadog/"
1114
tag: "Blog"
1215
text: "Use library injection to auto-instrument tracing for Kubernetes applications with Datadog APM"
@@ -185,22 +188,7 @@ Possible options:
185188

186189
## Troubleshooting
187190

188-
- The Admission Controller needs to be deployed and configured before the creation of new application Pods. It cannot update Pods that already exist.
189-
190-
View the Cluster Agent logs to ensure the Admission Controller has started successfully. Observe the following `INFO` logs:
191-
192-
```
193-
<date/time> | CLUSTER | INFO | (pkg/clusteragent/admission/api_discovery.go:122 in useAdmissionV1) | Group version 'admissionregistration.k8s.io/v1' is available, using it
194-
<date/time> | CLUSTER | INFO | (pkg/clusteragent/admission/controllers/secret/controller.go:74 in Run) | Starting secrets controller for <namespace>/webhook-certificate
195-
<date/time> | CLUSTER | INFO | (pkg/clusteragent/admission/controllers/webhook/controller_v1.go:76 in Run) | Starting webhook
196-
```
197-
198-
- To disable the Admission Controller injection feature, use the Cluster Agent configuration: `DD_ADMISSION_CONTROLLER_INJECT_CONFIG_ENABLED=false`
199-
- By using the Datadog Admission Controller, users can skip configuring the application Pods using downward API ([step 2 in Kubernetes Trace Collection setup][3]).
200-
- Private clusters need specific networking rules because Datadog's Admission Controller webhook receives requests on port `443` and directs to a service on port `8000`:
201-
- In a GKE private cluster, you need to [add a firewall rule for the control plane][4]. By default, the network for the cluster should have a firewall rule named `gke-<CLUSTER_NAME>-master`. This rule's source filters match the cluster's control plane address range. Edit this firewall rule to allow ingress to the TCP port `8000`.
202-
- In an EKS private cluster, you need to [add an inbound rule for the node security group][5], where the Datadog Cluster Agent is located. Edit this rule to allow TCP port `8000` with the `Source` referencing the cluster security group (automatically created by AWS corresponding to the EKS control plane).
203-
191+
See [Admission Controller Troubleshooting][6].
204192

205193
## Further Reading
206194

@@ -211,3 +199,4 @@ Possible options:
211199
[3]: https://docs.datadoghq.com/agent/kubernetes/apm/?tab=helm#setup
212200
[4]: https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#add_firewall_rules
213201
[5]: https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html#security-group-rule-components
202+
[6]: /containers/troubleshooting/admission-controller

0 commit comments

Comments
 (0)