running Rundeck on k8s platform

1,822 views
Skip to first unread message

Oladipupo B

unread,
Nov 12, 2018, 6:30:45 PM11/12/18
to rundeck-discuss
Hi All,

I'm new to rundeck. I'm having a hard time trying to get rundeck setup in a container after pulling the image. There are some permissions denied on creating temp files i.e

23 time="2018-11-09T16:18:44Z" level=error msg="createStageFileAndSync failed: create stage file failed: couldn't create tempfile: open /home/rundeck/etc/.framework.properties081339861: permission denied" prefix="remco[10]" resource=framework.properties.toml


Does anyone know where i'm doing something wrong ?


rac...@rundeck.com

unread,
Nov 13, 2018, 9:15:42 AM11/13/18
to rundeck-discuss
Hi Oladipupo,

It seems a problem of the image, anyway I leave you step by step how works for me.

1) Download the Rundeck image with:

$ docker pull rundeck/rundeck:3.0.8

2) Run the container with:

$ docker run --name some-rundeck -v data:/home/rundeck/server/data rundeck/rundeck:3.0.8

3) To access GUI in your browser put:

http://localhost:4440

Also you have more information here:


And here you have a lot of options to play with Rundeck Docker image:


BR!

Oladipupo B

unread,
Nov 13, 2018, 9:47:28 AM11/13/18
to rundeck-discuss
Thank you very much, I'll try the 3.0.8 version right now.

Oladipupo B

unread,
Nov 13, 2018, 11:06:29 AM11/13/18
to rundeck-discuss
Hi Racuna,

Thanks again but I'm afraid I didn't get further. I've tried using 3.0.7 & 3.0.8 but both images are acting the same way. The logs show "Permission denied" on creating temp files.


On Tuesday, November 13, 2018 at 8:47:28 AM UTC-6, Oladipupo B wrote:

Reiner Acuña

unread,
Nov 13, 2018, 11:23:52 AM11/13/18
to rundeck...@googlegroups.com
Hi!

What linux distro do you use? And what Docker version?

Thanks!

From: rundeck...@googlegroups.com <rundeck...@googlegroups.com> on behalf of Oladipupo B <ladip...@gmail.com>
Sent: Tuesday, November 13, 2018 1:06:29 PM
To: rundeck-discuss
Subject: [rundeck] Re: running Rundeck on k8s platform
 
--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To post to this group, send email to rundeck...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/eee8543e-b8aa-4182-b841-2d4d9c51220f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

za...@rundeck.com

unread,
Nov 13, 2018, 11:53:30 AM11/13/18
to rundeck-discuss
Hello!

The first thing that comes to mind is a potential permission error due to volume mounts. Is anything being mounted or otherwise changed with "/home/rundeck/etc" that might cause the Rundeck user inside the container to not have permissions to create files at that location? Would you be able to post your kubernetes pod configuration?

It might be worth it as well to check out the examples in the Docker Zoo: https://github.com/rundeck/docker-zoo . There is even a kubernetes example that may provide some insight for you!

Cheers,
   -Greg

Oladipupo B

unread,
Nov 13, 2018, 12:37:48 PM11/13/18
to rundeck-discuss
Hi Reiner,

I'm currently trying this on Origin....CentOS 7.5 with Docker 1.13. 

Oladipupo B

unread,
Nov 13, 2018, 12:45:39 PM11/13/18
to rundeck-discuss
hi Greg,

Thank you very much. I did see the docker-zoo example for kubernetes but this was that was the pro version. I don't have a license key so I want to try getting this working with the free version first.

In regards to the volume mounts, nothing is being mounted or changed with "/home/rundeck/etc"

Thank you,
Oladipupo

Dane DeValcourt

unread,
Apr 19, 2019, 10:01:50 AM4/19/19
to rundeck-discuss
Did you happen to resolve this?  I'm facing the same issue as I try to get rundeck working on OpenShift.

Hugh Brown

unread,
Aug 9, 2019, 6:00:05 PM8/9/19
to rundeck-discuss
It's possible that SELinux is interfering with Docker volume mounts; I've had to go through this with Fedora, which (like OpenShift, and I *think* like Centos) comes with SELinux enabled by default.  Have a look at https://www.projectatomic.io/blog/2015/06/using-volumes-with-docker-can-cause-problems-with-selinux/ for some hints on how to get around this.
Reply all
Reply to author
Forward
0 new messages