From 22047fe9323609a5e1793ee407a67b80783e763a Mon Sep 17 00:00:00 2001 From: Carl Sander Date: Thu, 19 Aug 2021 11:50:05 +0000 Subject: [PATCH] removed doubled names of ressources --- kubernetes/README.md | 1 + kubernetes/uptime-kuma/deployment.yml | 10 +++++----- kubernetes/uptime-kuma/ingressroute.yml | 6 +++--- kubernetes/uptime-kuma/pvc.yml | 4 ++-- kubernetes/uptime-kuma/service.yml | 2 +- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/kubernetes/README.md b/kubernetes/README.md index 1f243b524..26ab2f6a4 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -3,6 +3,7 @@ Kustomize is a tool which builds a complete deployment file for all config elements. You can edit the files in the ```uptime-kuma``` folder except the ```kustomization.yml``` until you know what you're doing. +If you want to choose another namespace you can edit the ```kustomization.yml``` in the ```kubernetes```-Folder and change the ```namespace: uptime-kuma``` to something you like. It creates a certificate with the specified Issuer and creates the Ingress for the Uptime-Kuma ClusterIP-Service diff --git a/kubernetes/uptime-kuma/deployment.yml b/kubernetes/uptime-kuma/deployment.yml index f6726202e..a122509b0 100644 --- a/kubernetes/uptime-kuma/deployment.yml +++ b/kubernetes/uptime-kuma/deployment.yml @@ -3,7 +3,7 @@ kind: Deployment metadata: labels: component: uptime-kuma - name: uptime-kuma + name: deployment spec: selector: matchLabels: @@ -18,13 +18,13 @@ spec: component: uptime-kuma spec: containers: - - name: uptime-kuma + - name: app image: louislam/uptime-kuma:1 ports: - containerPort: 3001 volumeMounts: - mountPath: /app/data - name: uptime-kuma-storage + name: storage livenessProbe: exec: command: @@ -37,6 +37,6 @@ spec: scheme: HTTP volumes: - - name: uptime-kuma-storage + - name: storage persistentVolumeClaim: - claimName: uptime-kuma-pvc + claimName: pvc diff --git a/kubernetes/uptime-kuma/ingressroute.yml b/kubernetes/uptime-kuma/ingressroute.yml index 66ad6fb7e..a94f16eea 100644 --- a/kubernetes/uptime-kuma/ingressroute.yml +++ b/kubernetes/uptime-kuma/ingressroute.yml @@ -20,11 +20,11 @@ metadata: proxy_set_header Upgrade $http_upgrade; proxy_cache_bypass $http_upgrade; } - name: uptime-kuma-ingress + name: ingress spec: tls: - hosts: - - monitor.cxde.link + - uk.kube.cxde.link secretName: monitor-cxde-link-tls rules: - host: monitor.cxde.link @@ -34,6 +34,6 @@ spec: pathType: Prefix backend: service: - name: uptime-kuma-uptime-kuma + name: service port: number: 3001 diff --git a/kubernetes/uptime-kuma/pvc.yml b/kubernetes/uptime-kuma/pvc.yml index c20e5d06c..eda3b8be5 100644 --- a/kubernetes/uptime-kuma/pvc.yml +++ b/kubernetes/uptime-kuma/pvc.yml @@ -1,10 +1,10 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: uptime-kuma-pvc + name: pvc spec: accessModes: - ReadWriteOnce resources: requests: - storage: 4Gi \ No newline at end of file + storage: 4Gi diff --git a/kubernetes/uptime-kuma/service.yml b/kubernetes/uptime-kuma/service.yml index 67f50a370..5fa812e18 100644 --- a/kubernetes/uptime-kuma/service.yml +++ b/kubernetes/uptime-kuma/service.yml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: uptime-kuma + name: service spec: selector: component: uptime-kuma