diff --git a/content/authors/tobias-babin/668fe8581b07e310edbe33f6_Tobias Babin.png b/content/authors/tobias-babin/668fe8581b07e310edbe33f6_Tobias Babin.png new file mode 100644 index 0000000..1dccc46 Binary files /dev/null and b/content/authors/tobias-babin/668fe8581b07e310edbe33f6_Tobias Babin.png differ diff --git a/content/authors/tobias-babin/index.md b/content/authors/tobias-babin/index.md new file mode 100644 index 0000000..54b457f --- /dev/null +++ b/content/authors/tobias-babin/index.md @@ -0,0 +1,5 @@ +--- +name: Tobias Babin +role: Technical Documentation Specialist +image: 668fe8581b07e310edbe33f6_Tobias Babin.png +--- diff --git a/content/blog/_index.md b/content/blog/_index.md index 963e515..a18eed9 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,4 +1,4 @@ --- title: Blog -featured_post: celebrating-1-year-as-cncf-sandbox +featured_post: score-examples-hub-announcement --- diff --git a/content/blog/score-examples-hub-announcement/index.md b/content/blog/score-examples-hub-announcement/index.md new file mode 100644 index 0000000..6d5689b --- /dev/null +++ b/content/blog/score-examples-hub-announcement/index.md @@ -0,0 +1,89 @@ +--- +title: "Announcing the new Score Examples Hub" +date: 2025-11-03T00:00:00-00:00 +draft: false +description: "Announcement of the new place for all the examples about Score: The Score Examples Hub!" +image: score-examples-hub-announcement.png +author: tobias-babin +--- + +_Hi, there! Tobi here, Tech Writer at Humanitec and Score contributor._ + +🎉 Today, Score is officially announcing the new [Score Examples Hub](https://docs.score.dev/examples/)! 🎉 + +One of the feedbacks we have been capturing is to show more concrete examples and use cases with Score. + +When we celebrated the [first anniversary of Score as CNCF Sandbox](https://score.dev/blog/celebrating-1-year-as-cncf-sandbox/) a couple of months ago, we provided a sneak peek about this Score Examples Hub. Since then, we have been adding more examples of Score files, resource provisioners and patch templates. + +![Screenshot of the Score Examples Hub Homepage](score-examples-hub-homepage.png) + +## Score specification and resources examples + +Find Score files examples illustrating how to use the Score specification as well as how to use the resources provisioners with either [`score-compose`](https://docs.score.dev/docs/score-implementation/score-compose/) or [`score-k8s`](https://docs.score.dev/docs/score-implementation/score-k8s/): + +![Screenshot of the Score Examples Hub for Spec & Resources](score-examples-hub-spec-resources.png) + +As an example, that's how in there you will be able to find how you can [use a local LLM model with Score and `score-compose`](https://docs.score.dev/examples/score/resources/community-provisioners/llm-model/): + +`score.yaml`: +```yaml +apiVersion: score.dev/v1b1 +metadata: + name: my-workload +containers: + my-container: + image: busybox + command: ["/bin/sh"] + args: ["-c", "while true; do echo $LLM_BASE_URL; sleep 5; done"] + variables: + LLM_MODEL_NAME: "${resources.model.model}" + LLM_BASE_URL: "${resources.model.url}" +resources: + model: + type: llm-model + params: + model: ai/smollm2:135M-Q4_0 +``` + +Run: +```bash +score-compose init \ + --provisioners https://raw.githubusercontent.com/score-spec/community-provisioners/refs/heads/main/llm-model/score-compose/10-dmr-llm-model-via-service-provider.provisioners.yaml + +score-compose generate score.yaml -o compose.yaml + +docker compose up -d --wait +``` + +In the `score.yaml` file, the Developer can request a `llm-model` resource to use it in their app by injecting the corresponding `url` generated when this Score file will be deployed. By using `score-compose init --provisioners`, the actual implementation of the `llm-model` resource is downloaded locally (you can [look at its definition here](https://docs.score.dev/examples/resource-provisioners/community/llm-model/score-compose/template/dmr-llm-model-via-service-provider/), Docker Model Runner is used). Then, with `score-compose generate`, both the `my-container` and the `llm-model` services are generated into a `compose.yaml` file. Finally, `docker compose up` will deploy them. + +## Score resources provisioners examples + +Find examples of resources provisioners with either [`score-compose`](https://docs.score.dev/examples/resource-provisioners?implementation=score-compose) or [`score-k8s`](https://docs.score.dev/examples/resource-provisioners?implementation=score-k8s): + +![Screenshot of the Score Examples Hub for Resources Provisioners](score-examples-hub-provisioners.png) + +## Score patch templates examples + +Find examples of patch templates with either [`score-compose`](https://docs.score.dev/examples/patch-templates?implementation=score-compose) or [`score-k8s`](https://docs.score.dev/examples/patch-templates?implementation=score-k8s): + +![Screenshot of the Score Examples Hub for Patch Templates](score-examples-hub-patchers.png) + +## More advanced examples + +Find more advanced examples illustrating how to deploy a NodeJS application talking to a PostgreSQL database, how to deploy Backstage and Nginx, how to use Dapr with your workloads, etc. with either `score-compose` or `score-k8s`: + +![Screenshot of the Score Examples Hub for more advanced use cases](score-examples-hub-advanced.png) + +## Kudos! + +Huge kudos to [**Santiago Beroch**](https://www.linkedin.com/in/santiagoberoch/) for collaborating with me to design and implement this very powerful [Score Examples Hub](https://docs.score.dev/examples/)! And thanks, [Humanitec](https://humanitec.com/) for your support on this! + +## What's next? + +Please share your feedback with us and please do let us know if there is anything in particular you would like to see in this growing list of examples! +- [Join the #score channel in the CNCF Slack](https://cloud-native.slack.com/archives/C07DN0D1UCW) +- [Get started with Score](https://docs.score.dev/docs/get-started/) +- [Contribute to Score](https://clotributor.dev/search?foundation=cncf&project=score) + +See you in Atlanta for [KubeCon NA 2025](https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/)!? diff --git a/content/blog/score-examples-hub-announcement/score-examples-hub-advanced.png b/content/blog/score-examples-hub-announcement/score-examples-hub-advanced.png new file mode 100644 index 0000000..1acafe9 Binary files /dev/null and b/content/blog/score-examples-hub-announcement/score-examples-hub-advanced.png differ diff --git a/content/blog/score-examples-hub-announcement/score-examples-hub-announcement.png b/content/blog/score-examples-hub-announcement/score-examples-hub-announcement.png new file mode 100644 index 0000000..5e0d5af Binary files /dev/null and b/content/blog/score-examples-hub-announcement/score-examples-hub-announcement.png differ diff --git a/content/blog/score-examples-hub-announcement/score-examples-hub-homepage.png b/content/blog/score-examples-hub-announcement/score-examples-hub-homepage.png new file mode 100644 index 0000000..1f5e483 Binary files /dev/null and b/content/blog/score-examples-hub-announcement/score-examples-hub-homepage.png differ diff --git a/content/blog/score-examples-hub-announcement/score-examples-hub-patchers.png b/content/blog/score-examples-hub-announcement/score-examples-hub-patchers.png new file mode 100644 index 0000000..5f4999f Binary files /dev/null and b/content/blog/score-examples-hub-announcement/score-examples-hub-patchers.png differ diff --git a/content/blog/score-examples-hub-announcement/score-examples-hub-provisioners.png b/content/blog/score-examples-hub-announcement/score-examples-hub-provisioners.png new file mode 100644 index 0000000..93102f4 Binary files /dev/null and b/content/blog/score-examples-hub-announcement/score-examples-hub-provisioners.png differ diff --git a/content/blog/score-examples-hub-announcement/score-examples-hub-spec-resources.png b/content/blog/score-examples-hub-announcement/score-examples-hub-spec-resources.png new file mode 100644 index 0000000..e4219b5 Binary files /dev/null and b/content/blog/score-examples-hub-announcement/score-examples-hub-spec-resources.png differ