Skip to main content

k3s용 헬름+yaml+git 배포 자동화 CLI 도구

Project description

🧩 SBKube

License: MIT PyPI - Python Version Repo Version

SBKubeYAML, Helm, Git 리소스를 로컬에서 정의하고 k3s 등 Kubernetes 환경에 일관되게 배포할 수 있는 CLI 도구입니다.

k3s용 헬름+yaml+git 배포 자동화 CLI 도구


🚀 빠른 시작

# 설치
pip install sbkube

# 통합 워크플로우 (권장)
sbkube apply --app-dir config --namespace <namespace>

# 또는 단계별 실행
sbkube prepare --base-dir . --app-dir config
sbkube build --base-dir . --app-dir config
sbkube template --base-dir . --app-dir config --output-dir rendered/
sbkube deploy --base-dir . --app-dir config --namespace <namespace>

📚 문서 구조

제품 이해 (Product-First)

완전한 제품 정의 및 기능 명세는 **PRODUCT.md**를 참조하세요.

사용자 가이드

개발자 리소스

전체 문서 인덱스는 **docs/INDEX.md**에서 확인하세요.

⚙️ 주요 기능

다단계 워크플로우

prepare → build → template → deploy

또는 통합 실행: sbkube apply (4단계 자동 실행)

지원 애플리케이션 타입

  • helm - Helm 차트 (원격/로컬)
  • yaml - YAML 매니페스트
  • git - Git 리포지토리
  • http - HTTP 파일 다운로드
  • action - 커스텀 액션 (apply/delete)
  • exec - 커스텀 명령어 실행

설정 기반 관리

  • config.yaml - 애플리케이션 정의 및 배포 스펙 (간소화된 현재 버전 형식)
  • sources.yaml - 외부 소스 정의 (Helm repos, Git repos)
  • values/ - Helm 값 파일 디렉토리

차트 커스터마이징 (현재 버전)

  • overrides - 차트 내 파일 교체
  • removes - 차트 내 파일 삭제

설정 예제 (현재 버전)

간단한 Helm 배포:

namespace: my-namespace

apps:
  redis:
    type: helm
    chart: bitnami/redis
    version: 17.13.2
    values:
      - redis.yaml

차트 커스터마이징:

apps:
  postgresql:
    type: helm
    chart: bitnami/postgresql
    overrides:
      templates/secret.yaml: my-custom-secret.yaml
    removes:
      - templates/serviceaccount.yaml

의존성 관리:

apps:
  database:
    type: helm
    chart: bitnami/postgresql

  backend:
    type: helm
    chart: ./charts/backend
    depends_on:
      - database

더 많은 예제는 examples/ 디렉토리를 참조하세요.

🔄 마이그레이션

v0.2.x에서 현재 버전으로 업그레이드하는 경우, 자동 마이그레이션 도구를 사용하세요:

sbkube migrate old-config.yaml -o config.yaml

자세한 내용은 CHANGELOG.mdMigration Guide를 참조하세요.

💬 지원

📄 라이선스

MIT License - 자세한 내용은 LICENSE 파일을 참조하세요.


🇰🇷 한국 k3s 환경에 특화된 Kubernetes 배포 자동화 도구

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sbkube-0.4.0.tar.gz (160.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sbkube-0.4.0-py3-none-any.whl (182.6 kB view details)

Uploaded Python 3

File details

Details for the file sbkube-0.4.0.tar.gz.

File metadata

  • Download URL: sbkube-0.4.0.tar.gz
  • Upload date:
  • Size: 160.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sbkube-0.4.0.tar.gz
Algorithm Hash digest
SHA256 abb19d6c1a80beb83fc62bcb1a4260c57b6288d6e5ec819576e1c2c9bdea4900
MD5 462197ecb1ff5629263766b705f99e09
BLAKE2b-256 50e91edfd7a02db5ebc655bd461b526e9998530a11abecc19ed3015d162499e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for sbkube-0.4.0.tar.gz:

Publisher: python-publish.yml on ScriptonBasestar/sb-kube-app-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sbkube-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: sbkube-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 182.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sbkube-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e24f980c472772a0fc0d72abf8fb6d7b8094f8d6c832abec3e30d47b0f72931
MD5 0421e9c3dd452e7116d1c660f8b2345b
BLAKE2b-256 7bf27bf1a4941bd9555deae1598514b238c1c5497574673fb9f43dd41fe53461

See more details on using hashes here.

Provenance

The following attestation bundles were made for sbkube-0.4.0-py3-none-any.whl:

Publisher: python-publish.yml on ScriptonBasestar/sb-kube-app-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page