hub deployment
This commit is contained in:
6
beszel/manifests/beszel-cnf.yaml
Normal file
6
beszel/manifests/beszel-cnf.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: beszel-cnf
|
||||||
|
data:
|
||||||
|
app_url: http://monitoring.portfoli.it
|
||||||
52
beszel/manifests/beszel-hub-dpl.yaml
Normal file
52
beszel/manifests/beszel-hub-dpl.yaml
Normal file
@@ -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
|
||||||
|
|
||||||
22
beszel/manifests/beszel-hub-ingress.yaml
Normal file
22
beszel/manifests/beszel-hub-ingress.yaml
Normal file
@@ -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
|
||||||
10
beszel/manifests/beszel-hub-pvc.yaml
Normal file
10
beszel/manifests/beszel-hub-pvc.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: beszel-hub-pvc
|
||||||
|
spec:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
10
beszel/manifests/beszel-hub-svc.yaml
Normal file
10
beszel/manifests/beszel-hub-svc.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: beszel-hub
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: beszel-hub
|
||||||
|
ports:
|
||||||
|
- port: 8090
|
||||||
|
protocol: TCP
|
||||||
6
beszel/manifests/kustomization.yaml
Normal file
6
beszel/manifests/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
resources:
|
||||||
|
- beszel-cnf.yaml
|
||||||
|
- beszel-hub-pvc.yaml
|
||||||
|
- beszel-hub-dpl.yaml
|
||||||
|
- beszel-hub-svc.yaml
|
||||||
|
- beszel-hub-ingress.yaml
|
||||||
4
beszel/patches/microk8s/kustomization.yaml
Normal file
4
beszel/patches/microk8s/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
resources:
|
||||||
|
- ../../manifests
|
||||||
|
|
||||||
|
namespace: monitoring
|
||||||
Reference in New Issue
Block a user