@@ -3,38 +3,49 @@ kind: LightrunJavaAgent
33metadata :
44 name : example-cr
55spec :
6+ # ##############################################################################################
7+ # Fields that you need to change if you want to try operator with your own deployment
8+ # ##############################################################################################
9+ # Name of the deployment that you are going to patch.
10+ # Has to be in the same namespace
11+ deploymentName : sample-deployment
12+ # List of container names inside the pod of the deployment
13+ # If container not mentioned here it will be not patched
14+ containerSelector :
15+ - app
16+ # Agent config will override default configuration with provided values
17+ # You can find list of available options here https://docs.lightrun.com/jvm/agent-configuration/
18+ agentEnvVarName : JAVA_TOOL_OPTIONS
19+ # Name of the secret where agent will take `lightrun_key` and `pinned_cert_hash` from
20+ # Has to be in the same namespace
21+ secretName : lightrun-secrets
22+
23+
24+ # ##############################################################################################
25+ # Fields that are mostly fine with default values for most deployments
26+ # ##############################################################################################
627 # Init container with agent. Differes by agent version and platform that it will be used for. For now supported platforms are `linux` and `alpine`
728 initContainer :
829 # parts that may vary here are
930 # platform - `linux/alpine`
1031 # agent version - first part of the tag (1.7.0)
1132 # init container sub-version - last part of the tag (init.0)
12- image : " lightruncom/k8s-operator-init-java-agent-linux:1.8.3 -init.0 "
33+ image : " lightruncom/k8s-operator-init-java-agent-linux:1.8.5 -init.1 "
1334 # Volume name in case you have some convention in the names
1435 sharedVolumeName : lightrun-agent-init
1536 # Mount path where volume will be parked. Various distributions may have it's limitations.
1637 # For example you can't mount volumes to any path except `/tmp` when using AWS Fargate
1738 sharedVolumeMountPath : " /lightrun"
18- # Name of the deployment that you are going to patch.
19- # Has to be in the same namespace
20- deploymentName : app
21- # Name of the secret where agent will take `lightrun_key` and `pinned_cert_hash` from
22- # Has to be in the same namespace
23- secretName : lightrun-secrets
2439 # Hostname of the server. Will be different for on-prem ans single-tenant installations
25- # For saas it will be app.lightrun.com
26- serverHostname : <lightrun_server>
40+ # For saas it is app.lightrun.com
41+ serverHostname : app.lightrun.com
2742 # Env var that will be patched with agent path.
2843 # If your application not using any, recommended option is to use "JAVA_TOOL_OPTIONS"
2944 # Also may be "_JAVA_OPTIONS", "JAVA_OPTS"
3045 # There are also different variations if using Maven - "MAVEN_OPTS", and so on
3146 # You can find more info here: https://docs.lightrun.com/jvm/agent/
32- agentEnvVarName : JAVA_TOOL_OPTIONS
33- # Agent config will override default configuration with provided values
34- # You can find list of available options here https://docs.lightrun.com/jvm/agent-configuration/
3547 agentConfig :
3648 max_log_cpu_cost : " 2"
37-
3849 # agentCliFlags is used if need to pass additional flags to the agent,
3950 # that are not part of configuration file.
4051 # https://docs.lightrun.com/jvm/agent-configuration/#additional-command-line-flags
@@ -45,13 +56,10 @@ spec:
4556 agentTags :
4657 - operator
4758 - example
48- - 1.8.3
59+ - 1.8.5
4960 # Agent name. If not provided, pod name will be used
5061 # agentName: "operator-test-agent"
51- # List of container names inside the pod of the deployment
52- # If container not mentioned here it will be not patched
53- containerSelector :
54- - app
62+
5563---
5664apiVersion : v1
5765metadata :
0 commit comments