Skip to content

Commit

Permalink
fix(proxy): use fqdn for kotsadm-rqlite address
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Sep 9, 2024
1 parent b4c1bfa commit 0eaf3f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/kurl/kotsadm/template/base/tmpl-secret-rqlite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}]
2 changes: 1 addition & 1 deletion pkg/kotsadm/objects/secrets_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
},
Expand Down
4 changes: 2 additions & 2 deletions pkg/supportbundle/staticspecs/kurlspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0eaf3f9

Please sign in to comment.