Add Proxmox LXC instructions to bootstrap token UI
Users were confused about how to access the bootstrap token in Proxmox LXC containers. They were trying to use the Proxmox web console instead of 'pct enter' from the Proxmox host. This adds explicit instructions in the FirstRunSetup UI that show: - pct enter <ctid> for interactive access - pct exec <ctid> -- cat /etc/pulse/.bootstrap_token for direct retrieval - Clear indication that commands should be run from Proxmox host The instructions only display when the deployment is not Docker and the bootstrap token path is /etc/pulse/.bootstrap_token (indicating LXC). Fixes #681
This commit is contained in:
parent
9fcf0b35e8
commit
14ac4bbb8b
1 changed files with 7 additions and 0 deletions
|
|
@ -326,6 +326,13 @@ IMPORTANT: Keep these credentials secure!
|
|||
kubectl exec <pod-name> -- cat {bootstrapTokenPath()}
|
||||
<div class="text-gray-500 dark:text-gray-400 mt-2 mb-1"># Or exec into the container:</div>
|
||||
</Show>
|
||||
<Show when={!isDocker() && bootstrapTokenPath() === '/etc/pulse/.bootstrap_token'}>
|
||||
<div class="text-blue-600 dark:text-blue-400 mb-1"># For Proxmox LXC, run from Proxmox host:</div>
|
||||
pct enter <ctid>
|
||||
<div class="text-gray-500 dark:text-gray-400 mt-2 mb-1"># Or directly retrieve:</div>
|
||||
pct exec <ctid> -- cat {bootstrapTokenPath()}
|
||||
<div class="text-gray-500 dark:text-gray-400 mt-2 mb-1"># Or from inside the container:</div>
|
||||
</Show>
|
||||
cat {bootstrapTokenPath()}
|
||||
</div>
|
||||
</Show>
|
||||
|
|
|
|||
Loading…
Reference in a new issue