Resource Provisioners

51 examples found.

Source

Implementation

Provisioner Type

Resource Type

Flavor

Tool

The examples below illustrate how to use resources provisioners for each Score implementation.


dapr-subscription

Community dapr-subscription score-compose template

dapr-subscription

Community dapr-subscription score-k8s template

default-hpa

Community horizontal-pod-autoscaler score-k8s template

dns

Default dns score-compose template
The default dns provisioner just outputs localhost as the hostname every time. This is because without actual control of a dns resolver we can't do any accurate routing on any other name. This can be replaced by a new provisioner in the future. (...)

dns

Default dns score-k8s template
The default dns provisioner just outputs a random localhost domain because we don't know whether external-dns is available. You should replace this with your own dns name generation that matches your external-dns controller. (...)

dns-in-codespace

Community dns score-compose cmd dns
Prerequisites for dns-in-codespace: - Have gh installed, this provisioner is using the GitHub CLI to get the name of the current GitHub Codespace.

dns-in-codespace

Community dns score-k8s cmd dns
Prerequisites for dns-in-codespace: - Have gh installed, this provisioner is using the GitHub CLI to get the name of the current GitHub Codespace.

dns-with-route

Community dns score-compose template
Prerequisites for dns-in-codespace: - Have gh installed, this provisioner is using the GitHub CLI to get the name of the current GitHub Codespace.

dns-with-url

Community dns score-k8s template
Prerequisites for dns-in-codespace: - Have gh installed, this provisioner is using the GitHub CLI to get the name of the current GitHub Codespace.

dotenv

Community environment score-compose cmd dotenv
Prerequisites: - Have python installed, this provisioner is using Python to load the .env file.

dotenv

Community environment score-k8s cmd dotenv
Prerequisites: - Have python installed, this provisioner is using Python to load the .env file.

elasticsearch

Default elasticsearch score-compose template
The default elasticsearch provisioner adds a elasticsearch instance.

empty-hpa

Community horizontal-pod-autoscaler score-compose template

example-provisioner

Default example-provisioner-resource score-k8s cmd example
The 'cmd' scheme has a “host” + path component that indicates the path to the binary to execute. If the host starts with “.” it is interpreted as a relative path, if it starts with “~” it resolves to the home directory. (...)

helm-template-redis

Community redis score-k8s cmd helm
Prerequisites: - Have helm installed locally, this provisioner renders the manifests from the Bitnami's Redis Helm chart. - Have yq installed locally. (...)

helm-upgrade-redis

Community redis score-k8s cmd helm
Prerequisites: - Have helm installed locally, this provisioner renders the manifests from the Bitnami's Redis Helm chart. - Have yq installed locally. (...)

ingress-route

Community route score-k8s template

ingress-with-net-pol-route

Community route score-k8s template

kafka-topic

Default kafka-topic score-compose template

mongo

Default mongodb score-k8s template

mongodb

Default mongodb score-compose template
The default mongodb provisioner adds a mongodb service to the project which returns a host, port, username, and password, and connection string.

mssql

Default mssql score-compose template

mssql

Default mssql score-k8s template

mysql

Default mysql score-compose template
The default mysql provisioner adds a mysql instance and then ensures that the required databases are created on startup.

mysql

Default mysql score-k8s template

postgres

Default postgres score-compose template
The default postgres provisioner adds a postgres instance and then ensures that the required databases are created on startup.

postgres

Default postgres score-k8s template

postgres-instance

Default postgres-instance score-compose template

postgres-instance

Default postgres-instance score-k8s template

rabbitmq

Default amqp score-compose template
The default AMQP provisioner provides a simple rabbitmq instance with default configuration and plugins.

rabbitmq

Default amqp score-k8s template

rabbitmq-dapr-pubsub

Community dapr-pubsub score-k8s template

redis

Community dapr-state-store score-k8s template

redis

Default redis score-compose template
The default redis provisioner adds a redis service to the project which returns a host, port, username, and password.

redis

Default redis score-k8s template

redis-dapr-pubsub

Community dapr-pubsub score-compose template

redis-dapr-pubsub

Community dapr-pubsub score-k8s template

redis-dapr-state-store

Community dapr-state-store score-compose template

route

Default route score-compose template
The default route provisioner sets up an nginx service with an HTTP service that can route on our prefix paths. It assumes the hostnames and routes provided have no overlaps. Weird behavior may happen if there are overlaps.

route

Default route score-k8s template
Routes could be implemented as either traditional ingress resources or using the newer gateway API. In this default provisioner we use the gateway API with some sensible defaults. But you may wish to replace this.

route-with-shared-gateway

Community route score-k8s template

route-with-shared-gateway-with-netpol

Community route score-k8s template

s3

Default s3 score-compose template
This resource provides a minio based S3 bucket with AWS-style credentials. This provides some common and well known outputs that can be used with any generic AWS s3 client. If the provider has a publish port annotation, it can expose a management port on the local network for debugging and connectivity.

s3

Default s3 score-k8s template
This resource provides an in-cluster minio based S3 bucket with AWS-style credentials. This provides some common and well known outputs that can be used with any generic AWS s3 client. The outputs of the provisioner are a stateful set, a service, a secret, and a job per bucket.

service-port

Default service-port score-compose template
The default provisioner for service resources, this expects a workload and port name and will return the hostname and port required to contact it. This will validate that the workload and port exist, but won't enforce a dependency relationship yet. (...)

service-port

Default service-port score-k8s template
The default provisioner for service resources, this expects a workload and port name and will return the hostname and port required to contact it. This will validate that the workload and port exist, but won't enforce a dependency relationship yet. (...)

static-service

Community service score-compose template

static-service

Community service score-k8s template

static-service-with-netpol

Community service score-k8s template

volume

Default volume score-compose template
The default volume provisioner provided by score-compose allows basic volume resources to be created in the resources system. The volume resource just creates an ephemeral Docker volume with a random string as the name, and source attribute that we can reference.

volume

Default volume score-k8s template
As an example we have a 'volume' type which returns an emptyDir volume. In production or for real applications you may want to replace this with a provisioner for a tmpfs, host path, or persistent volume and claims. (...)