Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
k8s-install
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wen Wei Li
k8s-install
Commits
0422a180
Commit
0422a180
authored
Mar 26, 2024
by
Wen Wei Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
ab286105
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
k8s-install.sh
k8s-install.sh
+9
-2
No files found.
k8s-install.sh
View file @
0422a180
...
...
@@ -26,7 +26,9 @@ cgroup=`ls /sys/fs/cgroup/cgroup.controllers`
}
install_k8s
(){
#install_k8s(){
prerequisite
(){
touch
/etc/modules-load.d/k8s.conf
cat
>
/etc/modules-load.d/k8s.conf
<<
EOF
overlay
...
...
@@ -54,8 +56,9 @@ net.ipv4.tcp_max_syn_backlog = 2048
net.ipv4.tcp_synack_retries = 2
vm.swappiness = 0
EOF
}
install_cri
(){
sysctl
--system
echo
'deb http://deb.debian.org/debian buster-backports main'
>
/etc/apt/sources.list.d/backports.list
apt-key adv
--keyserver
keyserver.ubuntu.com
--recv-keys
0E98404D386FA1D9
...
...
@@ -87,7 +90,9 @@ eval "systemctl enable crio"
eval
"systemctl start crio"
echo
"Complete install CRI-O"
}
install_k8s
(){
# install k8s
export
KUBE_VERSION
=
v1.28
# 執行下面指令
...
...
@@ -219,6 +224,8 @@ main(){
if
check_root
;
then
#update_system
copy_host_file
$1
prerequisite
install_cri
install_k8s
exit
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment