Compare commits
19 Commits
11f881c24b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
224102a066
|
|||
|
9851a131d3
|
|||
|
20473263ae
|
|||
| cb3528b17b | |||
|
1a25c3fcf3
|
|||
|
b2d6545070
|
|||
|
053c36a877
|
|||
|
968ef8d621
|
|||
|
4215d89d0b
|
|||
|
3b38a2c3a9
|
|||
|
42fd1e5a92
|
|||
|
8d6b3eb6b6
|
|||
|
442ba532cd
|
|||
| c71e4765e1 | |||
|
b1e62ed191
|
|||
|
5855b78976
|
|||
|
d849c4ca19
|
|||
|
101be3512a
|
|||
|
893f10a45c
|
10
attic/bucket.yaml
Normal file
10
attic/bucket.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: objectbucket.io/v1alpha1
|
||||||
|
kind: ObjectBucketClaim
|
||||||
|
metadata:
|
||||||
|
name: attic-bucket
|
||||||
|
namespace: attic
|
||||||
|
spec:
|
||||||
|
additionalConfig:
|
||||||
|
maxSize: 100Gi
|
||||||
|
bucketName: attic-bucket
|
||||||
|
storageClassName: weyma-s3-bucket
|
||||||
36
attic/config.yaml
Normal file
36
attic/config.yaml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: attic-config
|
||||||
|
data:
|
||||||
|
server.toml: |
|
||||||
|
listen = "[::]:8080"
|
||||||
|
allowed-hosts = []
|
||||||
|
|
||||||
|
#api-endpoint = "https://nix-cache.dubyatp.xyz/"
|
||||||
|
|
||||||
|
[database]
|
||||||
|
url = "sqlite:///var/empty/.local/share/attic/server.db"
|
||||||
|
|
||||||
|
[storage]
|
||||||
|
path = "/data/.local/share/attic/storage"
|
||||||
|
type = "local"
|
||||||
|
#region = "us-east-1"
|
||||||
|
#bucket = "attic-bucket"
|
||||||
|
#endpoint = "https://weyma-s3.infra.dubyatp.xyz"
|
||||||
|
|
||||||
|
[chunking]
|
||||||
|
nar-size-threshold = 65536
|
||||||
|
min-size = 16384
|
||||||
|
avg-size = 65536
|
||||||
|
max-size = 262144
|
||||||
|
|
||||||
|
[compression]
|
||||||
|
type = "zstd"
|
||||||
|
|
||||||
|
[garbage-collection]
|
||||||
|
interval = "12 hours"
|
||||||
|
|
||||||
|
[jwt]
|
||||||
|
|
||||||
|
[jwt.signing]
|
||||||
@@ -3,6 +3,7 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: attic
|
name: attic
|
||||||
spec:
|
spec:
|
||||||
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: attic
|
app: attic
|
||||||
@@ -17,13 +18,20 @@ spec:
|
|||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: attic-secret
|
name: attic-secret
|
||||||
|
- secretRef:
|
||||||
|
name: attic-bucket
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: attic-pvc
|
- name: attic-pvc
|
||||||
mountPath: /var/empty
|
mountPath: /var/empty/
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: "2Gi"
|
memory: "2Gi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
|
- name: multitool
|
||||||
|
image: wbitt/network-multitool
|
||||||
|
volumeMounts:
|
||||||
|
- name: attic-pvc
|
||||||
|
mountPath: /var/empty/
|
||||||
volumes:
|
volumes:
|
||||||
- name: attic-pvc
|
- name: attic-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
@@ -24,5 +24,5 @@ appVersion: "1.0"
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: authentik
|
- name: authentik
|
||||||
version: 2025.12.4
|
version: 2026.2.0
|
||||||
repository: https://charts.goauthentik.io
|
repository: https://charts.goauthentik.io
|
||||||
@@ -15,6 +15,35 @@ authentik:
|
|||||||
service:
|
service:
|
||||||
labels:
|
labels:
|
||||||
metrics_enabled: "true"
|
metrics_enabled: "true"
|
||||||
|
livenessProbe:
|
||||||
|
failureThreshold: 3
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 10
|
||||||
|
httpGet:
|
||||||
|
path: "{{ .Values.authentik.web.path }}-/health/live/"
|
||||||
|
port: http
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
failureThreshold: 3
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 10
|
||||||
|
httpGet:
|
||||||
|
path: "{{ .Values.authentik.web.path }}-/health/ready/"
|
||||||
|
port: http
|
||||||
|
|
||||||
|
startupProbe:
|
||||||
|
failureThreshold: 60
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 10
|
||||||
|
httpGet:
|
||||||
|
path: "{{ .Values.authentik.web.path }}-/health/live/"
|
||||||
|
port: http
|
||||||
worker:
|
worker:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -32,8 +61,10 @@ authentik:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: authentik-credentials
|
name: authentik-credentials
|
||||||
key: authentik-secret-key
|
key: authentik-secret-key
|
||||||
|
- name: AUTHENTIK_POSTGRESQL__DISABLE_SERVER_SIDE_CURSORS
|
||||||
|
value: "true"
|
||||||
- name: AUTHENTIK_POSTGRESQL__HOST
|
- name: AUTHENTIK_POSTGRESQL__HOST
|
||||||
value: pooler-weyma-rw.cloudnativepg.svc.cluster.local
|
value: pooler-weyma-rw-authentik.cloudnativepg.svc.cluster.local
|
||||||
- name: AUTHENTIK_POSTGRESQL__NAME
|
- name: AUTHENTIK_POSTGRESQL__NAME
|
||||||
value: authentik
|
value: authentik
|
||||||
- name: AUTHENTIK_POSTGRESQL__USER
|
- name: AUTHENTIK_POSTGRESQL__USER
|
||||||
@@ -58,6 +89,22 @@ authentik:
|
|||||||
key: smtp-password
|
key: smtp-password
|
||||||
- name: AUTHENTIK_EMAIL__TIMEOUT
|
- name: AUTHENTIK_EMAIL__TIMEOUT
|
||||||
value: "30"
|
value: "30"
|
||||||
|
- name: AUTHENTIK_STORAGE__BACKEND
|
||||||
|
value: "s3"
|
||||||
|
- name: AUTHENTIK_STORAGE__S3__ENDPOINT
|
||||||
|
value: "https://weyma-s3.infra.dubyatp.xyz"
|
||||||
|
- name: AUTHENTIK_STORAGE__S3__BUCKET_NAME
|
||||||
|
value: "authentik-files"
|
||||||
|
- name: AUTHENTIK_STORAGE__S3__ACCESS_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: authentik-files
|
||||||
|
key: AWS_ACCESS_KEY_ID
|
||||||
|
- name: AUTHENTIK_STORAGE__S3__SECRET_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: authentik-files
|
||||||
|
key: AWS_SECRET_ACCESS_KEY
|
||||||
additionalObjects:
|
additionalObjects:
|
||||||
- apiVersion: networking.k8s.io/v1
|
- apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
@@ -146,3 +193,12 @@ authentik:
|
|||||||
creationPolicy: Owner
|
creationPolicy: Owner
|
||||||
deletionPolicy: Retain
|
deletionPolicy: Retain
|
||||||
name: authentik-db-auth
|
name: authentik-db-auth
|
||||||
|
- apiVersion: objectbucket.io/v1alpha1
|
||||||
|
kind: ObjectBucketClaim
|
||||||
|
metadata:
|
||||||
|
name: authentik-files
|
||||||
|
spec:
|
||||||
|
additionalConfig:
|
||||||
|
maxSize: 20Gi
|
||||||
|
bucketName: authentik-files
|
||||||
|
storageClassName: weyma-s3-bucket
|
||||||
@@ -7,7 +7,7 @@ data:
|
|||||||
log:
|
log:
|
||||||
level: info
|
level: info
|
||||||
runner:
|
runner:
|
||||||
file: .runner
|
file: /data/.runner
|
||||||
capacity: 1
|
capacity: 1
|
||||||
env_file: .env
|
env_file: .env
|
||||||
timeout: 3h
|
timeout: 3h
|
||||||
@@ -29,8 +29,9 @@ data:
|
|||||||
network: "host"
|
network: "host"
|
||||||
privileged: false
|
privileged: false
|
||||||
options:
|
options:
|
||||||
workdir_parent:
|
workdir_parent: /scratch
|
||||||
valid_volumes: []
|
valid_volumes:
|
||||||
|
- /scratch/**
|
||||||
docker_host: ""
|
docker_host: ""
|
||||||
force_pull: true
|
force_pull: true
|
||||||
force_rebuild: false
|
force_rebuild: false
|
||||||
|
|||||||
@@ -16,24 +16,35 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: act-runner
|
app: act-runner
|
||||||
spec:
|
spec:
|
||||||
containers:
|
initContainers:
|
||||||
- name: runner
|
- name: sysctl
|
||||||
|
image: busybox
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- while ! nc -z localhost 2376 </dev/null; do echo 'waiting for docker daemon...';
|
- echo 28633 > /proc/sys/user/max_user_namespaces
|
||||||
sleep 5; done; /sbin/tini -- run.sh
|
- name: chown-data
|
||||||
image: gitea/act_runner:nightly
|
image: busybox
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- chown -R 1000:1000 /data
|
||||||
|
volumeMounts:
|
||||||
|
- name: runner-data
|
||||||
|
mountPath: /data
|
||||||
|
containers:
|
||||||
|
- name: runner
|
||||||
|
image: gitea/act_runner:nightly-dind-rootless
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: CONFIG_FILE
|
- name: CONFIG_FILE
|
||||||
value: /config/config.yaml
|
value: /config/config.yaml
|
||||||
- name: DOCKER_HOST
|
- name: DOCKER_HOST
|
||||||
value: tcp://localhost:2376
|
value: unix:///run/user/1000/docker.sock
|
||||||
- name: DOCKER_CERT_PATH
|
|
||||||
value: /certs/client
|
|
||||||
- name: DOCKER_TLS_VERIFY
|
|
||||||
value: "1"
|
|
||||||
- name: GITEA_INSTANCE_URL
|
- name: GITEA_INSTANCE_URL
|
||||||
value: https://git.dubyatp.xyz
|
value: https://git.dubyatp.xyz
|
||||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||||
@@ -41,34 +52,26 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: registration-token
|
key: registration-token
|
||||||
name: gitea-runner-token
|
name: gitea-runner-token
|
||||||
terminationMessagePath: /dev/termination-log
|
|
||||||
terminationMessagePolicy: File
|
|
||||||
volumeMounts:
|
|
||||||
- name: runner-config
|
|
||||||
mountPath: /config
|
|
||||||
- name: docker-certs
|
|
||||||
mountPath: /certs
|
|
||||||
- name: runner-data
|
|
||||||
mountPath: /data
|
|
||||||
- name: daemon
|
|
||||||
env:
|
|
||||||
- name: DOCKER_TLS_CERTDIR
|
|
||||||
value: /certs
|
|
||||||
image: docker:23.0.6-dind
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
terminationMessagePath: /dev/termination-log
|
terminationMessagePath: /dev/termination-log
|
||||||
terminationMessagePolicy: File
|
terminationMessagePolicy: File
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /certs
|
- name: runner-config
|
||||||
name: docker-certs
|
mountPath: /config
|
||||||
|
- name: runner-data
|
||||||
|
mountPath: /data
|
||||||
|
- name: runner-scratch
|
||||||
|
mountPath: /scratch
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
schedulerName: default-scheduler
|
schedulerName: default-scheduler
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker-certs
|
- name: runner-scratch
|
||||||
|
emptyDir:
|
||||||
|
medium: Memory
|
||||||
|
sizeLimit: 5Gi
|
||||||
- name: runner-config
|
- name: runner-config
|
||||||
configMap:
|
configMap:
|
||||||
name: runner-config
|
name: runner-config
|
||||||
|
|||||||
@@ -24,5 +24,5 @@ appVersion: "1.0"
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: gitea
|
- name: gitea
|
||||||
version: 12.5.5
|
version: 12.5.6
|
||||||
repository: https://weyma-s3.infra.dubyatp.xyz/helm-bucket-ea34bc44-ef19-480d-a16a-1e583991f123/charts/
|
repository: https://weyma-s3.infra.dubyatp.xyz/helm-bucket-ea34bc44-ef19-480d-a16a-1e583991f123/charts/
|
||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: yt-dlp-bot
|
- name: yt-dlp-bot
|
||||||
image: 'git.dubyatp.xyz/williamp/yt-dlp-bot:d7ad90a'
|
image: 'git.dubyatp.xyz/williamp/yt-dlp-bot:6e7fc73'
|
||||||
env:
|
env:
|
||||||
- name: OUT_PATH
|
- name: OUT_PATH
|
||||||
value: /data/youtube-vids
|
value: /data/youtube-vids
|
||||||
|
|||||||
Reference in New Issue
Block a user