Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 28 additions & 5 deletions k8s-manifests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ helm install my-datadog-operator datadog/datadog-operator
2. Create a Kubernetes secret with your Datadog API and app keys:

```bash
kubectl create secret generic datadog-secret --from-literal api-key=$DD_API_KEY --from-literal app-key=$DD_APP_KEY
kubectl create secret generic datadog-secret \
--from-literal api-key=$DD_API_KEY \
--from-literal app-key=$DD_APP_KEY
```

2. Apply the Datadog Agent definition:
Expand All @@ -183,30 +185,51 @@ kubectl apply -R -f k8s-manifests/cluster-setup/

2. **Deploy the Storedog Application:**

This command creates a `storedog` namespace and deploys all application components into it.
The following command creates a `storedog` namespace.

```bash
kubectl create namespace storedog
```

3. **Create Secrets for Datadog RUM:**

The following command creates a Kubernetes secret with your Datadog RUM app id and client token keys:

> [!IMPORTANT]
> Change the namespace from `storedog` if needed.

```bash
kubectl create secret generic datadog-secret \
--from-literal=dd_application_id=${DD_APPLICATION_ID} \
--from-literal=dd_client_token=${DD_CLIENT_TOKEN} \
-n storedog
```

3. **Deploy the Storedog Application:**

The following command deploys all application components into it.

```bash
for file in k8s-manifests/storedog-app/**/*.yaml; do envsubst < "$file" | kubectl apply -n storedog -f -; done
```

3. **Apply manifest changes to one service:**
4. **Apply manifest changes to one service:**

While testing, you might change one manifest file. Rather than update all at once, you can apply the change like this.

```bash
envsubst < k8s-manifests/storedog-app/deployments/backend.yaml | kubectl apply -n storedog -f -
```

4. **To reset the all Storedog:**
5. **To reset the all Storedog:**

You only need to delete the application's namespace. The cluster components can remain installed.

```bash
kubectl delete namespace storedog
```

5. **To restart one service:**
6. **To restart one service:**

After rebuilding a container image, it's faster to restart only the service you need.

Expand Down
10 changes: 10 additions & 0 deletions k8s-manifests/storedog-app/deployments/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ spec:
configMapKeyRef:
name: storedog-config
key: NEXT_PUBLIC_SPREE_ALLOWED_IMAGE_DOMAIN
- name: NEXT_PUBLIC_DD_APPLICATION_ID
valueFrom:
secretKeyRef:
name: datadog-secret
key: dd_application_id
- name: NEXT_PUBLIC_DD_CLIENT_TOKEN
valueFrom:
secretKeyRef:
name: datadog-secret
key: dd_client_token
- name: DD_ENV
value: ${DD_ENV}
- name: DD_SERVICE
Expand Down
6 changes: 5 additions & 1 deletion services/dbm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ helm install my-datadog-operator datadog/datadog-operator
2. Create a Kubernetes secret with your Datadog API and app keys:

```bash
kubectl create secret generic datadog-secret --from-literal api-key=$DD_API_KEY --from-literal app-key=$DD_APP_KEY
kubectl create secret generic datadog-secret \
--from-literal api-key=$DD_API_KEY \
--from-literal app-key=$DD_APP_KEY \
--from-literal=dd_application_id=${DD_APPLICATION_ID} \
--from-literal=dd_client_token=${DD_CLIENT_TOKEN}
```

#### Deploy Storedog with store-dbm
Expand Down