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
42 changes: 30 additions & 12 deletions k8s-manifests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ kubectl create secret generic datadog-secret \
--from-literal app-key=$DD_APP_KEY
```

2. Apply the Datadog Agent definition:
3. Apply the Datadog Agent definition:

```bash
kubectl apply -f k8s-manifests/datadog/datadog-agent.yaml
Expand Down Expand Up @@ -205,39 +205,57 @@ kubectl create secret generic datadog-secret \
-n storedog
```

3. **Deploy the Storedog Application:**
4. **Deploy the Storedog Application:**

This 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
```

4. **Apply manifest changes to one service:**
- **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.
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 -
```

5. **Deploy Puppeteer:**

The following command creates a `fake-traffic` namespace.

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

5. **To reset the all Storedog:**
6. **Deploy Puppeteer:**

You only need to delete the application's namespace. The cluster components can remain installed.
> [!IMPORTANT]
> If you're using a namespace other than `storedog`, you must edit the `STOREDOG_URL` in `puppeteer.yaml`.

The following command sets variables and deploys Puppeteer.

```bash
kubectl delete namespace storedog
envsubst < k8s-manifests/fake-traffic/puppeteer.yaml | kubectl apply -f -
```

6. **To restart one service:**
## Troubleshooting

- Reset the all Storedog:

After rebuilding a container image, it's faster to restart only the service you need.
> [!NOTE]
> You only need to delete the application's namespace. The cluster components can remain installed.

```bash
kubectl rollout restart deployment backend -n storedog
kubectl delete namespace storedog
```

## Troubleshooting
- Restart one service:

```bash
kubectl rollout restart deployment -n storedog ads
```

- Check pod status in the namespace:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: puppeteer
namespace: fake-traffic
spec:
replicas: 1
selector:
Expand All @@ -17,7 +18,8 @@ spec:
image: ${REGISTRY_URL}/puppeteer:${SD_TAG}
env:
- name: STOREDOG_URL
value: "http://service-proxy"
# Change namespace as needed
value: "http://service-proxy.storedog.svc.cluster.local"
- name: PUPPETEER_TIMEOUT
value: "30000"
- name: SKIP_SESSION_CLOSE
Expand Down