240 发简信
IP属地:浙江
  • 👍

    kubernetes源码分析之kube-scheduler

    1.kube-scheduler在集群中的作用 kube-scheduler是以插件形式存在的组件,正因为以插件形式存在,所以其具有可扩展可定制的特性。kube-schedu...

  • 我来补充一下
    ```go
    type EventDelegate struct {
    }

    // NotifyJoin is invoked when a node is detected to have joined.
    // The Node argument must not be modified.
    func (e *EventDelegate) NotifyJoin(n *memberlist.Node) {
    log.Println("join", n.Addr.String(), n.Port)
    }

    // NotifyLeave is invoked when a node is detected to have left.
    // The Node argument must not be modified.
    func (e *EventDelegate) NotifyLeave(n *memberlist.Node) {
    log.Println("leave", n.Addr.String(), n.Port)
    }

    // 配置里面加上,这样能捕获加入、离开、更新的事件。
    config.Events = &EventDelegate{}
    // 关闭默认日志
    config.LogOutput = ioutil.Discard
    ```go

    memberlist demo

  • 120
    编译型语言和解释型语言(一)

    首先,我们编程都是用的高级语言(写汇编和机器语言的大牛们除外),计算机不能直接理解高级语言,只能理解和运行机器语言,所以必须要把高级语言翻译成机器语言,计算机才能运行高级语言...

  • 集群的时候区别机器

    APM开源产品Pinpoint——Hbase表设计文档

    Pinpoint is an APM (Application Performance Management) tool for large-scale distribute...

  • 好文!mark一下

    Gitlab CI 使用高级技巧

    通过 iOS 使用 gitlab 自动打包 我们了解到了 Gitlab 的自动化打包的简单配置。但是现在有个问题。每次提交代码都会去自动打包一遍。很多时候这不是我们想要的效果...

  • 120
    Gitlab CI 使用高级技巧

    通过 iOS 使用 gitlab 自动打包 我们了解到了 Gitlab 的自动化打包的简单配置。但是现在有个问题。每次提交代码都会去自动打包一遍。很多时候这不是我们想要的效果...

  • 可以使用腾讯企业版本的(有免费版),支持io域名

    域名邮箱这点事

    常用 QQ 邮箱,担心泄露了 QQ 号,虽能开启字母邮箱,可前缀又太长。恰好自己有域名,决定试试域名邮箱,既个性又简洁,兼顾语义化。比如 me@zwb.io。 想实现想法有两...

  • 可以从github上下载源码在安装

    go 环境配置:解决go get 被墙无法安装软件包

    最近上手go 在配置vim 的时候,用到了插件vim-go。但是呢,在使用:GoInstallBinaries 命令安装其他工具的时候,由于网络原因(你懂得),无法完成所有工...

  • @bysir nice,谢谢你的回复!

    Drone+Rancher 实现CI/CD

    什么是CI/CD 现在软件的开发已经有了一套标准流程, 最主要的流程就是CI/CD. 这张图描述了什么是 持续集成(Continuous integration) / 持续交...

  • 120
    Drone+Rancher 实现CI/CD

    什么是CI/CD 现在软件的开发已经有了一套标准流程, 最主要的流程就是CI/CD. 这张图描述了什么是 持续集成(Continuous integration) / 持续交...

  • 我之所以这么问是因为我用rancher2.0部署了一下,drone会报证书不可信,然后我去问作者了,作者的回复我贴给你看下:
    I mean use http (not https) if you are using an IP address. You cannot use https with an IP address unless you create self-signed certificates and mount those into the container (not recommended). If you need to use https, use a domain name and make sure rancher is using valid ssl certificates from a valid certificate authority (rancher support should be able to help you with this).-

    Drone+Rancher 实现CI/CD

    什么是CI/CD 现在软件的开发已经有了一套标准流程, 最主要的流程就是CI/CD. 这张图描述了什么是 持续集成(Continuous integration) / 持续交...

  • 你好!看了你的博客很有启发,请问你用的是rancher1.6版本吗?我看你的.drone.yml文件中rancher使用的是http的方式去访问的,请问你是通过ngix代理了一层还是部署rancher本身就是http模式的?期待你的回复

    Drone+Rancher 实现CI/CD

    什么是CI/CD 现在软件的开发已经有了一套标准流程, 最主要的流程就是CI/CD. 这张图描述了什么是 持续集成(Continuous integration) / 持续交...

  • 比较详细,nice!

    CI/CD初探 (Drone+Docker)

    将使用 docker + docker compose + drone + git 实现项目自动部署 使用docker可以让drone实现任意语言程序的构建与部署 分工 do...

  • 120
    CI/CD初探 (Drone+Docker)

    将使用 docker + docker compose + drone + git 实现项目自动部署 使用docker可以让drone实现任意语言程序的构建与部署 分工 do...