Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/770 add kic check #8

Merged
merged 28 commits into from
Apr 5, 2023
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d554f60
Updated Main Section and Setup for res-edge labs
renato-marciano Apr 4, 2023
01077d6
Updated PAT instructions
renato-marciano Apr 4, 2023
1a48e8c
Added WebV download instructions.
renato-marciano Apr 4, 2023
a2e6da9
added # to link per PR feedback
renato-marciano Apr 5, 2023
99a608b
Removed instructions for webv download
renato-marciano Apr 5, 2023
12431c1
Remove link to P100k
renato-marciano Apr 5, 2023
ae46ee0
updated app file permission to execute
renato-marciano Apr 5, 2023
ff640ee
Add consistency for lab
renato-marciano Apr 5, 2023
4c9efe4
added
renato-marciano Apr 5, 2023
31affc8
add check for webv
chaosdinosaur Apr 5, 2023
5a1d56b
add prometheus check command
chaosdinosaur Apr 5, 2023
87dff5a
update prometheus check command
chaosdinosaur Apr 5, 2023
d783b21
added
renato-marciano Apr 5, 2023
3283244
added
chaosdinosaur Apr 5, 2023
f868454
Merge branch 'feature/770-add-kic-check' of https://github.com/cse-la…
chaosdinosaur Apr 5, 2023
433e0c8
add grafana check command
chaosdinosaur Apr 5, 2023
40d8a73
add mssql check command
chaosdinosaur Apr 5, 2023
59ba4b6
update readme
chaosdinosaur Apr 5, 2023
a0acd6b
remove test apps
chaosdinosaur Apr 5, 2023
5337c3a
replaced grafana and prometheus with default
renato-marciano Apr 5, 2023
9777bc9
updated sql check command
renato-marciano Apr 5, 2023
79c3a02
Added Fluentbit check command
renato-marciano Apr 5, 2023
3bbf4b6
Merge branch 'main' into feature/770-add-kic-check
renato-marciano Apr 5, 2023
043c36c
fix merge issue
renato-marciano Apr 5, 2023
ee3f673
fix merge issue
renato-marciano Apr 5, 2023
10c3480
updated sql command to remove go
renato-marciano Apr 5, 2023
01438e8
updated comment
renato-marciano Apr 5, 2023
7bb1aa7
Merge branch 'main' into feature/770-add-kic-check
renato-marciano Apr 5, 2023
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
Prev Previous commit
Next Next commit
Add consistency for lab
  • Loading branch information
renato-marciano committed Apr 5, 2023
commit ff640ee6222643d3f9680c7d070ba62229df54eb
68 changes: 47 additions & 21 deletions labs/beta-labs/deploy-res-edge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,26 @@ This lab also builds on top of inner-loop lab. If you have not already done so,

## Create cluster with access to private cse-labs registry

> The k3d cluster will run `in` your Codespace - no need for an external cluster

- Use `kic` to create and verify a new k3d cluster

```bash

# this will delete existing cluster
# delete and create a new cluster
# ignore no-cluster error message
kic cluster create

# wait for pods to start
kic pods
# wait for pods to get to Running
# Ctrl+C to exit
kic pods --watch

```

## Deploy SQL

- Now that we've created a new cluster, the next step is to deploy sql server database. Res-Edge data service requires a sql server database for start up. This database serves as an inventory storage for management of hierarchal groups, clusters, namespaces, and applications.

```bash

# create the namespace
Expand All @@ -33,8 +40,9 @@ kaf ns.yaml
# deploy sql server with sample data
k apply -k mssql

# verify sql started
kic pods
# "watch" for the mssql pod to get to Running
# ctl-c to exit
kic pods --watch

# wait 30 seconds after the container is running for the data to load
sql -Q "select id,name from clusters;"
Expand All @@ -48,24 +56,29 @@ sql -Q "select id,name from clusters;"
# deploy the data service
k apply -k api

kic pods
# "watch" for the api pod to get to Running
# ctl-c to exit
kic pods --watch

```
# check api version to verify data service is running
kic check resedge

## Test the data service
```

```bash
## Load Test the data service

# curl the version endpoint
http localhost:32080/version
- Run a 5 second load test
- Default `--duration` is 30 sec

```bash
# run tests
kic test integration
kic test load --verbose --duration 5

# you can also run the integration.json file mounted in res-edge-webv image one time
kic test integration
```

## Deploy WebV
## Deploy WebV to Cluster

>Note: `<tab>` below means press the tab key for completion

Expand All @@ -74,7 +87,9 @@ kic test load --verbose --duration 5
# deploy webv
k apply -k webv

kic pods
# "watch" for the webv pod to get to Running
# ctl-c to exit
kic pods --watch

# check the logs
# todo - should we use K9s for this?
Expand All @@ -85,21 +100,32 @@ k logs -n api api<tab>

## Deploy Observability

- Deploy the following observability stack in your cluster
- Fluent Bit, Prometheus, Grafana

```bash

# deploy observability
k apply -k monitoring

kic pods
# "watch" for the prometheus, fluentbit, grafana pod to get to Running
# ctl-c to exit
kic pods --watch
```

# generate some dashboard metrics
## Generate Requests for Observability

- Generate some traffic for the dashboards

```bash

# copy and paste this fence into your terminal

# run a load test in the background
kic test load &
kic test integration
kic test integration
kic test integration
kic test integration
kic test integration

# run several integration tests
for i in {1..5}; kic test integration;
```

## Validate Observability
Expand Down