上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 164 下一页

2021年7月8日

摘要: it clone https://github.com/kairen/controller101.git root@ubuntu:~/controller101# make go build -ldflags="-s -w -X github.com/cloud-native-taiwan/cont 阅读全文
posted @ 2021-07-08 11:52 tycoon3 阅读(404) 评论(0) 推荐(0)
摘要: pkg/scheduler/scheduler.go:67 相应的资源 Informer 开始 Iist-Watch 监听事件变化 // Run starts the schedulerCache func (sc *SchedulerCache) Run(stopCh <-chan struct{ 阅读全文
posted @ 2021-07-08 11:27 tycoon3 阅读(100) 评论(0) 推荐(0)
摘要: cat<<EOF >informer.go package main import ( "flag" "fmt" "time" "k8s.io/client-go/informers" coreinformers "k8s.io/client-go/informers/core/v1" "k8s.i 阅读全文
posted @ 2021-07-08 10:53 tycoon3 阅读(72) 评论(0) 推荐(0)

2021年7月7日

摘要: The random scheduler v1 The first important part of the scheduler is to watch the newly created pods in a continuous loop. We can use the Kubernetes c 阅读全文
posted @ 2021-07-07 15:43 tycoon3 阅读(102) 评论(0) 推荐(0)
摘要: 前言 Scheduler是Kubernetes组件中功能&逻辑相对单一&简单的模块,它主要的作用是:watch kube-apiserver,监听PodSpec.NodeName为空的pod,并利用预选和优选算法为该pod选择一个最佳的调度节点,最终将pod与该节点进行绑定,使pod调度在该节点上运 阅读全文
posted @ 2021-07-07 14:47 tycoon3 阅读(612) 评论(0) 推荐(0)
摘要: kubectl delete -f volcano/installer/volcano-development-arm64.yaml root@ubuntu:~# kubectl get all -n volcano-system NAME READY STATUS RESTARTS AGE pod 阅读全文
posted @ 2021-07-07 11:01 tycoon3 阅读(282) 评论(0) 推荐(0)

2021年7月6日

摘要: 创建工程 利用go module创建模块 root@ubuntu:~/go_learn/proj1# go mod init demo-controller go: creating new go.mod: module demo-controller root@ubuntu:~/go_learn/ 阅读全文
posted @ 2021-07-06 16:04 tycoon3 阅读(146) 评论(0) 推荐(0)
摘要: git clone https://github.com/kubernetes/client-go.git root@ubuntu:~/client-go/examples/out-of-cluster-client-configuration# go env GOPROXY=https://gop 阅读全文
posted @ 2021-07-06 14:54 tycoon3 阅读(566) 评论(0) 推荐(0)
摘要: root@ubuntu:~/sample-controller# go mod vendor go: downloading k8s.io/code-generator v0.0.0-20210701054009-d874928e3dc5 go: downloading github.com/eva 阅读全文
posted @ 2021-07-06 11:38 tycoon3 阅读(315) 评论(0) 推荐(0)

2021年7月5日

摘要: 1 volcano 调度架构简介 主要概念及解释: volcano 调度对象是 vcjob(volcano 创建的 CRD),即上图的 JobInfo(这是 scheduler 组件内定义的类)。 一个 vcjob 包含一个或者多个 pod,每个 pod 声明各自的资源要求(如 cpu 多少个 co 阅读全文
posted @ 2021-07-05 16:26 tycoon3 阅读(2111) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 164 下一页

导航