mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-08-18 15:57:04 +00:00
chore: add serviceMonitor in sample yaml (#304)
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io> Co-authored-by: Thomas Schuetz <38893055+thschue@users.noreply.github.com>
This commit is contained in:
parent
2102f06585
commit
0a4ed0d907
@ -28,8 +28,8 @@ spec:
|
|||||||
cpu: "1"
|
cpu: "1"
|
||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
requests:
|
requests:
|
||||||
cpu: "0.5"
|
cpu: "0.2"
|
||||||
memory: "256Mi"
|
memory: "156Mi"
|
||||||
env:
|
env:
|
||||||
- name: K8SGPT_MODEL
|
- name: K8SGPT_MODEL
|
||||||
value: "gpt-3.5-turbo"
|
value: "gpt-3.5-turbo"
|
||||||
|
@ -3,6 +3,8 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: k8sgpt-service
|
name: k8sgpt-service
|
||||||
namespace: k8sgpt
|
namespace: k8sgpt
|
||||||
|
labels:
|
||||||
|
app: k8sgpt
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: k8sgpt
|
app: k8sgpt
|
||||||
|
15
container/manifests/serviceMonitor.yaml
Normal file
15
container/manifests/serviceMonitor.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: k8sgpt
|
||||||
|
name: k8sgpt-service-monitor
|
||||||
|
namespace: k8sgpt
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- honorLabels: true
|
||||||
|
path: /metrics
|
||||||
|
port: http
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: k8sgpt
|
Loading…
Reference in New Issue
Block a user