Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

[kubespray] Doc in contribute to guide user deploy k8s through kubespray #3757

Merged
merged 70 commits into from
Nov 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
a47a673
config update
ydye Oct 21, 2019
b2bd517
config update
ydye Oct 21, 2019
99b45a8
config update
ydye Oct 21, 2019
cd7375f
config update
ydye Oct 21, 2019
49e7fad
config update
ydye Oct 21, 2019
f53f6cf
config update
ydye Oct 22, 2019
6adf338
issue fix
ydye Oct 22, 2019
c5ff8ab
issue fix
ydye Oct 22, 2019
75dd957
issue fix
ydye Oct 22, 2019
acb93e9
enable ip-table forward in docker
ydye Oct 25, 2019
98697ee
configuration
ydye Oct 28, 2019
4c168ca
configuration
ydye Oct 31, 2019
6e8b0ec
flannel solution
ydye Oct 31, 2019
e8bf554
flannel solution
ydye Oct 31, 2019
7d2a946
flannel solution
ydye Nov 1, 2019
98e2032
flannel solution
ydye Nov 1, 2019
dc8e80c
remove unused fg
ydye Nov 1, 2019
d447f7b
auth
ydye Nov 1, 2019
dab0d7a
auth
ydye Nov 1, 2019
707b759
auth
ydye Nov 1, 2019
75c3562
auth
ydye Nov 1, 2019
b86fd66
auth
ydye Nov 1, 2019
83c2dab
auth
ydye Nov 1, 2019
5ef22e8
auth
ydye Nov 4, 2019
30839df
auth
ydye Nov 4, 2019
1de5992
auth
ydye Nov 4, 2019
4f5e275
auth
ydye Nov 4, 2019
e6160bf
auth
ydye Nov 4, 2019
e49a9b9
Merge branch 'master' into yuye/conflict-solve
ydye Nov 4, 2019
833536b
Merge branch 'master' into yuye/conflict-solve
ydye Nov 4, 2019
f4e13f9
auth
ydye Nov 4, 2019
3538cf6
Merge branch 'yuye/kubespary-k8s-config' of https://github.com/micros…
ydye Nov 4, 2019
e2b572f
auth
ydye Nov 4, 2019
1fd941d
auth
ydye Nov 5, 2019
494abbe
auth
ydye Nov 5, 2019
2a8c633
auth
ydye Nov 6, 2019
281d679
auth
ydye Nov 6, 2019
1de1394
auth
ydye Nov 6, 2019
4692d33
auth
ydye Nov 7, 2019
6badb6e
auth
ydye Nov 7, 2019
672340e
auth
ydye Nov 7, 2019
d9c1a5a
auth
ydye Nov 7, 2019
4d00ceb
auth
ydye Nov 7, 2019
620238b
auth
ydye Nov 7, 2019
7232d43
auth
ydye Nov 7, 2019
9f5ea8b
auth
ydye Nov 7, 2019
4d1f62f
auth
ydye Nov 7, 2019
295263e
auth
ydye Nov 7, 2019
7c1772e
auth
ydye Nov 7, 2019
0a31967
auth
ydye Nov 7, 2019
5f281d1
auth
ydye Nov 7, 2019
d017752
auth
ydye Nov 8, 2019
2ff565e
auth
ydye Nov 8, 2019
d5d1543
auth
ydye Nov 8, 2019
dab886a
Remove unnecessary crb
ydye Nov 8, 2019
8b6e5c0
Update doc
ydye Nov 8, 2019
dea5451
Update contri
ydye Nov 12, 2019
e0a6ec1
Update contri
ydye Nov 12, 2019
ebebcdd
playbook to install nvidia drivers
ydye Nov 12, 2019
85cbf5c
Update contri
ydye Nov 12, 2019
dc878a8
nvidia drivers install
ydye Nov 12, 2019
9e4ae1f
nvidia drivers install
ydye Nov 12, 2019
8de887f
nvidia persistent mode
ydye Nov 12, 2019
d6c2cae
nvidia persistent mode
ydye Nov 12, 2019
d428d60
nvidia runtime install script
ydye Nov 12, 2019
0f0e3f7
add apt-get update
ydye Nov 12, 2019
a0def27
update document
ydye Nov 12, 2019
b91665e
update document
ydye Nov 12, 2019
a59651e
update document
ydye Nov 12, 2019
2abc8fa
update document
ydye Nov 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions contrib/kubespray/nvidia-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
- hosts: all
tasks:
- name: Add key
apt_key:
url: https://nvidia.github.io/nvidia-container-runtime/gpgkey
state: present

- name: add repo
get_url:
url: https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/nvidia-container-runtime.list
dest: /etc/apt/sources.list.d/nvidia-container-runtime.list
mode: 0644
owner: root
group: root

- name: Run the equivalent of "apt-get update" as a separate step
apt:
update_cache: yes

- name: install packages
apt:
name: nvidia-container-runtime
state: present
update_cache: yes
notify: reload docker
20 changes: 20 additions & 0 deletions contrib/kubespray/nvidia-drivers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- hosts: all
tasks:
- name: Add the drivers repository to Ubuntu
apt_repository:
repo: ppa:graphics-drivers/ppa
state: present

- name: Run the equivalent of "apt-get update" as a separate step
apt:
update_cache: yes

- name: Install nvidia drivers, we will install 410 version
apt:
name: nvidia-410
state: present

- name: reboot vm
reboot:

4 changes: 4 additions & 0 deletions contrib/kubespray/nvidia-persistenced-override.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

[Service]
ExecStart=
ExecStart=/usr/bin/nvidia-persistenced --user root --persistence-mode --verbose
23 changes: 23 additions & 0 deletions contrib/kubespray/nvidia-persistent-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
- hosts: all
tasks:
- name: create persistenced override dir
file:
path: /etc/systemd/system/nvidia-persistenced.service.d/
state: directory
recurse: yes

- name: configure persistenced service to turn on persistence mode
copy:
src: nvidia-persistenced-override.conf
dest: /etc/systemd/system/nvidia-persistenced.service.d/override.conf

- name: enable persistenced
systemd:
name: nvidia-persistenced
enabled: yes

- name: perform nvidia smi
shell: nvidia-smi
args:
executable: /bin/bash
Loading