kubernetes apply
Some checks failed
Apply Kuberentes Configs / update-repo (push) Successful in 1s
Apply Kuberentes Configs / update-infrastructure (push) Failing after 1s

This commit is contained in:
2026-02-15 17:47:54 -07:00
parent f8006a4595
commit c4273f5e63
3 changed files with 77 additions and 12 deletions

View File

@@ -17,3 +17,7 @@ jobs:
kubectl annotate ingressclass nginx \
ingressclass.kubernetes.io/is-default-class="true" --overwrite
- name: audiobookshelf
working-directory: /home/gitea-runner/infrastructure
run: |
kubectl apply -f kubernetes/audiobookshelf/

View File

@@ -208,18 +208,18 @@ services:
# - proxy
audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf:latest
restart: unless-stopped
ports:
- 13378:80
volumes:
- /data/media/audiobooks:/audiobooks
- /data/media/audiobooks-libation:/audiobooks-libation
- /data/audiobookshelf/config:/config
- /data/audiobookshelf/metadata:/metadata
networks:
- proxy
# audiobookshelf:
# image: ghcr.io/advplyr/audiobookshelf:latest
# restart: unless-stopped
# ports:
# - 13378:80
# volumes:
# - /data/media/audiobooks:/audiobooks
# - /data/media/audiobooks-libation:/audiobooks-libation
# - /data/audiobookshelf/config:/config
# - /data/audiobookshelf/metadata:/metadata
# networks:
# - proxy
copilot-api:
image: node:latest

View File

@@ -0,0 +1,61 @@
apiVersion: v1
kind: Namespace
metadata:
name: copilot
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: copilot-api
namespace: copilot
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: copilot-api
template:
metadata:
labels:
app: copilot-api
spec:
containers:
- name: copilot-api
image: node:latest
imagePullPolicy: Always
workingDir: /app
command: ["sh", "-c"]
args: ["npm cache clean --force && npx copilot-api@latest start --github-token $COPILOT_TOKEN --port 4444"]
env:
- name: COPILOT_TOKEN
valueFrom:
secretKeyRef:
name: copilot-secret
key: token
ports:
- containerPort: 4444
---
apiVersion: v1
kind: Service
metadata:
name: copilot-api
namespace: copilot
spec:
selector:
app: copilot-api
ports:
- name: http
protocol: TCP
port: 4444
targetPort: 4444
---
apiVersion: v1
kind: Secret
metadata:
name: copilot-secret
namespace: copilot
type: Opaque
stringData:
token: "YOUR_COPILOT_TOKEN_HERE"
---