ksync 实际上实现了类似 docker docker run -v /foo:/bar 的功能,可以加速我们应用的开发&&运行

安装

mac os

curl https://vapor-ware.github.io/gimme-that/gimme.sh | bash

基本使用

  • 初始化
ksync init
  • 启动
ksync watch &
  • 简单demo
kubectl apply -f https://vapor-ware.github.io/ksync/example/app/app.yaml
  • 创建同步设置
mkdir -p $(pwd)/ksync
ksync create --selector=app=app $(pwd)/ksync /code
  • 转发配置

    实现本地访问

kubectl get po --selector=app=app -o=custom-columns=:metadata.name --no-headers | \
xargs -IPOD kubectl port-forward POD 8080:80 &
  • 修改代码
  open ksync/server.py
  • 查看状态
ksync get

生命周期图

参考资料

https://github.com/vapor-ware/ksync

 
 
 
 

最新文章

  1. jQuery中的$.extend方法来扩展JSON对象及合并,方便调用对象方法
  2. JAVA数据转换常用方法
  3. 在ubuntu 14.04 64位添加32位库
  4. RouteData
  5. UVa 10806 & 费用流+意识流...
  6. asp.net core 通过 TeamCity 实现持续集成笔记
  7. js判断页面点击事件
  8. FZU 2028 BFS+vector
  9. Apache Spark源码走读之4 -- DStream实时流数据处理
  10. C# Winform 水波纹效果
  11. C++ this指针详解
  12. 微信小程序开发1
  13. gulp Tips
  14. Hibernate3.0中的session.find()问题
  15. 【转】Awk 命令学习总结、AWk命令系列学习(linux shell)
  16. 《HelloGitHub》第 23 期
  17. 转:java中Vector的使用
  18. CodePad系列之-Tkinter窗体
  19. Linux 互斥锁
  20. 谷歌浏览器chrome的vuejs devtools 插件的安装

热门文章

  1. uva1416 dijkstra
  2. 497. Random Point in Non-overlapping Rectangles
  3. pyDay12
  4. 使用NodeJS将文件或图像上传到服务器
  5. 20162314 Experiment 4 - Graph
  6. vSphere Client开启虚拟机提示:出现了常规系统错误: 由于目标计算机积极拒绝,无法连接。
  7. ExtJS清除表格缓存
  8. Linux 下源码编译安装 vim 8.1
  9. hadoop经典案例
  10. spring Security简介