-
Bug
-
Resolution: Won't Do
-
Minor
-
Jenkins 2.80
Kubernetes Plugin 1.0
Blue Ocean 1.2.4
On an Azure Kubernetes Cluster
Hi csanchez, Not sure if it is a feature request or my lack understand on how to this.
I have the following kubernetes Pod Configuration
podTemplate(label: 'jenkins-pipeline', containers: [ containerTemplate(name: 'jnlp', image: 'jenkinsci/jnlp-slave:3.10-1', args: '${computer.jnlpmac} ${computer.name}', workingDir: '/home/jenkins', resourceRequestCpu: '200m', resourceLimitCpu: '800m', resourceRequestMemory: '256Mi', resourceLimitMemory: '2048Mi'), containerTemplate(name: 'docker', image: 'docker:17.07-rc', privileged: true, command: 'cat', ttyEnabled: true), containerTemplate(name: 'helm', image: 'coalmineadmin/k8s-helm:2.5.1', command: 'cat', ttyEnabled: true), containerTemplate(name: 'kubectl', image: 'lachlanevenson/k8s-kubectl:v1.5.6', command: 'cat', ttyEnabled: true) ], volumes:[ hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock'), hostPathVolume(mountPath: '/root/.kube/config', hostPath: '/root/.kube/config'), hostPathVolume(mountPath: '/tmp/params.sh', hostPath: '/tmp/params.sh'), ])
I need to add more attributes on the pod level. Specific on my use case I need to add
dnsPolicy: Default
I add it but the results on the pod started as
dnsPolicy: ClusterFirst
Accoding to the readme (https://github.com/jenkinsci/kubernetes-plugin/) The plugin currently doesn't support such attribute.
Is it in the road map ? if not, is there other way around this ?
Thanks,
Chen