更新 deployment/gitlab.yaml

This commit is contained in:
loveuer 2024-04-06 18:55:37 +08:00
parent fd9b5dd059
commit 9a0c5966aa

View File

@ -56,8 +56,9 @@ data:
service_cpu_request = "200m" service_cpu_request = "200m"
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: StatefulSet
metadata: metadata:
name: gitlab-runner name: gitlab-runner
namespace: gitlab-runner namespace: gitlab-runner
@ -84,12 +85,39 @@ spec:
limits: limits:
cpu: '100m' cpu: '100m'
volumeMounts: volumeMounts:
- name: config - name: gitlab-runner-config
mountPath: /etc/gitlab-runner/config.toml mountPath: /etc/gitlab-runner
readOnly: true
subPath: config.toml
volumes: volumes:
- name: config - name: gitlab-runner-config
configMap: persistentVolumeClaim:
name: gitlab-runner-config name: gitlab-runner-pvc
restartPolicy: Always restartPolicy: Always
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: gitlab-runner
name: gitlab-runner-pvc
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: "gitlab-runner-storage"
resources:
requests:
storage: 10Mi
---
apiVersion: v1
kind: PersistentVolume
metadata:
namespace: gitlab-runner
name: gitlab-runner-pv
spec:
capacity:
storage: 10Mi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
hostPath:
path: /data/gitlab-runner
type: ""
storageClassName: "gitlab-runner-storage"
volumeMode: Filesystem