# S3 Credentials for Qtap using Kubernetes Secrets

This guide explains how to configure the S3 access and secret key environment variables for Qtap using Kubernetes secrets.

### Environment Variables

* `S3_ACCESS_KEY`: Access key for S3 authentication
* `S3_SECRET_KEY`: Secret key for S3 authentication

### Setup Steps

1. Create a Kubernetes secret with your S3 credentials:

```bash
kubectl create secret generic s3-credentials \
  --from-literal=access-key='YOUR_S3_ACCESS_KEY' \
  --from-literal=secret-key='YOUR_S3_SECRET_KEY' \
  -n qpoint
```

2. Configure the environment variables in your Helm values:

```yaml
extraEnv:
  - name: S3_ACCESS_KEY
    valueFrom:
      secretKeyRef:
        name: s3-credentials
        key: access-key
  - name: S3_SECRET_KEY
    valueFrom:
      secretKeyRef:
        name: s3-credentials
        key: secret-key
```

3. Apply the configuration when installing or upgrading Qtap:

```bash
helm upgrade --install qpoint-tap qpoint/qpoint-tap \
  -n qpoint \
  -f values.yaml
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.qpoint.io/appendix/s3-credentials-for-qtap-using-kubernetes-secrets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
