From 57e24c00ce6357156dee0d53fe502c3aed3fbee5 Mon Sep 17 00:00:00 2001 From: Jorge Moratinos Salcines Date: Tue, 26 Mar 2024 09:42:12 +0100 Subject: [PATCH] Remove not used prometheus folder --- prometheus/kustomization.yaml | 11 --- ...ometheus-claim1-persistentvolumeclaim.yaml | 14 ---- ...ometheus-claim2-persistentvolumeclaim.yaml | 14 ---- ...ometheus-claim3-persistentvolumeclaim.yaml | 14 ---- ...ometheus-claim4-persistentvolumeclaim.yaml | 14 ---- prometheus/prometheus-configmap.yaml | 38 ---------- prometheus/prometheus-deployment.yaml | 71 ------------------- prometheus/prometheus-service.yaml | 19 ----- 8 files changed, 195 deletions(-) delete mode 100644 prometheus/kustomization.yaml delete mode 100644 prometheus/prometheus-claim1-persistentvolumeclaim.yaml delete mode 100644 prometheus/prometheus-claim2-persistentvolumeclaim.yaml delete mode 100644 prometheus/prometheus-claim3-persistentvolumeclaim.yaml delete mode 100644 prometheus/prometheus-claim4-persistentvolumeclaim.yaml delete mode 100644 prometheus/prometheus-configmap.yaml delete mode 100644 prometheus/prometheus-deployment.yaml delete mode 100644 prometheus/prometheus-service.yaml diff --git a/prometheus/kustomization.yaml b/prometheus/kustomization.yaml deleted file mode 100644 index bebcddc..0000000 --- a/prometheus/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: evol5-capif-mon -resources: - - prometheus-claim1-persistentvolumeclaim.yaml - - prometheus-claim2-persistentvolumeclaim.yaml - - prometheus-claim3-persistentvolumeclaim.yaml - - prometheus-claim4-persistentvolumeclaim.yaml - - prometheus-configmap.yaml - - prometheus-deployment.yaml - - prometheus-service.yaml \ No newline at end of file diff --git a/prometheus/prometheus-claim1-persistentvolumeclaim.yaml b/prometheus/prometheus-claim1-persistentvolumeclaim.yaml deleted file mode 100644 index 99ca0f1..0000000 --- a/prometheus/prometheus-claim1-persistentvolumeclaim.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - creationTimestamp: null - labels: - io.kompose.service: prometheus-claim1 - name: prometheus-claim1 -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 100Mi -status: {} diff --git a/prometheus/prometheus-claim2-persistentvolumeclaim.yaml b/prometheus/prometheus-claim2-persistentvolumeclaim.yaml deleted file mode 100644 index 3a1a586..0000000 --- a/prometheus/prometheus-claim2-persistentvolumeclaim.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - creationTimestamp: null - labels: - io.kompose.service: prometheus-claim2 - name: prometheus-claim2 -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 100Mi -status: {} diff --git a/prometheus/prometheus-claim3-persistentvolumeclaim.yaml b/prometheus/prometheus-claim3-persistentvolumeclaim.yaml deleted file mode 100644 index 755a66b..0000000 --- a/prometheus/prometheus-claim3-persistentvolumeclaim.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - creationTimestamp: null - labels: - io.kompose.service: prometheus-claim3 - name: prometheus-claim3 -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 100Mi -status: {} diff --git a/prometheus/prometheus-claim4-persistentvolumeclaim.yaml b/prometheus/prometheus-claim4-persistentvolumeclaim.yaml deleted file mode 100644 index 9a6cb2d..0000000 --- a/prometheus/prometheus-claim4-persistentvolumeclaim.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - creationTimestamp: null - labels: - io.kompose.service: prometheus-claim4 - name: prometheus-claim4 -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 100Mi -status: {} diff --git a/prometheus/prometheus-configmap.yaml b/prometheus/prometheus-configmap.yaml deleted file mode 100644 index ccfb013..0000000 --- a/prometheus/prometheus-configmap.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: prometheus-configmap -data: - prometheus.yml: | - # global: - # scrape_interval: 5s - # external_labels: - # monitor: 'prakash-monitor' - # scrape_configs: - # - job_name: 'prometheus' - # static_configs: - # - targets: ['0.0.0.0:9090'] ## IP Address of the localhost - # - job_name: 'cAdvisor' - # static_configs: - # - targets: ['0.0.0.0:8090'] - # #- cadvisor:8090 - - global: - scrape_interval: 15s - evaluation_interval: 15s - alerting: - alertmanagers: - - static_configs: - - targets: - # whatever you want - scrape_configs: - - job_name: 'prometheus' - static_configs: - - targets: ['prometheus:9090'] - labels: - alias: 'prometheus' - - job_name: 'cadvisor' - static_configs: - - targets: ['cadvisor:8080'] - labels: - alias: 'cadvisor' \ No newline at end of file diff --git a/prometheus/prometheus-deployment.yaml b/prometheus/prometheus-deployment.yaml deleted file mode 100644 index 7ae939f..0000000 --- a/prometheus/prometheus-deployment.yaml +++ /dev/null @@ -1,71 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - annotations: - kompose.cmd: kompose -f docker-compose.yml convert - kompose.version: 1.28.0 (c4137012e) - creationTimestamp: null - labels: - io.kompose.service: prometheus - name: prometheus -spec: - replicas: 1 - selector: - matchLabels: - io.kompose.service: prometheus - strategy: - type: Recreate - template: - metadata: - annotations: - kompose.cmd: kompose -f docker-compose.yml convert - kompose.version: 1.28.0 (c4137012e) - creationTimestamp: null - labels: - io.kompose.network/monitoring-default: "true" - io.kompose.service: prometheus - spec: - containers: - - args: - - --config.file=/tmp/prometheus.yml - - --web.route-prefix=/ - - --storage.tsdb.retention.time=200h - - --web.enable-lifecycle - image: prom/prometheus:latest - name: prometheus - ports: - - containerPort: 9090 - resources: {} - volumeMounts: - - name: prometheus-config - mountPath: /tmp/prometheus.yml - subPath: prometheus.yml - - mountPath: /var/lib/prometheus - name: prometheus-claim1 - - mountPath: /prometheus - name: prometheus-claim2 - - mountPath: /etc/prometheus - name: prometheus-claim3 - - mountPath: /etc/prometheus/alert.rules - name: prometheus-claim4 - restartPolicy: Always - volumes: - - name: prometheus-config - configMap: - name: prometheus-configmap - items: - - key: "prometheus.yml" - path: "prometheus.yml" - - name: prometheus-claim1 - persistentVolumeClaim: - claimName: prometheus-claim1 - - name: prometheus-claim2 - persistentVolumeClaim: - claimName: prometheus-claim2 - - name: prometheus-claim3 - persistentVolumeClaim: - claimName: prometheus-claim3 - - name: prometheus-claim4 - persistentVolumeClaim: - claimName: prometheus-claim4 -status: {} diff --git a/prometheus/prometheus-service.yaml b/prometheus/prometheus-service.yaml deleted file mode 100644 index d7fa32d..0000000 --- a/prometheus/prometheus-service.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - annotations: - kompose.cmd: kompose -f docker-compose.yml convert - kompose.version: 1.28.0 (c4137012e) - creationTimestamp: null - labels: - io.kompose.service: prometheus - name: prometheus -spec: - ports: - - name: "9090" - port: 9090 - targetPort: 9090 - selector: - io.kompose.service: prometheus -status: - loadBalancer: {} -- GitLab