Skip to content

Commit

Permalink
mysqlcluser: headless svc has other cluster pods radondb#433
Browse files Browse the repository at this point in the history
  • Loading branch information
acekingke committed Apr 2, 2022
1 parent 02d1eb8 commit 56aa4d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mysqlcluster/syncer/headless_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func NewHeadlessSVCSyncer(cli client.Client, c *mysqlcluster.MysqlCluster) synce
service.Spec.Selector = labels.Set{
"app.kubernetes.io/name": "mysql",
"app.kubernetes.io/managed-by": "mysql.radondb.com",
"app.kubernetes.io/instance": c.Name,
}

// Use `publishNotReadyAddresses` to be able to access pods even if the pod is not ready.
Expand Down

0 comments on commit 56aa4d3

Please sign in to comment.