kube-aws - adding startup script

29 views
Skip to first unread message

Doron Offir

unread,
Aug 9, 2016, 4:47:43 PM8/9/16
to CoreOS User, Vadim Solovey
Hi Guys,

I am trying to execute a startup script for a worker node that is been created by the kube-aws and doesn't seems to get it working.
Looking at the Core-OS cloud-config syntax, I could see any way to execute a simple command line, is it possible at all?

I've ended up with creating a service that execute my script, but it fail... :(

The task I wish to accomplish is quite simple in a regular instance, I want to create the nodes with a specific name convention and update my external DNS with its details.

Any suggestions how to tackle this one?
Thank you and all of the best,

coli...@coreos.com

unread,
Aug 10, 2016, 9:24:12 PM8/10/16
to CoreOS User, va...@doit-intl.com
Hi Doron,

That would be the correct approach to add a startup script!

Could you share the output of:

* systemctl status your.service
* systemcat cat your.service
* journalctl -u your.service -e -n 30

PS- Watch out for any private data in the output

Thanks,
Colin

Doron Offir

unread,
Aug 14, 2016, 4:16:46 PM8/14/16
to CoreOS User, va...@doit-intl.com
Hi Colin,

Thank you for your answer.

I tried executing those commands, and the silliest things, when I try ssh into the nodes with the aws key I've stated in the cluster yaml, it is askin for a pass, this key doesn't have a passphrase.

Any suggestion?

Brandon Philips

unread,
Aug 17, 2016, 7:11:54 PM8/17/16
to Doron Offir, CoreOS User, va...@doit-intl.com
Hello Doron-

Are you certain your AWS key is added to the ssh keychain?

 ssh-add path-to-aws-key

Brandon

--
You received this message because you are subscribed to the Google Groups "CoreOS User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coreos-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Doron Offir

unread,
Aug 21, 2016, 2:04:11 PM8/21/16
to Brandon Philips, CoreOS User, va...@doit-intl.com
Hi Brandon,

I am pretty sure that it is (I also tried ssh-add), I am been connect to the machine, but it asks for a pssword, it may be an additional security measure in the cluster, but, I don't recall stating such a pass when running the kube-aws or in the cluster.yaml.

Any suggestions?

All of the best,

Seán C. McCord

unread,
Aug 21, 2016, 3:33:18 PM8/21/16
to Doron Offir, Brandon Philips, CoreOS User, va...@doit-intl.com
Silly question, but you are trying to SSH in as the user 'core' and not 'root', right?
--
Seán C McCord
CyCore Systems, Inc
Reply all
Reply to author
Forward
0 new messages