Wener Notes

K8S 使用经验

约 1 分钟阅读

K8S Story

Kubernetes is a platform for building platforms. It's a better place to start: not the endgame.

-- Kelsey Hightower

两年 K8S 心得

  • 选用了 Traefik + Cert-Manager + Ext-DNS
  • 用了 Prometheus-Operator 但觉得 Thanos 也很好
  • 推崇 GitOps
    • 选用了 ArgoCD
    • FluxCDGitHubfluxcd/flux
    • 无法存储到 Git 的考虑使用 velero 备份
      • 例如 cert-manager 证书
    • 觉得单个 Git 仓库好,但是希望能切分为多个 ArgoCD 应用
  • 推荐多使用 Operator 模式
  • Secret 管理依然困难
    • 可以尝试 mozilla/sopsGitHubmozilla/sopsmozilla/sops · sops 是个 编辑器 · 加密 yaml, json 字段而非整个文件 · 支持 yaml, json, dotenv, plaintext, ini · 支持后端: age, pgp, vault · 加密后字段笔记:SOPS
  • K8S 原生 CI 和日志分析依然不太明确
    • 原生 CI
      • JenkinsX 接近但过于复杂
      • Tekton Pipelines 和 Argo Workflows 都接近原生,但无法暴露给团队
    • 日志分析
      • fluentbitLinkfluentbit.iofluentbit · fluent/fluent-bit · Build Options · 数据处理流程 · input - · parser - · fliter - · buffer · - · - · router · 匹配 · - 等同于笔记:Fluentbit 作为 DaemonSet 采集到 fluentd Pod
      • 存储选用 ES 或 Loki
      • Kibana
        • 开源版用户认证和每个用户的权限都不容易管理
        • 分析功能强
      • Grafana
        • 日志分析功能非常弱
        • substring searching and per-line tag searching

Lessons Learned From Two Years Of Kubernetes

关联信息

反向链接、本文链接的其他页面和外部资料。

References

GitHub2 条
其他外链8 条
最近更新commit 4cacd98Edit

On this page