forked from lightrun-platform/lightrun-k8s-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlightrunjavaagent.yaml
More file actions
67 lines (64 loc) · 3.44 KB
/
Copy pathlightrunjavaagent.yaml
File metadata and controls
67 lines (64 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apiVersion: agents.lightrun.com/v1beta
kind: LightrunJavaAgent
metadata:
name: example-deployment-cr
spec:
###############################################################################################
# Fields that you need to change if you want to try operator with your own deployment
###############################################################################################
# Name of the workload that you are going to patch.
# Has to be in the same namespace
workloadName: sample-deployment
# Type of the workload. Supported values are `Deployment` and `StatefulSet`
workloadType: Deployment
# List of container names inside the pod of the deployment
# If container not mentioned here it will be not patched
containerSelector:
- app
# Agent config will override default configuration with provided values
# You can find list of available options here https://docs.lightrun.com/jvm/agent-configuration/
agentEnvVarName: JAVA_TOOL_OPTIONS
# Name of the secret where agent will take `lightrun_key` and `pinned_cert_hash` from
# Has to be in the same namespace
secretName: lightrun-secrets
###############################################################################################
# Fields that are mostly fine with default values for most deployments
###############################################################################################
# Init container with agent. Differes by agent version and platform that it will be used for. For now supported platforms are `linux` and `alpine`
initContainer:
# parts that may vary here are
# platform - `linux/alpine`
# agent version - first part of the tag (1.7.0)
# init container sub-version - last part of the tag (init.0)
# List of available images in the README.md
image: "lightruncom/k8s-operator-init-java-agent-linux:latest"
# Volume name in case you have some convention in the names
sharedVolumeName: lightrun-agent-init
# Mount path where volume will be parked. Various distributions may have it's limitations.
# For example you can't mount volumes to any path except `/tmp` when using AWS Fargate
sharedVolumeMountPath: "/lightrun"
# Hostname of the server. Will be different for on-prem ans single-tenant installations
# For saas it is app.lightrun.com
serverHostname: app.lightrun.com
# Env var that will be patched with agent path.
# If your application not using any, recommended option is to use "JAVA_TOOL_OPTIONS"
# Also may be "_JAVA_OPTIONS", "JAVA_OPTS"
# There are also different variations if using Maven - "MAVEN_OPTS", and so on
# You can find more info here: https://docs.lightrun.com/jvm/agent/
agentConfig:
max_log_cpu_cost: "2"
# agentCliFlags is used if need to pass additional flags to the agent,
# that are not part of configuration file.
# https://docs.lightrun.com/jvm/agent-configuration/#additional-command-line-flags
# Example below
# agentCliFlags: --lightrun_extra_class_path=<PATH_TO_JAR>:<PATH_TO_JAR>,lightrun_init_wait_time_ms
# Tags that agent will be using. You'll see them in the UI and in the IDE plugin as well
agentTags:
- operator
- example
- latest
# Agent name. If not provided, pod name will be used
#agentName: "operator-test-agent"
# UseSecretsAsMountedFiles determines whether to use secret values as mounted files (true) or as environment variables (false)
# Default is false for better security practices
useSecretsAsMountedFiles: false