keiailab-commons

by Keiailab Co.,Ltd.

Helm chartv0.13.0App 0.13.0MITVerified publisher

Keiailab commons Helm library chart. downstream consumer 가 공유하는 partial helper (commonLabels / observability.serviceMonitor 등) 를 제공한다. type: library — consumer chart 가 dependency 로 import.

About this chart

keiailab-commons (Helm library chart)

keiailab-commons 의 Helm library chart. downstream operator chart 들이 공통으로 사용할 partial helper 를 제공합니다.

Design assets

AssetURLUsage
Centered service symbolhttps://raw.githubusercontent.com/KeiaiLab/keiailab-commons/main/docs/branding/symbol.pngArtifact Hub package icon and screenshot
Keiailab base symbolhttps://raw.githubusercontent.com/KeiaiLab/keiailab-commons/main/docs/branding/base-symbol.pngSource reference for the outer rotating-arrow mark
Branding guidehttps://github.com/KeiaiLab/keiailab-commons/blob/main/docs/BRANDING.mdGitHub visual usage rules

사용

consumer chart 의 Chart.yaml 에 의존성 추가:

dependencies:
  - name: keiailab-commons
    version: ~0.8.0
    repository: oci://ghcr.io/keiailab/charts

helm dependency update 후 partial 사용:

metadata:
  labels:
    {{- include "keiailab.commonLabels" . | nindent 4 }}

Provided Partials

Helper용도추가 시점
keiailab.commonLabelsHelm 표준 공통 label set (Kubernetes Recommended Labels)v0.1.0
keiailab.observability.serviceMonitorPrometheus Operator ServiceMonitor 공통 specv0.1.0
keiailab.networkpolicy.dataplanemanaged dataplane workload 보호 (default-deny + allow-internal-instance)v0.2.0
keiailab.networkpolicy.controlplaneoperator manager pod 자체 보호 (metrics / webhook ingress + API / DNS egress)v0.2.0
keiailab.rbac.serviceAccountServiceAccount + ImagePullSecrets + automountTokenv0.3.0
keiailab.rbac.controllerBasecontroller-runtime base (leader-election + events + service)v0.3.0
keiailab.rbac.workloadBasemanaged workload (StatefulSet / Deployment + Service / ConfigMap / Secret / PVC / Pod)v0.3.0
keiailab.security.podSecurityContextPSS Restricted Pod SecurityContext (runAsNonRoot + seccompProfile)v0.4.0
keiailab.security.containerSecurityContextPSS Restricted Container SecurityContext (capabilities.drop=ALL + readOnlyRootFilesystem)v0.4.0
keiailab.secrets.externalSecretExternal Secrets Operator ExternalSecret 공통 spec (Infisical / SecretStore / ClusterSecretStore)v0.8.0

ExternalSecret 예시

{{ include "keiailab.secrets.externalSecret" (dict
    "ctx" .
    "name" "app-admin"
    "labels" (include "my-operator.labels" .)
    "secretStoreName" .Values.externalSecrets.clusterSecretStore
    "targetName" "app-admin"
    "data" (list (dict
      "secretKey" "password"
      "remoteKey" "/data/app/admin/password")) ) }}

License

MIT — ../../LICENSE 참조.

Refs

  • ADR-0005 (commons): Helm library chart 패키징 결정.
  • ADR-0006 / ADR-0007 / ADR-0008: networkpolicy / rbac / security partial 채택.

Deploy keiailab-commons with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has keiailab-commons on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkeiailab-commons is pinned at v0.13.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply