-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Changes to the master cloud tags are removing them from Load Balancer and leaving the cluster unreachable #9862
Comments
Hello @marianomirabelli I had the same problem even with latest version of Kops 1.18.2 and Kubernetes 1.18.10 but I've solved it by reading "NOTE on Auto Scaling Groups and ASG Attachments" at https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_attachment and applying it to the kubernetes.tf file generated by kops.
I had also a bigger delay with detaching/attaching the Target Groups to nodes so I've also added |
@marianomirabelli @bertux |
thank you @bmelbourne for notifying me this PR which address this problem but I'm using AWS ACM for the SSL certificates of the LoadBalancers and it was written in the release notes of Kops 1.18 that I need to enable basic authentication for the API LoadBalancer which won't be possible anymore in Kops 1.19 so I will see after release date of Kops 1.19 what will be possible. |
Thanks @bmelbourne for notify me about this PR! |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/close |
@bertux: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1. What
kops
version are you running? The commandkops version
, will displaythis information.
We are using kops 1.17.0 version.
2. What Kubernetes version are you running?
kubectl version
will print theversion if a cluster is running or provide the Kubernetes version specified as
a
kops
flag.We are using kubernetes 1.16.9.
3. What cloud provider are you using?
We are using AWS.
4. What commands did you run? What is the simplest way to reproduce this issue?
We are using kops and terraform. Therefore, the combination of commands used follow the following sequence:
First, we generate the kops-spec.yml file :
kops toolbox template --name ${cluster-name} --values cluster-vars.json --template cluster-template.yml --format-yaml > kops-spec.yml
Then, we replace the state in S3 bucket:
kops replace -f kops-spec.yml --state ${bucket-name} --kops-state --name ${cluster-name} --force
We execute the kops update as follows:
kops update cluster ${cluster-name} --state=${bucket-name} --out=terraform/ --target=terraform
Then we navigate to terraform folder and execute:
terraform plan
Finally, we do:
terraform apply
5. What happened after the commands executed?
When we make a change to the master nodes, such as adding a new cloudLabel, the master nodes are removed from the load balancer. So when we want to run the
rolling-update
command, the cluster becomes unreachable.6. What did you expect to happen?
We expect that a change in the master nodes through terraform does not become the cluster unreachable for the rolling-update and the next operations with kubectl.
7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml
to display your cluster manifest.You may want to remove your cluster name and other sensitive information.
8. Please run the commands with most verbose logging by adding the
-v 10
flag.Paste the logs into this report, or in a gist and provide the gist link here.
We attach the log files in this issue.
kops-replace-output.txt
kops-update-output.txt
terraform-plan-log.txt
The text was updated successfully, but these errors were encountered: