diff --git a/gitea/gitea.yaml b/gitea/gitea.yaml index 9f98beb..00d45b3 100644 --- a/gitea/gitea.yaml +++ b/gitea/gitea.yaml @@ -286,18 +286,47 @@ spec: name: data - mountPath: /copy name: app-ini + containers: - name: gitea image: gitea/gitea:1.19 imagePullPolicy: IfNotPresent ports: - - containerPort: 3000 - - containerPort: 22 + - name: http + containerPort: 3000 + - name: ssh + containerPort: 22 + lifecycle: - postStart: - exec: - command: - - "/bin/startup.sh" + postStart: + exec: + command: + - "/bin/startup.sh" + + startupProbe: + httpGet: + path: /api/healthz + port: http + failureThreshold: 30 + periodSeconds: 10 + timeoutSeconds: 5 + + readinessProbe: + httpGet: + path: /api/healthz + port: http + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + + livenessProbe: + httpGet: + path: /api/healthz + port: http + periodSeconds: 20 + timeoutSeconds: 5 + failureThreshold: 6 + env: - name: USER_UID value: "1000" @@ -339,21 +368,14 @@ spec: name: gitea-user key: pw optional: false - livenessProbe: - httpGet: - path: /api/healthz - port: http - initialDelaySeconds: 200 - timeoutSeconds: 5 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 10 + volumeMounts: - mountPath: /data name: data - mountPath: /bin/startup.sh name: startup subPath: startup.sh + volumes: - name: data persistentVolumeClaim: diff --git a/jellyfin/jellyfin.yaml b/jellyfin/jellyfin.yaml index 8df43d2..d664825 100644 --- a/jellyfin/jellyfin.yaml +++ b/jellyfin/jellyfin.yaml @@ -211,19 +211,40 @@ spec: image: linuxserver/jellyfin imagePullPolicy: IfNotPresent ports: - - containerPort: 8096 - - containerPort: 8920 - - containerPort: 7359 #udp - - containerPort: 1900 #udp - #livenessProbe: - # httpGet: - # path: /health - # port: 8096 - # #httpHeaders: - # #- name: Custom-Header - # # value: Awesome - # initialDelaySeconds: 30 - # periodSeconds: 5 + - name: http + containerPort: 8096 + - name: https + containerPort: 8920 + - name: discovery + containerPort: 7359 + protocol: UDP + - name: dlna + containerPort: 1900 + protocol: UDP + + startupProbe: + httpGet: + path: /health + port: http + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 30 + + readinessProbe: + httpGet: + path: /health + port: http + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + + livenessProbe: + httpGet: + path: /health + port: http + periodSeconds: 20 + timeoutSeconds: 5 + failureThreshold: 6 env: - name: PUID value: "1000"