> For the complete documentation index, see [llms.txt](https://docs.stackos.io/stackos-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackos.io/stackos-docs/operations/webtty-logs-shell-access.md).

# WebTTY, Logs, Shell Access

## ✅ Prepare your WebTTY

{% content-ref url="/pages/6Lt7THKcrasjl5i7evFj" %}
[Create WebTTY](/stackos-docs/operations/create-webtty.md)
{% endcontent-ref %}

## ✅ List your Pods

Use command `kubectl get pods` to see the list of all pods.

## ✅ Exec a shell (ssh-like access)

To execute the shell, use command `kubectl exec -ti`` `<mark style="color:blue;background-color:orange;">**`appname-0xADDRESS-random`**</mark> `-- bash`

Your WebTTY will now switch to a command line for your pod.

## ✅ Get the logs

`kubectl logs -f appname-0xADDRESS-random`&#x20;

## ✅ `Quickly Check HTTP`

`curl appname-0xADDRESS`

`This is really helpful for checking function internally before trying to debug external access`

## ✅ Working with ReplicaSets

ReplicaSets "manage" the pods/containers that you ultimately interact with.

Sometimes after changing configurations on the WebUI, you may have an old replica set that does not automatically go away.  It could be waiting on a shutdown or some other resource.

**You can list replica sets,** look for the oldest one matching the application you are managing and delete the old ReplicaSet

`kubectl get rs`

**Locate the "rs" you wish to delete**

`kubectl delete rs  rsname-0xADDRESS-random`&#x20;
