Skip to content

Commit

Permalink
Wait for the Kubernetes API server of the virtual garden to be extern…
Browse files Browse the repository at this point in the history
…ally reachable (#256)
  • Loading branch information
robertvolkmann authored Feb 14, 2024
1 parent 6c29ec0 commit 068237f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions control-plane/roles/gardener/tasks/virtual_garden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@
copy:
dest: "{{ gardener_kube_apiserver_kubeconfig_path }}"
content: "{{ lookup('k8s', api_version='v1', kind='Secret', namespace='garden', resource_name='garden-kubeconfig-for-admin').get('data', {}).get('kubeconfig') | b64decode }}"

- name: Wait for garden-kube-apiserver
wait_for:
host: "{{ gardener_virtual_api_server_public_dns }}"
port: "443"
timeout: 60

0 comments on commit 068237f

Please sign in to comment.