ConnectionsConnection Schemas
Schema for volumes
Example usage as init param
params:
data: {connection: "my-volume", init: true}Specific files:
params:
data: {
connection: "my-volume",
init: true,
artifacts: {'files': ['file1', 'path/to/file2']}
}Example exposing the connection as an init container with custom container
run:
kind: service
init: [{connection: "my-volume", container: {name: my-own-container, image: ...}}]
container:Example exposing the connection inside the main container
run:
kind: service
connections: ["my-volume"]
container:Schema for host path
Example definition
name: my-volume
kind: host_path
schema:
mountPath: "/tmp/outputs"
hostPath: "/foo/bar"Example usage as init param
params:
data: {connection: "my-volume", init: true}Specific files:
params:
data: {
connection: "my-volume",
init: true,
artifacts: {'files': ['file1', 'path/to/file2']}
}Example exposing the connection as an init container with custom container
run:
kind: service
init: [{connection: "my-volume", container: {name: my-own-container, image: ...}}]
container:Example exposing the connection inside the main container
run:
kind: service
connections: ["my-volume"]
container:Schema for S3/GCS/Azure Blob
Fields
- bucket: the bucket you want to expose in this connection.
Example definition
name: azure
kind: wasb
schema:
bucket: "wasbs://[email protected]/"
secret:
name: "az-secret"Example usage as init param
params:
data:
connection: "azure"
init: trueSpecific files:
params:
data:
connection: "azure"
init: true
artifacts: {'files': ['file1', 'path/to/file2']}Example exposing the connection as an init container with custom container
run:
kind: service
init:
connection: "azure"
container: {name: my-own-container, image: ...}}]
container:Example exposing the connection inside the main container
run:
kind: service
connections: ["azure"]
container: