-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds prow job to install nephio components on kubeadm cluster (#297)
* add support for installing nonKIND cluster via kubeadm allows for installing nonKIND K8S cluster on ubuntu and fedora for e2e test cases * Add support for installing nonKIND cluster via kubeadm, moving file locations Co-authored-by: Vishwanath Jayaraman <[email protected]> * adds prow job to install Nephio components on kubeadm cluster Co-authored-by: Daniel Kostecki <[email protected]> * add support for installing nonKIND cluster via kubeadm (previously PR #46) (#296) * add support for installing nonKIND cluster via kubeadm allows for installing nonKIND K8S cluster on ubuntu and fedora for e2e test cases * Add support for installing nonKIND cluster via kubeadm, moving file locations Co-authored-by: Vishwanath Jayaraman <[email protected]> * Change yml file suffix in main --------- Co-authored-by: vjayaramrh <[email protected]> * adds prow job to install nephio components on kubeadm cluster Co-authored-by: Daniel Kostecki <[email protected]> --------- Co-authored-by: Daniel Kostecki <[email protected]> Co-authored-by: Daniel Kostecki <[email protected]>
- Loading branch information
1 parent
4a828c2
commit f90ff7b
Showing
11 changed files
with
158 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,30 @@ | ||
--- | ||
- name: Deploy k8s using kubeadm on host | ||
hosts: all | ||
pre_tasks: | ||
- name: Sysctl settings updates | ||
become: true | ||
ansible.posix.sysctl: | ||
reload: true | ||
sysctl_file: /etc/sysctl.conf | ||
name: "{{ item.name }}" | ||
value: "{{ item.value }}" | ||
state: present | ||
with_items: | ||
- {name: fs.inotify.max_user_watches, value: 524288} | ||
- {name: fs.inotify.max_user_instances, value: 512} | ||
- {name: kernel.keys.maxkeys, value: 500000} | ||
- {name: kernel.keys.maxbytes, value: 1000000} | ||
- name: Install Docker Engine needed for kpt functions | ||
become: true | ||
block: | ||
- name: Install docker binaries | ||
ansible.builtin.include_role: | ||
name: andrewrothstein.docker_engine | ||
- name: Grant Docker permissions to user | ||
ansible.builtin.user: | ||
name: "{{ ansible_user_id }}" | ||
groups: docker | ||
append: true | ||
roles: | ||
- role: kubeadm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
containerd_ver: 1.6.19 | ||
runc_ver: 1.1.1 | ||
cni_plugins_ver: 1.1.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Install kubelet kubeadm kubectl on {{ ansible_os_family }} | ||
become: true | ||
block: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Install kubelet kubeadm kubectl on {{ ansible_os_family }} | ||
become: true | ||
block: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Get containerd and unarchive to /usr/local | ||
become: true | ||
ansible.builtin.unarchive: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters