# Reset Admin password behind K8s for gateway

**URL:** <https://forum.inductiveautomation.com/t/reset-admin-password-behind-k8s-for-gateway/73730>\
**Category:** Ignition\
**Tags:** docker\
**Created:** [May 15, 2023, 3:49pm UTC](https://forum.inductiveautomation.com/t/reset-admin-password-behind-k8s-for-gateway/73730 "2023-05-15T15:49:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_McClure](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Mark\_McClure](https://forum.inductiveautomation.com/u/Mark_McClure)\
**Post date:** [May 15, 2023, 3:49pm UTC](https://forum.inductiveautomation.com/t/reset-admin-password-behind-k8s-for-gateway/73730/1 "2023-05-15T15:49:03Z")

</div>

I had a case that I needed to reset the admin password on an gateway that was in a contain within K8s behind an ingress controller. I was able to prompt the gateway to reset that pasword but was unable to access the gateway on localhost. I ended up deleting the PVC and starting over as I was unable to figure out how to reset.

Do you have a solution besides rebuilding from scratch?

---

<div class="post-metadata">

**Author:** ![Kevin.Collins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.collins/32/13497_2.png) [@Kevin.Collins](https://forum.inductiveautomation.com/u/Kevin.Collins)\
**Post date:** [May 15, 2023, 6:03pm UTC](https://forum.inductiveautomation.com/t/reset-admin-password-behind-k8s-for-gateway/73730/2 "2023-05-15T18:03:49Z")

</div>

It sounds like your pod health check failed, resulting in your ingress no longer forwarding traffic to it. Can you share your `readinessProbe`? If it is using the built-in Ignition `health-check.sh` script, it actually should still be met in this password-reset scenario (and thus forward traffic).

That said, you should be able to temporarily connect to the pod via [`kubectl port-forward`](https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/) and bypass the ingress via a local port-forward.

---

<div class="post-metadata">

**Author:** ![Mark\_McClure](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Mark\_McClure](https://forum.inductiveautomation.com/u/Mark_McClure)\
**Post date:** [May 17, 2023, 4:43pm UTC](https://forum.inductiveautomation.com/t/reset-admin-password-behind-k8s-for-gateway/73730/3 "2023-05-17T16:43:12Z")

</div>

```
    readinessProbe:
      exec:

```

let me know if I need to modify anything

command:  
- health-check.sh  
- -t  
- "3"  
initialDelaySeconds: 120  
periodSeconds: 10  
timeoutSeconds: 3
