or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
如何以 GitOps 方式管理 Kubernetes 集群 - Dick Tang
tags:
COSCUP2020
入門
TR412-2
歡迎來到 https://hackmd.io/@coscup/2020 共筆
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。
簡介
https://coscup.org/2020/zh-TW/agenda/RH99NK
背景
隨著 微服務 與 容器技術 的興起。
管理 與 SRE 面臨一些挑戰。
議程
什麼是 容器(Container)?
什麼是 Kubernetes(K8S)
K8s 是
fancy容器編排平台(container orchestration plaform)簡單來說 讓容器跑在多台服務器上 (集群) 處理集群上以及一些生產環境的問題,例如:
Kubernetes 最小的調度單位是 pod 不是 container
Kubernetes 有許多調度的 object,像是 Deployment, StatefulSet, DaemonSet etc.
Kubernetes 有豐富的生態圈,像是 Helm (類似 Ubuntu 的 apt 或是 CentOS 的 yum)
有打包好的 k8s 服務環境 helm,並且有 helm hub(類似應用商店) 可以下載已經打包好的 k8s 服務
什麼是 GitOps
GitOps - 用 git flow 來管理 K8s 的環境,部署到 K8s 的環境
GitOps 一樣是 DevOps 的概念,適用於 CICD,不過更 focus 在
CD
的部分。聲明式(declaratively)描述整個系統
所需 (Kubernetes) 系統狀態儲存在 Git
已批准的變更可以自動部屬自系統
新來的系統工程師不用太多的教學,只要從 Git 做更改即可,減少溝通成本。
實際狀態與所需的狀態有偏差時做出警告
K8S 上為什麼要 GitOps?
fluxCD: The GitOps K8s operator
kubectl apply
HelmRelease (CRD)
使用 Helm 來包 services 可以考慮。
kubectl 實際唸法是 "cube 咖抖" cube cuttle How do you REALLY pronounce kubectl?這次沒有談及的
演練步驟