Skip to content

fixing code sample substition #1551

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

Merged
merged 2 commits into from
May 30, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The examples in this section are purely descriptive and should not be considered

## Metricbeat for Kubernetes monitoring [k8s_metricbeat_for_kubernetes_monitoring]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/beats/metricbeat_hosts.yaml
```

Expand All @@ -31,7 +31,7 @@ Deploys Metricbeat as a DaemonSet that monitors the usage of the following resou

## Filebeat with autodiscover [k8s_filebeat_with_autodiscover]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/beats/filebeat_autodiscover.yaml
```

Expand All @@ -40,7 +40,7 @@ Deploys Filebeat as a DaemonSet with the autodiscover feature enabled. It collec

## Filebeat with autodiscover for metadata [k8s_filebeat_with_autodiscover_for_metadata]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/beats/filebeat_autodiscover_by_metadata.yaml
```

Expand All @@ -52,7 +52,7 @@ Deploys Filebeat as a DaemonSet with the autodiscover feature enabled. Logs from

## Filebeat without autodiscover [k8s_filebeat_without_autodiscover]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/beats/filebeat_no_autodiscover.yaml
```

Expand All @@ -61,7 +61,7 @@ Deploys Filebeat as a DaemonSet with the autodiscover feature disabled. Uses the

## {{es}} and {{kib}} Stack Monitoring [k8s_elasticsearch_and_kibana_stack_monitoring]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/beats/stack_monitoring.yaml
```

Expand All @@ -75,7 +75,7 @@ In this example, TLS verification is disabled when Metricbeat communicates with

## Heartbeat monitoring {{es}} and {{kib}} health [k8s_heartbeat_monitoring_elasticsearch_and_kibana_health]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/beats/heartbeat_es_kb_health.yaml
```

Expand All @@ -84,7 +84,7 @@ Deploys Heartbeat as a single Pod deployment that monitors the health of {{es}}

## Auditbeat [k8s_auditbeat]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/beats/auditbeat_hosts.yaml
```

Expand All @@ -93,7 +93,7 @@ Deploys Auditbeat as a DaemonSet that checks file integrity and audits file oper

## Packetbeat monitoring DNS and HTTP traffic [k8s_packetbeat_monitoring_dns_and_http_traffic]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/beats/packetbeat_dns_http.yaml
```

Expand All @@ -102,7 +102,7 @@ Deploys Packetbeat as a DaemonSet that monitors DNS on port `53` and HTTP(S) tra

## OpenShift monitoring [k8s_openshift_monitoring]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/beats/openshift_monitoring.yaml
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The examples in this section are for illustration purposes only and should not b

## System and {{k8s}} {{integrations}} [k8s_system_and_k8s_integrations]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/elastic-agent/fleet-kubernetes-integration.yaml
```

Expand All @@ -28,7 +28,7 @@ Deploys {{agent}} as a DaemonSet in {{fleet}} mode with System and {{k8s}} {{int

## System and {{k8s}} {{integrations}} running as non-root [k8s_system_and_k8s_integrations_running_as_non_root]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/elastic-agent/fleet-kubernetes-integration-nonroot.yaml
```

Expand All @@ -42,7 +42,7 @@ The DaemonSet itself must run as root to set up permissions and ECK >= 2.10.0 is

## Custom logs integration with autodiscover [k8s_custom_logs_integration_with_autodiscover]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/elastic-agent/fleet-custom-logs-integration.yaml
```

Expand All @@ -51,7 +51,7 @@ Deploys {{agent}} as a DaemonSet in {{fleet}} mode with Custom Logs integration

## APM integration [k8s_apm_integration]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/elastic-agent/fleet-apm-integration.yaml
```

Expand All @@ -60,7 +60,7 @@ Deploys single instance {{agent}} Deployment in {{fleet}} mode with APM integrat

## Synthetic monitoring [k8s_synthetic_monitoring]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/elastic-agent/synthetic-monitoring.yaml
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The examples in this section are for illustration purposes only. They should not

## Single pipeline defined in CRD [k8s-logstash-configuration-single-pipeline-crd]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/logstash/logstash-eck.yaml
```

Expand All @@ -28,7 +28,7 @@ Deploys Logstash with a single pipeline defined in the CRD

## Single Pipeline defined in Secret [k8s-logstash-configuration-single-pipeline-secret]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/logstash/logstash-pipeline-as-secret.yaml
```

