commit 1113ef4cdcaa0154441b3bcbc84536fc694bfac7 Author: Donato Mastronardi Date: Tue Mar 17 18:24:41 2026 +0100 hub deployment diff --git a/beszel/manifests/beszel-cnf.yaml b/beszel/manifests/beszel-cnf.yaml new file mode 100644 index 0000000..bf40014 --- /dev/null +++ b/beszel/manifests/beszel-cnf.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: beszel-cnf +data: + app_url: http://monitoring.portfoli.it \ No newline at end of file diff --git a/beszel/manifests/beszel-hub-dpl.yaml b/beszel/manifests/beszel-hub-dpl.yaml new file mode 100644 index 0000000..5176673 --- /dev/null +++ b/beszel/manifests/beszel-hub-dpl.yaml @@ -0,0 +1,52 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: beszel-hub + namespace: monitoring +spec: + replicas: 1 + selector: + matchLabels: + app: beszel-hub + template: + metadata: + name: beszel-hub + labels: + app: beszel-hub + spec: + volumes: + - name: beszel-hub-pvc + persistentVolumeClaim: + claimName: beszel-hub-pvc + containers: + - name: beszel + image: henrygd/beszel + volumeMounts: + - name: beszel-hub-pvc + mountPath: /beszel_data + env: + - name: APP_URL + valueFrom: + configMapRefKey: + key: app_url + name: beszel-cnf + resources: + requests: + cpu: 50m + memory: 200Mi + limits: + cpu: 200m + memory: 500Mi + livenessProbe: + httpGet: + port: 8090 + path: / + initialDelaySeconds: 30 + failureThreshold: 5 + readinessProbe: + httpGet: + port: 8090 + path: / + initialDelaySeconds: 30 + failureThreshold: 5 + \ No newline at end of file diff --git a/beszel/manifests/beszel-hub-ingress.yaml b/beszel/manifests/beszel-hub-ingress.yaml new file mode 100644 index 0000000..02f87fa --- /dev/null +++ b/beszel/manifests/beszel-hub-ingress.yaml @@ -0,0 +1,22 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: beszel-hub-ingress + annotations: + cert-manager.io/cluster-issuer: lets-encrypt +spec: + rules: + - host: monitoring.portfoli.it + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: beszel-hub + port: + number: 8090 + tls: + - hosts: + - monitoring.portfoli.it + secretName: monitoring-tls \ No newline at end of file diff --git a/beszel/manifests/beszel-hub-pvc.yaml b/beszel/manifests/beszel-hub-pvc.yaml new file mode 100644 index 0000000..b5c8256 --- /dev/null +++ b/beszel/manifests/beszel-hub-pvc.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: beszel-hub-pvc +spec: + resources: + requests: + storage: 2Gi + accessModes: + - ReadWriteMany \ No newline at end of file diff --git a/beszel/manifests/beszel-hub-svc.yaml b/beszel/manifests/beszel-hub-svc.yaml new file mode 100644 index 0000000..0509704 --- /dev/null +++ b/beszel/manifests/beszel-hub-svc.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: beszel-hub +spec: + selector: + app: beszel-hub + ports: + - port: 8090 + protocol: TCP \ No newline at end of file diff --git a/beszel/manifests/kustomization.yaml b/beszel/manifests/kustomization.yaml new file mode 100644 index 0000000..35a6b5b --- /dev/null +++ b/beszel/manifests/kustomization.yaml @@ -0,0 +1,6 @@ +resources: +- beszel-cnf.yaml +- beszel-hub-pvc.yaml +- beszel-hub-dpl.yaml +- beszel-hub-svc.yaml +- beszel-hub-ingress.yaml \ No newline at end of file diff --git a/beszel/patches/microk8s/kustomization.yaml b/beszel/patches/microk8s/kustomization.yaml new file mode 100644 index 0000000..9296da0 --- /dev/null +++ b/beszel/patches/microk8s/kustomization.yaml @@ -0,0 +1,4 @@ +resources: +- ../../manifests + +namespace: monitoring \ No newline at end of file