1
0
Fork 0
kubernetes/jenkins
Dustin 95d2dba039 jenkins: Add credentials to sign, publish RPMs
The *jenkins-repohost* Secret contains an SSH private key Jenkins jobs
can use to publish RPM packages to the Yum repo host on
*files.pyrocufflink.blue*.

The *rpm-gpg-key* and *rpm-gpg-key-passphrase* Secrets contain the GnuPG
private key and its encryption passphrase, respectively, that can be
used to sign RPM packages.  This key is trusted by managed nodes on the
Pyrocufflink network.
2023-11-10 15:31:55 -06: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: RBAC for K8s Credentials Provider 2023-11-10 15:27:38 -06:00
kustomization.yaml jenkins: Add default imagePullSecrets for jobs 2023-11-10 15:13:19 -06:00
secrets.yaml jenkins: Add credentials to sign, publish RPMs 2023-11-10 15:31:55 -06:00
ssh_known_hosts jenkins: Add files.p.b SSH host key 2023-11-10 15:17:06 -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!)