Gitea initcontainer "configure-gitea" fails if installed in istio mesh #363

Closed
opened 2022-09-21 16:32:24 +00:00 by ashutoshverma · 4 comments

$ kubectl -n default logs gitea-0 -c configure-gitea
initcontainer "configure-gitea

==== BEGIN GITEA CONFIGURATION ====
.....
.......
gitea/conf/app.ini
2022/09/21 15:09:31 ...e/cli@v1.22.9/app.go:277:Run() [I] PING DATABASE mysql
2022/09/21 15:09:36 cmd/migrate.go:41:runMigrate() [F] Failed to initialize ORM engine: dial tcp: lookup gitea-mysql.default.svc.cluster.local: Try again
Gitea migrate might fail due to database connection...This init-container will try again in a few seconds

There was a discussion in issue #149 about istio configuration. I added annotations to inject sidecar but it prevents initcontainer "configure-gitea" to connect with mysql service. Mysql is already running in the mesh.

  annotations:
    sidecar.istio.io/inject: 'true'
    traffic.sidecar.istio.io/excludeInboundPorts: '3306'

Is there any plan so fix this issue by moving connection logic to main container? Its a really blocker for me.

$ kubectl -n default logs gitea-0 -c configure-gitea initcontainer "configure-gitea ==== BEGIN GITEA CONFIGURATION ==== ..... ....... gitea/conf/app.ini 2022/09/21 15:09:31 ...e/cli@v1.22.9/app.go:277:Run() [I] PING DATABASE mysql 2022/09/21 15:09:36 cmd/migrate.go:41:runMigrate() [F] Failed to initialize ORM engine: dial tcp: lookup gitea-mysql.default.svc.cluster.local: Try again Gitea migrate might fail due to database connection...This init-container will try again in a few seconds There was a discussion in issue #149 about istio configuration. I added annotations to inject sidecar but it prevents initcontainer "configure-gitea" to connect with mysql service. Mysql is already running in the mesh. annotations: sidecar.istio.io/inject: 'true' traffic.sidecar.istio.io/excludeInboundPorts: '3306' Is there any plan so fix this issue by moving connection logic to main container? Its a really blocker for me.
Member

I'd like to help but I don't really understand your issue. What is istio mesh?

Appreciated if you could format your logs and code output.

I'd like to help but I don't really understand your issue. What is `istio mesh`? Appreciated if you could format your logs and code output.
Member

The configure-gitea init container tries to connect using an outbound port. Have you tried using this annotation? https://github.com/istio/istio/issues/37448#issuecomment-1048482347

The configure-gitea init container tries to connect using an outbound port. Have you tried using this annotation? https://github.com/istio/istio/issues/37448#issuecomment-1048482347
Member

There is #332 regarding init container usage.

There is #332 regarding init container usage.
Member

Stale/more info needed -> closing.

Stale/more info needed -> closing.
pat-s closed this issue 2023-06-05 20:07:45 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/helm-chart#363
No description provided.