Restructure yaml, add CI/CD pipelines

This commit is contained in:
red 2025-04-08 12:17:27 -04:00
parent fc1bf0bb9a
commit fd7d99d29a
31 changed files with 771 additions and 543 deletions

View file

@ -0,0 +1,10 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: tor-config
namespace: darkdork-dev
data:
torrc: |
SocksPort 0.0.0.0:9050
---

View file

@ -0,0 +1,33 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tor
namespace: darkdork-dev
spec:
replicas: 1
selector:
matchLabels:
app: tor
template:
metadata:
labels:
app: tor
spec:
imagePullSecrets:
- name: registry-credentials
containers:
- name: tor
image: cr.forge.lan/darkdork-dev/tor:${CI_COMMIT_HASH}
imagePullPolicy: Always
ports:
- containerPort: 8118
volumeMounts:
- name: tor-config
mountPath: /etc/tor/torrc
subPath: torrc
volumes:
- name: tor-config
configMap:
name: tor-config
---

View file

@ -0,0 +1,14 @@
---
apiVersion: v1
kind: Service
metadata:
name: tor
namespace: darkdork-dev
spec:
ports:
- port: 9050
targetPort: 9050
protocol: TCP
selector:
app: tor
---