From 55817be8bc69e14af150b9af8fb91a5d40dd618d Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Fri, 22 Apr 2022 10:49:31 +1000 Subject: [PATCH] Add home root app --- home.yaml => home/home.yaml | 3 +++ local-pv-prometheus.yaml | 15 --------------- 2 files changed, 3 insertions(+), 15 deletions(-) rename home.yaml => home/home.yaml (94%) delete mode 100644 local-pv-prometheus.yaml diff --git a/home.yaml b/home/home.yaml similarity index 94% rename from home.yaml rename to home/home.yaml index 4a7ca2d..2c492a1 100644 --- a/home.yaml +++ b/home/home.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Service metadata: name: home + namespace: home-apps spec: ports: - port: 80 @@ -14,6 +15,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: home + namespace: home-apps spec: selector: matchLabels: @@ -42,6 +44,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: home-ingress + namespace: home-apps annotations: kubernetes.io/ingress.class: "nginx" kubernetes.io/tls-acme: "true" diff --git a/local-pv-prometheus.yaml b/local-pv-prometheus.yaml deleted file mode 100644 index 0f218fb..0000000 --- a/local-pv-prometheus.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - name: local-prometheus-pv - labels: - type: local -spec: - storageClassName: manual - persistentVolumeReclaimPolicy: Recycle - capacity: - storage: 200Gi - accessModes: - - ReadWriteOnce - hostPath: - path: "/prometheus"