Skip to content

Commit

Permalink
[#647] fix kubeapi elb healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-semenets committed Dec 7, 2018
1 parent 5297dd5 commit f06b825
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deploy/ansible/roles/k8s_create_cluster/tasks/create-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@
- name: Create the physical cluster
shell: "kops update cluster {{ cluster_name }} --yes --state {{ state_store }}"


# HOTFIX: fix SSL check failure on ap ELB
- name: Get Kube API ELB name
shell: "aws elb describe-load-balancers --output text --query 'LoadBalancerDescriptions[*].[LoadBalancerName]' |grep api-{{ env_name }} | tr -d '\n'"
register: kubeapi_elb
until: kubeapi_elb.stdout.find('api-') != -1
retries: 10
delay: 15

- name: Update API ELB healthcheck
shell: "aws elb configure-health-check --load-balancer-name {{ kubeapi_elb.stdout }} --health-check Target=TCP:443,Interval=10,UnhealthyThreshold=2,HealthyThreshold=2,Timeout=5"


- name: Verify that all Kubernetes nodes are ready
shell: kubectl --context {{ cluster_name }} get nodes | grep master | wc -l
register: cmd_result
Expand Down

0 comments on commit f06b825

Please sign in to comment.