Fauna container for k8

How to start Fauna docker image using k8s in jenkins pipeline. Below is the container definition:
def containerFauna() {
return [
name: “fauna”,
image: “fauna/faunadb:latest”,
securityContext: [
runAsUser: 0
],
command: [“cat”],
tty: true,
resources: [ limits: [ memory: “1Gi” ], requests: [ memory: “1Gi” ] ]
]
}

getting error:
Caused by:
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:8443
Caused by:
java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:702)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:834)

is there health check endpoint available with Fauna.

tried setting command, that didn’t helped

command:
- entrypoint.sh faunadb

Hi @gdganesh

You can take a look here and find an example on how to create a Fauna cluster. You can play a bit with it and creating a tailor-made Dev Fauna cluster on k8s.

Hope this help.

Luigi

Containers were crashing because of out of memory. After increasing container memory to 8Gi, issue is resolved.