Skip to content

Commit 9e0597f

Browse files
committed
docs(workflow): object storage config
1 parent aa17c45 commit 9e0597f

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

_scripts/install.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ init_registry() {
3737

3838
function clean_before_exit {
3939
# delay before exiting, so stdout/stderr flushes through the logging system
40-
rm -rf /tmp/drycc-values.yaml /etc/rancher/k3s/registries.yaml
40+
rm -rf /tmp/drycc-values.yaml
4141
configure_registries runtime
4242
sleep 3
4343
}
@@ -87,24 +87,23 @@ function configure_os {
8787

8888
function configure_registries {
8989
mkdir -p /etc/rancher/k3s
90-
if [[ "$1" == "runtime" ]] ; then
91-
if [[ -f "${REGISTRIES_FILE}" ]] ; then
92-
cat "${REGISTRIES_FILE}" > /etc/rancher/k3s/registries.yaml
93-
elif [[ "${INSTALL_DRYCC_MIRROR}" == "cn" ]] ; then
90+
if [[ -f "${REGISTRIES_FILE}" ]]; then
91+
cat "${REGISTRIES_FILE}" > /etc/rancher/k3s/registries.yaml
92+
elif [[ "${INSTALL_DRYCC_MIRROR}" == "cn" ]]; then
93+
if [[ "$1" == "runtime" ]] ; then
9494
cat << EOF > "/etc/rancher/k3s/registries.yaml"
9595
mirrors:
9696
"docker.io":
9797
endpoint:
9898
- "https://hub-mirror.c.163.com"
9999
- "https://registry-1.docker.io"
100100
EOF
101-
fi
102-
else
103-
cat << EOF > "/etc/rancher/k3s/registries.yaml"
101+
else
102+
cat << EOF > "/etc/rancher/k3s/registries.yaml"
104103
mirrors:
105104
"docker.io":
106105
endpoint:
107-
- "https://gcr-mirror.drycc.cc"
106+
- "https://docker-mirror.drycc.cc"
108107
- "https://registry-1.docker.io"
109108
"quay.io":
110109
endpoint:
@@ -119,12 +118,13 @@ mirrors:
119118
- "https://k8s-mirror.drycc.cc"
120119
- "https://k8s.gcr.io"
121120
EOF
121+
fi
122122
fi
123123
}
124124

125125
function configure_mirrors {
126+
configure_registries
126127
if [[ "${INSTALL_DRYCC_MIRROR}" == "cn" ]] ; then
127-
configure_registries
128128
INSTALL_K3S_MIRROR="${INSTALL_DRYCC_MIRROR}"
129129
export INSTALL_K3S_MIRROR
130130
k3s_install_url="http://rancher-mirror.cnrancher.com/k3s/k3s-install.sh"

src/installing-workflow/configuring-object-storage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Drycc Workflow ships with [Minio][minio] by default, which provides in-cluster,
88

99
Every component that relies on object storage uses two inputs for configuration:
1010

11-
1. Component-specific environment variables (e.g. `BUILDER_STORAGE` and `REGISTRY_STORAGE`)
12-
2. Access credentials stored as a Kubernetes secret named `objectstorage-keyfile`
11+
1. You must use object storage services that are compatible with S3 API
12+
2. Access credentials stored as a Kubernetes secret named `minio-creds`
1313

1414
The helm chart for Drycc Workflow can be easily configured to connect Workflow components to off-cluster object storage. Drycc Workflow currently supports Google Compute Storage, Amazon S3, [Azure Blob Storage][] and OpenStack Swift Storage.
1515

0 commit comments

Comments
 (0)