Skip to content

Instantly share code, notes, and snippets.

@sysnet4admin
Last active December 5, 2020 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sysnet4admin/9ba66cc879309fc3f8cba6fc667151ab to your computer and use it in GitHub Desktop.
Save sysnet4admin/9ba66cc879309fc3f8cba6fc667151ab to your computer and use it in GitHub Desktop.
jenkins:
clouds:
- kubernetes:
name: "kubernetes"
templates:
- name: "default"
containers:
- name: "jnlp"
image: "jenkins/inbound-agent:4.3-4"
command: ""
envVars:
- envVar:
key: "JENKINS_URL"
value: "http://192.168.1.11"
volumes:
- hostPathVolume:
hostPath: "/usr/bin/kubectl"
mountPath: "/usr/bin/kubectl"
- hostPathVolume:
hostPath: "/bin/docker"
mountPath: "/bin/docker"
- hostPathVolume:
hostPath: "/var/run/docker.sock"
mountPath: "/var/run/docker.sock"
serviceAccount: "jenkins"
runAsUser: "1000"
runAsGroup: "993"
disabledAdministrativeMonitors:
- "hudson.model.UpdateCenter$CoreUpdateMonitor"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment