-
Notifications
You must be signed in to change notification settings - Fork 19
Create a LB with TF and deploy a service atatched to the created LB #118
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?
Conversation
philippart-s
left a comment
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.
just few typos to fix 😉
| @@ -0,0 +1,97 @@ | |||
| ## Create a LB with TF and use it in a MKS service | |||
|
|
|||
| /!\ Warning: works only on MKS Standard for th emoment! | |||
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.
| /!\ Warning: works only on MKS Standard for th emoment! | |
| /!\ Warning: works only on MKS Standard for th moment! |
| kubectl apply -f svc.yaml -n demo-attach-ip | ||
| ``` | ||
|
|
||
| - check the service is atatched to the LB (and have an external IP): |
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.
| - check the service is atatched to the LB (and have an external IP): | |
| - check the service is attached to the LB (and have an external IP): |
| kubectl get deploy,svc -n demo-attach-ip | ||
| ``` | ||
|
|
||
| Note please wait several seconds to obtain the EXTERNAL-IP |
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.
| Note please wait several seconds to obtain the EXTERNAL-IP | |
| Note: please wait several seconds to obtain the EXTERNAL-IP |
| } | ||
|
|
||
| variable region { | ||
| //default = "GRA11" //1AZ - Free |
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.
As it's not compatible with free mode at the moment, I think it's better to remove this comment for the moment?
| resource "ovh_cloud_project_loadbalancer" "lb" { | ||
| service_name = ovh_cloud_project_network_private_subnet.privsub.service_name | ||
| region_name = ovh_cloud_project_network_private_subnet.privsub.region | ||
| //flavor_id = "31990104-8a7b-4d8f-a728-9c4cfd14fe72" # small flavor on GRA11 region |
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.
if it's not used perhaps you should remove this line?
This PR show how to:
Kind of the Pull Request
Products targeted
Purpose of this Pull Request