forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput-artifact-azure.yaml
36 lines (36 loc) · 1.59 KB
/
output-artifact-azure.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This is an example of a workflow producing an Azure Storage output artifact which is saved
# to a hard-wired location. This is useful for workflows which want to publish results to a well
# known or pre-determined location.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: output-artifact-s3-
spec:
entrypoint: whalesay
templates:
- name: whalesay
container:
image: docker/whalesay:latest
command: [sh, -c]
args: ["cowsay hello world | tee /tmp/hello_world.txt"]
outputs:
artifacts:
- name: message
path: /tmp
azure:
# For most people, the endpoint is in the form https://<account-name>.blob.core.windows.net.
# In sovereign clouds, or Azure Stack clouds, the endpoint may be different.
endpoint: https://myazurestorageaccountname.blob.core.windows.net
# The name of the container within the storage account.
container: my-container
# The path (within the container) to the artifact
blob: path/in/container/hello_world.txt.tgz
# accountKeySecret is a secret selector. It references the k8s secret named
# 'my-azure-credentials'. This secret is expected to have the key
# 'accountKey', containing the Azure Blob Storage account name and access key.
accountKeySecret:
name: my-azure-credentials
key: accountKey
# Optional: set UseSDKCreds to true and skip setting accountKeySecret if
# you are using environment variables to configure, or a Managed Identity.
# useSDKCreds: true