-
Notifications
You must be signed in to change notification settings - Fork 21.9k
aks-preview: Update bastion instructions to no longer need --server option on newer AKS preview extension
#127877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
aks-preview: Update bastion instructions to no longer need --server option on newer AKS preview extension
#127877
Conversation
…on newer aks-preview extension versions
|
Learn Build status updates of commit b51106e: ✅ Validation status: passed
For more details, please refer to the build report. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Updates Azure Bastion documentation to reflect changes in the aks-preview extension (version 19.0.0b16+) where the --server option is no longer required for kubectl commands when connecting to AKS private clusters through Bastion tunnels.
- Simplified kubectl command example by removing the
--serverparameter - Added a note explaining the version-specific behavior for older aks-preview extensions
- Updated code block language identifiers from
pwshtoazurecliandbashfor better syntax highlighting
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ``` | ||
|
|
||
| > [!NOTE] | ||
| > For aks-preview versions 19.0.0b15 and below, you have to specify the `--server=https://localhost:<LocalMachinePort>` on all `kubectl` commands. |
Copilot
AI
Nov 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The note should clarify what behavior to expect with version 19.0.0b16 and above, not just what's required for older versions. Consider rephrasing to: 'For aks-preview versions 19.0.0b15 and below, you must specify the --server=https://localhost:<LocalMachinePort> option on all kubectl commands. Version 19.0.0b16 and above automatically configures the kubeconfig to point to the correct server.'
| > For aks-preview versions 19.0.0b15 and below, you have to specify the `--server=https://localhost:<LocalMachinePort>` on all `kubectl` commands. | |
| > For aks-preview versions 19.0.0b15 and below, you must specify the `--server=https://localhost:<LocalMachinePort>` option on all `kubectl` commands. Version 19.0.0b16 and above automatically configures the kubeconfig to point to the correct server. |
|
Can you review the proposed changes? Due to the upcoming conference, all merging and publishing is on hold until the morning of 18 November 2025. Important: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
|
We should /hold on this as the version in the note might change based on https://github.com/Azure/azure-cli-extensions/pull/9415/files |
Once Azure/azure-cli-extensions#9415 is merged, it is no longer necessary to specify the
--serveroption as it edits the kubeconfig in place to point to the correct server.