Helmリポジトリ利用に修正
All checks were successful
Helm Chart Release / release-chart (push) Successful in 11s
All checks were successful
Helm Chart Release / release-chart (push) Successful in 11s
This commit is contained in:
48
README.md
48
README.md
@@ -23,6 +23,23 @@ Alpine LinuxベースのNginx + PHP-FPM環境をKubernetesにデプロイする
|
|||||||
|
|
||||||
### 基本インストール
|
### 基本インストール
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Helmリポジトリを追加
|
||||||
|
helm repo add cafepieters https://git.cafepieters.com/api/packages/helmchart/helm
|
||||||
|
helm repo update
|
||||||
|
|
||||||
|
# デフォルト設定でインストール
|
||||||
|
helm install my-phpfpm cafepieters/phpfpm
|
||||||
|
|
||||||
|
# カスタム設定でインストール
|
||||||
|
helm install my-phpfpm cafepieters/phpfpm -f my-values.yaml
|
||||||
|
|
||||||
|
# 特定のバージョンをインストール
|
||||||
|
helm install my-phpfpm cafepieters/phpfpm --version 2.0.0
|
||||||
|
```
|
||||||
|
|
||||||
|
### ソースからのインストール
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# リポジトリのクローン
|
# リポジトリのクローン
|
||||||
git clone https://git.cafepieters.com/helmchart/phpfpm.git
|
git clone https://git.cafepieters.com/helmchart/phpfpm.git
|
||||||
@@ -172,7 +189,7 @@ resources:
|
|||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm install my-app . -f values.yaml
|
helm install my-app cafepieters/phpfpm -f values.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
### 例2: Composerパッケージ利用
|
### 例2: Composerパッケージ利用
|
||||||
@@ -461,8 +478,8 @@ resources:
|
|||||||
# Secretを先に作成
|
# Secretを先に作成
|
||||||
kubectl create secret generic db-password --from-literal=password='SuperSecurePass'
|
kubectl create secret generic db-password --from-literal=password='SuperSecurePass'
|
||||||
|
|
||||||
# デプロイ
|
# Helmリポジトリからデプロイ
|
||||||
helm install production-api . \
|
helm install production-api cafepieters/phpfpm \
|
||||||
-f production-values.yaml \
|
-f production-values.yaml \
|
||||||
--set externalDatabase.password=$(kubectl get secret db-password -o jsonpath='{.data.password}' | base64 -d)
|
--set externalDatabase.password=$(kubectl get secret db-password -o jsonpath='{.data.password}' | base64 -d)
|
||||||
```
|
```
|
||||||
@@ -470,11 +487,17 @@ helm install production-api . \
|
|||||||
## アップグレード
|
## アップグレード
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 設定変更後のアップグレード
|
# リポジトリを更新
|
||||||
helm upgrade my-phpfpm . -f values.yaml
|
helm repo update cafepieters
|
||||||
|
|
||||||
|
# 最新バージョンにアップグレード
|
||||||
|
helm upgrade my-phpfpm cafepieters/phpfpm -f values.yaml
|
||||||
|
|
||||||
# 特定のパラメータのみ変更
|
# 特定のパラメータのみ変更
|
||||||
helm upgrade my-phpfpm . --set replicaCount=5
|
helm upgrade my-phpfpm cafepieters/phpfpm --set replicaCount=5
|
||||||
|
|
||||||
|
# 特定のバージョンにアップグレード
|
||||||
|
helm upgrade my-phpfpm cafepieters/phpfpm --version 2.1.0
|
||||||
|
|
||||||
# ロールバック
|
# ロールバック
|
||||||
helm rollback my-phpfpm 1
|
helm rollback my-phpfpm 1
|
||||||
@@ -672,6 +695,18 @@ composer:
|
|||||||
|
|
||||||
## よくある質問(FAQ)
|
## よくある質問(FAQ)
|
||||||
|
|
||||||
|
**Q: Helmリポジトリを追加するには?**
|
||||||
|
|
||||||
|
A: 以下のコマンドでリポジトリを追加できます。
|
||||||
|
|
||||||
|
```bash
|
||||||
|
helm repo add cafepieters https://git.cafepieters.com/api/packages/helmchart/helm
|
||||||
|
helm repo update
|
||||||
|
|
||||||
|
# 利用可能なバージョンを確認
|
||||||
|
helm search repo cafepieters/phpfpm --versions
|
||||||
|
```
|
||||||
|
|
||||||
**Q: PHPバージョンを変更するには?**
|
**Q: PHPバージョンを変更するには?**
|
||||||
|
|
||||||
A: `image.php.tag`を変更してください。
|
A: `image.php.tag`を変更してください。
|
||||||
@@ -719,6 +754,7 @@ kubectl cp ./my-app <pod-name>:/var/www/html/ -c php-fpm
|
|||||||
|
|
||||||
## サポート
|
## サポート
|
||||||
|
|
||||||
|
- Helmリポジトリ: https://git.cafepieters.com/api/packages/helmchart/helm
|
||||||
- Issue: https://git.cafepieters.com/helmchart/phpfpm/issues
|
- Issue: https://git.cafepieters.com/helmchart/phpfpm/issues
|
||||||
- リポジトリ: https://git.cafepieters.com/helmchart/phpfpm
|
- リポジトリ: https://git.cafepieters.com/helmchart/phpfpm
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user