Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test change #1

Closed
wants to merge 0 commits into from
Closed

test change #1

wants to merge 0 commits into from

Conversation

hiteshnayak305
Copy link
Owner

No description provided.

Repository owner deleted a comment from github-actions bot Apr 11, 2024
Repository owner deleted a comment from github-actions bot Apr 11, 2024
Repository owner deleted a comment from github-actions bot Apr 11, 2024
Copy link

diff

  • template.yaml

template.yaml

--- a/./main/charts/immich/build/template.yaml
+++ b/./charts/immich/build/template.yaml
@@ -23,6 +23,30 @@ spec:
     app.kubernetes.io/instance: immich
     app.kubernetes.io/name: machine-learning
 ---
+# Source: immich/templates/microservices.yaml
+apiVersion: v1
+kind: Service
+metadata:
+  name: immich-microservices
+  labels:
+    app.kubernetes.io/service: immich-microservices
+    app.kubernetes.io/instance: immich
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: microservices
+    app.kubernetes.io/version: v1.100.0
+    helm.sh/chart: immich-0.6.0
+  annotations:
+spec:
+  type: ClusterIP
+  ports:
+    - port: 8081
+      targetPort: metrics
+      protocol: TCP
+      name: metrics
+  selector:
+    app.kubernetes.io/instance: immich
+    app.kubernetes.io/name: microservices
+---
 # Source: immich/templates/server.yaml
 apiVersion: v1
 kind: Service
@@ -43,6 +67,10 @@ spec:
       targetPort: http
       protocol: TCP
       name: http
+    - port: 8081
+      targetPort: metrics
+      protocol: TCP
+      name: metrics
   selector:
     app.kubernetes.io/instance: immich
     app.kubernetes.io/name: server
@@ -176,12 +204,38 @@ spec:
               value: immich
             - name: IMMICH_MACHINE_LEARNING_URL
               value: http://immich-machine-learning:3003
+            - name: IMMICH_METRICS
+              value: "true"
             - name: REDIS_HOSTNAME
               value: immich-redis-master
+          ports:
+            - name: metrics
+              containerPort: 8081
+              protocol: TCP
           volumeMounts:
             - name: library
               mountPath: /usr/src/app/upload
-          
+          livenessProbe:
+            failureThreshold: 3
+            initialDelaySeconds: 0
+            periodSeconds: 10
+            tcpSocket:
+              port: 8081
+            timeoutSeconds: 1
+          readinessProbe:
+            failureThreshold: 3
+            initialDelaySeconds: 0
+            periodSeconds: 10
+            tcpSocket:
+              port: 8081
+            timeoutSeconds: 1
+          startupProbe:
+            failureThreshold: 30
+            initialDelaySeconds: 0
+            periodSeconds: 5
+            tcpSocket:
+              port: 8081
+            timeoutSeconds: 1
       volumes:
         - name: library
           persistentVolumeClaim:
@@ -238,12 +292,17 @@ spec:
               value: immich
             - name: IMMICH_MACHINE_LEARNING_URL
               value: http://immich-machine-learning:3003
+            - name: IMMICH_METRICS
+              value: "true"
             - name: REDIS_HOSTNAME
               value: immich-redis-master
           ports:
             - name: http
               containerPort: 3001
               protocol: TCP
+            - name: metrics
+              containerPort: 8081
+              protocol: TCP
           volumeMounts:
             - name: library
               mountPath: /usr/src/app/upload
@@ -267,3 +326,45 @@ spec:
         - name: library
           persistentVolumeClaim:
             claimName: test-pvc
+---
+# Source: immich/templates/microservices.yaml
+apiVersion: monitoring.coreos.com/v1
+kind: ServiceMonitor
+metadata:
+  name: immich-microservices
+  labels:
+    app.kubernetes.io/instance: immich
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: microservices
+    app.kubernetes.io/version: v1.100.0
+    helm.sh/chart: immich-0.6.0
+spec:
+  selector:
+    matchLabels:
+      app.kubernetes.io/service: immich-microservices
+      app.kubernetes.io/name: microservices
+      app.kubernetes.io/instance: immich
+  endpoints:
+    - port: metrics
+      scheme: http
+---
+# Source: immich/templates/server.yaml
+apiVersion: monitoring.coreos.com/v1
+kind: ServiceMonitor
+metadata:
+  name: immich-server
+  labels:
+    app.kubernetes.io/instance: immich
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: server
+    app.kubernetes.io/version: v1.100.0
+    helm.sh/chart: immich-0.6.0
+spec:
+  selector:
+    matchLabels:
+      app.kubernetes.io/service: immich-server
+      app.kubernetes.io/name: server
+      app.kubernetes.io/instance: immich
+  endpoints:
+    - port: metrics
+      scheme: http

See the workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant