[我正在尝试在k3s
上使用kompose将撰写文件转换为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脚本'进行安装OS是
Ubuntu18.04.3 TLS
您可以使用复制到/etc/rancher/k3s/k3s.yaml
的~/.Kube/config
。
cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
然后kompose up
成功执行。