Repository for dip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tenant-catalog/kubeflow/apps/pipeline/upstream/third-party/prometheus/prometheus-deployment.yaml

34 lines
868 B

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