Editing
Initializing the Kubernetes cluster
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Kubernetes and pre-requisites (every node) == Install Kubernetes on Ubuntu 18.04. Assuming version 1.14.3 is pulled, check how to fix version. On new systems, copy over the install script from the master node. <syntaxhighlight lang="bash"> > cd init > ./install_kubernetes.sh </syntaxhighlight> Reconfigure docker runtime. Edit /etc/docker/daemon.json as follows: <syntaxhighlight lang="bash"> { "exec-opts": ["native.cgroupdriver=systemd"], "log-driver": "json-file", "log-opts": { "max-size": "100m" }, "storage-driver": "overlay2" } </syntaxhighlight> On nodes with an nVidia GPU, add the following: <syntaxhighlight lang="bash"> "default-runtime": "nvidia", "default-shm-size": "1g", "runtimes": { "nvidia": { "path": "nvidia-container-runtime", "runtimeArgs": [] } } </syntaxhighlight> Restart docker daemon: <syntaxhighlight lang="bash"> > mkdir -p /etc/systemd/system/docker.service.d > systemctl daemon-reload > systemctl restart docker </syntaxhighlight> Make sure swap is off <syntaxhighlight lang="bash"> > sudo swapoff -a </syntaxhighlight> Check /etc/fstab if swap is still configured there, delete if this is the case.
Summary:
Please note that all contributions to Collective Computational Unit may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
CCU:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Collective Computational Unit
Main page
Projects
Tutorials
GPU Cluster
Core Facilitys
Mediawiki
Recent changes
Random page
Help
Tools
What links here
Related changes
Page information