From 167d372dabf4f7280855d061058c3a32ab74992b Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Thu, 6 Jul 2023 01:52:48 +0000 Subject: [PATCH] uptime kuma: --- .gitignore | 2 ++ ...haarli-deployment.yaml => deployment.yaml} | 0 .../{shaarli-ingress.yaml => ingress.yaml} | 0 ...rli-volumes.yaml => persistentvolume.yaml} | 0 ...li-pvc.yaml => persistentvolumeclaim.yaml} | 0 .../{shaarli-service.yaml => service.yaml} | 0 uptime-kuma/README.md | 3 ++ uptime-kuma/deployment.yaml | 34 +++++++++++++++++++ uptime-kuma/ingress.yaml | 18 ++++++++++ uptime-kuma/persistentvolumeclaim.yaml | 14 ++++++++ uptime-kuma/service.yaml | 21 ++++++++++++ 11 files changed, 92 insertions(+) create mode 100644 .gitignore rename shaarli/{shaarli-deployment.yaml => deployment.yaml} (100%) rename shaarli/{shaarli-ingress.yaml => ingress.yaml} (100%) rename shaarli/{shaarli-volumes.yaml => persistentvolume.yaml} (100%) rename shaarli/{shaarli-pvc.yaml => persistentvolumeclaim.yaml} (100%) rename shaarli/{shaarli-service.yaml => service.yaml} (100%) create mode 100644 uptime-kuma/README.md create mode 100644 uptime-kuma/deployment.yaml create mode 100644 uptime-kuma/ingress.yaml create mode 100644 uptime-kuma/persistentvolumeclaim.yaml create mode 100644 uptime-kuma/service.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0dda879 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +tags +tags.* diff --git a/shaarli/shaarli-deployment.yaml b/shaarli/deployment.yaml similarity index 100% rename from shaarli/shaarli-deployment.yaml rename to shaarli/deployment.yaml diff --git a/shaarli/shaarli-ingress.yaml b/shaarli/ingress.yaml similarity index 100% rename from shaarli/shaarli-ingress.yaml rename to shaarli/ingress.yaml diff --git a/shaarli/shaarli-volumes.yaml b/shaarli/persistentvolume.yaml similarity index 100% rename from shaarli/shaarli-volumes.yaml rename to shaarli/persistentvolume.yaml diff --git a/shaarli/shaarli-pvc.yaml b/shaarli/persistentvolumeclaim.yaml similarity index 100% rename from shaarli/shaarli-pvc.yaml rename to shaarli/persistentvolumeclaim.yaml diff --git a/shaarli/shaarli-service.yaml b/shaarli/service.yaml similarity index 100% rename from shaarli/shaarli-service.yaml rename to shaarli/service.yaml diff --git a/uptime-kuma/README.md b/uptime-kuma/README.md new file mode 100644 index 0000000..adc5672 --- /dev/null +++ b/uptime-kuma/README.md @@ -0,0 +1,3 @@ +# Uptime Server + +Port 30001 diff --git a/uptime-kuma/deployment.yaml b/uptime-kuma/deployment.yaml new file mode 100644 index 0000000..24455f7 --- /dev/null +++ b/uptime-kuma/deployment.yaml @@ -0,0 +1,34 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + io.kompose.service: uptime-kuma + name: uptime-kuma +spec: + replicas: 1 + selector: + matchLabels: + io.kompose.service: uptime-kuma + strategy: + type: Recreate + template: + metadata: + creationTimestamp: null + labels: + io.kompose.service: uptime-kuma + spec: + containers: + - image: louislam/uptime-kuma:latest + name: uptime-kuma + ports: + - containerPort: 3001 + resources: {} + volumeMounts: + - mountPath: /app/data + name: uptime-kuma + restartPolicy: Always + volumes: + - name: uptime-kuma + persistentVolumeClaim: + claimName: uptime-kuma +status: {} diff --git a/uptime-kuma/ingress.yaml b/uptime-kuma/ingress.yaml new file mode 100644 index 0000000..c3a1c87 --- /dev/null +++ b/uptime-kuma/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: minimal-ingress + annotations: + nginx.ingress.kubernetes.io/rewrite-target: / +spec: + ingressClassName: uptime-kuma + rules: + - http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: uptime-kuma + port: + number: 80 diff --git a/uptime-kuma/persistentvolumeclaim.yaml b/uptime-kuma/persistentvolumeclaim.yaml new file mode 100644 index 0000000..b46f042 --- /dev/null +++ b/uptime-kuma/persistentvolumeclaim.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + creationTimestamp: null + labels: + io.kompose.service: uptime-kuma + name: uptime-kuma +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi +status: {} diff --git a/uptime-kuma/service.yaml b/uptime-kuma/service.yaml new file mode 100644 index 0000000..17dbd32 --- /dev/null +++ b/uptime-kuma/service.yaml @@ -0,0 +1,21 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert + kompose.version: 1.26.0 (40646f47) + creationTimestamp: null + labels: + io.kompose.service: uptime-kuma + name: uptime-kuma +spec: + type: NodePort + ports: + - name: "3001" + port: 3001 + targetPort: 3001 + nodePort: 30001 + selector: + io.kompose.service: uptime-kuma +status: + loadBalancer: {}