Comments (13)
Thanks for the issue.
I'm pretty sure that everywhere I tested k3sup, I used Ubuntu 18.04.3 LTS. I'm surprised it isn't working... What cloud did you use?
As for checking if the agent started. Do you know any bash command that could do that?
from k3sup.
I’m an using freshly installed VMs on my local KVM machines.
For machines with systemd...
systemctl status application.service
from k3sup.
You could add a function validateAgent
in join.go
So they you could validation code.
I’m sure there are other things worth validating.
I don’t know Go we’ll enough or I would create a branch/PR.
from k3sup.
That tends to be blocking? Does it need a human to read it, or can it be run over SSH with an exit code being parsed?
Feel free to PoC something.
from k3sup.
If you ware wanting something more pure Bash ...
ps -ef | grep "k3s agent" | grep -v grep > /dev/null
... has an exit code of 0
on a match, and 1
on no match.
from k3sup.
It seems a bit brittle. Is there an FD created maybe when systemd starts up a process?
Maybe you could ask upstream for a shell script to by provided by k3s, just like they provide an uninstaller.sh
from k3sup.
I got the same thing on Amazon Linux 2 following https://rancher.com/blog/2019/k3s-kubeconfig-in-seconds/.
After the exec
error:
Sep 02 18:35:38 ip-172-31-0-204.ec2.internal systemd[1]: [/etc/systemd/system/k3s-agent.service:7] Failed to parse service type, ignoring: exec
This error is logged:
Sep 02 18:36:21 ip-172-31-0-204.ec2.internal k3s[3958]: time="2019-09-02T18:36:21.489789359Z" level=error msg="failed to get CA certs at https://127.0.0.1:42269/cacerts: Get https://127.0.0.1:42269/cacerts: read tcp 127.0.0.1:47350->127.0.0.1:42269: read: connection reset by peer"
https://127.0.0.1:42269 hangs.
The second one is covered by
k3s-io/k3s#484
In particular for the second one, make sure there is network connectivity between the agent and server hosts.
The first one seems to be a k3sup thing. I reinstalled using the regular k3s install.sh
and it worked ok.
from k3sup.
There should be no error @sourcedelica if you're following the tutorial. Please can you raise a separate issue about the tutorial, then I'll ping the author to see if he can give you some technical support.
Alex
from k3sup.
@dhoard does the ssh / exec return a non-zero exit code in your example, or can it only be determined through manual checking?
from k3sup.
@alexellis not sure... but since the systemd start is asynchronous, I suspect you can’t use exit code.
from k3sup.
@sourcedelica I just tried again for setting up k3s using k3sup on Amazon Linux 2 using the blog and it works without giving any error. I did not do any additional step apart from what is mentioned in the blog. Please make sure you have set up the ports, running as root etc. It is very straightforward so not sure why its giving error for you. Feel free to create another issue for the same as mentioned by @alexellis earlier so that we can have a detailed discussion on it.
from k3sup.
Sounds good, thanks
from k3sup.
Not all Linux distros are the same. I urge that this ticket be reopened or forked... I ran the install and join commands against VMware's PhotonOS v3 and had the same two errors.
- systemd type:exec error
- CA File missing and certs
If this is something that the user is supposed to do then a link to the docs would be helpful because not even the k3s docs mention these issues.
from k3sup.
Related Issues (20)
- Explicitly state the systemd requirement for the remote Linux host HOT 1
- Support request for SSH configuration HOT 3
- k3sup join needs two --ssh-key, one for server and another one for joining server HOT 3
- Support for specifying k3s install mirror option `--k3s-install-mirror`
- First Colon not added to `k3s-extra-args` HOT 1
- k3sup not working on fcos with testing channel HOT 6
- Support question for k3sup join HOT 3
- About 0.12.13 release HOT 2
- Suggestion: declare the nodes and its options in a single yaml file Would be a good idea? HOT 1
- generated zsh shell completion not working HOT 1
- How to access Traefik dashboard? HOT 1
- I need to pass password instead of key in "--ssh-key HOT 1
- macOS + 1Password SSH agent forwarding + Nushell not working with k3sup HOT 2
- docs change HOT 4
- Getting NODE_TOKEN with custom password protected ssh-key leads to too verbose NODE_TOKEN env var
- Request to create a registries.yaml file as part of k3s installation for private registries HOT 5
- How to replicate default kubernetes deployment services HOT 2
- Explain how to upgrade k8s version in the docs
- Add ssh-key to plan command HOT 1
- unable to get join-token from server on first install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k3sup.