Giter Site home page Giter Site logo

xiabernetes's Introduction

记录个人学习kubernetes的项目

对现在的我来说,kubernetes目前已经过于复杂,我希望跟着K8S早期的源码持续学习K8S。 但是我既没有GCE的环境,也不希望过早的引入etcd和docker client。 我认为用可视化的方式去模拟K8S的工作流程是不错的学习方式,一方面练习GO语言及标准库的使用,另一方面强化对于K8S的设计的理解。 通过理解k8s源码,自己尝试写一个mock-k8s: 1.通过创建文件的方式模拟etcd的功能,可以直观感受k8s的功能 2.通过在文件中写入数据的方式模拟创建POD和容器

目前还是在模仿K8S第一版开源的代码,持续学习中。。。

快速开始

1.创建pod 启动APIserver go run .\apiserver.go -nodes "1.1.1.1"

执行xiaberctl命令

go run xiaberctl.go -a http://127.0.0.1:8001 -f ../../template/createpod.json create /pods

2.列出pod

go run xiaberctl.go list /pods

3.查询操作

go run xiaberctl.go list /operations

4.列出操作详情

go run xiaberctl.go list /operations/1

#TODO

1.打印不太标准 2.给apiserver发的path不对时,没有正确的日志,影响调试 3.没有写单元测试 4.client需要完善 5.相对路径依赖cmd运行时所在的目录,需要修改 6.PR505 watch 和http chunked还不太会 7.PR356 对kubulet的重构,修改有点多 8.func NewFIFO() *FIFO { f := &FIFO{ items: map[string]interface{}{}, queue: []string{}, } f.cond.L = &f.lock return f } 需要对这段代码进行测试 9.需要对http.FileServer进一步学习 #233

xiabernetes's People

Contributors

ning0515 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.