From 01a53b4ead69efe84f129047f2b072cfccdb82db Mon Sep 17 00:00:00 2001 From: Khurram Baig Date: Thu, 24 Aug 2023 10:40:50 +0530 Subject: [PATCH] Add docs for storing logs in GCS --- operator/install-result.adoc | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/operator/install-result.adoc b/operator/install-result.adoc index 4561ec2..5a393e5 100644 --- a/operator/install-result.adoc +++ b/operator/install-result.adoc @@ -39,7 +39,9 @@ openssl req -x509 \ oc create secret tls -n ${NAMESPACE} tekton-results-tls --cert=cert.pem --key=key.pem ---- -4. Optional: Create a Persistent Volume Claim (PVC) if you need to store your logging data. +4. Optional: Prepare storage for storing logs + +a. PVC: Create a Persistent Volume Claim (PVC) if you need to store your logging data in PVC. + [source,bash] ---- @@ -59,6 +61,26 @@ EOF oc apply -n ${NAMESPACE} -f pvc.yaml ---- +b. Google Cloud Storage (GCS): Set GCS properties and secret ++ +[source,bash] +---- +We need to create a secret with google application creds for a bucket (let's say with a name foo-bar) like below: + +``` +kubectl create secret generic gcs-credentials --from-file=creds.json +``` +---- + +Now this will be used in the `TektonResult` CR described in point 5 with following properties: ++ +[source,bash] +---- +gcs_creds_secret_name: gcs-credentials +gcc_creds_secret_key: creds.json +gcs_bucket_name: foo-bar +---- + 5. Edit the `TektonResult` CR based on your needs + [source,yaml]