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.7.tar.gz (164.4 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.7-py3-none-any.whl (187.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sbkube-0.4.7.tar.gz
  • Upload date:
  • Size: 164.4 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.7.tar.gz
Algorithm Hash digest
SHA256 cb467467cd12341bcfcd5c5a111754d72be64a83b8d66332a3ff62d78e8d6b26
MD5 bff7dd8b34c1775c176684a86d2f06fa
BLAKE2b-256 295570965d0828cc8a933c7bbaca2c1503702820b72c553e87e139f08f27893f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sbkube-0.4.7.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.7-py3-none-any.whl.

File metadata

  • Download URL: sbkube-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 187.1 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 951ffbd3c28bace949f2e0a2c317dd56003decbb62e415990e1eb80684087414
MD5 48021478a260ad4df7996f4a190320e8
BLAKE2b-256 22e5066fe8bff039a4bc3c637489d15d46b1b8c5fe850b4b87b7ccc666a8d5c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for sbkube-0.4.7-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