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
The `-f` flag specifies the path to your `values.yml` file, which contains the configuration for the Helm chart. Make sure that you replace `/your-path/to/values.yml` with the correct path where your `values.yml` file is stored. Make sure that you also replace `name-of-your-choice-for-your-log-ingester` with a clear name (ex. `alloy-logs-ingester`). In our configuration, we are using `alloy-lm-ingester`.
94
-
Helm installs the `k8s-monitoring` chart, which includes the Alloy DaemonSet configured to collect logs from your Kubernetes cluster.
95
-
The DaemonSet ensures that a pod is running on each node in your cluster, which collects logs and forwards them to the specified Loki endpoint in your Cockpit.
The `-f` flag specifies the path to your `values.yml` file, which contains the configuration for the Helm chart. Make sure that you replace `/your-path/to/values.yml` with the correct path where your `values.yml` file is stored. Make sure that you also replace `name-of-your-choice-for-your-log-ingester` with a clear name (ex. `alloy-logs-ingester`). In our configuration, we are using `alloy-lm-ingester`.
94
+
Helm installs the `k8s-monitoring` chart, which includes the Alloy DaemonSet configured to collect logs from your Kubernetes cluster.
95
+
The DaemonSet ensures that a pod is running on each node in your cluster, which collects logs and forwards them to the specified Loki endpoint in your Cockpit.
96
96
97
97
3. Optionally, check the status of the release to ensure it was installed:
98
98
99
-
```
100
-
helm list
101
-
```
99
+
```
100
+
helm list
101
+
```
102
102
103
103
## Send Kubernetes logs using Helm chart with Terraform
104
104
105
105
You can also use Terraform to manage and deploy Helm charts, providing you with more automation and consistency to manage your Kubernetes resources.
106
106
107
107
1. Create a `provider.tf` file and paste the following template to set up the Helm Terraform provider:
108
-
```terraform
109
-
provider "helm" {
110
-
kubernetes {
111
-
host = your_k8s_cluster_host # The URL of your Kubernetes API server.
112
-
token = your_k8s_cluster_token # Authentication token to access the cluster.
113
-
cluster_ca_certificate = base64decode(
114
-
your_k8s_cluster_ca_certificate # The cluster's CA certificate.
115
-
)
108
+
```terraform
109
+
provider "helm" {
110
+
kubernetes {
111
+
host = your_k8s_cluster_host # The URL of your Kubernetes API server.
112
+
token = your_k8s_cluster_token # Authentication token to access the cluster.
113
+
cluster_ca_certificate = base64decode(
114
+
your_k8s_cluster_ca_certificate # The cluster's CA certificate.
115
+
)
116
+
}
116
117
}
117
-
}
118
-
```
118
+
```
119
119
2. Create a `maint.tf` file and paste the following template to create a Helm release resource. Make sure that you replace `/your-path/to/values.yml` with the actual path to your values file.
## Send Kubernetes metrics using Helm chart with Terraform
113
113
114
114
1. Create a `provider.tf` file and paste the following template to set up the Helm Terraform provider:
115
-
```terraform
116
-
provider "helm" {
117
-
kubernetes {
118
-
host = your_k8s_cluster_host # The URL of your Kubernetes API server.
119
-
token = your_k8s_cluster_token # Authentication token to access the cluster.
120
-
cluster_ca_certificate = base64decode(
121
-
your_k8s_cluster_ca_certificate # The cluster's CA certificate.
122
-
)
115
+
```terraform
116
+
provider "helm" {
117
+
kubernetes {
118
+
host = your_k8s_cluster_host # The URL of your Kubernetes API server.
119
+
token = your_k8s_cluster_token # Authentication token to access the cluster.
120
+
cluster_ca_certificate = base64decode(
121
+
your_k8s_cluster_ca_certificate # The cluster's CA certificate.
122
+
)
123
+
}
123
124
}
124
-
}
125
-
```
125
+
```
126
126
2. Create a `maint.tf` file and paste the following template to create a Helm release resource. Make sure that you replace `/your-path/to/values.yml` with the actual path to your values file.
The `-f` flag specifies the path to your `values.yml` file, which contains the configuration for the Helm chart. Make sure that you replace `/your-path/to/values.yml` with the correct path where your `values.yml` file is stored. Make sure that you also replace `name-of-your-choice-for-your-metric-ingester` with a clear name (ex. `alloy-metrics-ingester`). In our configuration, we are using `alloy-lm-ingester`.
154
-
Helm installs the `k8s-monitoring` chart, which includes the Alloy DaemonSet configured to collect metrics from your Kubernetes cluster.
155
-
The DaemonSet ensures that a pod is running on each node in your cluster, which collects metrics and forwards them to the specified Prometheus endpoint in your Cockpit.
The `-f` flag specifies the path to your `values.yml` file, which contains the configuration for the Helm chart. Make sure that you replace `/your-path/to/values.yml` with the correct path where your `values.yml` file is stored. Make sure that you also replace `name-of-your-choice-for-your-metric-ingester` with a clear name (ex. `alloy-metrics-ingester`). In our configuration, we are using `alloy-lm-ingester`.
154
+
Helm installs the `k8s-monitoring` chart, which includes the Alloy DaemonSet configured to collect metrics from your Kubernetes cluster.
155
+
The DaemonSet ensures that a pod is running on each node in your cluster, which collects metrics and forwards them to the specified Prometheus endpoint in your Cockpit.
156
156
157
157
3. Optionally, check the status of the release to ensure it was installed:
0 commit comments