Files
fileA.txt
(view on GitHub)
:
This is fileA!
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 cat /fileA.txt; cat /fileB.txt; cat /fileC.bin; sleep 5; done"]
files:
/fileA.txt:
mode: "0644"
source: fileA.txt
/fileB.txt:
content: |
I am fileB!
/fileC.bin:
binaryContent: aGVsbG8gd29ybGQ=
Initialize your local workspace
score-compose init
Generate the platform specific manifests
score-compose generate score.yaml --image busybox
Deploy the generated manifests
docker compose up -d
See the running containers
docker ps
Initialize your local workspace
score-k8s init
Generate the platform specific manifests
score-k8s generate score.yaml --image busybox
Deploy the generated manifests
kubectl apply -f manifests.yaml
See the running containers
kubectl get all