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 c0fd91b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 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,17 @@
- name: Create the physical cluster
shell: "kops update cluster {{ cluster_name }} --yes --state {{ state_store }}"

# HOTFIX fix SSL check failure on ap iELB
- name: Get Kube API ELB name
shell: "aws elb describe-load-balancers --output text --query 'LoadBalancerDescriptions[*].[LoadBalancerName]' |grep {{ env_name }}"
register: kubeapi-elb
until: kubeapi-elb.stdout.find("{{ env_name }}") != -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 c0fd91b

Please sign in to comment.