mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 14:08:00 +00:00
helm manifest added
This commit is contained in:
parent
645e55a450
commit
046efeea3a
7 changed files with 8565 additions and 3228 deletions
6284
docs/source/distributions/k8s/all-manifests.yaml
Normal file
6284
docs/source/distributions/k8s/all-manifests.yaml
Normal file
File diff suppressed because one or more lines are too long
6
docs/source/distributions/k8s/all-values.yaml
Normal file
6
docs/source/distributions/k8s/all-values.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
USER-SUPPLIED VALUES:
|
||||
prometheus:
|
||||
prometheusSpec:
|
||||
serviceMonitorSelectorNilUsesHelmValues: false
|
||||
service:
|
||||
type: NodePort
|
|
@ -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
|
||||
|
||||
|
|
|
@ -35,4 +35,4 @@ helm install prometheus prometheus-community/kube-prometheus-stack \
|
|||
|
||||
echo "kube-prometheus-stack has been installed successfully!"
|
||||
echo "To access Grafana UI, run: kubectl port-forward -n monitoring svc/prometheus-grafana 3000:80"
|
||||
echo "Default Grafana credentials - Username: admin, Password: prom-operator"
|
||||
echo "Default Grafana credentials - Username: admin, Password: prom-operator"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -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
|
2274
docs/source/distributions/k8s/svc-and-pods.yaml
Normal file
2274
docs/source/distributions/k8s/svc-and-pods.yaml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue