Skip to content

Commit 4f7ab68

Browse files
authored
Merge pull request #148 from splunk/kp-tko-session-2
Kp tko session 2
2 parents cc32016 + ee8f3ea commit 4f7ab68

File tree

8 files changed

+18
-10
lines changed

8 files changed

+18
-10
lines changed

content/en/tko/session-2/docs/code_to_python.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,18 @@ curl localhost:5000/get_review
108108

109109
To create a container image, you need to create a Dockerfile, run docker build to build the image referencing the Docker file and push it up to a remote repository so it can be pulled by other sources.
110110

111-
- Create a Dockerfile
111+
- [Create a Dockerfile](https://docs.docker.com/get-started/02_our_app/)
112112
- Creating a Dockerfile typically requires you to consider the following:
113113
- Identify an appropriate container image
114114
- ubuntu vs. python vs. alpine/slim
115115
- ubuntu - overkill, large image size, wasted resources when running in K8
116116
- this is a python app, so pick an image that is optimized for it
117-
- avoid alpine for python
117+
- [avoid alpine for python](https://lih-verma.medium.com/alpine-makes-python-docker-builds-way-too-50-slower-and-images-double-2-larger-61d1d43cbc79)
118118
- Order matters
119119
- you're building layers.
120120
- re-use the layers as much as possible
121121
- have items that change often towards the end
122-
- Other Best practices for writing Dockerfiles
122+
- [Other Best practices for writing Dockerfiles](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/)
123123

124124
Dockerfile for review
125125

@@ -172,7 +172,8 @@ curl -s http://localhost:8000/v2/_catalog
172172
## 3. Run REVIEW in Kubernetes
173173

174174
Create K8 deployment yaml file for the REVIEW app
175-
Reference: Creating a Deployment
175+
176+
Reference: [Creating a Deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#creating-a-deployment)
176177

177178
review.deployment.yaml
178179

@@ -217,7 +218,9 @@ Notes regarding review.deployment.yaml:
217218
- regcred provides this deployment with the ability to access your dockerhub credentials which is necessary to pull the container image.
218219
- The volume definition and volumemount make the yelp dataset visible to the container
219220
220-
Create a K8 service yaml file for the review app. Reference: Creating a service:
221+
Create a K8 service yaml file for the review app.
222+
223+
Reference: [Creating a service:](https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service)
221224
222225
review.service.yaml
223226

content/en/tko/session-2/docs/deploy.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A prospect uses Kafka and MongoDB in their environment. Since there are integrat
1717
- Google “myservice helm chart”
1818
- `https://artifacthub.io/` (**Note:** Look for charts from trusted organizations, with high star count and frequent updates)
1919

20-
### 2. Review Apache Kafka packaged by Bitnami
20+
### 2. Review [Apache Kafka packaged by Bitnami](https://github.com/bitnami/charts/tree/main/bitnami/kafka/#installing-the-chart)
2121

2222
We will deploy the helm chart with these options enabled:
2323

@@ -26,7 +26,7 @@ We will deploy the helm chart with these options enabled:
2626
- `metrics.kafka.enabled=true`
2727
- `deleteTopicEnable=true`
2828

29-
### 3. Review MongoDB(R) packaged by Bitnami
29+
### 3. Review [MongoDB(R) packaged by Bitnami](https://github.com/bitnami/charts/tree/master/bitnami/mongodb/#installing-the-chart)
3030

3131
We will deploy the helm chart with these options enabled:
3232

@@ -72,9 +72,9 @@ Use information for each Helm chart and Splunk O11y Data Setup to generate value
7272
{{% /alert %}}
7373

7474
- References:
75-
- Apache Kafka packaged by Bitnami
76-
- Configure application receivers for databases » Apache Kafka
77-
- Kafkametricsreceiver
75+
- [Apache Kafka packaged by Bitnami](https://github.com/bitnami/charts/tree/master/bitnami/spark/#installing-the-chart)
76+
- [Configure application receivers for databases » Apache Kafka](https://docs.splunk.com/Observability/gdi/kafka/kafka.html)
77+
- [Kafkametricsreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/kafkametricsreceiver)
7878

7979
#### 4.1 Example kafka.values.yaml
8080

@@ -188,9 +188,13 @@ splunk-otel-collector-1638910184-k8s-cluster-receiver-8587qmh9l 1/1 Runnin
188188
Verify that out of the box dashboards for Kafka, MongoDB and Zookeeper are populated in the Infrastructure Monitor landing page. Drill down into each component to view granular details for each service.
189189

190190
- Infrastructure Monitoring Landing page:
191+
![IM-landing-page](../images/imlp.png)
191192

192193
- K8 Navigator:
194+
![k8-navigator](../images/k8nav.png)
193195

194196
- MongoDB Dashboard:
197+
![mongodb-dash](../images/mongodash.png)
195198

196199
- Kafka Dashboard:
200+
![kafka-dash](../images/kafkadash.png)
13.2 KB
Loading
15.2 KB
Loading
19.6 KB
Loading
17 KB
Loading
17.6 KB
Loading

content/en/tko/session-2/docs/instrument.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Provide the following to the Configure Integration Wizard:
2020
- Kubernetes: yes
2121
- Legacy Agent: no
2222

23+
[o11y_cloud_ui](../images/configureintegration.png)
2324
We are instructed to:
2425

2526
- Install the instrumentation packages for your Python environment.

0 commit comments

Comments
 (0)