-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modified document of deploying Kubernetes with kubeadm. #2
Conversation
doc/deploy-k8s-manual.md
Outdated
2. 安装 kubeadm 等 | ||
|
||
```bash | ||
sudo yum install -y kubelet kubeadm kubectl | ||
sudo yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里加一个注释吧:kubernetes/kubeadm#954
doc/deploy-k8s-manual.md
Outdated
|
||
```console | ||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里 console 是对的
doc/deploy-k8s-manual.md
Outdated
echo "net.bridge.bridge-nf-call-iptables = 1" >>/etc/sysctl.conf | ||
echo "net.bridge.bridge-nf-call-ip6tables = 1" >>/etc/sysctl.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这两句前面要加 [root@k8s-master ~]#
doc/deploy-k8s-manual.md
Outdated
4. 检查部署之后的环境 | ||
|
||
``` | ||
# kubectl get nodes | ||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里应该用 console,后面的命令前面加 $,或者 [root@k8s-master ~]#
doc/deploy-k8s-manual.md
Outdated
|
||
```console | ||
[centos@k8s-slave ~]$ kubeadm join 192.168.11.15:6443 --token 8lrj88.951kc5gn2hgrppts \--discovery-token-ca-cert-hash sha256:eaf73dff349a3e2b7ba91961a89eed4617746fb8d85d7e79761b32106cb640b6 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改成这样的话,加个 bash
doc/deploy-k8s-manual.md
Outdated
#获取token | ||
[centos@k8s-master ~]$ kubeadm token list | ||
#获取 ca 的 hash 值 | ||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里 console 合适
doc/deploy-k8s-manual.md
Outdated
2. 安装 kubeadm 等 | ||
|
||
```bash | ||
sudo yum install -y kubelet kubeadm kubectl | ||
sudo yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes # kubernetes/kubeadm#954 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样可以么?要不要写 URL?
doc/deploy-k8s-manual.md
Outdated
[root@k8s-master ~]# echo "net.bridge.bridge-nf-call-iptables = 1" >>/etc/sysctl.conf | ||
[root@k8s-master ~]# echo "net.bridge.bridge-nf-call-ip6tables = 1" >>/etc/sysctl.conf | ||
# 使生效 | ||
sysctl -p |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个前面保留 [root@k8s-master ~]#
```bash | ||
kubeadm join 192.168.11.15:6443 --token 8lrj88.951kc5gn2hgrppts \ | ||
--discovery-token-ca-cert-hash sha256:eaf73dff349a3e2b7ba91961a89eed4617746fb8d85d7e79761b32106cb640b6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个用console更好,console能看出是哪台机器上执行
Issue: http://redmine.sh.99cloud.net/issues/44996