Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
QA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mayi-operation
QA
Commits
8452f778
Commit
8452f778
authored
6 years ago
by
ChongmingDu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update doc
parent
68ba0a67
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
部署产品.md
+10
-4
No files found.
部署产品.md
View file @
8452f778
1.
安装阿里云k8s yum源
1.
安装阿里云k8s yum源(全部机器)
1.
安装阿里云k8s yum源
1.
安装阿里云k8s yum源(全部机器)
```
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
...
...
@@ -18,15 +18,16 @@ yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
systemctl enable --now kubelet
```
2.
调整kernel参数(二层的网桥在转发包时也会被iptables的FORWARD规则所过滤)
2.
调整kernel参数(二层的网桥在转发包时也会被iptables的FORWARD规则所过滤)
(全部机器)
```
cat <<EOF > /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-iptables=1
EOF
sysctl --system
```
3.
启动kubelet
3.
启动kubelet
(全部机器)
```
systemctl daemon-reload
systemctl restart kubelet
...
...
@@ -45,3 +46,7 @@ sudo chown $(id -u):$(id -g) $HOME/.kube/config
```
kubeadm join <master-ip>:<master-port> --token <token> --discovery-token-ca-cert-hash sha256:<hash>
```
7.
运行网络组件(全部机器)
```
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/a70459be0084506e4ec919aa1c114638878db11b/Documentation/kube-flannel.yml
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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