Files
template/README.md
T

47 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# template
k3s-manifests 組織のリポジトリテンプレートです。
## ファイル構成
charts/SERVICE/
├── Chart.yaml
├── values.yaml
└── templates/
├── 00-namespace.yaml # Namespace
├── 10-pv.yaml # PersistentVolume
├── 20-pvc.yaml # PersistentVolumeClaim
├── 30-secret.yaml # Secret
├── 40-configmap.yaml # ConfigMap
├── 50-deployment.yaml # Deployment / StatefulSet
├── 60-service.yaml # Service
├── 70-ingress.yaml # Ingress
└── 80-hpa.yaml # HorizontalPodAutoscaler
## 番号規約
- 10区切りで読み込み順を管理
- 並列インスタンスは1区切り(例: 50-deployment-admin.yaml, 51-deployment-usera.yaml
- 不要なファイルは作らない(欠番OK、番号は詰めない)
- ファイル名固定(中身がStatefulSetでも50-deployment.yaml
## バージョニング
- semverMAJOR.MINOR.PATCH
- v0.x.x: ペライチマニフェスト管理
- v1.0.0: Helm化完了
## ラベル規約
labels:
app.kubernetes.io/name: {service}
app.kubernetes.io/version: {version}
app.kubernetes.io/managed-by: gitea-actions
## 使い方
1. このリポジトリをテンプレートとして新規リポジトリを作成
2. SERVICE を実際のサービス名に置き換え
3. 不要なtemplateファイルは削除
4. values.yaml を環境に合わせて編集