feat(jenkins): Use jenkins ServiceAccount and remove kubeconfig mount

This commit is contained in:
Claude AI
2026-01-05 17:57:54 +00:00
parent 568030aec2
commit c16588f74d

View File

@@ -13,6 +13,7 @@ spec:
labels:
app: jenkins
spec:
serviceAccountName: jenkins
securityContext:
fsGroup: 1000
initContainers:
@@ -70,9 +71,6 @@ spec:
mountPath: /var/run/docker.sock
- name: tools-bin
mountPath: /tmp/tools-bin
- name: kubeconfig
mountPath: /root/.kube
readOnly: true
volumes:
- name: jenkins-home
persistentVolumeClaim:
@@ -83,7 +81,3 @@ spec:
type: Socket
- name: tools-bin
emptyDir: {}
- name: kubeconfig
hostPath:
path: /root/.kube
type: Directory