2025-08-01 17:21:00
每周五更新,所有的更新也会发送到我的频道
2025-08-01 00:27:00
之前我都是直接在每一个 ns 下创建一个 Secret 并手动在 Pod 的 spec.imagePullSecrets 字段中引用,以实现从私有镜像仓库拉取镜像。后来发现可以通过在 ServiceAccount(如 default ServiceAccount)的 imagePullSecrets 字段指定 Secret,这样只要 Pod 使用该 ServiceAccount(并且没有在 spec 里单独指定 imagePullSecrets),就会自动使用指定的凭据来拉取私有镜像。这样就不用在每个 Pod 的 spec 里都单独写 imagePullSecrets 了,集中管理也更方便。也就是说如果我给default ServiceAccount 添加了 imagePullSecrets,那么所有使用 default ServiceAccount 的 Pod 都会自动使用这个 Secret 来拉取私有镜像。因为默认情况下,Pod 会使用 default ServiceAccount。所以只要 Pod 没有显式指定其他 ServiceAccount,就会自动使用 default ServiceAccount 的 imagePullSecrets。
2025-08-01 00:27:00
Previously, I used to create a Secret in each namespace and manually reference it in the Pod’s spec.imagePullSecrets
field to enable pulling images from a private registry. Later, I discovered that you can specify the Secret in the imagePullSecrets
field of a ServiceAccount (such as the default ServiceAccount). As long as the Pod uses this ServiceAccount (and does not specify imagePullSecrets
in its own spec), it will automatically use the credentials specified to pull private images. This means you no longer need to set imagePullSecrets
in every Pod spec, making centralized management much easier. In other words, if you add imagePullSecrets
to the default ServiceAccount, all Pods using the default ServiceAccount will automatically use this Secret to pull private images. By default, Pods use the default ServiceAccount unless another ServiceAccount is explicitly specified, so they will automatically use the imagePullSecrets
from the default ServiceAccount.
2025-07-31 21:25:00
我已经受够vscode这么慢了,但是其他的编辑器对于远程开发的支持也不够好,mutagen可以解决这个问题。相比于传统的sshfs方式,mutagen采用文件同步技术,能实现更加高效且低延迟的本地编辑远程代码,并且支持双向同步和冲突解决,非常适合需要频繁本地修改文件、但又依赖远程计算资源的开发场景。
2025-07-31 21:25:00
I’ve had enough of how slow VSCode is, but other editors don’t offer good support for remote development either. Mutagen solves this problem. Compared to traditional SSHFS methods, Mutagen uses file synchronization technology to enable more efficient and low-latency local editing of remote code. It supports bidirectional sync and conflict resolution, making it ideal for development scenarios where you frequently modify files locally but rely on remote computing resources.