Skip to content

Commit

Permalink
added chart values; added pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaminel committed Oct 2, 2024
1 parent 371f1b5 commit 179616d
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
workflow_call:
workflow_dispatch:
push:
paths:
- 'chart/**'
branches: [ main ]

jobs:
deploy_universal:
uses: flmorg/universal-workflows/.github/workflows/chart.install.yml@main
with:
githubContext: ${{ toJSON(github) }}
chartRepo: oci://ghcr.io/flmorg
chartName: universal-chart
version: ^1.0.0
valuesPath: chart/values.yaml
releaseName: main
secrets: inherit
103 changes: 103 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
deployment:
replicas: 1
strategy:
type: RollingUpdate
maxSurge: 1
maxUnavailable: 0
containers:
- name: qbit
image:
repository: ghcr.io/hotio/qbittorrent
tag: release-5.0.0
ports:
- name: http-tcp
containerPort: 80
protocol: TCP
- name: http-udp
containerPort: 80
protocol: UDP
- name: tcp
containerPort: 1400
protocol: TCP
- name: udp
containerPort: 1400
protocol: UDP
env:
- name: WEBUI_PORTS
value: "80/tcp,80/udp"
- name: PUID
value: "1000"
- name: PGID
value: "1000"
resources:
requests:
cpu: 0m
memory: 0Mi
limits:
cpu: 2000m
memory: 2000Mi
volumeMounts:
- name: storage
mountPath: /config
subPath: qbittorrent-videos/config
- name: storage
mountPath: /downloads
subPath: media/downloads
volumes:
- name: storage
type: pvc
typeName: storage-pvc

ingress:
name: ingress
hosts:
- host: qbit2.@vault(secrets/data/domain main | DOMAIN_NAME)
paths:
- path: "/"
pathType: Prefix
serviceName: service
servicePort: http-tcp
tls:
secretName: tls-secret

pvcs:
- name: storage-pvc
storageClassName: local-path-persistent
accessModes:
- ReadWriteOnce
size: 1Gi
volumeMode: Filesystem

services:
- name: service
type: ClusterIP
ports:
- name: http-tcp
protocol: TCP
port: 80
targetPort: http-tcp
- name: http-udp
protocol: UDP
port: 80
targetPort: http-udp
- name: service-lb
type: LoadBalancer
ports:
- name: tcp
protocol: TCP
port: 1400
targetPort: tcp
nodePort: 30020
- name: udp
protocol: UDP
port: 1400
targetPort: udp
nodePort: 30020

vaultSecrets:
- name: tls-secret
type: kubernetes.io/tls
path: secrets/certificates
templates:
tls.crt: "{% .Secrets.tls_crt %}"
tls.key: "{% .Secrets.tls_key %}"

0 comments on commit 179616d

Please sign in to comment.