dashanji commented on PR #66: URL: https://github.com/apache/skywalking-swck/pull/66#issuecomment-1207975094
For example, if we want to create/mount a configuration file in the agent for [optional plugin](https://skywalking.apache.org/docs/skywalking-java/latest/en/setup/service-agent/java-agent/customize-enhance-trace/#how-to-configure), we can use the following yaml. ```yaml apiVersion: operator.skywalking.apache.org/v1alpha1 kind: SwAgent metadata: name: swagent-001 namespace: skywalking-system spec: containerMatcher: '' selector: javaSidecar: name: swagent-001 image: ghcr.io/apache/skywalking-java/skywalking-java:f8deb7c30b931aae83ac1f438ce72b3f74414ae5-java8 env: - name: "SW_LOGGING_LEVEL" value: "DEBUG" - name: "SW_AGENT_COLLECTOR_BACKEND_SERVICES" value: "skywalking-system-oap:11800" sharedVolume: - name: "sky-agent-test-001" mountPath: "/sky/agent" - name: "optional-volume" mountPath: "/absolute/path/to" swConfigMapVolume: - name: "java-agent-configmap-test-001-volume" configMapName: "skywalking-swck-java-agent-configmap" configMapMountPath: "/sky/agent/config" # the file will should be mounted to the agent - name: "apm-customize-enhance-plugin" configMapName: "customize-enhance-config" configMapMountPath: "/absolute/path/to/customize_enhance.xml" optionalPlugins: - "webflux" - "cloud-gateway-2.1.x" ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
