forked from ggerganov/llama.cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kubernetes: first helm working with monitoring
- Loading branch information
Showing
23 changed files
with
548 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,39 @@ jobs: | |
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.12.1 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
check-latest: true | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Install repo | ||
id: install-repo | ||
run: | | ||
ct install --chart-dirs examples/kubernetes/ --charts examples/kubernetes/ | ||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Run chart-testing (lint) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct lint --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
- name: Create k8s Kind Cluster | ||
id: create_kind_cluster | ||
if: steps.list-changed.outputs.changed == 'true' | ||
uses: container-tools/kind-action@v1 | ||
# | ||
# - name: Build and push Docker image | ||
|
@@ -33,6 +64,7 @@ jobs: | |
|
||
- name: Docker build | ||
id: docker_build | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
kubectl cluster-info | ||
kubectl get storageclass standard | ||
|
@@ -48,12 +80,18 @@ jobs: | |
- name: Deploy prometheus | ||
id: deploy_prometheus | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
helm repo update | ||
helm install kube-prometheus-stack prometheus-community/kube-prometheus-stack | ||
- name: Deploy llama.cpp server | ||
id: deploy_llama_cpp | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
helm install llama-cpp-stack ./examples/kubernetes/helm-charts | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.12.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
examples/kubernetes/helm-charts/templates/serviceaccount.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
apiVersion: v1 | ||
entries: {} | ||
generated: "2024-02-27T12:54:11.664702812+01:00" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v2 | ||
name: llama-cpp | ||
description: llama.cpp Helm chart for Kubernetes | ||
type: application | ||
version: 0.0.1 | ||
appVersion: "cbbd1efa06f8c09f9dff58ff9d9af509cc4c152b" |
12 changes: 9 additions & 3 deletions
12
...ubernetes/helm-charts/templates/NOTES.txt → .../kubernetes/llama-cpp/templates/NOTES.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.