learning_go/go_exporter/deploy.yaml
a.pivkin 7113476e6d puk
2025-11-24 21:06:48 +03:00

37 lines
628 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: export
namespace: rook-ceph
labels:
app: export
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9040"
prometheus.io/path: "/metrics"
spec:
containers:
- name: export
image: serviceplant/goexp:0.0.5
ports:
- containerPort: 9040
name: metrics
---
apiVersion: v1
kind: Service
metadata:
name: export-service
namespace: rook-ceph
labels:
svc_app: export
rook_cluster: rook-ceph
spec:
selector:
app: export
ports:
- name: metrics
port: 9040
targetPort: 9040
protocol: TCP
type: ClusterIP