合并用户名和密码验证

问题描述 投票:0回答:1

[我正在尝试在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

kubernetes authorization k3s kompose
1个回答
1
投票
这导致kompose未能获得证书。

您可以使用复制到/etc/rancher/k3s/k3s.yaml~/.Kube/config

cp /etc/rancher/k3s/k3s.yaml ~/.kube/config

然后kompose up成功执行。

© www.soinside.com 2019 - 2024. All rights reserved.