kubernetes apply
This commit is contained in:
@@ -17,3 +17,7 @@ jobs:
|
|||||||
|
|
||||||
kubectl annotate ingressclass nginx \
|
kubectl annotate ingressclass nginx \
|
||||||
ingressclass.kubernetes.io/is-default-class="true" --overwrite
|
ingressclass.kubernetes.io/is-default-class="true" --overwrite
|
||||||
|
- name: audiobookshelf
|
||||||
|
working-directory: /home/gitea-runner/infrastructure
|
||||||
|
run: |
|
||||||
|
kubectl apply -f kubernetes/audiobookshelf/
|
||||||
@@ -208,18 +208,18 @@ services:
|
|||||||
# - proxy
|
# - proxy
|
||||||
|
|
||||||
|
|
||||||
audiobookshelf:
|
# audiobookshelf:
|
||||||
image: ghcr.io/advplyr/audiobookshelf:latest
|
# image: ghcr.io/advplyr/audiobookshelf:latest
|
||||||
restart: unless-stopped
|
# restart: unless-stopped
|
||||||
ports:
|
# ports:
|
||||||
- 13378:80
|
# - 13378:80
|
||||||
volumes:
|
# volumes:
|
||||||
- /data/media/audiobooks:/audiobooks
|
# - /data/media/audiobooks:/audiobooks
|
||||||
- /data/media/audiobooks-libation:/audiobooks-libation
|
# - /data/media/audiobooks-libation:/audiobooks-libation
|
||||||
- /data/audiobookshelf/config:/config
|
# - /data/audiobookshelf/config:/config
|
||||||
- /data/audiobookshelf/metadata:/metadata
|
# - /data/audiobookshelf/metadata:/metadata
|
||||||
networks:
|
# networks:
|
||||||
- proxy
|
# - proxy
|
||||||
|
|
||||||
copilot-api:
|
copilot-api:
|
||||||
image: node:latest
|
image: node:latest
|
||||||
|
|||||||
61
kubernetes/copilot/copilot-dep.yml
Normal file
61
kubernetes/copilot/copilot-dep.yml
Normal 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"
|
||||||
|
---
|
||||||
Reference in New Issue
Block a user