Skip to content

Commit

Permalink
Merge pull request #758 from ccamacho/tkflow
Browse files Browse the repository at this point in the history
feat: include kustomize
  • Loading branch information
ccamacho authored Jul 16, 2023
2 parents 17359d0 + 3723597 commit 9ed1541
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kubeinit/roles/kubeinit_cdk/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,17 @@
changed_when: "_result.rc == 0"
delegate_to: "{{ kubeinit_provision_service_node }}"

- name: Install kustomize
ansible.builtin.shell: |
curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.1.0/kustomize_v5.1.0_linux_amd64.tar.gz > kustomize.tar.gz
tar xzf ./kustomize.tar.gz
mv ./kustomize /bin/
args:
executable: /bin/bash
register: _result
changed_when: "_result.rc == 0"
delegate_to: "{{ kubeinit_provision_service_node }}"

- name: Autoload kubeconfig
ansible.builtin.shell: |
echo "export KUBECONFIG=~/.kube/config" >> ~/.bashrc
Expand Down
11 changes: 11 additions & 0 deletions kubeinit/roles/kubeinit_eks/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,17 @@
kubeinit_deployment_node_name: "{{ kubeinit_provision_service_node }}"
delegate_to: "{{ kubeinit_deployment_node_name }}"

- name: Install kustomize
ansible.builtin.shell: |
curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.1.0/kustomize_v5.1.0_linux_amd64.tar.gz > kustomize.tar.gz
tar xzf ./kustomize.tar.gz
mv ./kustomize /bin/
args:
executable: /bin/bash
register: _result
changed_when: "_result.rc == 0"
delegate_to: "{{ kubeinit_provision_service_node }}"

- name: Deploy EKS manifests
ansible.builtin.shell: |
kubectl apply -f https://distro.eks.amazonaws.com/crds/releases.distro.eks.amazonaws.com-v1alpha1.yaml
Expand Down
11 changes: 11 additions & 0 deletions kubeinit/roles/kubeinit_k8s/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,17 @@
mode: '0644'
delegate_to: "{{ kubeinit_provision_service_node }}"

- name: Install kustomize
ansible.builtin.shell: |
curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.1.0/kustomize_v5.1.0_linux_amd64.tar.gz > kustomize.tar.gz
tar xzf ./kustomize.tar.gz
mv ./kustomize /bin/
args:
executable: /bin/bash
register: _result
changed_when: "_result.rc == 0"
delegate_to: "{{ kubeinit_provision_service_node }}"

#
# Configure additional steps for including the Windows compute nodes
#
Expand Down
10 changes: 10 additions & 0 deletions kubeinit/roles/kubeinit_openshift/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@
register: _result
changed_when: "_result.rc == 0"

- name: Install kustomize
ansible.builtin.shell: |
curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.1.0/kustomize_v5.1.0_linux_amd64.tar.gz > kustomize.tar.gz
tar xzf ./kustomize.tar.gz
mv ./kustomize /bin/
args:
executable: /bin/bash
register: _result
changed_when: "_result.rc == 0"

- name: Get some final cluster information
ansible.builtin.shell: |
set -eo pipefail
Expand Down
11 changes: 11 additions & 0 deletions kubeinit/roles/kubeinit_rke/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@
changed_when: "_result.rc == 0"
delegate_to: "{{ kubeinit_provision_service_node }}"

- name: Install kustomize
ansible.builtin.shell: |
curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.1.0/kustomize_v5.1.0_linux_amd64.tar.gz > kustomize.tar.gz
tar xzf ./kustomize.tar.gz
mv ./kustomize /bin/
args:
executable: /bin/bash
register: _result
changed_when: "_result.rc == 0"
delegate_to: "{{ kubeinit_provision_service_node }}"

- name: Allow schedule workloads in controller nodes if there are no compute nodes
ansible.builtin.shell: |
set -o pipefail
Expand Down

0 comments on commit 9ed1541

Please sign in to comment.