Skip to content

Instantly share code, notes, and snippets.

@leoricklin
Last active January 6, 2022 07:43
Show Gist options
  • Save leoricklin/f1066fa61ef36d32bc0188cca340b228 to your computer and use it in GitHub Desktop.
Save leoricklin/f1066fa61ef36d32bc0188cca340b228 to your computer and use it in GitHub Desktop.

Kubernetes

  • Service endpoint (pod IP+target port) <- service (cluster IP) <- node port on all node <- (load balancer or external ip)

K3s, The certified Kubernetes distribution built for IoT & Edge computing

RedHat OpenShift

Guide / Book

OpenShift Container Platform 3.6 Developer Guide, https://docs.openshift.com/container-platform/3.6/dev_guide/index.html

Recap: 20200615 OpenShift Commons Gathering on Community Development June 15th 2020

20200427 Virtual OpenShift Commons Gathering @ Red Hat Summit Virtual Experience on April 27th

OpenShift makes it easy for developers to take advantage of delivering serverless applications. Through the CLI or through the GUI, tell OpenShift the container needs to run as a serverless, and unlock the capabilities of Knative.

Connect, manage, and observe microservices-based applications with security-focused Istio and Red Hat® OpenShift®

Resources

20200901 A Newbie’s Perspective on OpenShift, EN, https://www.openshift.com/blog/a-newbies-perspective-on-openshift
20190319 Introducing Istio Service Mesh for Microservices, https://developers.redhat.com/books/introducing-istio-service-mesh-microservices/

Helm

Resources

Helm

根據官方敘述, Helm 是一個管理 Kubernetes 應用程式的套件,透過 Helm Charts 這套系統,可以幫助開發者打包,安裝,升級相關的 Kubernetes 應用程式。

此外, Helm Charts 本身也被設計得很容易去創造,版本控制,分享以及發佈,所以透過 Helm Charts 就可以避免到處 Copy-and-Paste 各式各樣的 Yaml。

Purpose

Helm 將所有 Kubernetes 的應用程式都統稱為 Charts.

Helm 的工具會將這些 Charts 打包成 tgz 的檔案,接下來可以可以透過 Helm Charts Server 的方式將這個 tgz 的檔案給散佈出去,讓其

他使用者可以方便地取得這些已經打包好的應用程式(Charts)。

此外, Helm 的工具也可以直接針對這些 Charts 所描述的應用程式去安裝到/解除於 Kubernetes 叢集中

對於安裝到 Kubernetes 中的應用程式, Helm 稱其為 Release

而 Chart 到 Release 中間有一個客製化的概念,稱為 Config,透過這個 config 可以產生出適應不同環境的 Kubernetes Yaml

這三者如下圖所示,每個 Charts 搭配不同環境的設定檔案最後會產生出一個唯一的 Release 物件,而該物件就代表者該應用程式於 Kubernetes 內的實體

IBM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment