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
b35572c2
Commit
b35572c2
authored
Apr 09, 2024
by
Wen Wei Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
need to add noraml node to CP node
parent
1116e45d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
3 deletions
+42
-3
README.md
README.md
+29
-0
k8s-install.sh
k8s-install.sh
+13
-3
No files found.
README.md
0 → 100644
View file @
b35572c2
### install k8s
### Usage
*
create a hosts file to override the k8s node defualt hosts file
*
for example
`vim ./hosts`
```
# k8s nodes
192.168.18.6 dk8scp1
192.168.18.7 dk8snodecicd1
192.168.18.8 dk8snodeap1
192.168.18.9 dk8snodedb1
```
*
install k8s cp node
`./install-k8s.sh ./hosts cp`
*
add k8s node
`./install-k8s.sh ./hosts node`
*
install helm char
`./install-helm.sh`
k8s-install.sh
View file @
b35572c2
...
@@ -227,6 +227,11 @@ copy_host_file(){
...
@@ -227,6 +227,11 @@ copy_host_file(){
fi
fi
}
}
add_to_master
(){
echo
"Add node to CP"
#$key=kubeadm token create --print-join-command
}
main
(){
main
(){
...
@@ -234,10 +239,15 @@ main(){
...
@@ -234,10 +239,15 @@ main(){
#update_system
#update_system
echo
"Installing"
echo
"Installing"
copy_host_file
$1
copy_host_file
$1
prerequisite
if
[[
$2
==
"cp"
]]
;
then
install_cri
prerequisite
install_cri
install_k8s
install_k8s
copy_k8s_config
copy_k8s_config
else
add_to_master
fi
echo
"Finish Setup K8S"
echo
"Finish Setup K8S"
exit
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