Skip to content

Commit

Permalink
Merge pull request #434 from acekingke/fixHeadLessSVC
Browse files Browse the repository at this point in the history
mysqlcluser: headless svc has other cluster pods #433
  • Loading branch information
andyli029 authored Apr 2, 2022
2 parents 02d1eb8 + 56aa4d3 commit 7d05a4f
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 7d05a4f

Please sign in to comment.