UNPKG

@underpostnet/underpost

Version:

Underpost Platform — end-to-end CI/CD and application-delivery toolchain CLI. Covers bare metal, Kubernetes, K3s, kubeadm, LXD, container/image orchestration, secrets, databases, cron jobs, monitoring, SSH, runners, PWA + Workbox delivery, and release orc

83 lines (79 loc) 1.76 kB
--- apiVersion: v1 kind: ConfigMap metadata: name: prometheus-config labels: app: prometheus data: prometheus.yml: | global: scrape_interval: 30s evaluation_interval: 30s scrape_configs: - job_name: 'scraper' metrics_path: /metrics scheme: https static_configs: - targets: [] # tls_config: # insecure_skip_verify: true --- apiVersion: apps/v1 kind: Deployment metadata: name: prometheus labels: app: prometheus spec: replicas: 1 selector: matchLabels: app: prometheus template: metadata: labels: app: prometheus spec: containers: - name: prometheus image: prom/prometheus:latest args: - '--config.file=/etc/prometheus/prometheus.yml' - '--storage.tsdb.path=/prometheus' - '--web.console.libraries=/usr/share/prometheus/console_libraries' - '--web.console.templates=/usr/share/prometheus/consoles' ports: - containerPort: 9090 name: web volumeMounts: - name: prometheus-config mountPath: /etc/prometheus/ - name: prometheus-data mountPath: /prometheus resources: requests: memory: '200Mi' cpu: '100m' volumes: - name: prometheus-config configMap: name: prometheus-config - name: prometheus-data emptyDir: {} --- apiVersion: v1 kind: Service metadata: name: prometheus labels: app: prometheus spec: ports: - port: 9090 targetPort: 9090 protocol: TCP name: web selector: app: prometheus type: ClusterIP