Compare commits

...

4 Commits

Author SHA1 Message Date
renovate[bot]
c13e3b6cab chore(deps): update ghcr.io/telepresenceio/telepresence-oss docker tag to v2.25.1 (#52)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-11 01:43:02 +00:00
f65d9c9570 Move grafana to otel ns 2025-11-11 00:49:03 +01:00
c9ee8eb1cd Add clickhouse datasource to grafana 2025-11-10 23:53:49 +01:00
d40c9b2d2e Add kyoo v5 2025-11-10 20:05:27 +01:00
6 changed files with 125 additions and 22 deletions

View File

@@ -1,20 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: grafana
namespace: argocd
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: grafana
syncPolicy:
automated:
prune: true
selfHeal: false
syncOptions:
- CreateNamespace=true
source:
repoURL: https://github.com/zoriya/snow
targetRevision: HEAD
path: apps/grafana

93
apps/kyoo-v5.yaml Normal file
View File

@@ -0,0 +1,93 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kyoo-v5
namespace: argocd
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: kyoo-next
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
source:
repoURL: https://github.com/acelinkio/kyoo
path: chart
targetRevision: prepare_traefik
# repoURL: ghcr.io/zoriya/helm-charts
# chart: kyoo
# targetRevision: edge
helm:
valuesObject:
global:
image:
tag: edge
imagePullPolicy: Always
postgres:
kyoo_auth:
host: kyoo-v5-postgres
kyoo_api:
host: kyoo-v5-postgres
kyoo_scanner:
host: kyoo-v5-postgres
kyoo_transcoder:
host: kyoo-v5-postgres
postgres:
enabled: true
kyoo:
address: https://beta.sdg.moe
transcoderAcceleration: nvidia
transcoder:
runtimeClass: nvidia
ingress:
enabled: true
host: beta.sdg.moe
ingressClassName: cilium
annotations:
cert-manager.io/cluster-issuer: letsencrypt
acme.cert-manager.io/http01-edit-in-place: "true"
tls: true
tlsSecret: kyoo-tls
extraObjects:
- apiVersion: v1
kind: Secret
metadata:
name: bigsecret
type: Opaque
stringData:
postgres_user: kyoo_all
postgres_password: watchSomething4me
scanner_apikey: scanner-triquarter4u
- apiVersion: v1
kind: PersistentVolume
metadata:
name: kyoo-v5-medias
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 200Ti
csi:
driver: zfs.csi.openebs.io
fsType: zfs
volumeAttributes:
openebs.io/poolname: ocean
volumeHandle: "medias"
persistentVolumeReclaimPolicy: Retain
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: media
spec:
storageClassName: ""
volumeName: kyoo-v5-medias
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 200Ti

View File

@@ -0,0 +1,28 @@
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
name: clickhouse
spec:
valuesFrom:
- targetPath: "secureJsonData.password"
valueFrom:
secretKeyRef:
name: clickhouse-passwords
key: grafana
datasource:
name: clickhouse
type: grafana-clickhouse-datasource
jsonData:
host: clickhouse-otel-cluster.otel.svc.cluster.local
port: 9000
username: grafana
defaultDatabase: otel
protocol: native
secureJsonData:
password: ${grafana}
instanceSelector:
matchLabels:
dashboards: grafana
plugins:
- name: grafana-clickhouse-datasource
version: 4.11.2

View File

@@ -7,6 +7,7 @@ metadata:
spec:
config:
log:
level: debug
mode: "console"
auth:
disable_login_form: "false"
@@ -24,7 +25,8 @@ spec:
auth_url: "https://authentik.sdg.moe/application/o/authorize/"
token_url: "https://authentik.sdg.moe/application/o/token/"
api_url: "https://authentik.sdg.moe/application/o/userinfo/"
role_attribute_path: 'Admin' #contains(groups, 'Grafana Admins') && 'Admin' || contains(groups, 'Grafana Editors') && 'Editor' || 'Viewer'
role_attribute_path: contains(groups[*], 'admins') && 'GrafanaAdmin' || 'Editor'
allow_assign_grafana_admin: "true"
persistentVolumeClaim:
spec:

View File

@@ -17,7 +17,7 @@ spec:
source:
repoURL: ghcr.io/telepresenceio
chart: telepresence-oss
targetRevision: 2.25.0
targetRevision: 2.25.1
helm:
releaseName: traffic-manager
valuesObject: {}