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?
On October 27, the RTE 2022 Real-time Internet Co...
Today I am going to introduce the open source API...
The Internet of Things has the characteristics of...
As we all know, Huawei's 5G technology is the...
In the modern Internet era, the highest productiv...
CloudCone has updated its 2023 promotional progra...
[51CTO.com original article] The socialization, i...
iONcloud is a cloud hosting platform opened by Kr...
In the public opinion field, operators are critic...
In recent years, the industrial Internet has grow...
VMISS is a foreign hosting service provider estab...
The emergence and innovation of enterprise-specif...
spinservers has just released this month's pr...
Recently, according to the forecast of Gartner, a...