The Linkerd 2.10 Chinese manual is being continuously revised and updated: https://linkerd.hacker-linner.com Kustomize can be used to patch the output of linkerd install in a consistent way, rather than forking the Linkerd installation and upgrade process. This allows installations to be customized to add installation-specific features. First, save the output of install into a YAML file. This will be the base resource that Kustomize will use to patch and generate content that is added to the cluster.
When upgrading, make sure to populate this file with the contents from linkerd upgrade . With the latest kustomize versions, this can be done automatically using the exec plugin. Next, create a kustomization.yaml file. This file will contain the instructions for Kustomize, listing the base resources and the transformations performed on those resources. Right now, this looks pretty empty:
Now, let's see how to do some example customizations. Kustomize allows any number of patches, transforms, and generators. These examples show one modification at a time, but you can make as many modifications as you want in a single kustomization.yaml file. Adding Priority ClassThere are several components in the control plane that can benefit from being associated with a critical PriorityClass. While this configuration is not currently supported as a flag to linkerd install, it is not difficult to add using Kustomize. First, create a file called priority-class.yaml, which will create a PriorityClass resource.
1000000000 is the maximum value. User defined priorities are allowed, adjust accordingly. Next, create a file called patch-priority-class.yaml which will contain the override. This override will explain what needs to be modified.
Then, add this as a strategy merge option to kustomization.yaml:
Applying this to your cluster requires taking the output of kustomize build and piping it to kubectl apply. For example, you could run:
Modify Grafana configurationInterested in enabling authentication for Grafana? You can do this with a one-time modification to the ConfigMap. Unfortunately, these changes will eventually be reverted every time a linkerd upgrade occurs. Instead, create a file called grafana.yaml and add your modifications:
Then, add this as a strategy merge option to kustomization.yaml:
Finally, apply it to your cluster by generating the YAML using kustomize build and piping the output to kubectl apply .
【Editor's recommendation】
|
>>: Why are operators competing to launch new 4G packages as 5G is the mainstream?
A content delivery network (CDN) is a set of serv...
[51CTO.com original article] In 2017, what will y...
In recent years, wireless charging has been widel...
On September 27, the 2021 China International Inf...
On October 28, Huawei Intelligent Manufacturing N...
[Original article from 51CTO.com] In the blink of...
No matter you unplug the SIM card or turn off the...
In the process of daily project operation and mai...
The whole country celebrates together, and China ...
[[339455]] The latest insights from the Economist...
[[394583]] News on April 20: At the end of last y...
We have received the official announcement from D...
It's been a while since I shared information ...
SD-WAN technology helps make wide area networks m...
It has become an industry consensus that 5G will ...