k8s操作手册 2.3resources.yaml #创建控制器 Install the Tigera Calico operator and custom resource defini�ons # kubectl create -f �gera-operator.yaml #如果需要更改镜像,可编辑此 文件 # more �gera-operator.yaml | grep custom-resources.yaml #创建资源 Install Calico by crea�ng the necessary custom resource # kubectl create -f custom-resources.yaml #如果需要更改镜像,只能部署 后,只能更改相应的daemonset及deployment #查看calico generate #重新生成token,下面这一串 字符 ka8k02.9f2uowba7j21qv0g master1 结 点 # kubeadm token create ka8k02.9f2uowba7j21qv0g --print-join- command 再复制(kubeadm join xxxxx)命令到node结点上执行: node结点执行# kubeadm0 码力 | 126 页 | 4.33 MB | 1 年前3
Kubernetes开源书 - 周立1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 Table of Contents Introduction 01-什么是Kubernetes 02-安装单机版Kubernetes 03-使⽤Kubespray部署⽣产可⽤的Kubernetes集群(1 containerPort: 80 使⽤该 .yaml ⽂件创建Deployment的⼀种⽅法是在 kubectl 命令⾏界⾯中使⽤ kubectl create 命令,将 .yaml ⽂件 作为参数传递。 例如: $ kubectl create -f docs/user-guide/nginx-deployment.yaml --record 将会输出类似如下的内容: deployment 80 将此清单保存为 frontend.yaml ,并将其提交给Kubernetes集群,即可创建你所定义的ReplicaSet以及ReplicaSet管理 的Pod。 $ kubectl create -f frontend.yaml replicaset "frontend" created $ kubectl describe rs/frontend Name: frontend0 码力 | 135 页 | 21.02 MB | 1 年前3
Over engineeringthe core of Kubernetes kopsUtility/Public subnet # - 1 NGW for the private subnet to NAT to # - 1 Route Table Association to the Main Route Table # - 1 Private subnet (to hold the instances) # ---------------------------- Utility/Public subnet # - 1 NGW for the private subnet to NAT to # - 1 Route Table Association to the Main Route Table # - 1 Private subnet (to hold the instances) # ---------------------------- Utility/Public subnet # - 1 NGW for the private subnet to NAT to # - 1 Route Table Association to the Main Route Table # - 1 Private subnet (to hold the instances) # ----------------------------0 码力 | 75 页 | 4.56 MB | 1 年前3
Kubernetes Use it, Contribute to it, and Enjoy it!The community 2. How to contribute 3. Versioning 4. The easy way to use it 5. Demo 6. Q & A Table of Solutions https://kubernetes.io/docs/setup/pick-right-solution/ Which one should I pick ? I'm0 码力 | 45 页 | 3.11 MB | 1 年前3
运维上海2017-Kubernetes 在大规模场景下的service性能优化实战 - 杜军Iptables vs. IPVS ���IPVS�IP Virtual Server� • Linux�����L4 LB�LVS������� • ��netfilter, hash table • ��TCP, UDP�SCTP���IPV4�IPV6 • ���������� Ø rr, wrr, lc, wlc, sh, dh, lblc… • ������ Ø persistent0 码力 | 38 页 | 3.39 MB | 1 年前3
绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能scheduling algorithm • Iptables rules are difficult to debug IPVS mode • Services are organized in hash table • IPVS DNAT • conntrack/iptables SNAT • Pros • O(1) time complexity in control/data plane • Stably0 码力 | 24 页 | 1.90 MB | 1 年前3
Alluxio 助力 Kubernetes, 加速云端深度学习config.yaml properties: fs.oss.accessKeyId: xxx fs.oss.accessKeySecret: yyy alluxio.master.mount.table.root.ufs: oss://imagenet-huabei5/ EOF # One click install $ helm install -f config.yaml alluxio-repo/alluxio0 码力 | 22 页 | 11.79 MB | 1 年前3
K8S安装部署开放服务F. 部署 k8s node 节点 Step1: k8s master 上查看/创建 token、生成证书摘要 kubeadm token list kubeadmin token create --ttl 0 kubeadm token list openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -keyout tls.key -out tls.crt -subj "/CN=k8s-dashboard.xxx.com" //生成 SSL 证书的 secret kubectl create secret tls k8s-dashboard-tls --cert=tls.crt --key=tls.key Step6: 重新配置 service vi service.yaml -keyout tls.key -out tls.crt -subj "/CN=k8s-dashboard.xxx.com" //生成 SSL 证书的 secret kubectl create secret tls k8s-dashboard-tls --cert=tls.crt --key=tls.key Step8: ingressroute vi dashboard-tls0 码力 | 54 页 | 1.23 MB | 1 年前3
Operator Pattern 用 Go 扩展 Kubernetes 的最佳实践the Operand in the status section of the CR Lifecycle features • Operator provides the ability to create backups of the Operand • Operator is able to restore a backup of an Operand • Operator orchestrates 在做任何读(get、list)操作时,不能假设读到 的是最新版本,也不能假设一次 reconcile 中始 终会读到同一个版本 避免写后读 同一个 controller,在一次 reconcile 中,避免写 (create、update、delete)完一个对象后马上去 读(get、list)最新版本,等controller-runtime 触发下一次 reconcile 遵循惯例开发模式 即 controller Cache\Planned Action Create Update Delete latest ✅ ✅ ✅ stale c-lag -- ❌ ❌ u-lag -- ✅ ✅ d-lag ❌ -- -- 问题抽象 本地 cache 中的对象有两种可能,即及时(latest)与过 期(stale),我们生成的执行计划有3种可能的动作,即 Create、Update 和 Delete。 进一步的,stale0 码力 | 21 页 | 3.06 MB | 9 月前3
QCon北京2018/QCon北京2018-《Kubernetes-+面向未来的开发和部署》-Michael+ChenKubernetes Orchestrating Multiple Containers • Core docker functionality provides the tooling to create and run single containers – Very manual, no fault tolerance, hard to scale, etc • Scheduling run container1 $docker run container2 $docker run container3 $docker run container4 $kubectl create –f App.yaml The “App” Wanted: Container Orchestrator! Kubernetes in 5 min https://youtu.be/PH-2FfFD2PU instance of a Pod which is not replicated or scaled 19 Developers Admin Kubernetes & PKS $kubectl create –f App.yaml The “App” Kubernetes Cluster Deploys and Operates the Kubernetes Clusters Desired0 码力 | 42 页 | 10.97 MB | 1 年前3
共 38 条
- 1
- 2
- 3
- 4













