'Gitea automate installation on kubernetes

I have deployed Gitea yamls on kubernetes and succeeded. I am running Gitea pod, service and an ingress, able to hit the Gitea ELB. The page which am seeing is where i still need to manually click on Install Button which i dont want because i need to integrate this with Jenkins.

Attached is the image with reference once the Gitea pod is up, first page comesup which is Initial Configuration page. I want this to be taken care via CLI.enter image description here

Gitea details which i deployed Gitea version: 1.16, DB: SQLite3

I did exec into the Gitea pod and ran the below command but dint work.

/app/gitea/gitea admin user create --username gitadmin --password gitadmin --email [email protected] -c /data/gitea/conf/app.ini

am getting an error mentioned below kubectl ex/app/gitea/gitea admin user create --username gitadmin --password gitadmin --email [email protected] -c /data/gitea/conf/app.ini ...s/setting/setting.go:960:loadFromConf() [F] Gitea is not supposed to be run as root. Sorry. If you need to use privileged TCP ports please instead use setcap and the `cap_net_bind_service` permission

Can anybody help me on how this can be automated?

I [Initial_Configuration][2]



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source