# Maintaining Login Session in Case of Inability with Ingress Configuration

## 1. Configure upstream-hash-by in Ingress <a href="#id-1.-ingress-upstream-hash-by" id="id-1.-ingress-upstream-hash-by"></a>

1\) Click on the \[Applications] - \[Services] tab, then click on \[Workload Name] - \[Ingress] tab, and select the \[Settings] tab below.

2\) Click the "+" button in the annotation section and add the annotation as follows, then click "Apply".

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FlI88aIBz2PUcB3k0fISM%2F%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7%202024-01-30%20134032.png?alt=media&#x26;token=1ee1f49f-7dde-4b2c-8427-e42e9a6000e4" alt=""><figcaption><p>[Screen] Ingress Annotations</p></figcaption></figure>

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FWAmfbSAnkZiHlxRmT8Jp%2Fimage.png?alt=media&#x26;token=2a6aecd9-8c43-44e9-985b-7cfc6224ebc4" alt=""><figcaption><p>[Screen] Annotation Input</p></figcaption></figure>

```yaml
nginx.ingress.kubernetes.io/upstream-hash-by
$host
```

3\) Once done, click the "Save" button in the upper right corner.

4\) Verify the applied changes by checking the annotation section.

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FV0eagQ1n4P0V2AXEjfn4%2Fimage.png?alt=media&#x26;token=6f3e1edf-8973-45d3-bcb7-fb4208f9393b" alt=""><figcaption><p>[Screen] Confirm Ingress Configuration</p></figcaption></figure>
