yakcloud-starter: 배포 기반(스타터 앱+CI+매니페스트) + Claude Code 스킬 yakcloud-deploy
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
24
yakcloud.yaml
Normal file
24
yakcloud.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
# YakCloud 선언적 배포 매니페스트 — 스타터(최소, 데이터소스 없이 단독 배포 가능)
|
||||
# 태그(v*) push → Gitea Actions → build/push → 리컨실 배포. 자세한 절차: .claude/skills/yakcloud-deploy/SKILL.md
|
||||
apiVersion: yakcloud/v1
|
||||
project: yakcloud-starter
|
||||
|
||||
# 배포 대상 클러스터 — 이름 또는 콘솔 id 로 변경. (YAKCLOUD_CLUSTER 시크릿이 있으면 그게 우선)
|
||||
cluster: my-service-19
|
||||
|
||||
# 데이터 소스 필요하면 추가(없으면 빈 목록):
|
||||
# - { name: appdb, type: postgresql, plan: small }
|
||||
requires: []
|
||||
|
||||
workloads:
|
||||
- name: web
|
||||
build: ./ # 루트 Dockerfile 을 CI 가 빌드
|
||||
image: gitea.yakenator.io/yakenator/yakcloud-starter-web:${TAG} # <GITEA_USER>/<project>-web 로 변경
|
||||
port: 8080
|
||||
replicas: 2 # ≥2 → 무중단 롤링
|
||||
health: /healthz
|
||||
resources: { cpu: 25m, mem: 64Mi }
|
||||
expose: { path: /, rewrite: false } # host: <등록도메인> 지정 시 그 도메인으로 노출. 여러 개는 hosts: [a, b]
|
||||
# 데이터 소스를 쓰면 requires 에 추가하고 아래처럼 바인딩(앱은 DB_URL 등으로 접속):
|
||||
# binds:
|
||||
# - { alias: db, source: appdb }
|
||||
Reference in New Issue
Block a user