-
Notifications
You must be signed in to change notification settings - Fork 11
Add flex node added into / remove from Private AKS cluster #55
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
Open
weiliu2dev
wants to merge
12
commits into
Azure:main
Choose a base branch
from
weiliu2dev:weiliu2/private-cluster-flex
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
69604af
Private AKS cluster: Add flexible node support
204ad26
change to go and remove bash file
47f8835
fix lint scan
a58d2be
Merge main into private-cluster branch, fix conflicts
2e797d9
gofmt
a66fa87
comments1
940d5c4
comments2
eae888c
comments 3
4af92ae
comments 4
543684a
[stage1] add node to private cluster
549cdc6
remove azure cli and use go track2 client
b304460
update docs
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,53 +1,44 @@ | ||
| # Binaries for programs and plugins | ||
| *.exe | ||
| *.exe~ | ||
| # Build artifacts | ||
| # Config files with sensitive data (keep sample config) | ||
| # Go workspace file | ||
| # IDE and editor files | ||
| # Log files | ||
| # OS generated files | ||
| # Output of the go coverage tool, specifically when used with LiteIDE | ||
| # Test binary, built with `go test -c` | ||
| # Test coverage reports | ||
| *.dll | ||
| *.so | ||
| *.dylib | ||
| aks-flex-node | ||
|
|
||
| # Test binary, built with `go test -c` | ||
| *.test | ||
|
|
||
| # Output of the go coverage tool, specifically when used with LiteIDE | ||
| *.exe | ||
| *.exe~ | ||
| *.log | ||
| *.out | ||
|
|
||
| # Test coverage reports | ||
| coverage.out | ||
| coverage.html | ||
| coverage.xml | ||
|
|
||
| # Go workspace file | ||
| go.work | ||
|
|
||
| # IDE and editor files | ||
| .vscode/ | ||
| .idea/ | ||
| *.swp | ||
| *.so | ||
| *.swo | ||
| *.swp | ||
| *.test | ||
| *~ | ||
|
|
||
| # OS generated files | ||
| ._* | ||
| .DS_Store | ||
| .DS_Store? | ||
| ._* | ||
| .Spotlight-V100 | ||
| .Trashes | ||
| ehthumbs.db | ||
| Thumbs.db | ||
|
|
||
| # Log files | ||
| *.log | ||
| /var/log/ | ||
|
|
||
| # Config files with sensitive data (keep sample config) | ||
| config.json | ||
|
|
||
| # Environment files with secrets | ||
| .idea/ | ||
| .vscode/ | ||
| .env | ||
| .env.local | ||
| .env.*.local | ||
|
|
||
| # Build artifacts | ||
| /build/ | ||
| /dist/ | ||
| /dist/AKSFlexNode | ||
| /var/log/ | ||
| AKSFlexNode | ||
| Standard_D8pds_v6_sku.json | ||
| Thumbs.db | ||
| aks-flex-node | ||
| config.json | ||
| coverage.html | ||
| coverage.out | ||
| coverage.xml | ||
| ehthumbs.db | ||
| go.work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ import ( | |
| "go.goms.io/aks/AKSFlexNode/pkg/components/services" | ||
| "go.goms.io/aks/AKSFlexNode/pkg/components/system_configuration" | ||
| "go.goms.io/aks/AKSFlexNode/pkg/config" | ||
| "go.goms.io/aks/AKSFlexNode/pkg/privatecluster" | ||
| ) | ||
|
|
||
| // Bootstrapper executes bootstrap steps sequentially | ||
|
|
@@ -31,8 +32,8 @@ func New(cfg *config.Config, logger *logrus.Logger) *Bootstrapper { | |
|
|
||
| // Bootstrap executes all bootstrap steps sequentially | ||
| func (b *Bootstrapper) Bootstrap(ctx context.Context) (*ExecutionResult, error) { | ||
| // Define the bootstrap steps in order - using modules directly | ||
| steps := []Executor{ | ||
| privatecluster.NewInstaller(b.logger), // VPN/Gateway setup (if private cluster) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure the private cluster set up should be put in the first place in both installer and uninstaller? |
||
| arc.NewInstaller(b.logger), // Setup Arc | ||
| services.NewUnInstaller(b.logger), // Stop kubelet before setup | ||
| system_configuration.NewInstaller(b.logger), // Configure system (early) | ||
|
|
@@ -51,6 +52,7 @@ func (b *Bootstrapper) Bootstrap(ctx context.Context) (*ExecutionResult, error) | |
| // Unbootstrap executes all cleanup steps sequentially (in reverse order of bootstrap) | ||
| func (b *Bootstrapper) Unbootstrap(ctx context.Context) (*ExecutionResult, error) { | ||
| steps := []Executor{ | ||
| privatecluster.NewUninstaller(b.logger), // Node removal + VPN teardown (if private cluster) | ||
| services.NewUnInstaller(b.logger), // Stop services first | ||
| npd.NewUnInstaller(b.logger), // Uninstall Node Problem Detector | ||
| kubelet.NewUnInstaller(b.logger), // Clean kubelet configuration | ||
|
|
@@ -59,7 +61,7 @@ func (b *Bootstrapper) Unbootstrap(ctx context.Context) (*ExecutionResult, error | |
| containerd.NewUnInstaller(b.logger), // Uninstall containerd binary | ||
| runc.NewUnInstaller(b.logger), // Uninstall runc binary | ||
| system_configuration.NewUnInstaller(b.logger), // Clean system settings | ||
| arc.NewUnInstaller(b.logger), // Uninstall Arc (after cleanup) | ||
| arc.NewUnInstaller(b.logger), // Uninstall Arc (after cleanup, uses public internet) | ||
| } | ||
|
|
||
| return b.ExecuteSteps(ctx, steps, "unbootstrap") | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Don't think you should add this as new CLI argument since this is private cluster only, this can be defined in config