Expand All @@ -37,7 +37,7 @@ Deploys Logstash with a single pipeline defined in a secret, referenced by a `pi

## Pipeline configuration in mounted volume [k8s-logstash-configuration-pipeline-volume]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/logstash/logstash-pipeline-as-volume.yaml
```

Expand All @@ -46,7 +46,7 @@ Deploys Logstash with a single pipeline defined in a secret, mounted as a volume

## Writing to a custom {{es}} index [k8s-logstash-configuration-custom-index]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/logstash/logstash-es-role.yaml
```

Expand All @@ -55,7 +55,7 @@ Deploys Logstash and {{es}}, and creates an updated version of the `eck_logstash

## Creating persistent volumes for PQ and DLQ [k8s-logstash-configuration-pq-dlq]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/logstash/logstash-volumes.yaml
```

Expand All @@ -67,7 +67,7 @@ Deploys Logstash, Beats and {{es}}. Logstash is configured with two pipelines:

## {{es}} and {{kib}} Stack Monitoring [k8s-logstash-configuration-stack-monitoring]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/logstash/logstash-monitored.yaml
```

Expand All @@ -76,7 +76,7 @@ Deploys an {{es}} and {{kib}} monitoring cluster, and a Logstash that will send

## Multiple pipelines/multiple {{es}} clusters [k8s-logstash-configuration-multiple-pipelines]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/logstash/logstash-multi.yaml
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The examples in this section are for illustration purposes only and should not b

## System integration [k8s_system_integration]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/elastic-agent/system-integration.yaml
```

Expand All @@ -28,7 +28,7 @@ Deploys Elastic Agent as a DaemonSet in standalone mode with system integration

## Kubernetes integration [k8s_kubernetes_integration]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/elastic-agent/kubernetes-integration.yaml
```

Expand All @@ -37,7 +37,7 @@ Deploys Elastic Agent as a DaemonSet in standalone mode with Kubernetes integrat

## Multiple {{es}} clusters output [k8s_multiple_elasticsearch_clusters_output]

```sh
```sh subs=true
kubectl apply -f https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/config/recipes/elastic-agent/multi-output.yaml
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can find example Helm values files for deploying and managing more advanced

To use one or more of these example configurations, use the `--values` Helm option, as seen in the following section.

```sh
```sh subs=true
# Install an eck-managed Elasticsearch and Kibana using the Elasticsearch node roles example with hot, warm, and cold data tiers, and the Kibana example customizing the http service.
helm install es-quickstart elastic/eck-stack -n elastic-stack --create-namespace \
--values https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/deploy/eck-stack/examples/elasticsearch/hot-warm-cold.yaml \
Expand All @@ -56,7 +56,7 @@ helm install es-quickstart elastic/eck-stack -n elastic-stack --create-namespace

The following section builds upon the previous section, and allows installing Fleet Server, and Fleet-managed Elastic Agents along with {{es}} and {{kib}}.

```sh
```sh subs=true
# Install an eck-managed Elasticsearch, Kibana, Fleet Server, and managed Elastic Agents using custom values.
helm install eck-stack-with-fleet elastic/eck-stack \
--values https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/deploy/eck-stack/examples/agent/fleet-agents.yaml -n elastic-stack
Expand All @@ -66,7 +66,7 @@ helm install eck-stack-with-fleet elastic/eck-stack \

The following section builds upon the previous sections, and allows installing Logstash along with {{es}}, {{kib}} and Beats.

```sh
```sh subs=true
# Install an eck-managed Elasticsearch, Kibana, Beats and Logstash using custom values.
helm install eck-stack-with-logstash elastic/eck-stack \
--values https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/deploy/eck-stack/examples/logstash/basic-eck.yaml -n elastic-stack
Expand All @@ -76,7 +76,7 @@ helm install eck-stack-with-logstash elastic/eck-stack \

The following section builds upon the previous sections, and allows installing a standalone Elastic APM Server along with {{es}} and {{kib}}.

```sh
```sh subs=true
# Install an eck-managed Elasticsearch, Kibana, and standalone APM Server using custom values.
helm install eck-stack-with-apm-server elastic/eck-stack \
--values https://raw.githubusercontent.com/elastic/cloud-on-k8s/{{eck_release_branch}}/deploy/eck-stack/examples/apm-server/basic.yaml -n elastic-stack
Expand Down
Loading