Access Verrazzano
Get the consoles URLs
Verrazzano installs several consoles. The endpoints for an installation are stored in the Status field of the
installed Verrazzano Custom Resource.
You can access the installation endpoints using the Verrazzano CLI or with kubectl:
Verrazzano CLI
You can get the endpoints for these consoles by issuing the following command
and examining the Status.Instance field:
$ vz status
The resulting output is similar to the following:
Verrazzano Status
Name: verrazzano
Namespace: default
Version: 1.5.0
State: Ready
Profile: dev
Available Components: 24/24
Access Endpoints:
argoCDUrl: https://argocd.default.11.22.33.44.nip.io
consoleUrl: https://verrazzano.default.11.22.33.44.nip.io
grafanaUrl: https://grafana.vmi.system.default.11.22.33.44.nip.io
jaegerURL: https://jaeger.default.11.22.33.44.nip.io
keyCloakUrl: https://keycloak.default.11.22.33.44.nip.io
kialiUrl: https://kiali.vmi.system.default.11.22.33.44.nip.io
openSearchDashboardsUrl: https://osd.vmi.system.default.11.22.33.44.nip.io
openSearchUrl: https://opensearch.vmi.system.default.11.22.33.44.nip.io
prometheusUrl: https://prometheus.vmi.system.default.11.22.33.44.nip.io
rancherUrl: https://rancher.default.11.22.33.44.nip.io
thanosQueryUrl: https://thanos-query.default.11.22.33.44.nip.io
kubectl
You can get the endpoints for these consoles by issuing the following command
and examining the Status.Instance field:
$ kubectl get vz -o yaml
The resulting output is similar to the following (abbreviated to show only the relevant portions):
...
status:
conditions:
- lastTransitionTime: "2021-06-30T03:10:00Z"
message: Verrazzano install in progress
status: "True"
type: InstallStarted
- lastTransitionTime: "2021-06-30T03:18:33Z"
message: Verrazzano install completed successfully
status: "True"
type: InstallComplete
instance:
argoCDUrl: https://argocd.default.11.22.33.44.nip.io
consoleUrl: https://verrazzano.default.11.22.33.44.nip.io
grafanaUrl: https://grafana.vmi.system.default.11.22.33.44.nip.io
keyCloakUrl: https://keycloak.default.11.22.33.44.nip.io
kialiUrl: https://kiali.vmi.system.default.11.22.33.44.nip.io
opensearchDashboardsUrl: https://opensearchDashboards.vmi.system.default.11.22.33.44.nip.io
opensearchUrl: https://opensearch.vmi.system.default.11.22.33.44.nip.io
prometheusUrl: https://prometheus.vmi.system.default.11.22.33.44.nip.io
rancherUrl: https://rancher.default.11.22.33.44.nip.io
thanosQueryUrl: https://thanos-query.default.11.22.33.44.nip.io
If you have jq installed, then you can use the following command to get the instance URLs more directly.
$ kubectl get vz -o jsonpath="{.items[].status.instance}" | jq .
The following is an example of the output:
{
"argoCDUrl": https://argocd.default.11.22.33.44.nip.io
"consoleUrl": "https://verrazzano.default.11.22.33.44.nip.io",
"grafanaUrl": "https://grafana.vmi.system.default.11.22.33.44.nip.io",
"keyCloakUrl": "https://keycloak.default.11.22.33.44.nip.io",
"kialiUrl": "https://kiali.vmi.system.default.11.22.33.44.nip.io",
"opensearchUrl": "https://opensearch.vmi.system.default.11.22.33.44.nip.io",
"opensearchDashboardsUrl": "https://opensearchDashboards.vmi.system.default.11.22.33.44.nip.io",
"prometheusUrl": "https://prometheus.vmi.system.default.11.22.33.44.nip.io",
"rancherUrl": "https://rancher.default.11.22.33.44.nip.io"
"thanosQueryUrl": "https://thanos-query.default.11.22.33.44.nip.io"
}
Get consoles credentials
You will need the credentials to access the consoles installed by Verrazzano.
Consoles accessed by the same user name
- Grafana
- Prometheus
- OpenSearch Dashboards
- OpenSearch
- Kiali
- Jaeger
- Thanos Query
User: verrazzano
To get the password:
$ kubectl get secret \
--namespace verrazzano-system verrazzano \
-o jsonpath={.data.password} | base64 \
--decode; echo
The Argo CD console
You can log in to the Argo CD console using the verrazzano user configured in Keycloak or with the local admin user for Argo CD.
To log in with Keycloak, select the Log in with Keycloak link or enter the local user credentials to log in as a local user.
Local Admin User: admin
To get the password:
$ kubectl -n argocd get secret \
argocd-initial-admin-secret \
-o jsonpath={.data.password} | base64 \
--decode; echo
Keycloak User: verrazzano
To get the password:
$ kubectl get secret \
--namespace verrazzano-system verrazzano \
-o jsonpath={.data.password} | base64 \
--decode; echo
The Keycloak admin console
User: keycloakadmin
To get the password:
$ kubectl get secret \
--namespace keycloak keycloak-http \
-o jsonpath={.data.password} | base64 \
--decode; echo
The Rancher console
You can log in to the Rancher console using the verrazzano user configured in Keycloak or with the local admin user for Rancher.
To log in with Keycloak, select the Log in with Keycloak link or select the Use a local user link to log in with the local user.
Local Admin User: admin
To get the password:
$ kubectl get secret \
--namespace cattle-system rancher-admin-secret \
-o jsonpath={.data.password} | base64 \
--decode; echo
Keycloak User: verrazzano
To get the password:
$ kubectl get secret \
--namespace verrazzano-system verrazzano \
-o jsonpath={.data.password} | base64 \
--decode; echo
Change the Verrazzano password
To change the Verrazzano password, first change the user password in Keycloak and then update the Verrazzano secret.
Change the user in Keycloak
-
Navigate to the Keycloak admin console.
a. Obtain the Keycloak admin console URL, as described here.
b. Obtain the Keycloak admin console credentials, as described here.
-
In the left pane, select the
verrazzano-systemrealm from the drop-down menu. -
In the left pane, under
Manage, selectUsers. -
In the
Userspane, search forverrazzanoor clickView all users. -
Select the
verrazzanouser. -
At the top, select the
Credentialstab. -
Click
Reset Password. -
Specify the new password and confirm.
-
Specify whether the new password is a temporary password. A temporary password must be reset on next login.
-
Save and confirm the password reset by clicking
Reset passwordin the confirmation dialog.
Update the Verrazzano secret
Get the base64 encoding for your new password.
$ echo -n '<new password of verrazzano user>' | base64
Update the password in the secret to replace the existing password value with the new base64 encoded value.
$ kubectl patch secret verrazzano -n verrazzano-system -p '{"data": {"password": "<base64 password of verrazzano user>"}}'
Change the Keycloak administrator password
To change the Keycloak administrator password, first change the user password in Keycloak and then update the Keycloak secret.
Change the administrator user in Keycloak
-
Navigate to the Keycloak admin console.
a. Obtain the Keycloak admin console URL, as described here.
b. Obtain the Keycloak admin console credentials, as described here.
-
In the left pane, select the
masterrealm from the drop-down menu. -
In the left pane, under
Manage, selectUsers. -
In the
Userspane, select thekeycloakadminuser. -
At the top, select the
Credentialstab. -
Click
Reset password. -
Specify the new password and confirm.
-
Specify whether the new password is a temporary password. A temporary password must be reset on next login.
-
Save and confirm the password reset by clicking
Reset passwordin the confirmation dialog.
Update the Keycloak secret
Get the base64 encoding for your new password.
$ echo -n '<new password for keycloakadmin user>' | base64
Update the password in the secret to replace the existing password value with the new base64 encoded value.
$ kubectl patch secret keycloak-http -n keycloak -p '{"data": {"password": "<base64 password of keycloakadmin user>"}}'