1
0
Fork 0
kubernetes/jenkins
Dustin 0e7bd36d34 jenkins: Pin to x86_64 nodes
The Raspberry Pi usually has the most free RAM of all the Kubernetes
nodes, so pods tend to get assigned there even when it would not be
appropriate.  Jenkins, for example definitely does not need to run
there, so let's force it to run on the bigger nodes.
2023-10-22 22:07:22 -05:00
..
README.md jenkins: Run Jenkins in Kubernetes 2022-11-25 13:38:10 -06:00
argocd-sync-hook.yaml jenkins: Add Argo CD pre-sync hook 2023-10-22 21:50:25 -05:00
jenkins.yaml jenkins: Pin to x86_64 nodes 2023-10-22 22:07:22 -05:00
kustomization.yaml jenkins: Add Argo CD pre-sync hook 2023-10-22 21:50:25 -05:00
ssh_known_hosts jenkins: Add ssh_known_hosts ConfigMap 2022-12-10 12:19:33 -06:00

README.md

Jenkins in Kubernetes

Kubernetes Setup

Configure Jenkins resources:

ln imagepull-gitea jenkins/.dockerconfigjson
kubectl apply -k jenkins

Jenkins Setup

Install Kubernetes plugin.

Set TCP port for inbound agents setting (Manage JenkinsConfigure Global Security) to Fixed and enter 40414.

Configure Kubernetes (Manage JenkinsManage Nodes and CloudsConfigure Clouds:

  1. Add a new cloudKubernetes
  2. Enter a name
  3. Kubernetes Cloud details...
    • Kubernetes URL: (leave blank; will use Kubernetes service discovery)
    • Kubernetes Namespace: jenkins-jobs
    • Credentials: - none - (will use Service Account token)
    • Jenkins tunnel: jenkins.jenkins.svc.cluster.local: (trailing colon!)