feat(jenkins): Use jenkins ServiceAccount and remove kubeconfig mount
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user