-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeployment.yaml
More file actions
31 lines (31 loc) · 773 Bytes
/
deployment.yaml
File metadata and controls
31 lines (31 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
apiVersion: apps/v1
kind: Deployment
metadata:
name: python-with-prometheus
labels:
app: python-with-prometheus
spec:
replicas: 1
selector:
matchLabels:
app: python-with-prometheus
template:
metadata:
labels:
app: python-with-prometheus
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
prometheus.io/port: "5000"
spec:
containers:
- name: python-with-prometheus
imagePullPolicy: Always
# Point this at your Docker Repo
image: kylos101/python-with-prometheus:1.0.0
ports:
- containerPort: 5000
# Necessary to see stderr output
env:
- name: PYTHONUNBUFFERED
value: "1"