Compare commits

...

7 Commits

Author SHA1 Message Date
f2e3dba5e2 remove probes 2024-03-16 09:56:06 -06:00
e89bd04a8d fix env merging 2024-03-16 09:52:14 -06:00
6f2550cf79 change env type 2024-03-16 09:41:49 -06:00
0c94180823 hardcode the exporter port 2024-03-16 09:36:56 -06:00
f59d77f8bc fix metrics switch 2024-03-16 09:34:09 -06:00
57983912f5 remove node api and probes 2024-03-16 09:29:07 -06:00
8a6cfef4c5 add server IP env 2024-03-16 09:21:32 -06:00
7 changed files with 12 additions and 59 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: qbittorrent name: qbittorrent
version: 0.0.2 version: 0.0.7
description: Chart for qBittorrent description: Chart for qBittorrent
keywords: keywords:
- downloads - downloads

View File

@@ -49,7 +49,7 @@ spec:
image: "{{.Values.gluetun.image.repository}}:{{.Values.gluetun.image.tag}}" image: "{{.Values.gluetun.image.repository}}:{{.Values.gluetun.image.tag}}"
imagePullPolicy: {{ .Values.gluetun.image.pullPolicy }} imagePullPolicy: {{ .Values.gluetun.image.pullPolicy }}
env: env:
{{- with (concat .Values.global.env .Values.server.env) }} {{- with (concat .Values.global.env .Values.gluetun.env) }}
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}
{{- end }} {{- end }}
ports: ports:
@@ -60,33 +60,12 @@ spec:
containerPort: {{ .Values.server.service.http.port }} containerPort: {{ .Values.server.service.http.port }}
protocol: TCP protocol: TCP
- name: metrics - name: metrics
containerPort: {{ .Values.metrics.exporter.env.port }} containerPort: 9022
protocol: TCP protocol: TCP
securityContext: securityContext:
{{- toYaml .Values.gluetun.securityContext | nindent 12 }} {{- toYaml .Values.gluetun.securityContext | nindent 12 }}
resources: resources:
{{- toYaml .Values.gluetun.resources | nindent 12 }} {{- toYaml .Values.gluetun.resources | nindent 12 }}
livenessProbe:
tcpSocket:
port: {{ .Values.gluetun.service.health.port }}
initialDelaySeconds: 0
failureThreshold: 3
timeoutSeconds: 1
periodSeconds: 10
readinessProbe:
tcpSocket:
port: {{ .Values.gluetun.service.health.port }}
initialDelaySeconds: 0
failureThreshold: 3
timeoutSeconds: 1
periodSeconds: 10
startupProbe:
tcpSocket:
port: {{ .Values.gluetun.service.health.port }}
initialDelaySeconds: 0
failureThreshold: 30
timeoutSeconds: 1
periodSeconds: 5
volumeMounts: volumeMounts:
- name: tunnel-device - name: tunnel-device
mountPath: /dev/net/tun mountPath: /dev/net/tun
@@ -99,13 +78,15 @@ spec:
image: "{{ .Values.metrics.exporter.image.repository }}:{{.Values.metrics.exporter.image.tag }}" image: "{{ .Values.metrics.exporter.image.repository }}:{{.Values.metrics.exporter.image.tag }}"
imagePullPolicy: {{ .Values.metrics.exporter.image.pullPolicy }} imagePullPolicy: {{ .Values.metrics.exporter.image.pullPolicy }}
env: env:
{{- with (concat .Values.global.env .Values.server.env) }} {{- with (concat .Values.global.env .Values.metrics.exporter.env) }}
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}
{{- end }} {{- end }}
- name: QBITTORRENT_HOST - name: QBITTORRENT_HOST
value: "http://localhost" value: "http://localhost"
- name: QBITTORRENT_PORT - name: QBITTORRENT_PORT
value: "{{ .Values.server.service.http.port }}" value: "{{ .Values.server.service.http.port }}"
- name: EXPORTER_PORT
value: "9022"
{{- end }} {{- end }}
volumes: volumes:

View File

@@ -1,4 +1,4 @@
{{- if and .Values.metrics.enabled .Values.server.metrics.serviceMonitor.enabled }} {{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1 apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor kind: ServiceMonitor
metadata: metadata:

View File

@@ -80,7 +80,5 @@ metrics:
value: admin value: admin
- name: QBITTORRENT_PASS - name: QBITTORRENT_PASS
value: "" value: ""
- name: EXPORTER_PORT
value: 9022
- name: EXPORTER_LOG_LEVEL - name: EXPORTER_LOG_LEVEL
value: INFO value: INFO

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: tdarr name: tdarr
version: 0.0.1 version: 0.0.3
description: Chart for Tdarr V2 description: Chart for Tdarr V2
keywords: keywords:
- video - video

View File

@@ -132,10 +132,6 @@ spec:
- name: tdarr-node - name: tdarr-node
image: "{{ .Values.node.image.repository }}:{{ .Values.node.image.tag }}" image: "{{ .Values.node.image.repository }}:{{ .Values.node.image.tag }}"
imagePullPolicy: {{ .Values.node.image.pullPolicy }} imagePullPolicy: {{ .Values.node.image.pullPolicy }}
ports:
- name: api
containerPort: {{ .Values.node.service.api.port }}
protocol: TCP
env: env:
{{- with (concat .Values.global.env .Values.node.env) }} {{- with (concat .Values.global.env .Values.node.env) }}
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}
@@ -146,36 +142,17 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
- name: serverIP
value: tdarr-server-api
- name: serverPort - name: serverPort
value: "{{ .Values.node.service.api.port }}" value: "{{ .Values.server.service.api.port }}"
volumeMounts: volumeMounts:
- name: tdarr-node-cache - name: tdarr-node-cache
mountPath: /tcache mountPath: /tcache
- name: media-storage - name: media-storage
mountPath: {{ .Values.global.persistence.media.mountPath }} mountPath: {{ .Values.global.persistence.media.mountPath }}
resources: resources:
{{- toYaml .Values.node.resources | nindent 12 }} {{- toYaml .Values.node.resources | nindent 12 }}
livenessProbe:
tcpSocket:
port: {{ .Values.node.service.api.port }}
initialDelaySeconds: 0
failureThreshold: 3
timeoutSeconds: 1
periodSeconds: 10
readinessProbe:
tcpSocket:
port: {{ .Values.node.service.api.port }}
initialDelaySeconds: 0
failureThreshold: 3
timeoutSeconds: 1
periodSeconds: 10
startupProbe:
tcpSocket:
port: {{ .Values.node.service.api.port }}
initialDelaySeconds: 0
failureThreshold: 30
timeoutSeconds: 1
periodSeconds: 5
volumes: volumes:
- name: tdarr-node-cache - name: tdarr-node-cache
emptyDir: emptyDir:

View File

@@ -69,9 +69,6 @@ node:
limits: limits:
cpu: 1000m cpu: 1000m
memory: 2Gi memory: 2Gi
service:
api:
port: 8266
persistence: persistence:
cache: cache:
size: 5Gi size: 5Gi