From e8f1185412ee8904cfbcbc15fde8ccbf689a4700 Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Fri, 3 Jul 2026 14:00:14 -0300 Subject: [PATCH] fixing spec issues --- default/archivebox.yaml | 14 +++++++++++ default/homepage.yaml | 18 +++++++------- default/it-tools.yaml | 55 +++++++++++++++++++++++------------------ 3 files changed, 54 insertions(+), 33 deletions(-) diff --git a/default/archivebox.yaml b/default/archivebox.yaml index ca366a8..3e674ce 100644 --- a/default/archivebox.yaml +++ b/default/archivebox.yaml @@ -26,6 +26,13 @@ spec: secretKeyRef: name: password key: password + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "128Mi" + cpu: "200m" --- apiVersion: apps/v1 kind: Deployment @@ -76,6 +83,13 @@ spec: volumeMounts: - name: archivebox-data mountPath: /data + resources: + requests: + memory: "256Mi" + cpu: "100m" + limits: + memory: "2Gi" + cpu: "3000m" volumes: - name: archivebox-data persistentVolumeClaim: diff --git a/default/homepage.yaml b/default/homepage.yaml index 235a2f7..a4e396d 100644 --- a/default/homepage.yaml +++ b/default/homepage.yaml @@ -102,7 +102,7 @@ spec: labels: app.kubernetes.io/name: homepage annotations: - configmap.reloader/checksum: "{{ include (print $.Template.BasePath \"/app/config/services.yaml\") . | sha256sum }}" + configmap.reloader/checksum: '{{ include (print $.Template.BasePath "/app/config/services.yaml") . | sha256sum }}' spec: serviceAccountName: homepage automountServiceAccountToken: true @@ -138,6 +138,13 @@ spec: - name: homepage-config mountPath: /app/public/images subPath: images + resources: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "512Mi" + cpu: "500m" volumes: - name: homepage-config persistentVolumeClaim: @@ -167,7 +174,6 @@ metadata: namespace: default labels: app.kubernetes.io/name: homepage - annotations: spec: type: ClusterIP ports: @@ -185,12 +191,6 @@ metadata: namespace: default labels: app.kubernetes.io/name: homepage - # annotations: - # gethomepage.dev/description: Dynamically Detected Homepage - # gethomepage.dev/enabled: "true" - # gethomepage.dev/group: Cluster Management - # gethomepage.dev/icon: homepage.png - # gethomepage.dev/name: Homepage spec: ingressClassName: nginx rules: @@ -203,4 +203,4 @@ spec: service: name: homepage port: - number: 3000 \ No newline at end of file + number: 3000 diff --git a/default/it-tools.yaml b/default/it-tools.yaml index 98b3249..d45234d 100644 --- a/default/it-tools.yaml +++ b/default/it-tools.yaml @@ -15,17 +15,24 @@ spec: app: it-tools spec: containers: - - name: it-tools - image: corentinth/it-tools:latest - imagePullPolicy: Always - ports: - - containerPort: 80 - readinessProbe: - httpGet: - path: / - port: 80 - initialDelaySeconds: 5 - periodSeconds: 10 + - name: it-tools + image: corentinth/it-tools:latest + imagePullPolicy: Always + ports: + - containerPort: 80 + readinessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 5 + periodSeconds: 10 + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "128Mi" + cpu: "200m" --- apiVersion: v1 kind: Service @@ -36,9 +43,9 @@ spec: selector: app: it-tools ports: - - protocol: TCP - port: 80 - targetPort: 80 + - protocol: TCP + port: 80 + targetPort: 80 --- apiVersion: networking.k8s.io/v1 kind: Ingress @@ -48,13 +55,13 @@ metadata: spec: ingressClassName: nginx rules: - - host: "tools.haven" - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: it-tools-svc - port: - number: 80 \ No newline at end of file + - host: "tools.haven" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: it-tools-svc + port: + number: 80