Skip to content

Commit

Permalink
Merge pull request #169 from loft-sh/vcluster-content
Browse files Browse the repository at this point in the history
fix: troubleshooting tailscale
  • Loading branch information
FabianKramm authored Jun 26, 2024
2 parents c4efe74 + 3817f85 commit 64fec75
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
20 changes: 9 additions & 11 deletions platform/clusters/advanced/cluster-troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,28 @@ sidebar_label: Troubleshooting Clusters
---

# Troubleshooting Platform Agent Connection
If you encounter issues with agent connectivity, you can enable additional debug logs using the following environment variables in the `vcluster.yaml` config file.
If you encounter issues with agent connectivity, you can enable additional debug logs using the following environment variables in the platform `values.yaml` config file.

```yaml
env:
LOFT_LOG_TSNET_CONTROL_PLANE: true
LOFT_LOG_TSNET_AGENT: true
LOFT_LOG_TSNET_KUBEAPI: true
LOFT_LOG_DERP: true
LOFT_LOG_DERP_MESH: true

logging:
level: debug
```
These environment variables will enable debug logs for the following components:
- `LOFT_LOG_TSNET_CONTROL_PLANE`: Enable debug logs for the control plane component of the Network Peer network.
- `LOFT_LOG_TSNET_AGENT`: Enable debug logs for the control-plane managed agents (will also enable debug logs for the agent embedded in the control plane).
- `LOFT_LOG_TSNET_KUBEAPI`: Enable debug logs for the control-plane managed agents (will also enable debug logs for the agent embedded in the control plane).
- `LOFT_LOG_DERP`: Enable debug logs for the DERP server.
- `LOFT_LOG_DERP_MESH`: Enable debug logs for the DERP mesh.

:::info Enabling Platform Debug Logs
Please ensure that Platform logs are set to debug in the `vcluster.yaml` config file.

```yaml
logging:
level: debug
```
:::
:::info Enabling Agent Debug Logs

You can use the same config for the agent to display advanced logs. Use this in the Clusters > Edit > Manage vCluster Agent

:::
20 changes: 9 additions & 11 deletions platform/troubleshooting/cluster-troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,28 @@ sidebar_label: Host Clusters
---

# Troubleshooting Platform Agent Connection
If you encounter issues with agent connectivity, you can enable additional debug logs using the following environment variables in the `vcluster.yaml` config file.
If you encounter issues with agent connectivity, you can enable additional debug logs using the following environment variables in the platform `values.yaml` config file.

```yaml
env:
LOFT_LOG_TSNET_CONTROL_PLANE: true
LOFT_LOG_TSNET_AGENT: true
LOFT_LOG_TSNET_KUBEAPI: true
LOFT_LOG_DERP: true
LOFT_LOG_DERP_MESH: true

logging:
level: debug
```
These environment variables will enable debug logs for the following components:
- `LOFT_LOG_TSNET_CONTROL_PLANE`: Enable debug logs for the control plane component of the Network Peer network.
- `LOFT_LOG_TSNET_AGENT`: Enable debug logs for the control-plane managed agents (will also enable debug logs for the agent embedded in the control plane).
- `LOFT_LOG_TSNET_KUBEAPI`: Enable debug logs for the control-plane managed agents (will also enable debug logs for the agent embedded in the control plane).
- `LOFT_LOG_DERP`: Enable debug logs for the DERP server.
- `LOFT_LOG_DERP_MESH`: Enable debug logs for the DERP mesh.

:::info Enabling Platform Debug Logs
Please ensure that Platform logs are set to debug in the `vcluster.yaml` config file.

```yaml
logging:
level: debug
```
:::
:::info Enabling Agent Debug Logs

You can use the same config for the agent to display advanced logs. Use this in the Clusters > Edit > Manage vCluster Agent

:::

0 comments on commit 64fec75

Please sign in to comment.