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
{{ message }}
Repository navigation
Commit a7912d2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ If you'd like to contribute a post to layer5.io/blog, please open an Issue and s
127
127
128
128
# Contributing to Layer5 Sistent
129
129
130
-
If you'd like to contribute to [Sistent](https://github.com/layer5io/sistent), a UI/UX design system, start by selecting the [project/sistent](https://github.com/layer5io/layer5/labels/project%2Fsistent)label in this repo at https://github.com/layer5io/layer5/labels/project%2Fsistent or by visiting the project repo at hhttps://github.com/layer5io/sistent.
130
+
If you'd like to contribute to [Sistent](https://github.com/layer5io/sistent), a UI/UX design system, start by selecting the [project/sistent](https://github.com/layer5io/layer5/labels/project%2Fsistent)label in this repo at https://github.com/layer5io/layer5/labels/project%2Fsistent or by visiting the project repo at https://github.com/layer5io/sistent.
131
131
132
132
### General Contribution Guidelines
133
133
@@ -527,8 +527,9 @@ Environment variables are named values used to configure how an application beha
|`BUILD_FULL_SITE`|`true`, `false`| When set to `true`, enables a full site build including all collections. If not explicitly set to `true`, the project defaults to a lightweight build. |
530
-
|`LITE_BUILD_PROFILE`|`content`, `core`| Selects which collections are excluded when `BUILD_FULL_SITE=false`. `core` is the default for `make site`, `npm start`, and `npm run dev`, while `content` keeps blog, news, events, and resources enabled. |
530
+
|`LITE_BUILD_PROFILE`|`core`, `content`, `blog`| Selects which collections are excluded when `BUILD_FULL_SITE=false`. `core` is the default for `make site`, `npm start`, and `npm run dev` and skips blog, news, events, and resources. `content` keeps blog, news, events, and resources enabled. `blog` keeps the blog and skips news, events, and resources; `make site-blog` uses it.|
531
531
|`BUILD_COLLECTIONS_EXCLUDE`| comma-separated collection names | Adds extra collections to exclude from a lightweight build without editing project files. |
532
+
|`BLOG_YEAR`| comma-separated four-digit years | Limits a lightweight build that includes the blog (`content` or `blog` profile) to posts under `src/collections/blog/<year>`, e.g. `BLOG_YEAR=2026` or `BLOG_YEAR=2025,2026`. Posts from other years are not built and return 404. `make site-blog` defaults it to the latest year. A year with no directory, or a value that is not a year, fails the build. Ignored, with a warning, for full builds and for profiles that exclude the blog. |
532
533
|`NODE_ENV`|`development`, `production`| Determines the build and rendering mode used by Gatsby. This is automatically set by Gatsby. <br><br>• `development` - Uses **Deferred Static Generation (DSG)** i.e pages built on demand for faster startup. <br>• `production` - Uses **Server-Side Rendering (SSR)** i.e pages rendered on each request for fresh content. |
533
534
|`CI`|`true`, `false`| Indicates that the build is running in a **Continuous Integration (CI)** environment (e.g., GitHub Actions). When set to `true`, special logic is applied to page paths and redirects for GitHub Pages compatibility. This is typically set automatically by the CI system and does not need to be configured manually. |
534
535
@@ -588,7 +589,7 @@ make setup
588
589
make site
589
590
```
590
591
591
-
This will run a local webserver with "live reload" conveniently enabled.
592
+
This will run a local webserver with "live reload" conveniently enabled.`make site` skips the blog, news, events, and resources collections to keep builds fast. To work on a blog post, run `make site-blog`, which builds only the latest year's blog posts; choose other years with `BLOG_YEAR=2025,2026 make site-blog`. Run `make` to list every target.
592
593
593
594
`make site` starts a **lightweight** dev server: it skips the heaviest content
594
595
collections (members, integrations, blog, news, events, resources) so that the
<ahref="">Layer5 Catalog</a> As a central hub for sharing cloud native infrastructure designs, Meshery Catalog enables the exchange of the best practices, reusable templates, and Kubernetes-based operational patterns for multi-cluster Kubernetes clusters and distributed applications. Meshery Catalog serves as a marketplace full of curated cloud native infrastructure configurations and operational patterns perfect for DevOps engineers who seek to leverage and contribute to Meshery's large collection of design patterns. [Docs](https://docs.layer5.io/cloud/catalog)
71
+
<ahref="https://cloud.layer5.io/catalog">Layer5 Catalog</a> As a central hub for sharing cloud native infrastructure designs, Meshery Catalog enables the exchange of the best practices, reusable templates, and Kubernetes-based operational patterns for multi-cluster Kubernetes clusters and distributed applications. Meshery Catalog serves as a marketplace full of curated cloud native infrastructure configurations and operational patterns perfect for DevOps engineers who seek to leverage and contribute to Meshery's large collection of design patterns. [Docs](https://docs.layer5.io/cloud/catalog)
Copy file name to clipboardExpand all lines: src/collections/blog/2022/2022-05-27-debug-envoy-proxy/index.mdx
+19-67Lines changed: 19 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,97 +52,49 @@ The default is <span className="highlight">info</span>.
52
52
<h3>Setting Envoy logs in the Helm configuration</h3>
53
53
54
54
The Consul helm chart uses <code>envoyExtraArgs:</code> to leverage Envoy command line options. One of the helpful options is <code>--component-log-level</code>. This provides granular control over setting log levels for Envoy components. In the example below, the components upstream, http, router and config are set to the debug log level. These four components are vital when debugging issues with requests between your services(sidecar proxies).
You will execute the kubectl command for each component. Make sure to append the correct component at the end of the curl command, i.e. <code>logging?component = debug</code>.
65
+
You will execute the kubectl command for each component. Make sure to append the correct component at the end of the curl command, i.e. <code>logging?<component>=debug</code>.
78
66
If curl is not able to be used in your pod, you can alternatively use <code>kubectl port-forward pod-name 19000</code> to make the Envoy admin accessible. From another terminal window, you can then curl to change the log levels. The output you receive in the terminal will show the modified component log levels.
79
-
<div>
80
-
<pre>
81
-
<code>$ curl -X POST http://localhost:19000/logging? component = debug</code>
82
-
</pre>
83
-
</div>
67
+
<Codelanguage="bash"codeString={`curl -X POST http://localhost:19000/logging?upstream=debug`} />
84
68
<h3>Access Envoy logs in Kubernetes</h3>
85
69
86
70
Accessing Envoy logs via pods can be done with the following command:
The --follow flag provides a real time observation into Envoy logs.
94
74
<h3>Setting and Accessing Envoy logs when not using Helm.</h3>
95
75
96
76
The following command will start an envoy side car proxy, set the log level to debug with -l debug and capture Envoy logs in envoy_logs.txt. The .txt file will need to be created before executing this command.
With Istio as your gateway, you should first look at <code>VirtualService</code> objects. These can show if the hosts are registered to the gateway correctly.
112
-
<div>
113
-
<pre>
114
-
<code>$ kubectl get virtualservice -o=yaml</code>
115
-
</pre>
116
-
</div>
84
+
<Codelanguage="bash"codeString={`kubectl get virtualservice -o=yaml`} />
117
85
118
86
However, sometimes, the <aclassName="highlight"href="https://envoyproxy.io">Envoy</a> inside the gateway container is not properly configured (likely due to a bug). You can dump Envoy configuration to debug this further.
119
-
<div>
120
-
<pre>
121
-
<code># find istio ingress gateway pod \
122
-
$ kubectl get pods -n istio-system -l app=istio-ingressgateway</code>
123
-
</pre>
124
-
</div>
87
+
<Codelanguage="bash"codeString={`# find istio ingress gateway pod
88
+
kubectl get pods -n istio-system -l app=istio-ingressgateway`} />
125
89
126
90
Let's use <code>istio-ingressgateway-a93019f9dfw-l39xd</code> as an example pod name.
127
-
<div>
128
-
<pre>
129
-
<code>
130
-
# enable debugging on envoy \
131
-
$ kubectl exec --namespace=istio-system \
132
-
istio-ingressgateway-a93019f9dfw-l39xd \
133
-
-c istio-proxy -- curl -X POST \
134
-
http://localhost:15000/logging?level=debug
135
-
</code>
136
-
</pre>
137
-
</div>
91
+
<Codelanguage="bash"codeString={`# enable debugging on envoy
92
+
kubectl exec --namespace=istio-system \\
93
+
istio-ingressgateway-a93019f9dfw-l39xd \\
94
+
-c istio-proxy -- curl -X POST \\
95
+
http://localhost:15000/logging?level=debug`} />
138
96
Then, use <code>istioctl</code> tool to dump route configuration (this will show the output from the <ahref="https://www.envoyproxy.io/docs/envoy/latest/operations/admin#operations-admin-interface-config-dump"><code>/config_dump</code> admin endpoint</a> on Envoy):
We hope these steps are useful to you. If you're still having trouble configuring Envoy proxy, open up a new thread on the <ahref="https://discuss.meshery.io"className="highlight">community discussion forum</a> or subscribe to the <Linkto="/subscribe"className="highlight">Layer5 newletter</Link> for tips and tricks.
0 commit comments