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:
Peter Pan 2023-04-21 17:10:39 +08:00 committed by GitHub
parent 2102f06585
commit 0a4ed0d907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 2 deletions

View File

@ -28,8 +28,8 @@ spec:
cpu: "1"
memory: "512Mi"
requests:
cpu: "0.5"
memory: "256Mi"
cpu: "0.2"
memory: "156Mi"
env:
- name: K8SGPT_MODEL
value: "gpt-3.5-turbo"

View File

@ -3,6 +3,8 @@ kind: Service
metadata:
name: k8sgpt-service
namespace: k8sgpt
labels:
app: k8sgpt
spec:
selector:
app: k8sgpt

View 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