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?

Bun で @kubernetes/client-node を使用する際に UNABLE_TO_VERIFY_LEAF_SIGNATURE が発生する問題の解決法

Posted at

Bunで@kubernetes/client-nodeを使用しようとすると下記のようなエラーが出る。(少なくとも私の環境では出た)

Deployment failed ERR_TLS_CERT_ALTNAME_INVALID: ERR_TLS_CERT_ALTNAME_INVALID fetching "https://masternode:6443/api/v1/namespaces/default/configmaps". For more information, pass `verbose: true` in the second argument to fetch()
 path: "https://masternode:6443/api/v1/namespaces/default/configmaps"

これを解決するには、

NODE_TLS_REJECT_UNAUTHORIZED=0

という環境変数を設定してあげると正常に動作するようになった。

Bunは自己証明書周りの機能のバグがあるらしい?

参考
https://github.com/oven-sh/bun/issues/4979#issuecomment-1715378319

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?