<p>got some questions running SAP Project Piper on Kubernetes. We did the setup like described in</p>
<p><a href="https://sap.github.io/jenkins-library/guidedtour/" rel="nofollow noreferrer">https://sap.github.io/jenkins-library/guidedtour/</a></p>
<p>I assumed that a build will run &quot;out-of-the-box&quot;... but it isn't.
Invoking a mtaBuild results in a message ... Cannot connect to docker daemon ... permission denied</p>
<p>Not sure if we have to set env variable ON_K8S. If we set it ... the build is waiting forever for a node to come up.</p>
<p>Is there any setup guide for Kubernetes?
Do we have to configure a pod Template in the Jenkins configuration and work with container(&quot;container_name&quot;) in the Jenkinsfile ?</p>
<p>Is the Jenkins agent <a href="https://hub.docker.com/r/ppiper/jenkins-agent-k8s" rel="nofollow noreferrer">https://hub.docker.com/r/ppiper/jenkins-agent-k8s</a> already preconfigured? Do we have to set it over env variable?</p>

T1mey
<p>Updated answer:</p>

<p>The cx-server scripts are not made for running in Kubernetes, they are built for a "plain docker" setup (a linux server/vm with docker installed).</p>

<p>For scaling on Kubernetes, two options are available:</p>

<p>Using the jenkins master image in a pod as described in <a href="https://blogs.sap.com/2018/09/26/autoscaling-of-sap-s4hana-cloud-sdk-continuous-delivery-toolkit-on-kubernetes/" rel="nofollow noreferrer">this blog post</a>, or using it in a "plain docker" setup and optionally having additional agents on kubernetes.</p>

<p>Additional <a href="https://sap.github.io/jenkins-library/steps/dockerExecute/#kubernetes-support" rel="nofollow noreferrer">documentation on this topic is here</a></p>
