11apiVersion : agents.lightrun.com/v1beta
22kind : LightrunJavaAgent
33metadata :
4- name : example-cr
4+ name : example-cr
55spec :
66 # ##############################################################################################
77 # Fields that you need to change if you want to try operator with your own deployment
88 # ##############################################################################################
99 # Name of the deployment that you are going to patch.
1010 # Has to be in the same namespace
11- deploymentName : sample-deployment
11+ deploymentName : sample-deployment
1212 # List of container names inside the pod of the deployment
1313 # If container not mentioned here it will be not patched
1414 containerSelector :
15- - app
15+ - app
1616 # Agent config will override default configuration with provided values
1717 # You can find list of available options here https://docs.lightrun.com/jvm/agent-configuration/
1818 agentEnvVarName : JAVA_TOOL_OPTIONS
1919 # Name of the secret where agent will take `lightrun_key` and `pinned_cert_hash` from
2020 # Has to be in the same namespace
21- secretName : lightrun-secrets
22-
21+ secretName : lightrun-secrets
2322
2423 # ##############################################################################################
2524 # Fields that are mostly fine with default values for most deployments
2625 # ##############################################################################################
27- # Init container with agent. Differes by agent version and platform that it will be used for. For now supported platforms are `linux` and `alpine`
28- initContainer :
29- # parts that may vary here are
26+ # Init container with agent. Differes by agent version and platform that it will be used for. For now supported platforms are `linux` and `alpine`
27+ initContainer :
28+ # parts that may vary here are
3029 # platform - `linux/alpine`
3130 # agent version - first part of the tag (1.7.0)
3231 # init container sub-version - last part of the tag (init.0)
32+ # List of available images in the README.md
3333 image : " lightruncom/k8s-operator-init-java-agent-linux:latest"
3434 # Volume name in case you have some convention in the names
3535 sharedVolumeName : lightrun-agent-init
3838 sharedVolumeMountPath : " /lightrun"
3939 # Hostname of the server. Will be different for on-prem ans single-tenant installations
4040 # For saas it is app.lightrun.com
41- serverHostname : app.lightrun.com
41+ serverHostname : app.lightrun.com
4242 # Env var that will be patched with agent path.
4343 # If your application not using any, recommended option is to use "JAVA_TOOL_OPTIONS"
4444 # Also may be "_JAVA_OPTIONS", "JAVA_OPTS"
4747 agentConfig :
4848 max_log_cpu_cost : " 2"
4949 # agentCliFlags is used if need to pass additional flags to the agent,
50- # that are not part of configuration file.
50+ # that are not part of configuration file.
5151 # https://docs.lightrun.com/jvm/agent-configuration/#additional-command-line-flags
5252 # Example below
5353 # agentCliFlags: --lightrun_extra_class_path=<PATH_TO_JAR>:<PATH_TO_JAR>,lightrun_init_wait_time_ms
@@ -62,12 +62,12 @@ spec:
6262
6363---
6464apiVersion : v1
65- metadata :
65+ metadata :
6666 name : lightrun-secrets
6767stringData :
6868 # Lightrun key you can take from the server UI at the "setup agent" step
6969 lightrun_key : <lightrun_key_from_ui>
7070 # Server certificate hash. It is ensuring that agent is connected to the right Lightrun server
7171 pinned_cert_hash : <pinned_cert_hash>
7272kind : Secret
73- type : Opaque
73+ type : Opaque
0 commit comments