Infinite redirect loop - first admin

System Information
  • Strapi Version: 4.24.2
  • Operating System: node:20-alpine
  • Database: postgres
  • Node Version: v20.13.1
  • NPM Version:
  • Yarn Version:

Hi,
I am trying deploying strapi to k8s. The home page is accessible but after an attempt to visit admin and register the first admin, I am getting an infinite redirect loop. Public URL set (visible in booting screenshot), but it didn’t work without it.

 Actions available                                                                                                                                                                          │
│                                                                                                                                                                                             │
│ One more thing...                                                                                                                                                                           │
│ Create your first administrator 💻 by going to the administration panel at:                                                                                                                 │
│                                                                                                                                                                                             │
│ ┌────────────────────────────────┐                                                                                                                                                          │
│ │ https://cms.*MY-DOMAIN*.com/admin │                                                                                                                                                          │
│ └────────────────────────────────┘                                                                                                                                                          │
│                                                                                                                                                                                             │
│ [2024-05-13 06:54:59.464] http: GET /admin (36 ms) 200                                                                                                                                      │
│ [2024-05-13 06:54:59.672] http: GET /admin (15 ms) 200                                                                                                                                      │
│ [2024-05-13 06:54:59.732] http: GET /admin (4 ms) 200                                                                                                                                       │
│ [2024-05-13 06:54:59.882] http: GET /admin (9 ms) 200                                                                                                                                       │
│ [2024-05-13 06:54:59.959] http: GET /admin (5 ms) 200                                                                                                                                       │
│ [2024-05-13 06:55:00.113] http: GET /admin (8 ms) 200                                                                                                                                       │
│ [2024-05-13 06:55:00.168] http: GET /admin (8 ms) 200

The docker image was perfectly runnable at the local machine.
The XHR request to /admin/project-type returns always 401. But direct access (GET) to that URL returns some data.

{
  "data": {
    "isEE": false,
    "features": [],
    "flags": {
      "nps": true,
      "promoteEE": true
    }
  }
}

Has anyone experienced similar issues or can offer insights into what might be causing this behaviour? Any help or suggestions would be greatly appreciated!