0%

Travis CI必须付费了

2023年2月25日,使用travis ci部署hexo项目,发现并没有触发任务。

登录travis ci,发现提示:

Builds have been temporarily disabled for public repositories due to a negative credit balance. Please go to the Plan page to replenish your credit balance or alter your Consume paid credits for OSS setting.

travis ci plan页面关闭了Consume paid credits for OSS,但是依然提示:

Builds have been temporarily disabled for private and public repositories due to a negative credit balance. Please go to the Plan page to replenish your credit balance.

点击Change plan,发现已经没有免费的plan了,而最便宜的plan,也要$69/monthly,太贵了,放弃。
不过可以理解,毕竟跑CI是需要服务器的,服务器是需要花钱的。

那就换成GitHub Actions吧,有付费版,也有免费版。

阅读全文 »

Flag

《K8S入门篇》一文中,定下了目标:拿到CKA和CKAD证书。转眼过去了大半年,但是一直没有付诸行动。今天,趁生日,立下flag:2020年5月1前考下CKA,2020年6月1日前考下CKAD。

CKA和CKAD是啥?

The Certified Kubernetes Administrator (CKA) program was created by the Cloud Native Computing Foundation (CNCF), in collaboration with The Linux Foundation, to help develop the Kubernetes ecosystem.

The Certified Kubernetes Application Developer (CKAD) program has been developed by the Cloud Native Computing Foundation (CNCF), in collaboration with The Linux Foundation, to help expand the Kubernetes ecosystem through standardized training and certification.

简而言之,CKA/CKAD是CNCF和Linux基金会联合推出的两个K8S考试认证。委托给PSI来进行监督考试。其中,CKA侧重于K8S管理,CKAD侧重于K8S开发。

想要拿到CKA和CKAD证书,需要哪些准备工作?本文就来梳理一下。主要参考:

阅读全文 »

Pod抓包概述

排查网络问题的最好方法就是抓包分析,在 Kubernetes 中对 Pod 进行抓包的常见方法包括:

  • 在 Pod 中安装 tcpdump 工具,直接对流量进行抓包,捕获网络流量并输出到文件或终端上。这种方法的优点是灵活性高,可以根据实际情况进行定制和调试,但需要在 Pod 中安装额外的工具,可能会增加 Pod 的大小和复杂度。
  • 使用 kubectl port-forward 命令将 Pod 的网络流量转发到本地,然后使用本地的 tcpdump 工具对流量进行抓包。这种方法的优点是简单易用,不需要在 Pod 中安装额外的工具,但需要手动进行转发和抓包,可能不太方便。
  • 使用 Kubernetes 中的网络插件提供的抓包功能,例如 Cilium、Weave Net、Calico 等。这些网络插件一般都提供了抓包工具或者抓包接口,可以直接对 Pod 的网络流量进行抓包,而无需在 Pod 中安装额外的工具或者进行手动转发。
  • 登录 Pod 所在节点,进入容器 netns,然后使用节点上 tcpdump 工具进行抓包。

以上方法都比较繁琐,令人惊喜的是出现了 ksniff,可以让我们在 Kubernetes 更简便地抓包。
本文中,我们会学习使用ksniff来进行Pod抓包。

参考文档:

阅读全文 »