helm manifest added

This commit is contained in:
Kai Wu 2025-08-02 13:34:54 -07:00
parent 645e55a450
commit 046efeea3a
7 changed files with 8565 additions and 3228 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,6 @@
USER-SUPPLIED VALUES:
prometheus:
prometheusSpec:
serviceMonitorSelectorNilUsesHelmValues: false
service:
type: NodePort

View file

@ -86,18 +86,6 @@ if [ "$USE_EBS" = "true" ]; then
envsubst < ./chroma-k8s.yaml.template | kubectl apply -f -
# Create monitoring namespace
kubectl create namespace monitoring --dry-run=client -o yaml | kubectl apply -f -
# Install Prometheus Operator CRDs
./install-prometheus-operator.sh
# Apply RBAC for Prometheus
kubectl apply -f ./prometheus-rbac.yaml
# Apply monitoring resources after CRDs are installed
envsubst < ./monitoring-k8s.yaml.template | kubectl apply -f -
kubectl create configmap llama-stack-config --from-file=stack_run_config.yaml \
--dry-run=client -o yaml > stack-configmap.yaml
@ -116,16 +104,6 @@ else
envsubst < ./postgres-k8s.yaml.template | sed 's/persistentVolumeClaim:/emptyDir: {}/g' | sed '/claimName:/d' | kubectl apply -f -
envsubst < ./chroma-k8s.yaml.template | sed 's/persistentVolumeClaim:/emptyDir: {}/g' | sed '/claimName:/d' | kubectl apply -f -
# Create monitoring namespace
kubectl create namespace monitoring --dry-run=client -o yaml | kubectl apply -f -
# Apply RBAC for Prometheus
kubectl apply -f ./prometheus-rbac.yaml
# Apply monitoring resources after CRDs are installed
envsubst < ./monitoring-k8s.yaml.template | kubectl apply -f -
kubectl create configmap llama-stack-config --from-file=stack_run_config.yaml \
--dry-run=client -o yaml > stack-configmap.yaml

File diff suppressed because it is too large Load diff

View file

@ -1,41 +0,0 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus
namespace: monitoring
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups: [""]
resources:
- nodes
- nodes/proxy
- services
- endpoints
- pods
verbs: ["get", "list", "watch"]
- apiGroups:
- extensions
- networking.k8s.io
resources:
- ingresses
verbs: ["get", "list", "watch"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: prometheus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus
subjects:
- kind: ServiceAccount
name: prometheus
namespace: monitoring

File diff suppressed because it is too large Load diff