Skip to content

Commit 0ef32ea

Browse files
1. Removed secretes , env variables from 3b_prometheus-test_deployment.yaml.
2. Added a section for secretes in kind.md file Signed-off-by: Kushal Shukla <[email protected]>
1 parent 540fc28 commit 0ef32ea

File tree

3 files changed

+22
-39
lines changed

3 files changed

+22
-39
lines changed

prombench/docs/kind.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,20 @@ If used with the GitHub integration:
114114
export PR_NUMBER=<PR to benchmark against the selected $RELEASE>
115115
```
116116

117-
2. Deploy the Kubernetes objects:
117+
2. Before applying benchmarking objects , You have to choices to make:
118+
- **Option 1: Download data from object storage**
119+
120+
To download data from object storage, create a Kubernetes secret with exact named `bucket-config` and file name ```object-config.yml``` with the necessary credentials as per your object storage. This secret enables access to the stored data.
121+
> Note: Make sure this secret applied before ```3b_prometheus-test_deployment.yaml```
122+
- **Option 2: Skip downloading data**
123+
124+
If you don’t need to download data, edit the `3b_prometheus-test_deployment.yaml` file:
125+
126+
- Remove the `bucket-config` volume section from.
127+
- Remove the `volumeMount` section name `bucket-config` from `data-downloader`.
128+
> Note: You have to remove these two sections from both prometheus-test-pr-{{ .PR_NUMBER }} and prometheus-test-{{ normalise .RELEASE }} deployments.
129+
130+
3. Deploy the Kubernetes objects:
118131
> **_Note:_** If you encounter a `too many files open` error caused by promtail, increase the default value of `/proc/sys/fs/inotify/max_user_instances` from 128 to 512:
119132
> ```bash
120133
> sudo sysctl fs.inotify.max_user_instances=512

prombench/manifests/prombench/benchmark/2a_prometheus-secret.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

prombench/manifests/prombench/benchmark/3b_prometheus-test_deployment.yaml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,11 @@ spec:
5252
mountPath: /config
5353
- name: data-downloader
5454
image: kushalshukla/writer
55-
imagePullPolicy: Always
56-
env:
57-
- name: ACCESS_KEY
58-
value: "{{ .ACCESS_KEY }}"
59-
- name: SECRET_KEY
60-
value: "{{ .SECRET_KEY }}"
61-
- name: BUCKET_KEY
62-
value: "{{ .BUCKET_KEY }}"
55+
imagePullPolicy: Always
6356
volumeMounts:
6457
- name: instance-ssd
6558
mountPath: /data
66-
- name: s3-config
59+
- name: bucket-config
6760
mountPath: /config
6861
- name: key
6962
mountPath: /key
@@ -107,9 +100,9 @@ spec:
107100
path: /mnt/disks/ssd0 #gke ssds
108101
- name: prometheus-executable
109102
emptyDir: {}
110-
- name: s3-config # Define the Secret volume
103+
- name: bucket-config # Define the Secret volume
111104
secret:
112-
secretName: s3-secret
105+
secretName: bucket-secret
113106
- name: key
114107
emptyDir: {}
115108
terminationGracePeriodSeconds: 300
@@ -185,18 +178,11 @@ spec:
185178
mountPath: /config
186179
- name: data-downloader
187180
image: kushalshukla/writer
188-
imagePullPolicy: Always
189-
env:
190-
- name: ACCESS_KEY
191-
value: "{{ .ACCESS_KEY }}"
192-
- name: SECRET_KEY
193-
value: "{{ .SECRET_KEY }}"
194-
- name: BUCKET_KEY
195-
value: "{{ .BUCKET_KEY }}"
181+
imagePullPolicy: Always
196182
volumeMounts:
197183
- name: instance-ssd
198184
mountPath: /data
199-
- name: s3-config
185+
- name: bucket-config
200186
mountPath: /config
201187
- name: key
202188
mountPath: /key
@@ -231,9 +217,9 @@ spec:
231217
- name: config
232218
hostPath:
233219
path: /object-config
234-
- name: s3-config # Define the Secret volume
220+
- name: bucket-config # Define the Secret volume
235221
secret:
236-
secretName: s3-secret
222+
secretName: bucket-secret
237223
- name: key
238224
emptyDir: {}
239225
terminationGracePeriodSeconds: 300

0 commit comments

Comments
 (0)