Amqp
score.yaml
(view on GitHub)
:
apiVersion: score.dev/v1b1
metadata:
name: my-workload
containers:
my-container:
image: busybox
command: ["/bin/sh"]
args: ["-c", "while true; do echo $AMQP_HOST; sleep 5; done"]
variables:
AMQP_HOST: ${resources.my-amqp.host}
AMQP_PORT: ${resources.my-amqp.port}
AMQP_VHOST: ${resources.my-amqp.vhost}
AMQP_USERNAME: ${resources.my-amqp.username}
AMQP_PASSWORD: ${resources.my-amqp.password}
resources:
my-amqp:
type: amqp
Initialize your local workspace, by using the default provisioners:
score-commpose init
Get the provisioners definition:
score-compose provisioners list
Generate the platform specific manifests:
score-commpose generate score.yaml
See the resource outputs:
score-commpose resources list
You can run the following command on each resource listed with the previous command to get their outputs
:
score-commpose resources get-outputs
Deploy the generated manifests:
docker compose up -d
See the running containers:
docker ps
Initialize your local workspace, by using the default provisioners:
score-k8s init
Get the provisioners definition:
score-k8s provisioners list
Generate the platform specific manifests:
score-k8s generate score.yaml
See the resource outputs:
score-k8s resources list
You can run the following command on each resource listed with the previous command to get their outputs
:
score-k8s resources get-outputs
Deploy the generated manifests:
kubectl apply -f manifests.yaml
See the running containers:
kubectl get all