feat(bucket): add WorkloadMonitor for billing integration
Add WorkloadMonitor CR to bucket Helm chart so that the billing pipeline can discover and track S3 buckets. Add instance label to BucketClaim metadata for WorkloadMonitor selector matching. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: ZverGuy <maximbel2003@gmail.com>
This commit is contained in:
parent
985cb9c889
commit
ee4e71b139
2 changed files with 15 additions and 0 deletions
|
|
@ -4,6 +4,8 @@ apiVersion: objectstorage.k8s.io/v1alpha1
|
|||
kind: BucketClaim
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
labels:
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
spec:
|
||||
bucketClassName: {{ $seaweedfs }}{{- if $pool }}-{{ $pool }}{{- end }}{{- if .Values.locking }}-lock{{- end }}
|
||||
protocols:
|
||||
|
|
|
|||
13
packages/apps/bucket/templates/workloadmonitor.yaml
Normal file
13
packages/apps/bucket/templates/workloadmonitor.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
apiVersion: cozystack.io/v1alpha1
|
||||
kind: WorkloadMonitor
|
||||
metadata:
|
||||
name: {{ $.Release.Name }}
|
||||
spec:
|
||||
replicas: 1
|
||||
minReplicas: 1
|
||||
kind: bucket
|
||||
type: s3
|
||||
selector:
|
||||
app.kubernetes.io/instance: {{ $.Release.Name }}
|
||||
version: {{ $.Chart.Version }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue