Remove legacy Gitea resources

This commit is contained in:
Danny Bessems 2024-12-07 14:37:38 +11:00
parent 28ad88a166
commit 1f584e6a76
19 changed files with 0 additions and 443 deletions

View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: gitea-legacy

View File

@ -1,26 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: runner-config
namespace: gitea-legacy
data:
dind-config.yml: |
runner:
capacity: 2
labels: [dind:docker://node:21-bullseye]
container:
options: "--add-host=docker:host-gateway -v /certs:/certs -v /scratch:/scratch -v /output:/output"
valid_volumes:
- /certs
- /scratch
- /output
dind-rootless-config.yml: |
runner:
capacity: 2
labels: [dind-rootless:docker://node:21-bullseye]
container:
options: "-v /certs:/certs -v /scratch:/scratch -v /output:/output"
valid_volumes:
- /certs
- /scratch
- /output

View File

@ -1,76 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: act-runner-dind-rootless
name: act-runner-dind-rootless
namespace: gitea-legacy
spec:
replicas: 1
selector:
matchLabels:
app: act-runner-dind-rootless
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
app: act-runner-dind-rootless
spec:
hostname: act-runner-dind-rootless
restartPolicy: Always
volumes:
- name: runner-config
configMap:
name: runner-config
items:
- key: dind-rootless-config.yml
path: dind-rootless-config.yml
- name: docker-certs
emptyDir: {}
- name: runner-data
persistentVolumeClaim:
claimName: act-runner-dind-rootless
- name: flexvolsmb-runner-output
persistentVolumeClaim:
claimName: flexvolsmb-runner-output
- name: flexvolsmb-runner-scratch
persistentVolumeClaim:
claimName: flexvolsmb-runner-scratch
securityContext:
fsGroup: 1000
containers:
- name: runner
image: gitea/act_runner:nightly-dind-rootless
imagePullPolicy: Always
env:
- name: CONFIG_FILE
value: /opt/act/config.yml
- name: DOCKER_HOST
value: tcp://localhost:2376
- name: DOCKER_CERT_PATH
value: /certs/client
- name: DOCKER_TLS_VERIFY
value: "1"
- name: GITEA_INSTANCE_URL
value: http://gitea.gitea.svc.cluster.local:3000
- name: GITEA_RUNNER_LABELS
value: dind-rootless:docker://node:21-bullseye
- name: GITEA_RUNNER_REGISTRATION_TOKEN
valueFrom:
secretKeyRef:
name: runner-secret
key: token
securityContext:
privileged: true
volumeMounts:
- name: runner-data
mountPath: /data
- name: runner-config
mountPath: /opt/act/config.yml
subPath: dind-rootless-config.yml
- name: flexvolsmb-runner-output
mountPath: /output
- name: flexvolsmb-runner-scratch
mountPath: /scratch

View File

@ -1,90 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: act-runner-dind
name: act-runner-dind
namespace: gitea-legacy
spec:
replicas: 1
selector:
matchLabels:
app: act-runner-dind
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
app: act-runner-dind
spec:
hostname: act-runner-dind
restartPolicy: Always
volumes:
- name: runner-config
configMap:
name: runner-config
items:
- key: dind-config.yml
path: dind-config.yml
- name: docker-certs
emptyDir: {}
- name: runner-data
persistentVolumeClaim:
claimName: act-runner-dind
- name: flexvolsmb-runner-output
persistentVolumeClaim:
claimName: flexvolsmb-runner-output
- name: flexvolsmb-runner-scratch
persistentVolumeClaim:
claimName: flexvolsmb-runner-scratch
containers:
- name: runner
image: gitea/act_runner:nightly
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: CONFIG_FILE
value: /opt/act/config.yml
- name: DOCKER_HOST
value: tcp://localhost:2376
- name: DOCKER_CERT_PATH
value: /certs/client
- name: DOCKER_TLS_VERIFY
value: "1"
- name: GITEA_INSTANCE_URL
value: http://gitea.gitea.svc.cluster.local:3000
- name: GITEA_RUNNER_LABELS
value: dind:docker://node:21-bullseye
- name: GITEA_RUNNER_REGISTRATION_TOKEN
valueFrom:
secretKeyRef:
name: runner-secret
key: token
volumeMounts:
- name: runner-config
mountPath: /opt/act/config.yml
subPath: dind-config.yml
- name: docker-certs
mountPath: /certs
- name: runner-data
mountPath: /data
- name: flexvolsmb-runner-output
mountPath: /output
- name: flexvolsmb-runner-scratch
mountPath: /scratch
- name: daemon
image: docker:26.1-dind
args:
- --mtu=1400
env:
- name: DOCKER_TLS_CERTDIR
value: /certs
securityContext:
privileged: true
volumeMounts:
- name: docker-certs
mountPath: /certs
- name: flexvolsmb-runner-output
mountPath: /output
- name: flexvolsmb-runner-scratch
mountPath: /scratch

View File

@ -1,50 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea
namespace: gitea-legacy
labels:
app: gitea
spec:
replicas: 1
selector:
matchLabels:
app: gitea
template:
metadata:
labels:
app: gitea
spec:
containers:
- name: gitea
image: gitea/gitea:1.22
imagePullPolicy: Always
env:
- name: DB_TYPE
value: 'sqlite3'
- name: ROOT_URL
value: 'https://legacy.spamasaurus.com'
- name: USER_UID
value: "1000"
- name: USER_GID
value: "1000"
ports:
- name: ui
containerPort: 3000
volumeMounts:
- mountPath: /data
name: flexvolsmb-gitea-data
- mountPath: /data/ssh
name: flexvolsmb-gitea-ssh
subPath: ssh
# securityContext:
# runAsUser: 1000
# runAsGroup: 1000
# fsGroup: 1000
volumes:
- name: flexvolsmb-gitea-data
persistentVolumeClaim:
claimName: flexvolsmb-gitea-data
- name: flexvolsmb-gitea-ssh
persistentVolumeClaim:
claimName: flexvolsmb-gitea-ssh

View File

@ -1,17 +0,0 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: gitea
namespace: gitea-legacy
spec:
entryPoints:
- websecure
routes:
- match: Host(`legacy.spamasaurus.com`)
kind: Rule
services:
- name: gitea
port: 3000
middlewares:
- name: security-headers@file
- name: compression@file

View File

@ -1,18 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-gitea-data
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-gitea-data
flexVolume:
driver: mount/smb
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0777,dir_mode=0777,uid=1000,gid=1000,iocharset=utf8,nobrl
server: 192.168.154.225
share: /K3s.Volumes/gitea/data

View File

@ -1,18 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-gitea-ssh
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-gitea-ssh
flexVolume:
driver: mount/smb
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0600,dir_mode=0600,iocharset=utf8
server: 192.168.154.225
share: /K3s.Volumes/gitea/ssh

View File

@ -1,18 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-runner-output
spec:
capacity:
storage: 50Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-runner-output
flexVolume:
driver: mount/smb
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0777,dir_mode=0777,iocharset=utf8
server: 192.168.154.225
share: /K3s.Volumes/lighttpd/websites/sn.itch.fyi/Repository/rel

View File

@ -1,18 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-runner-scratch
spec:
capacity:
storage: 50Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-runner-scratch
flexVolume:
driver: mount/smb
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0777,dir_mode=0777,iocharset=utf8
server: 192.168.154.225
share: /K3s.Volumes/gitea/runner/scratch

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: act-runner-dind-rootless
namespace: gitea-legacy
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 1Gi

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: act-runner-dind
namespace: gitea-legacy
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 1Gi

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-gitea-data
namespace: gitea-legacy
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-gitea-data
resources:
requests:
storage: 1Gi

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-gitea-ssh
namespace: gitea-legacy
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-gitea-ssh
resources:
requests:
storage: 1Gi

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-runner-output
namespace: gitea-legacy
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-runner-output
resources:
requests:
storage: 50Gi

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-runner-scratch
namespace: gitea-legacy
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-runner-scratch
resources:
requests:
storage: 50Gi

View File

@ -1,16 +0,0 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: flexvolsmb-credentials
namespace: gitea-legacy
spec:
encryptedData:
password: AgBz0yUaVj9PenDGBroZ0Yw1PNXhRoHSeWagrdb6uujcESYz/zVpZhoQISoGwuWTDv2ylGCWFBT02iXopcgBf+IYHUnE3nML/fp5snz9ubEzWoYUvNr4xKRpBC+F9P9ZLTHHzcQjRcZRYgxBxXE1K0z5tx41jqOmZSxMwC7FACS+d+V1XBV5imo19tWBPcn9M1D9rAXwikUcW7EvCI/+LH9DPyY6Yyz1L4QjYVahttGDyS3N+dG9U1QXKZML850t6rliICRcrbbPQv1nlO3v3aLB7Lr/vVvY2OkeoiwgdTQHeAOHnxF2VB03/4YIRp7QRPrR8zocOO/LefcOPdNrVMAcs4atN5pgJFAMNfar4o9KqQLkGLvN16DZMpiXBW5Z72k8jYFG/qpMeldTVoX5ZlvG0Loc6PDiaqgPyTpW8Wc9qA00dVQPEmxFFew8pvl22UEHOro8GiqpqST3RYiZbCA71KyagNiSaBrWli6rw9FZOKIlKTsZIj5/dSFMVJk+URu+IXOOTru8zz2kSAoHgeHNVWym1CXX2rAJxP9dYLQFaJBYC9yx2XB11qcI4Ss+jdsQ1XXPFkbBMvcGyvFYa6B0YBIxBLx4rhezmbjSy20Jtb/LNzGpPZx4MpaQKoo2eNMxwNXTMPzKGQyzaES5GpDK22zflsPRnguZq1g9rF3BC3PeAc6KfItwvUTLbgd53ytLVlgo5amRX8F/EU0HaCBr
username: AgByniB/PfIEXe1pwgN1a007zmcyGvLjKsXR1yT6l7gcv3/4D+GRMgo5zm6C/2MO3/P3bM2NcDXSYzExTvJWXeN6iu2iJM193/NGFt3b2aop9G+gdsZ3U4DxWXucgbyALw8PX5diiokAiuXpaf6hB65abrg7Olmr36G+R8DF1fiGn92WnXMJPQW5xsNQD9kyuLFHorRkvVS6jvtUPet3o8g0ECQhZ0uc4m1HsDcmwddkaGQxjpNcLcGcdIrnYQu3GvnFAViB+glojnXw5Cd+ERUAqWOcptdsnRJtedgCqf6YNnKp03nlOhxDCrS4MScESzO9TcWDwdQjRh7T6EieuJjyKQN0SMGjSOhqI/P/De0X22ovR0Ly7pHufORfvJEyckWXAFhmvDA7n7rG2F7Px6h5LNChFi42u2FdVVOL0dyC3dcG5QdG1jBa6CB0LWCu94hk6o5zDI98nqisCgeMFDIWfKB3dvDJHyWv42eLyU0ADSV+V67wbFAvPilfJsh87d+IJHgT+kCN4gpHUaL9XhN2UdpoyB8LBe2vAm8IIuBX8rmJP/PidLlllgUYjDC+kcsFUyxMHHkpqR1qo8JRC3a+sgGGgTKv0N7p8De0QJWU7MCZVLxSFRFy7Jx3+4jbtDYAo0UKEljkUvXSEJkq9G+VcZiVbZ6Mnn8XrQs8GkoQIIHl3vh63jhtTLOwqCAcKjFbgIsF8S0=
template:
metadata:
creationTimestamp: null
name: flexvolsmb-credentials
namespace: gitea-legacy
type: mount/smb

View File

@ -1,8 +0,0 @@
apiVersion: v1
data:
token: bjF2R1hHZXVjRVlyaU95aXZaREhrVDlFNVJ0MHptMTJ6Z1kzcTE1TQ==
kind: Secret
metadata:
name: runner-secret
namespace: gitea-legacy
type: Opaque

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: gitea
namespace: gitea-legacy
spec:
ports:
- protocol: TCP
name: ui
port: 3000
selector:
app: gitea