随笔分类 -  docker

上一页 1 2 3 4 5 6 7 ··· 9 下一页

golang dlv 调式成员函数
摘要:root@ubuntu:~/controller101# dlv attach 39568 Type 'help' for list of commands. (dlv) b controller.enqueue Breakpoint 1 (enabled) set at 0xad7f10 for 阅读全文

posted @ 2021-07-08 15:50 tycoon3 阅读(206) 评论(0) 推荐(0)

golang 编译 添加debug gdb
摘要:go build -ldflags 参数及 gdb 调试 有时发布时我们想隐藏所有代码实现相关的信息,使用 go build -ldflags 参数可以实现相关要求。 示例代码 本文使用版本为go 1.6。 package main import "log" type MyCat struct { 阅读全文

posted @ 2021-07-08 15:42 tycoon3 阅读(882) 评论(0) 推荐(0)

code-generator
摘要:root@ubuntu:~/controller101# bash hack/k8s/update-generated.sh Generating deepcopy funcs F0708 14:32:21.192292 11530 main.go:82] Error: Failed making 阅读全文

posted @ 2021-07-08 14:55 tycoon3 阅读(352) 评论(0) 推荐(0)

k8s 自定义informer
摘要: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 阅读(403) 评论(0) 推荐(0)

kube-batch ——pod 和task
摘要: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)

kubernetes-handbook informer
摘要: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 阅读(71) 评论(0) 推荐(0)

kube batch scheduler
摘要: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 阅读(101) 评论(0) 推荐(0)

k8s-scheduler-extender-example
摘要:前言 Scheduler是Kubernetes组件中功能&逻辑相对单一&简单的模块,它主要的作用是:watch kube-apiserver,监听PodSpec.NodeName为空的pod,并利用预选和优选算法为该pod选择一个最佳的调度节点,最终将pod与该节点进行绑定,使pod调度在该节点上运 阅读全文

posted @ 2021-07-07 14:47 tycoon3 阅读(610) 评论(0) 推荐(0)

volcano 快速开始
摘要: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 阅读(280) 评论(0) 推荐(0)

Kubernetes-CRD-Demo
摘要:创建工程 利用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)

kubernetes/client-go--使用 Clientset 获取 Kubernetes 资源对象
摘要: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 阅读(565) 评论(0) 推荐(0)

samplecontroller
摘要: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 阅读(314) 评论(0) 推荐(0)

volcano
摘要:1 volcano 调度架构简介 主要概念及解释: volcano 调度对象是 vcjob(volcano 创建的 CRD),即上图的 JobInfo(这是 scheduler 组件内定义的类)。 一个 vcjob 包含一个或者多个 pod,每个 pod 声明各自的资源要求(如 cpu 多少个 co 阅读全文

posted @ 2021-07-05 16:26 tycoon3 阅读(2107) 评论(0) 推荐(0)

NoSchedule
摘要:root@ubuntu:~/kube-batch# kubectl describe pod qj-1-7zc5k Name: qj-1-7zc5k Namespace: default Priority: 0 Node: <none> Labels: controller-uid=0afdbf23 阅读全文

posted @ 2021-07-05 14:17 tycoon3 阅读(210) 评论(0) 推荐(0)

kube-batch(一)安装
摘要:安装helm curl https://baltocdn.com/helm/signing.asc | sudo apt-key add - sudo apt-get install apt-transport-https --yes echo "deb https://baltocdn.com/h 阅读全文

posted @ 2021-07-05 11:47 tycoon3 阅读(465) 评论(0) 推荐(0)

Calico架构
摘要:Calico Calico 是一个纯三层的数据中心网络方案(不需要Overlay),并且与OpenStack、Kubernetes、AWS、GCE等IaaS和容器平台都有良好的集成。 Calico在每一个计算节点利用Linux Kernel实现了一个高效的vRouter来负责数据转发,而每个vRou 阅读全文

posted @ 2021-07-02 11:31 tycoon3 阅读(1657) 评论(0) 推荐(0)

k8s 10.96.0.1
摘要:root@cloud:~# ip a | grep 10.96.0.1 -B 3 valid_lft forever preferred_lft forever 59: kube-ipvs0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN grou 阅读全文

posted @ 2021-07-02 11:23 tycoon3 阅读(381) 评论(0) 推荐(0)

etcd etcd on unsupported platform without ETCD_UNSUPPORTED_ARCH=arm64 set
摘要:oot@ubuntu:~/cfssl/etcd# /usr/bin/etcd version 2021-07-01 16:00:41.185752 W | etcdmain: running etcd on unsupported architecture "arm64" since ETCD_UN 阅读全文

posted @ 2021-07-01 16:08 tycoon3 阅读(3719) 评论(1) 推荐(0)

k8s 高可用 etcd集群
摘要:k8s集群清除 kubeadm resef -f root@ubuntu:~/cluster# ps -elf | grep kube 4 S root 8099 8071 4 80 0 - 161890 futex_ Jun18 ? 12:33:47 kube-apiserver --advert 阅读全文

posted @ 2021-06-30 16:40 tycoon3 阅读(1474) 评论(0) 推荐(0)

etcd集群
摘要:配置各个节点/etc/hosts [root@host-10-10-18-42 etcd]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localho 阅读全文

posted @ 2021-06-29 11:40 tycoon3 阅读(1891) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 9 下一页

导航