Skip to content

Commit 4b98e74

Browse files
committed
Troubleshooting instructions
Signed-off-by: Richard Wall <[email protected]>
1 parent 1bf4bca commit 4b98e74

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,51 @@ The released container images are cryptographically signed by
2323
verify those signatures and attachments, refer to
2424
[this guide](docs/guides/cosign).
2525

26+
## Troubleshooting
27+
28+
### Venafi Workloads
29+
30+
Dump the state of all the workloads in the Venafi namespace:
31+
32+
```
33+
kubectl cluster-info dump --namespace venafi -o yaml --output-directory venafi.dump
34+
```
35+
36+
### Agent logs, current and previous
37+
38+
Dump the logs from the agent:
39+
40+
```bash
41+
kubectl logs -n venafi deployments/venafi-kubernetes-agent
42+
kubectl logs -n venafi deployments/venafi-kubernetes-agent --previous
43+
```
44+
45+
### API Object Count by Kind
46+
47+
It is possible that your cluster has a large number of API objects which are being downloaded and cached by the agent,
48+
causing excessive memory usage.
49+
You can solve this by creating a custom agent configuration, which excludes certain API object kinds or excludes some namespaces.
50+
51+
This command will give the object counts from the [metrics endpoint of the API server](https://kubernetes.io/docs/reference/instrumentation/metrics/):
52+
53+
```bash
54+
kubectl get --raw "/metrics" | grep apiserver_storage_objects
55+
```
56+
57+
### Secret Count by Type
58+
59+
It is possible that your cluster contains a large number of large Secrets which are being downloaded and cached by the agent,
60+
causing excessive memory usage.
61+
By default the agent will ignore various common Secret types, but your cluster
62+
may contain other Secret types which are not in the default list and which can
63+
be excluded.
64+
65+
This command will give a list of all the Secrets and their types, [without downloading any of the data in the Secrets](https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables):
66+
67+
```bash
68+
kubectl get secret --all-namespaces
69+
```
70+
2671
## Local Execution
2772

2873
To build and run a version from master:

0 commit comments

Comments
 (0)