我正在尝试使用 kompose onk3s
将 compose 文件转换为 K8s 文件,但是当我输入 时kompose up
,它要求我输入 a username and password
,但我不知道该写什么。
具体输出如下
# kompose up
INFO We are going to create Kubernetes Deployments, Services and PersistentVolumeClaims for your Dockerized application. If you need different kind of resources, use the 'kompose convert' and 'kubectl create -f' commands instead.
Please enter Username: test
Please enter Password: test
FATA Error while deploying application: Get https://127.0.0.1:6443/api: x509: certificate signed by unknown authority
但是,kompose convert
命令执行成功
如果您能告诉我如何解决它,我将不胜感激?
kompose 版本是
1.21.0 (992df58d8)
, 并通过 'curl and chmod' 安装k3s 版本为
v1.17.3+k3s1 (5b17a175)
, 使用 install.sh script 安装操作系统是
Ubuntu18.04.3 TLS