apache ignite installation fails in kubernetes

classic Classic list List threaded Threaded
3 messages Options
Gokulnath Chidambaram Gokulnath Chidambaram
Reply | Threaded
Open this post in threaded view
|

apache ignite installation fails in kubernetes

Hello,

I am trying to run Apache ignite : 2.5.0 inside the kubernetes cluster. My organization security policy doesn't allow to run as 'root' inside any container. I tried to add security context (runAsNonRoot) in kubernetes yaml file. I am always getting the following error.

cp: can't create '/opt/ignite/apache-ignite-fabric/libs/README.txt': File exists
cp: can't create '/opt/ignite/apache-ignite-fabric/libs/ignite-kubernetes-2.5.0.jar': Permission denied
cp: can't create '/opt/ignite/apache-ignite-fabric/libs/jackson-core-asl-1.9.13.jar': Permission denied
cp: can't create '/opt/ignite/apache-ignite-fabric/libs/jackson-mapper-asl-1.9.13.jar': Permission denied
cp: can't create '/opt/ignite/apache-ignite-fabric/libs/licenses/apache-2.0.txt': File exists
cp: can't create '/opt/ignite/apache-ignite-fabric/libs/licenses/ignite-kubernetes-licenses.txt': Permission denied

Any insights is appreciated.

Thanks
aealexsandrov aealexsandrov
Reply | Threaded
Open this post in threaded view
|

Re: apache ignite installation fails in kubernetes

Hi,

As I know it should be fixed in Apache Ignite 2.7.6. Also as an option
you can try to modify your current Docker file as next (master version):

https://github.com/apache/ignite/blob/master/docker/apache-ignite/Dockerfile 


BR,
Andrei

11/6/2019 10:33 AM, Gokulnath Chidambaram пишет:

> Hello,
>
> I am trying to run Apache ignite : 2.5.0 inside the kubernetes
> cluster. My organization security policy doesn't allow to run as
> 'root' inside any container. I tried to add security context
> (runAsNonRoot) in kubernetes yaml file. I am always getting the
> following error.
>
> cp: can't create '/opt/ignite/apache-ignite-fabric/libs/README.txt':
> File exists
> cp: can't create
> '/opt/ignite/apache-ignite-fabric/libs/ignite-kubernetes-2.5.0.jar':
> Permission denied
> cp: can't create
> '/opt/ignite/apache-ignite-fabric/libs/jackson-core-asl-1.9.13.jar':
> Permission denied
> cp: can't create
> '/opt/ignite/apache-ignite-fabric/libs/jackson-mapper-asl-1.9.13.jar':
> Permission denied
> cp: can't create
> '/opt/ignite/apache-ignite-fabric/libs/licenses/apache-2.0.txt': File
> exists
> cp: can't create
> '/opt/ignite/apache-ignite-fabric/libs/licenses/ignite-kubernetes-licenses.txt':
> Permission denied
>
> Any insights is appreciated.
>
> Thanks
Gokulnath Chidambaram Gokulnath Chidambaram
Reply | Threaded
Open this post in threaded view
|

Re: apache ignite installation fails in kubernetes

thanks Andre. this works. 

unfortunately, i am getting to other famous issue which is  Failed to retrieve Ignite pods IP addresses.
will post as new issue.

On Wed, Nov 6, 2019 at 7:06 PM Andrei Aleksandrov <[hidden email]> wrote:
Hi,

As I know it should be fixed in Apache Ignite 2.7.6. Also as an option
you can try to modify your current Docker file as next (master version):

https://github.com/apache/ignite/blob/master/docker/apache-ignite/Dockerfile


BR,
Andrei

11/6/2019 10:33 AM, Gokulnath Chidambaram пишет:
> Hello,
>
> I am trying to run Apache ignite : 2.5.0 inside the kubernetes
> cluster. My organization security policy doesn't allow to run as
> 'root' inside any container. I tried to add security context
> (runAsNonRoot) in kubernetes yaml file. I am always getting the
> following error.
>
> cp: can't create '/opt/ignite/apache-ignite-fabric/libs/README.txt':
> File exists
> cp: can't create
> '/opt/ignite/apache-ignite-fabric/libs/ignite-kubernetes-2.5.0.jar':
> Permission denied
> cp: can't create
> '/opt/ignite/apache-ignite-fabric/libs/jackson-core-asl-1.9.13.jar':
> Permission denied
> cp: can't create
> '/opt/ignite/apache-ignite-fabric/libs/jackson-mapper-asl-1.9.13.jar':
> Permission denied
> cp: can't create
> '/opt/ignite/apache-ignite-fabric/libs/licenses/apache-2.0.txt': File
> exists
> cp: can't create
> '/opt/ignite/apache-ignite-fabric/libs/licenses/ignite-kubernetes-licenses.txt':
> Permission denied
>
> Any insights is appreciated.
>
> Thanks