K3s Chaos Mesh 安裝 安裝官方網站 1curl -sSL https://mirrors.chaos-mesh.org/v2.6.3/install.sh | bash -s -- --k3s 如果中途發生安裝失敗,可以使用解除安裝腳本進行解除安裝 12curl -sSL https://mirrors.chaos-mesh.org/v2.6.3/install.sh | bash -s -- --template | kubectl delete -f -kubectl delete ns chaos-mesh # 刪除 Namespace 查看資源狀態1kubectl...

K8s 上一鍵安裝 EFK EFKElasticsearch,Fluentd,Kibana 的組合 Teck stack Elasticsearch 用於儲存與搜尋 Fluentd 用於收集系統 Log Kibana 提供資料視覺化 開始安裝把下列內容儲存成...

k8sGPT with K3s Install K8sGPTk8sGPT GitHub Go to Debian base host12curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.3.28/k8sgpt_amd64.debsudo dpkg -i k8sgpt_amd64.deb then enter k8sgpt is ok 1k8sgpt K3s User should specify kubeconfig1export...

K8s Join Cluster 在 Master 節點產生 Token12kubeadm token create --print-join-command --ttl=0#kubeadm join 127.0.0.1:6443 --token i69s6k.bo9hlan7otwh5hrj --discovery-token-ca-cert-hash sha256:d62f4dc6160a4996c8f8b28ab7b3ff36c92c1f89233129aab80486da919752cd k3s version 1k3s token create 在 Node 節點加入...

K8S Ingress/Ingress Controller 介紹 Ingress定義規則 Ingress 是 K8s 所提供的工具,用在定義應用程式如何公開服務 Ingress Controller實現規則與分流 Ingress Controller 負責監聽 Ingress 管理路由 Nginx 等,Ingress Controller 會根據 Ingress Controler 分配流量到應用程式 實作 建立 Ingress手上有三個...

K3s 各 Log 的儲存位置 根據官方文件表明各 Log 位置k3s logs 的位置取決於你怎麼去執行 k3s 以及節點的作業系統 當透過指令執行,log 會被送到 stdout/stderr當透過 openrc 執行 logs 會被建立在 /var/log/k3s.log當透過 systemd 執行 logs 會被送到 Journald 且可以透過 journalctl -u k3sPod 的 logs 可以在 /var/log/pods 裡面找到容器的 logs...

K3s 建立 Cluster Master Node 生成 Token1k3s token create 你會得到 k10 開頭的字串把它複製下來 Slave Node 加入 Cluster123k3sup join --host=HOSTIP --node-token=TOKEN## ORk3s agent --server https://SERVERIP:6443 --token K10... 就完成了

K8s StatefulSet IntroductionStatefulSet 是在 K8s 建構 Stateful App 用的,StatefulSet 類似 Deployment,但 StatefulSet App 會在容器產生後,產生一組識別碼,且不會因為 Pod reschedule 變動 使用情境應用程式適合用 StatefulSet 的情況 需要穩定 & 唯一的網路識別 (pod reschedule 後的 pod name & hostname 都不會變動) 需要穩定的 persistent storage (pod reschedule...

Kubernetes 各種資源型態 Resource Object K8s 本身提供的資源型態大致分成幾類 種類 資源型態 Workload Pod, HorizontalPodAutoscaler Controller ReplicaSet, ReplicationController, Deployment, StatefulSet, DaemonSet, Job, CronJob Service Discovery Service, Ingress Authentication & Authorization ServiceAccount, RBAC(Role,...