From c9d2abdbec1d7aa494bdfc00d3409b91946c722e Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 22 Jun 2026 17:12:17 +0800 Subject: [PATCH] Add dashdot-deploy.yaml --- dashdot-deploy.yaml | 64 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 dashdot-deploy.yaml diff --git a/dashdot-deploy.yaml b/dashdot-deploy.yaml new file mode 100644 index 0000000..ea16690 --- /dev/null +++ b/dashdot-deploy.yaml @@ -0,0 +1,64 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: dashdot +spec: + replicas: 1 + selector: + matchLabels: + app: dashdot + template: + metadata: + labels: + app: dashdot + spec: + containers: + - name: dashdot + image: mauricenino/dashdot:latest + ports: + - containerPort: 3001 + securityContext: + privileged: true # Wajib agar Dashdot bisa membaca hardware VPS (RAM/CPU/Disk) + volumeMounts: + - mountPath: /mnt/host + name: host-root + readOnly: true + volumes: + - name: host-root + hostPath: + path: / +--- +apiVersion: v1 +kind: Service +metadata: + name: dashdot-svc +spec: + selector: + app: dashdot + ports: + - port: 80 + targetPort: 3001 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: dashdot-ingress + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-prod" +spec: + ingressClassName: traefik + rules: + - host: monitor.bangjep.com + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: dashdot-svc + port: + number: 80 + tls: + - hosts: + - monitor.bangjep.com + secretName: dashdot-tls \ No newline at end of file