comment out
This commit is contained in:
@@ -33,24 +33,30 @@ spec:
|
||||
- containerPort: 22
|
||||
name: gitea-ssh
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: USER_UID
|
||||
value: "1000"
|
||||
- name: USER_GID
|
||||
value: "1000"
|
||||
resources: {}
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: gitea-storage
|
||||
- mountPath: /persistentvolumes
|
||||
name: nfs-client-root
|
||||
name: gitea-storage-iscsi
|
||||
- mountPath: /data2
|
||||
name: gitea-storage-nfs2
|
||||
# - mountPath: /data-new
|
||||
# name: gitea-storage-nfs
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: gitea-storage
|
||||
- name: gitea-storage-iscsi
|
||||
persistentVolumeClaim:
|
||||
claimName: gitea
|
||||
- name: nfs-client-root
|
||||
nfs:
|
||||
path: /volume1/k8s
|
||||
server: 192.168.1.176
|
||||
claimName: gitea-storage-iscsi
|
||||
- name: gitea-storage-nfs2
|
||||
persistentVolumeClaim:
|
||||
claimName: gitea-nfs2
|
||||
|
||||
@@ -1,12 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: gitea
|
||||
name: gitea-storage-iscsi
|
||||
namespace: default
|
||||
spec:
|
||||
storageClassName: synology-iscsi-storage-custom
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: gitea-nfs2
|
||||
namespace: default
|
||||
spec:
|
||||
storageClassName: nfs-client
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
46
apps/gittea/runner-deployment.yaml
Normal file
46
apps/gittea/runner-deployment.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: act-runner
|
||||
name: act-runner
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: act-runner
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: act-runner
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: runner-data-nfs
|
||||
persistentVolumeClaim:
|
||||
claimName: runner-data-nfs
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- name: runner
|
||||
image: vegardit/gitea-act-runner:dind-latest
|
||||
imagePullPolicy: Always
|
||||
# command: ["sh", "-c", "while ! nc -z localhost 2376 </dev/null; do echo 'waiting for docker daemon...'; sleep 5; done; /sbin/tini -- /opt/act/run.sh"]
|
||||
env:
|
||||
- name: GITEA_RUNNER_JOB_CONTAINER_PRIVILEGED
|
||||
value: "true"
|
||||
- name: GITEA_RUNNER_JOB_CONTAINER_NETWORK
|
||||
value: "host"
|
||||
- name: GITEA_INSTANCE_URL
|
||||
value: http://gitea-service:80
|
||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: runner-secret
|
||||
key: token
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
- name: runner-data-nfs
|
||||
mountPath: /data
|
||||
Reference in New Issue
Block a user