fixing spec issues

This commit is contained in:
2026-07-03 14:00:14 -03:00
parent f4044715e4
commit e8f1185412
3 changed files with 54 additions and 33 deletions

View File

@@ -26,6 +26,13 @@ spec:
secretKeyRef: secretKeyRef:
name: password name: password
key: password key: password
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "200m"
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
@@ -76,6 +83,13 @@ spec:
volumeMounts: volumeMounts:
- name: archivebox-data - name: archivebox-data
mountPath: /data mountPath: /data
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "2Gi"
cpu: "3000m"
volumes: volumes:
- name: archivebox-data - name: archivebox-data
persistentVolumeClaim: persistentVolumeClaim:

View File

@@ -102,7 +102,7 @@ spec:
labels: labels:
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
annotations: 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: spec:
serviceAccountName: homepage serviceAccountName: homepage
automountServiceAccountToken: true automountServiceAccountToken: true
@@ -138,6 +138,13 @@ spec:
- name: homepage-config - name: homepage-config
mountPath: /app/public/images mountPath: /app/public/images
subPath: images subPath: images
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
volumes: volumes:
- name: homepage-config - name: homepage-config
persistentVolumeClaim: persistentVolumeClaim:
@@ -167,7 +174,6 @@ metadata:
namespace: default namespace: default
labels: labels:
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
annotations:
spec: spec:
type: ClusterIP type: ClusterIP
ports: ports:
@@ -185,12 +191,6 @@ metadata:
namespace: default namespace: default
labels: labels:
app.kubernetes.io/name: homepage 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: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:

View File

@@ -15,17 +15,24 @@ spec:
app: it-tools app: it-tools
spec: spec:
containers: containers:
- name: it-tools - name: it-tools
image: corentinth/it-tools:latest image: corentinth/it-tools:latest
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 80 - containerPort: 80
readinessProbe: readinessProbe:
httpGet: httpGet:
path: / path: /
port: 80 port: 80
initialDelaySeconds: 5 initialDelaySeconds: 5
periodSeconds: 10 periodSeconds: 10
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "200m"
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@@ -36,9 +43,9 @@ spec:
selector: selector:
app: it-tools app: it-tools
ports: ports:
- protocol: TCP - protocol: TCP
port: 80 port: 80
targetPort: 80 targetPort: 80
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
@@ -48,13 +55,13 @@ metadata:
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
- host: "tools.haven" - host: "tools.haven"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:
name: it-tools-svc name: it-tools-svc
port: port:
number: 80 number: 80