diff --git a/services/monitoring/kustomization.yaml b/services/monitoring/kustomization.yaml index 63bf8ffb..ab81b768 100644 --- a/services/monitoring/kustomization.yaml +++ b/services/monitoring/kustomization.yaml @@ -20,6 +20,9 @@ resources: - jetson-tegrastats-exporter.yaml - postmark-exporter-service.yaml - postmark-exporter-deployment.yaml + - platform-quality-gateway-pvc.yaml + - platform-quality-gateway-service.yaml + - platform-quality-gateway-deployment.yaml - vault-sync-deployment.yaml - grafana-alerting-config.yaml - grafana-folders.yaml diff --git a/services/monitoring/platform-quality-gateway-deployment.yaml b/services/monitoring/platform-quality-gateway-deployment.yaml new file mode 100644 index 00000000..b5be0733 --- /dev/null +++ b/services/monitoring/platform-quality-gateway-deployment.yaml @@ -0,0 +1,66 @@ +# services/monitoring/platform-quality-gateway-deployment.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: platform-quality-gateway + namespace: monitoring + labels: + app: platform-quality-gateway +spec: + replicas: 1 + revisionHistoryLimit: 3 + selector: + matchLabels: + app: platform-quality-gateway + template: + metadata: + labels: + app: platform-quality-gateway + spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: NotIn + values: + - titan-22 + containers: + - name: pushgateway + image: prom/pushgateway:v1.11.2 + args: + - --web.listen-address=:9091 + - --web.enable-admin-api + - --persistence.file=/data/metrics.db + - --persistence.interval=1m + ports: + - name: http + containerPort: 9091 + livenessProbe: + httpGet: + path: /-/healthy + port: http + initialDelaySeconds: 15 + periodSeconds: 10 + readinessProbe: + httpGet: + path: /-/ready + port: http + initialDelaySeconds: 5 + periodSeconds: 5 + resources: + requests: + cpu: 20m + memory: 64Mi + limits: + cpu: 250m + memory: 256Mi + volumeMounts: + - name: data + mountPath: /data + volumes: + - name: data + persistentVolumeClaim: + claimName: platform-quality-gateway-data + diff --git a/services/monitoring/platform-quality-gateway-pvc.yaml b/services/monitoring/platform-quality-gateway-pvc.yaml new file mode 100644 index 00000000..38f1d55d --- /dev/null +++ b/services/monitoring/platform-quality-gateway-pvc.yaml @@ -0,0 +1,13 @@ +# services/monitoring/platform-quality-gateway-pvc.yaml +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: platform-quality-gateway-data + namespace: monitoring +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + diff --git a/services/monitoring/platform-quality-gateway-service.yaml b/services/monitoring/platform-quality-gateway-service.yaml new file mode 100644 index 00000000..83050943 --- /dev/null +++ b/services/monitoring/platform-quality-gateway-service.yaml @@ -0,0 +1,21 @@ +# services/monitoring/platform-quality-gateway-service.yaml +apiVersion: v1 +kind: Service +metadata: + name: platform-quality-gateway + namespace: monitoring + labels: + app: platform-quality-gateway + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9091" + prometheus.io/path: "/metrics" +spec: + type: ClusterIP + selector: + app: platform-quality-gateway + ports: + - name: http + port: 9091 + targetPort: http +