没有合适的资源?快使用搜索试试~ 我知道了~
1下载kubectl(kubectl下载)
需积分: 1 2 下载量 154 浏览量
2022-11-26
14:56:42
上传
评论
收藏 13KB DOCX 举报
温馨提示
试读
2页
bubectl是k8s里面比较重要的一个工具,最简单的下载安装流程的整理。
资源推荐
资源详情
资源评论
Step1
curl -LO "https://dl.k8s.io/release/$(curl -L -s
https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
静默模式
-s, --silent Silent mode. Don't output anything
--socks4 HOST[:PORT] SOCKS4 proxy on given host + port
--socks4a HOST[:PORT] SOCKS4a proxy on given host + port
--socks5 HOST[:PORT] SOCKS5 proxy on given host + port
--socks5-basic Enable username/password auth for SOCKS5 proxies
--socks5-gssapi Enable GSS-API auth for SOCKS5 proxies
--socks5-hostname HOST[:PORT] SOCKS5 proxy, pass host name to proxy
--socks5-gssapi-service NAME SOCKS5 proxy service name for gssapi
--socks5-gssapi-nec Compatibility with NEC SOCKS5 server
跟随重定向
-L, --location Follow redirects (H)
--location-trusted like --location and send auth to other hosts (H)
重定向到文件
-O, --remote-name Write output to a file named as the remote file
--remote-name-all Use the remote file name for all URLs
Step2
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
install 命令和 cp 命令类似,都可以将文件/目录拷贝到指定的地点。但是,install 允许你控
制目标文件的属性。install 通常用于程序的 makefile,使用它来将程序拷贝到目标(安装)
目录。
设置所有者
-o, --owner=OWNER set ownership (super-user only)
设置所有组
-g, --group=GROUP set group ownership, instead of process' current group
设置权限
-m, --mode=MODE set permission mode (as in chmod), instead of rwxr-xr-x
查看 kubectl 版本信息
[root@localhost ~]# kubectl version --client --output=yaml
clientVersion:
buildDate: "2022-10-12T10:57:26Z"
compiler: gc
gitCommit: 434bfd82814af038ad94d62ebe59b133fcb50506
gitTreeState: clean
gitVersion: v1.25.3
资源评论
雪饮大侠
- 粉丝: 2
- 资源: 53
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功