腾讯云相关
# 登录
sudo docker login --username=[username] ccr.ccs.tencentyun.com
# 上传镜像
sudo docker tag [ImageId] ccr.ccs.tencentyun.com/[namespace]/[ImageName]:[镜像版本号]
sudo docker push ccr.ccs.tencentyun.com/[namespace]/[ImageName]:[镜像版本号]
# 下载
sudo docker login --username=[username] ccr.ccs.tencentyun.com
sudo docker pull ccr.ccs.tencentyun.com/[namespace]/[ImageName]:[镜像版本号]
# 我的镜像url
https://console.cloud.tencent.com/tke2/registry/user/self
下载minikube(阿里版)
curl -Lo minikube https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v1.13.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
minikube start
minikube start --iso-url=https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.13.0.iso --registry-mirror=https://mirror.ccs.tencentyun.com
下载kubectl
# 注意版本
wget https://dl.k8s.io/v1.9.3/kubernetes-client-linux-amd64.tar.gz
tar -zxvf kubernetes-client-linux-amd64.tar.gz
cd kubernetes/client/bin
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
配置kubectl命令行tab补齐功能
写入/etc/profile,然后执行sudo source /etc/profile
alias k=kubectl
source <(kubectl completion bash)
source <(kubectl completion bash | sed s/kubectl/k/g)