-
Notifications
You must be signed in to change notification settings - Fork 14
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
Migrate cloudProviderId #197
Conversation
@outscale-hmi @outscale-mdr Are you ok with latest changes ? |
provider-id: aws:///'{{ ds.meta_data.instance_id }}' | ||
provider-id: aws://eu-west-2a/'{{ ds.meta_data.instance_id }}' |
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.
"eu-west-2a", it should be retrieve from the metadata.
The following command will give you the subregion:
curl http://169.254.169.254/latest/meta-data/placement/availability-zone
You should test if {{ ds.meta_data.placement.availability_zone }}
gives you what you want
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.
Ok done thanks.
@@ -129,7 +129,7 @@ spec: | |||
name: "{{ ds.meta_data.local_hostname }}" | |||
kubeletExtraArgs: | |||
cloud-provider: external | |||
provider-id: osc://'{{ ds.meta_data.instance_id }}' | |||
provider-id: aws://${OSC_SUBREGION_NAME}/'{{ ds.meta_data.instance_id }}' |
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.
Same takes what the metadata server gives you
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.
Ok i change it
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.
@outscale-mdr CI passed and validation on cloudgouv passed
retryPeriod := 30 * time.Second | ||
leaseDuration := 80 * time.Second | ||
renewDeadline := 20 * time.Second | ||
k8sManager, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{ | ||
LeaseDuration: &leaseDuration, | ||
RenewDeadline: &renewDeadline, | ||
RetryPeriod: &retryPeriod, | ||
}) |
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.
What is it for ?
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.
@outscale-mdr
To be sure that cluster api be the master controller, not the test.
(Ps Testenv and e2etest has to be slave controller.
It has to be controller to communicate with cluster api object)
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.
Ok thank you but now are you sure the controller will no be a master ?
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.
I try several time with my runner and the controller was not the master.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Migrate cloudProviderId from osc:// to aws:///
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #196
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs: