Add flex node added into / remove from Private AKS cluster#55
Add flex node added into / remove from Private AKS cluster#55weiliu2dev wants to merge 5 commits intoAzure:mainfrom
Conversation
Add the foundational privatecluster package for joining nodes to private AKS clusters via WireGuard VPN through a Gateway VM.
d4d925c to
69604af
Compare
Replace shell scripts with native Go implementation using Azure SDK: - azure_client.go: Azure SDK client for Gateway VM lifecycle - installer.go: StepExecutor for Gateway provisioning and VPN setup - uninstaller.go: Executor for node cleanup and Gateway teardown - tool_installer.go: kubectl and kubelogin binary downloads
There was a problem hiding this comment.
gosec found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
ffdc990 to
bd3daff
Compare
81f6179 to
204ad26
Compare
|
@microsoft-github-policy-service agree company="Microsoft" |
|
I suggest spending a bit more time reviewing our codebase before starting to contribute. Thanks! |
make senses. |
- Add privatecluster as first bootstrap/unbootstrap step - Add TargetClusterConfig fields (private, gateway, cleanupMode) - Add --cleanup-mode flag for unbootstrap command - Remove unused config field from BaseExecutor
e5d9229 to
eee87ae
Compare
eee87ae to
c1ab0f9
Compare
c1ab0f9 to
9369be3
Compare
c6afa59 to
643199c
Compare
643199c to
88f8a4c
Compare
88f8a4c to
7c1096a
Compare
7c1096a to
ac63471
Compare
ac63471 to
de348c7
Compare
de348c7 to
70a406b
Compare
70a406b to
66e48e0
Compare
| @@ -0,0 +1,165 @@ | |||
| # Create Private AKS Cluster | |||
| @@ -0,0 +1,99 @@ | |||
| # Private AKS Cluster - Edge Node Join/Leave | |||
There was a problem hiding this comment.
consolidate with create_private_cluster.md into one usage doc?
There was a problem hiding this comment.
yes, will do it.
|
|
||
| # Config files with sensitive data (keep sample config) | ||
| config.json | ||
| Standard_D8pds_v6_sku.json |
| Location string `json:"location"` // Azure region of the cluster (e.g., "eastus", "westus2") | ||
| ResourceID string `json:"resourceId"` // Full resource ID of the target AKS cluster | ||
| Location string `json:"location"` // Azure region of the cluster (e.g., "eastus", "westus2") | ||
| IsPrivateCluster bool `json:"private" mapstructure:"private"` // Whether this is a private AKS cluster (requires Gateway/VPN setup) |
There was a problem hiding this comment.
reconsider the naming private cluster, since this applies to other use cases: VM/BM within VPC from 3rd party cloud, physical machine behind office firewall
There was a problem hiding this comment.
Good point. Agreed. VPN connections are not limited to private clusters. Currently, "private: true" is used as the trigger condition; this can be changed to "gateway: true" or other conditions in the future to support more network scenarios.
There was a problem hiding this comment.
can we update it in the following PR as the current PR is already big?
Summary
Add support for joining nodes to private AKS clusters (clusters with no public API endpoint) via WireGuard VPN through a Gateway VM in
Azure.
Files Changed
New package pkg/privatecluster/:
Modified files:
Test plan