基本命令介绍(推荐)
1. The Almighty Pause Container
2. What are Kubernetes Pods Anyway?
3. 中文版官方翻译【版本2】 提供了很多interactive 体验环境。也可以自行安装 Minikube
- Play with Kubernetes
-
# 1. Initializes cluster master node: kubeadm init --apiserver-advertise-address $(hostname -i) mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config source <(kubectl completion bash) # 2. Initialize cluster networking: kubectl apply -n kube-system -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 |tr -d ' ')" # You should now deploy a pod network to the cluster. # Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at: # http://kubernetes.io/docs/admin/addons/ # You can now join any number of machines by running the following on each node # as root: # # kubeadm join --token c23f1c.f56bcf51048b7ebe 192.168.0.13:6443 --discovery-token-ca-cert-hash sha256:5aad0ba75d4c8d8e986f0d8b99a78fbcf8d107e8558baaf4097eadc7e98bc1aa # 3. (Optional) Create an nginx deployment: kubectl apply -f https://k8s.io/docs/user-guide//nginx-app.yaml
注意这个命令的的token, 每次都是不一样的。 每次都要从maste上拷贝一下, 到每个node节点上。 # kubeadm join --token c23f1c.f56bcf51048b7ebe 192.168.0.13:6443 --discovery-token-ca-cert-hash sha256:5aad0ba75d4c8d8e986f0d8b99a78fbcf8d107e8558baaf4097eadc7e98bc1aa
- Run 'kubectl get nodes' on the master to see this machine join.
- alt+enter 全屏切换
4. kubernetes 简介: kubelet 和 pod
5. federation
6. borg and k8s
7. vagrant 轻松搭建Kubernetes 1.2版运行环境
9. KUBERNETES DEPLOYMENT 實現滾動升級
10. tasks
使用curl安装, 已实验。 √
Configure Access to Multiple Clusters ×
Download as part of the Google Cloud SDK ×
# https://cloud.google.com/sdk/docs/quickstart-linux sudo apt install python2.7 wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-184.0.0-linux-x86_64.tar.gz tar -zxvf google-cloud-sdk*.tar.gz ./google-cloud-sdk/install.sh gcloud init
how kubeconfig files are merged, see Organizing Cluster Access Using kubeconfig Files .√
各种命令详解,及其例子 kubectl config √
11. configmap 类似openstack的cloud init ??
12. Pull an Image from a Private Registry 需要上传一个image
kubectl create secret docker-registry regsecret --docker-server=https://hub.docker.com/r/lvmxh/k8s-tasks --docker-username=lvmxh --docker-password=yourpassword --docker-email=lvmxh@126.com
13. 案例分析,这个比较复杂,还没有分析
https://kubernetes.io/docs/tasks/run-application/run-replicated-stateful-application/
14. K8s的标签能自动发现收集上报吗?
https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/
比如 kubelet或者其他的组件,去上报一些标签。
15. Emptydir实现原理是啥?
为啥生命周期是pod, 而不是container?
有没有开发过自己的FlexVolume插件?
16. 服务发现与负载均衡
Ingress controller, Service Load Balancer 和 custom Load Balancer 没有用过
17. StorageClass
这个例子需要练习
18. debug
19. 云原生