---
schema_version: "1"
id: e2738dcb2dd7d150dba1363a7d43ca6f571624616c5b1302d03570e05250822b
title: Helm コマンドの問題のトラブルシューティング
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/gateway/1.8/flex-troubleshoot-helm.md
canonical_url: https://docs.mulesoft.com/jp/gateway/1.8/flex-troubleshoot-helm
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 79db824d1f4bae80b49ee999de960656ebd76f59dc2fad0658bfc22c6a1d43dd
description: MuleSoft Documentation Site
release: "1.8"
latest: false
---
# Helm コマンドの問題のトラブルシューティング

Kubernetes および OpenShift クラスターの ​`helm`​ コマンドで返されるエラーのトラブルシューティング

- [アップグレードに失敗する: 例外エラー](#troubleshoot-helm-yaml-empty)
- [Kubernetes クラスターに到達できない](#troubleshoot-helm-cluster-unreachable)
- [アップグレードに失敗する: タイムアウト](#troubleshoot-helm-upgrade-failed)
- [CRD をインストールできない](#troubleshoot-helm-openshift-rbac)

## [](#troubleshoot-helm-yaml-empty)アップグレードに失敗する: 例外エラー

Flex Gateway のデプロイメント中に ​`registration.yaml`​ ファイルを Helm コマンドに渡すときにこのファイルが無効であると、次のエラーになります。

Error: UPGRADE FAILED: execution error at (flex-gateway/templates/deployment.yaml:4:10):
registerSecretName, registration.content or registration.secretName is required!

このエラーが発生した場合は、​`registration.yaml`​ ファイルが空でないことを確認してください。ファイルが空である場合、新しい一意の名前でゲートウェイを登録して、新しい ​`registration.yaml`​ を生成し、登録ステップの手順を再実行します。登録コマンドの例については、​[「Flex Gateway を登録する」](https://docs.mulesoft.com/jp/gateway/1.8/flex-gateway-k8-getting-started#register-flex)​を参照してください。

## [](#troubleshoot-helm-upgrade-failed)アップグレードに失敗する: タイムアウト

問題によっては、次のタイムアウトエラーが発生する前に、(コマンドの ​`--wait`​ フラグが原因で) 最大 5 分間 Helm アップグレードコマンドがハングする可能性があります。

Error: UPGRADE FAILED: timed out waiting for the condition

通常、このエラーは、クラスター設定に誤りがあるか、クラスター設定ツールでこのプロセスがサポートされていないことを意味します。原因 1 つとして、​`LoadBalancer`​ 種別の ​`Service`​ リソースの生成の失敗が考えられます。さらにトラブルシューティングするには、次のコマンドを実行します。

- ```kubectl
    kubectl -n gateway describe deployment
    ```
- ```kubectl
    kubectl -n gateway describe service
    ```

## [](#troubleshoot-helm-cluster-unreachable)Kubernetes クラスターに到達できない

`helm`​ を使用して Flex Gateway をデプロイしようとしているときに Kubernetes クラスターが実行されていない場合、次のエラーが発生する可能性があります。

Error: Kubernetes cluster unreachable:
the server could not find the requested resource

クラスターを実行するサービスを開始します。

次のように、Kubernetes クラスターホストでクラスターが実行されていることを確認します。

```kubectl
kubectl cluster-info
```

- クラスターが実行されている場合、コマンドで次のような結果が返されます。
    
    Kubernetes control plane is running at https://34.30.50.119
    GLBCDefaultBackend is running at https://34.30.50.119/api/v1/namespaces/kube-system/services/default-http-backend:http/proxy
    KubeDNS is running at https://34.30.50.119/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
    Metrics-server is running at https://34.30.50.119/api/v1/namespaces/kube-system/services/https:metrics-server:/proxy
- クラスターが設定されていない場合、コマンドで次のような結果が返される可能性があります。
    
    To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
    error: the server doesn't have a resource type "services"

## [](#troubleshoot-helm-openshift-rbac)CRD をインストールできない

ロールベースのアクセス制御 (RBAC) を有効にする Kubernetes クラスターに Flex Gateway をデプロイする場合、Flex Gateway で使用されるカスタムリソース定義 (CRD) のインストールを許可するクラスターレベルの権限が必要です。 OpenShift では、​`cluster-admin`​ ロールによってこのレベルのアクセスが提供されます。

必要なアクセス権がない場合、次のようなエラーが発生します。

Error: failed to install CRD crds/apiinstance.yaml:
customresourcedefinitions.apiextensions.k8s.io is forbidden:
User "user1" cannot create resource "customresourcedefinitions"
in API group "apiextensions.k8s.io" at the cluster scope

## [](#関連情報)関連情報

- [Kubernetes クラスターでの Flex Gateway の使用開始](https://docs.mulesoft.com/jp/gateway/1.8/flex-gateway-k8-getting-started)
- [Flex Gateway のセットアップ](https://docs.mulesoft.com/jp/gateway/1.8/flex-gateway-set-up)