# WebTTY, Logs, Shell Access

## ✅ Prepare your WebTTY

{% content-ref url="create-webtty" %}
[create-webtty](https://docs.stackos.io/stackos-docs/operations/create-webtty)
{% 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;
