Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions console-web/app/(auth)/auth/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ export default function LoginPage() {
<div className="flex flex-col gap-2 border border-border bg-muted p-3">
<p className="text-xs text-muted-foreground">{t("Run the following command to generate a token:")}</p>
<pre className="overflow-x-auto bg-background p-2 font-mono text-xs text-foreground">
{`kubectl create token rustfs-operator \\
-n rustfs-system \\
{`kubectl -n rustfs-system create token rustfs-operator-console \\
--duration=24h`}
</pre>
<p className="text-xs text-muted-foreground">{t("Paste the token above to sign in.")}</p>
Expand Down
3 changes: 2 additions & 1 deletion deploy/rustfs-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ kubectl -n rustfs-system create token rustfs-operator-console --duration=24h
```

Paste the printed token into the Console login form. Use the namespace and
ServiceAccount name from your Helm release if they differ from the defaults.
ServiceAccount name from your Helm release if they differ from the defaults;
the Helm install notes print the exact command for the deployed release.

## Verifying the Installation

Expand Down
16 changes: 16 additions & 0 deletions deploy/rustfs-operator/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,20 @@ To view Tenant resources:

kubectl get tenants --all-namespaces

{{ if .Values.console.enabled }}
To log in to the Operator Console, create a short-lived token for the chart-managed Console ServiceAccount:

kubectl -n {{ include "rustfs-operator.namespace" . }} create token {{ include "rustfs-operator.consoleServiceAccountName" . }} --duration=24h

{{ if .Values.console.frontend.enabled }}
To open the legacy split Console frontend locally:

kubectl -n {{ include "rustfs-operator.namespace" . }} port-forward svc/{{ include "rustfs-operator.fullname" . }}-console-frontend 18080:{{ .Values.console.frontend.service.port }}
{{ else }}
To open the Operator Console locally:

kubectl -n {{ include "rustfs-operator.namespace" . }} port-forward svc/{{ include "rustfs-operator.fullname" . }}-console 19090:{{ .Values.console.service.port }}
{{ end }}

{{ end }}
For more information, visit: {{ .Chart.Home }}
2 changes: 2 additions & 0 deletions docs/operator-user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ kubectl -n rustfs-system create token rustfs-operator-console --duration=24h
```

Paste the token into the login form. The Console stores the validated token in an encrypted session cookie.
If your Helm release uses a custom namespace or `console.serviceAccount.name`,
use the command printed in the Helm install notes.

For local port-forward testing:

Expand Down
1 change: 1 addition & 0 deletions docs/operator-user-guide.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ kubectl -n rustfs-system create token rustfs-operator-console --duration=24h
```

将 token 粘贴到 Console 登录页。Console 会把验证后的 token 存入加密 session cookie。
如果 Helm release 使用了自定义 namespace 或 `console.serviceAccount.name`,请以 Helm 安装提示中输出的命令为准。

本地 port-forward 调试:

Expand Down
Loading