Giter Site home page Giter Site logo

k8sdemo's Introduction

k8sdemo

用golang写一点k8s的简单小demo

1 获取一些指定name的pod name

2 kubernetes多集群的配置

3 删除namespace下所有资源

kubectl delete namespace default --grace-period=0 --force

4 kuboard这个UI挺好用的

1 pod的文件浏览器功能

2 终端的日志功能--日志下载全部比较麻烦

5 对kuberenetes的nodeport做流量控制

需求:对于kubernetes的nodeport开放的端口,比如kuboard 30080.只允许办公网访问

6 docker覆盖entrypoint

比如: sentinel镜像,entrypoint为java -jar sentinel-dashboard.jar 需求: 由于安全问题,想在sentinel-dasboard上设置密码 需要更改 java -Dsentinel.dashboard.username=xxx -Dsentinel.dashboard.password=xxx -jar sentinel-dashboard.jar

解决方式: 通过父镜像覆盖子镜像的entrypoint FROM parent ENTRYPOINT ["/bin/bash"]

docker build -t parent .

7 kubernetes里面的imagepullpolicy:always是怎么实现的?

8 k8s动态准入控制器

k8sdemo's People

Contributors

zy410692 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.