feat(jenkins): Use jenkins ServiceAccount and remove kubeconfig mount
This commit is contained in:
@@ -13,6 +13,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: jenkins
|
app: jenkins
|
||||||
spec:
|
spec:
|
||||||
|
serviceAccountName: jenkins
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
initContainers:
|
initContainers:
|
||||||
@@ -70,9 +71,6 @@ spec:
|
|||||||
mountPath: /var/run/docker.sock
|
mountPath: /var/run/docker.sock
|
||||||
- name: tools-bin
|
- name: tools-bin
|
||||||
mountPath: /tmp/tools-bin
|
mountPath: /tmp/tools-bin
|
||||||
- name: kubeconfig
|
|
||||||
mountPath: /root/.kube
|
|
||||||
readOnly: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: jenkins-home
|
- name: jenkins-home
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -83,7 +81,3 @@ spec:
|
|||||||
type: Socket
|
type: Socket
|
||||||
- name: tools-bin
|
- name: tools-bin
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: kubeconfig
|
|
||||||
hostPath:
|
|
||||||
path: /root/.kube
|
|
||||||
type: Directory
|
|
||||||
|
|||||||
Reference in New Issue
Block a user