forked from gnuoy/snap-openstack
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change juju controller strategy to k8s
Currently the juju controller is bootstrapped on the local machine as manual cloud. This will cause issues for maintaining HA controller and during upgrades. So the strategy has been changed to bootstrap lxd controller instead and finally migrating them to a juju controller on k8s. Deploying LXD controller should be performed manually by the user. sunbeam bootstrap checks for LXD controller on localhost cloud and perform the following steps: * Add manual cloud and Empty credentials * Add machine model * Add the bootstrap machine to the model * Add juju space and update the model with the space * Deploy sunbeam-machine plan and microk8s/k8s plan * Add k8s cloud on juju client * Bootstrap juju controller on k8s with controller-service-type loadbalancer (The flag will create a lb ip for controller so that it will be reachable for non-bootstrap machines) * Add manual cloud and empty credentials on juju controller on k8s * Migrate machine model from lxd controller to k8s based juju controller * Add k8s credential to juju controller on k8s Some other internal changes: * Add new config `juju_controller_migrated_to_k8s` in cluster database to identify whether juju controller migration to k8s is completed * Add checks to verify if user is part of lxd group and controller exists on cloud `localhost`
- Loading branch information
1 parent
b07aaee
commit 321a777
Showing
17 changed files
with
965 additions
and
298 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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.