update kubeflow dip-catalog

This commit is contained in:
ChanghoWoo
2025-01-13 02:31:27 +00:00
parent 1dc1181a03
commit 5451f16d72
1959 changed files with 602337 additions and 0 deletions
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- prometheus-configmap.yaml
- prometheus-sa.yaml
- prometheus-role.yaml
- prometheus-rolebinding.yaml
- prometheus-service.yaml
- prometheus-deployment.yaml
images:
- name: prom/prometheus
@@ -0,0 +1,31 @@
apiVersion: v1
data:
prometheus.yml: |
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'kubeflow-pipelines-monitor'
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']
# Monitoring ml-pipeline (aka Kubeflow Pipelines API server)
- job_name: 'ml-pipeline'
scrape_interval: 60s
static_configs:
- targets: ['ml-pipeline:8888']
kind: ConfigMap
metadata:
name: prometheus-configmap
@@ -0,0 +1,34 @@
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
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus/prometheus.yml
subPath: prometheus.yml
args: ["--storage.tsdb.retention.time=7d", # Adjust retention policy if necessary
"--storage.tsdb.retention.size=1GB",
"--config.file=/etc/prometheus/prometheus.yml",
]
ports:
- containerPort: 9090
volumes:
- name: config-volume
configMap:
name: prometheus-configmap
serviceAccountName: prometheus
@@ -0,0 +1,19 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
app: prometheus
name: prometheus
rules:
- apiGroups: [""]
resources:
- nodes
- services
- endpoints
- pods
verbs: ["get", "list", "watch"]
- apiGroups:
- extensions
resources:
- ingresses
verbs: ["get", "list", "watch"]
@@ -0,0 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
app: prometheus
name: prometheus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: prometheus
subjects:
- kind: ServiceAccount
name: prometheus
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: prometheus
name: prometheus
spec:
selector:
app: prometheus
ports:
- name: promui
protocol: TCP
port: 9090
targetPort: 9090