You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normally we’d push our Docker image to a repository such as Docker Hub.
66
-
But for this session, we’ll use a workaround to import it to k3s directly.
62
+
通常であれば、Docker イメージを Docker Hub などのリポジトリにプッシュします。
63
+
しかし、今回のセッションでは、k3s に直接インポートする回避策を使用します。
67
64
68
65
```bash
69
66
cd /home/splunk
@@ -113,8 +110,8 @@ spec:
113
110
value: "8080"
114
111
```
115
112
116
-
> [!tip]- What is a Deployment in Kubernetes?
117
-
> The deployment.yaml file is a kubernetes config file that is used to define a deployment resource. This file is the cornerstone of managing applications in Kubernetes! The deployment config defines the deployment’s **_desired state_** and Kubernetes then ensures the **_actual_** state matches it. This allows application pods to self-heal and also allows for easy updates or roll backs to applications.
> A Service in Kubernetes is an abstraction layer, working like a middleman, giving you a fixed IP address or DNS name to access your Pods, which stays the same, even if Pods are added, removed, or replaced over time.
140
+
> [!tip]- Kubernetes における Service とは?
141
+
> Kubernetes の Service は抽象化レイヤーであり、仲介者のような役割を果たします。Pod にアクセスするための固定 IP アドレスや DNS 名を提供し、時間の経過とともに Pod が追加、削除、または交換されても同じままです。
145
142
146
143
これらのマニフェストファイルを使用してアプリケーションをデプロイできます:
147
144
@@ -220,7 +217,7 @@ env:
220
217
value: "deployment.environment=otel-$INSTANCE"
221
218
```
222
219
223
-
The complete `deployment.yaml` file should be as follows (with **your** instance name rather than `$INSTANCE`):
@@ -288,16 +285,16 @@ After a minute or so, you should see traces flowing in the o11y cloud. But, if y
288
285
<details>
289
286
<summary><b>答えを見るにはここをクリック</b></summary>
290
287
291
-
If you recall in our challenge from Section 4, _Instrument a .NET Application with OpenTelemetry_, we showed you a trick to write traces to the console using the `OTEL_TRACES_EXPORTER` environment variable. We can add this variable to our deployment.yaml, redeploy our application, and tail the logs from our helloworld app so that we can grab the trace id to then find the trace in Splunk Observability Cloud. (In the next section of our workshop, we will also walk through using the debug exporter, which is how you would typically debug your application in a K8s environment.)
@@ -397,6 +394,6 @@ Resource associated with Activity:
397
394
{{% /tab %}}
398
395
{{< /tabs >}}
399
396
400
-
Then, in your other terminal window, generate a trace with your curl command. You will see the trace id in the console in which you are tailing the logs. Copy the `Activity.TraceId:` value and paste it into the Trace search field in APM.
0 commit comments