🔐 Kubernetes 中安裝 cert-manager 並產生 Private CA

⚠️ 僅用於測試用途 安裝 透過 Helm 安裝 cert-manager,首先下載簽署 cert-manager chart 的 GPG keyring,且在安裝時用此 GPG keyring 來驗證我們從 OCI Registry 下載的 chart curl -LO https://cert-manager.io/public-keys/cert-manager-keyring-2021-09-20-1020CF3C033D4F35BAE1C19E1226061C665DF13E.gpg helm install \ cert-manager oci://quay.io/jetstack/charts/cert-manager \ --version v1.19.1 \ --namespace cert-manager \ --create-namespace \ --verify \ --keyring ./cert-manager-keyring-2021-09-20-1020CF3C033D4F35BAE1C19E1226061C665DF13E.gpg \ --set crds.enabled=true 產生 Private CA 對應的 Custom Resources 以下為範例的 manifest 檔案,命名為 root_ca.yaml apiVersion: cert-manager.io/v1 kind: ClusterIssuer metadata: name: selfsigned-issuer spec: selfSigned: {} --- apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: my-selfsigned-ca namespace: cert-manager spec: isCA: true commonName: my-selfsigned-ca secretName: root-secret privateKey: algorithm: ECDSA size: 256 issuerRef: name: selfsigned-issuer kind: ClusterIssuer group: cert-manager.io subject: organizations: - WCYa Example Inc. countries: - TW organizationalUnits: - Internal PKI localities: - Taipei --- apiVersion: cert-manager.io/v1 kind: ClusterIssuer metadata: name: my-ca-issuer spec: ca: # `ClusterIssuer` resource is not namespaced, so `secretName` is assumed to reference secret in `cert-manager` namespace. secretName: root-secret 這些 Custom Resources 的用途: ...

November 22, 2025 · 1 分鐘 · Wayne Yang

💡 Hugo PaperMod 如何使用 Disqus 啟用 comments 功能

註冊 Disqus 帳號並建立 Site 至 disqus.com 點右上角 Sign up 並選擇 Publishers 之後建立一個 New Site,類別可隨意 平台點選最下面的 I don't see my platform listed, install manually with Universal Code 按鈕,安裝步驟可先略過,之後還是可以調整平台跟查看 Installation 取得 Shortname,此值之後會貼到 Hugo 的 config.yml 裡 PaperMod 啟用 comments 功能 相關 Feature 設定可參考 PaperMod 的 exampleSite,和 Hugo comments 文件 加入以下設定到 Hugo 的 config.yml # 啟用 comments 功能 params: comments: true # 設定 Disqus Shortname services: disqus: shortname: "<你剛剛從 Disqus 複製的 Shortname>" 因 Hugo 已附帶 Disqus 的模板,所以可直接將以下內容貼到 layouts/partials/comments.html 如目錄跟檔案不存在可自行建立 如需要 override Hugo 模板,參考 官方文件 {{ partial "disqus.html" . }}

July 1, 2025 · 1 分鐘 · Wayne Yang
motorcycle

︊️︊︎️️️☄️ Hello World

這是我的第一篇 Hugo + PaperMod 的文章 🎉

June 26, 2025 · 1 分鐘 · Wayne Yang