Searching We.Love.Privacy.Club

Twts matching #k8s
Sort by: Newest, Oldest, Most Relevant

一文讀懂 K8S StatefulSet 原理
爲什麼需要 StatefulSet在使用 Kubernetes 部署服務時,通常會選擇 Deployment 資源對象。由 Deployment 創建的 Pod 實例是完全相同的,它們在啓動時沒有順序要求,並且通常掛載相同的存儲卷。因此,客戶端訪問任意一個 Pod,返回的結果是一致的。這類服務被稱爲 無狀態服務。然而,如果嘗試使用 Deployment 部署如 MySQL、Redis 等數據庫服務 ⌘ Read more

⤋ Read More

一文讀懂 K8S Service 原理
概述在 K8S 集羣中, K8S 會給每一個 Pod 分配一個 podIP,默認網絡模式下,這個 podIP 是隨機分配的虛擬 IP,且該 podIP 會由於 Pod 重啓而自動更新,那麼客戶端訪問 Pod 時,必然要更新訪問地址。另一方面如果一個服務由多個 Pod 實例負載均衡提供服務,那麼在客戶端側實現負載均衡訪問也不合理。基於以上兩個問題,K8S 實現了 Service,Service 也是 ⌘ Read more

⤋ Read More

k9s – manage your Kubernetes cluster and it’s objects like a pro!
Community post originally published on Dev.to by Sunny Bhambhani Introductionk9s is a terminal based GUI to manage any Kubernetes(k8s) cluster. Using this single utility, we can manage, traverse, watch all our Kubernetes objects. More information around… ⌘ Read more

⤋ Read More

Kubernetes RBAC: improve the K8s security posture
Member post originally published on the Devtron blog by Siddhant Khisty TL;DR: Secure your Kubernetes cluster with Role-Based Access Control (RBAC) to define granular permissions for users and applications. This guide explains how to implement RBAC… ⌘ Read more

⤋ Read More

Go 程序如何實現優雅退出?來看看 K8s 是怎麼做的——下篇
K8s 的優雅退出現在,我們已經掌握了 Go 中 HTTP Server 程序如何實現優雅退出,是時候看一看 K8s 中提供的一種更爲優雅的優雅退出退出方案了😄。這要從 K8s API Server 啓動入口說起: https://github.com/kubernetes/kubernetes/blob/release-1.31/cmd/kube-apiserver/apiserver.gofRead more

⤋ Read More

Go 程序如何實現優雅退出?來看看 K8s 是怎麼做的——上篇
在寫 Go 程序時,優雅退出是一個老生常談的問題,也是我們在微服務開發過程中的標配,本文就來介紹下工作中常見的幾種優雅退出場景,以及帶大家一起來看一下 K8s 中的優雅退出是怎麼實現的。優雅退出我們一般可以通過如下方式執行一個 Go 程序:$ go build -o main main.go$ ./main如果要停止正在運行的程序,通常可以這樣做:在正在運行程序的終端執行 Ctrl + C。 ⌘ Read more

⤋ Read More

使用 Golang 構建你的第一個 k8s Operator
本文將展示如何使用 Operator SDK[1] 搭建一個基本的 k8s Operator。在本文中,您將瞭解如何創建一個新項目,並通過創建自定義資源定義 (CRD) 和基本控制器來添加 API。我們將在 CRD 中添加字段,以包含一些有關期望狀態和實際狀態的信息,修改控制器以調和新資源的實例,然後將 operator 部署到 Kubernetes 集羣。Prerequisites安裝 Oper ⌘ Read more

⤋ Read More

K8s Benchmark Report: are organizations meeting NSA hardening checks?
Member post originally published on Fairwinds’s blog by Joe Pelletier The National Security Agency (NSA) and the Cybersecurity and Infrastructure Security Agency (CISA) continue to update their Kubernetes hardening guidance, making recommendations to help organizations ensure they are hardening their Kubernetes clusters. This… ⌘ Read more

⤋ Read More

A 2024 K8s Benchmark Report: the latest trends in workload reliability
Member post originally published on Fairwinds’ blog by Joe Pelletier According to Gartner, cloud computing will become an essential component of maintaining business competitiveness by 2028. Indeed, in 2024 spending on public cloud services is projected to reach $679… ⌘ Read more

⤋ Read More

Go 項目的簡單部署
概述–在上一篇筆記記錄了 Gin 實現簡單的註冊登錄和狀態管理。這一篇筆記來分享一下如何將上面的項目打包鏡像和部署,筆記分成三部分,分別是 Web 後端項目 Docker 鏡像的構建、使用 Docker 運行、使用 Docker Compose 和 k8s 部署容器。使用 Ingress 路由規則和 Web 前端的部署運行在下一篇筆記中記錄。構建 Docker 鏡像————概述構 ⌘ Read more

⤋ Read More

GoCN 每日新闻 (2022-01-18)
GoCN 每日新闻 (2022-01-18)

  1. GoFrame 框架: 快速创建静态文件下载 Web 服务https://my.oschina.net/u/4955601/blog/5400313
  2. Kubernetes HPA 基于 Prometheus 自定义指标的可控弹性伸缩https://my.oschina.net/u/5110404/blog/5401779
  3. 面试官提问三个 Go 接口的概念, 10 年 gopher 竟无言以对https://colobu.com/2022/01/16/three-new-concepts-of-go-interface-since-1-18/
  4. chaos-mesh: K8s 的 Chaos 工程平台[htt … ⌘ Read more

⤋ Read More

有关 TiDB 升级的二三事——教你如何快乐升级
数据库升级本身就是存在一定风险的操作,TiDB 如何实现平安、顺利、无感的迁移?本文结合一个使用量过亿的用户 K8s 集群升级的案例,介绍了 TiDB 的升级工具包的使用方法,如何实现从简单的参数比对到全场景的模拟重放,根据实际需求和成本考量自主选择搭配方案。

有了 TiDB 升级工具包, **不必在升级选择面前患得患失,也不用在升级过程当中担 … ⌘ Read more

⤋ Read More

hconfig 一个可插拔的 Golang 配置管理工具 支持(etcd/k8s(kubernetes)/apollo)

hconfig 一个可插拔的 Golang 配置管理工具 支持(etcd/k8s(kubernetes)/apollo) 什么是可插拔式程序
  • 一个统计的可插拔内核
  • 各个组件相互独立
可插拔式程序
  1. 在设计一个可插拔式程序时我们应该想到的是怎么把我们的需求给实现了,然后我们再搞一波抽象(统计的可插拔内核

不同的模块只要实现了� … ⌘ Read more

⤋ Read More

蚂蚁招聘云原生运维专家 (杭州 P7-8)
蚂蚁招聘云原生运维专家 (杭州 P7-8)

联系方式: chaishushan{TA}gmail.com, shushan.css{TA}alibaba-inc.com

职位描述
1、负责蚂蚁集团代码化技术引擎 Kusion 的建设,打造蚂蚁集团开放协同运维能力底盘,并深度参与应用生命周期代码化、基础设施代码化、策略代码化等落地场景
2、参与打造蚂蚁集团规模化运维产品,构建完整的规模化运维功能
3、深度参与 CNCF、 K8S、基础设�� … ⌘ Read more

⤋ Read More