Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
344 views
in Technique[技术] by (71.8m points)

git - Getting an error in Continuously Deliver Kubernetes Applications With Flux CD

How to Continuously Deliver Kubernetes Applications With Flux CD

I took help from below link for fluxcd

https://medium.com/better-programming/how-to-continuously-deliver-kubernetes-applications-with-flux-cd-502e4fb8ccfe

But I'm getting an error :

Error: can not connect to git repository with URL ssh://[email protected]/xx/nginx-kubernetes.git

Full error message:

git clone --mirror: fatal: Could not read from remote repository., full output:
 Cloning into bare repository '/tmp/flux-gitclone470494538'...
ssh: Could not resolve hostname github.com: Try again
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Run 'fluxctl sync --help' for usage.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Base on this error: ssh: Could not resolve hostname github.com: Try again fatal: Could not read from remote repository

Change to using git clone http or git clone git@ , perhaps ssh doesnot permit for your network.

You are using : git user for git clone, please create git user on CD server. and add authenticate_key on github. Refer: https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server

DNS resolver didnot work on Flux CD server, add google DNS for the server : 8.8.8.8 or 8.8.4.4 into /etc/resolv.conf file and ping github.com


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

Just Browsing Browsing

[3] html - How to create even cell spacing within a

2.1m questions

2.1m answers

60 comments

56.9k users

...