diff --git a/deploy/kurl/kotsadm/template/base/tmpl-secret-rqlite.yaml b/deploy/kurl/kotsadm/template/base/tmpl-secret-rqlite.yaml index 4d89709da6..c2bd9ea835 100644 --- a/deploy/kurl/kotsadm/template/base/tmpl-secret-rqlite.yaml +++ b/deploy/kurl/kotsadm/template/base/tmpl-secret-rqlite.yaml @@ -6,7 +6,7 @@ metadata: kots.io/kotsadm: 'true' kots.io/backup: velero stringData: - uri: http://kotsadm:${RQLITE_PASSWORD}@kotsadm-rqlite:4001?timeout=60&disableClusterDiscovery=true + uri: http://kotsadm:${RQLITE_PASSWORD}@kotsadm-rqlite.default.svc.cluster.local:4001?timeout=60&disableClusterDiscovery=true password: ${RQLITE_PASSWORD} authconfig.json: | [{"username": "kotsadm", "password": "${RQLITE_PASSWORD}", "perms": ["all"]}, {"username": "*", "perms": ["status", "ready"]}] diff --git a/pkg/kotsadm/objects/secrets_objects.go b/pkg/kotsadm/objects/secrets_objects.go index b9c4bcf49d..a6a4bbc590 100644 --- a/pkg/kotsadm/objects/secrets_objects.go +++ b/pkg/kotsadm/objects/secrets_objects.go @@ -49,7 +49,7 @@ func RqliteSecret(namespace string, password string) *corev1.Secret { Labels: types.GetKotsadmLabels(), }, Data: map[string][]byte{ - "uri": []byte(fmt.Sprintf("http://kotsadm:%s@kotsadm-rqlite:4001?timeout=60&disableClusterDiscovery=true", password)), + "uri": []byte(fmt.Sprintf("http://kotsadm:%s@kotsadm-rqlite.%s.svc.cluster.local:4001?timeout=60&disableClusterDiscovery=true", password, namespace)), "password": []byte(password), "authconfig.json": []byte(fmt.Sprintf(`[{"username": "kotsadm", "password": "%s", "perms": ["all"]}, {"username": "*", "perms": ["status", "ready"]}]`, password)), }, diff --git a/pkg/supportbundle/staticspecs/kurlspec.yaml b/pkg/supportbundle/staticspecs/kurlspec.yaml index 58703afc0f..36b9461d28 100644 --- a/pkg/supportbundle/staticspecs/kurlspec.yaml +++ b/pkg/supportbundle/staticspecs/kurlspec.yaml @@ -121,7 +121,7 @@ spec: - name: rqlite-status image: busybox:1 command: ["wget"] - args: ["-q", "-T", "5", "http://kotsadm-rqlite:4001/status?pretty", "-O-"] + args: ["-q", "-T", "5", "http://kotsadm-rqlite.default.svc.cluster.local:4001/status?pretty", "-O-"] - runPod: collectorName: "rqlite-nodes" name: rqlite-nodes @@ -131,7 +131,7 @@ spec: - name: rqlite-nodes image: busybox:1 command: ["wget"] - args: ["-q", "-T", "5", "http://kotsadm-rqlite:4001/nodes?pretty&ver=2", "-O-"] + args: ["-q", "-T", "5", "http://kotsadm-rqlite.default.svc.cluster.local:4001/nodes?pretty&ver=2", "-O-"] - copyFromHost: collectorName: kurl-host-preflights name: kots/kurl/host-preflights