【发布时间】:2020-04-10 10:49:38
【问题描述】:
我正在尝试在 k3s 上使用 kompose 将 compose 文件转换为 K8s 文件,但是当我输入 kompose up 时,它要求我输入 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
【问题讨论】:
-
您安装了什么
kompose版本?你是如何配置你的 k3s 集群的?您是否创建了任何证书?你的操作系统是什么? -
@PjoterS K3s 是使用
install.sh脚本安装的,我还没有设置 k3s 节点,只是一个主节点。 Kompose 版本为1.21.0,使用curl and chmod安装。我没有创建任何certs,只使用了脚本安装。lsb_release -a命令显示操作系统为ubuntu18.04.3 TLS。
标签: kubernetes authorization k3s kompose