0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

Posted at

Pulumi で GKEのclusterにオブジェクトを作成しようとしてエラーが発生した。

invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

kubeconfig.yamlをKUBECONFIGに設定すると解決。
(kubeconfigはpulumi.interpolateで記載したk8s Configのファイル)

pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
export KUBECONFIG=./kubeconfig.yaml

exportは同一セッションや子プロセスのみで有効なので注意が必要。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?