Skip to content

Commit

Permalink
add example to values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
eliranb committed Aug 15, 2024
1 parent af3a0d7 commit 15f1c0c
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions charts/lightrun-agents/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,98 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
javaAgents: []
## Examples
### Basic
#- The `my-service-1` does not use an `existingSecret` and instead the `agentPoolCredentials.apiKey` and `agentPoolCredentials.pinnedCertHash` are provided directly.

#- The `my-service-2` uses an `existingSecret` named `my-existing-secret`

#javaAgents:
# - name: 'my-service-1'
# namespace: 'my-namespace-1'
# deploymentName: "my-deployment-1"
# containerSelector:
# - my-container-1
# serverHostname: 'lightrun.example.com'
# initContainer:
# image: "lightruncom/k8s-operator-init-java-agent-linux:latest"
# agentPoolCredentials:
# existingSecret: ""
# apiKey: "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# pinnedCertHash: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# agentTags:
# - env-production
# - service-my-server
# - region-us_east_1
# - provider-aws
# - name: 'my-service-2'
# namespace: 'my-namespace-2'
# initContainer:
# image: "lightruncom/k8s-operator-init-java-agent-linux:latest"
# deploymentName: "my-deployment-2"
# containerSelector:
# - my-container-2
# serverHostname: 'lightrun.example.com'
# agentPoolCredentials:
# existingSecret: "my-existing-secret"
# apiKey: ""
# pinnedCertHash: ""
# agentTags:
# - env-production
# - service-my-other-server
# - region-us_east_1
# - provider-aws

### Full

# - The `my-service-1` does not use an `existingSecret` and instead the `agentPoolCredentials.apiKey` and `agentPoolCredentials.pinnedCertHash` are provided directly.

# - The `my-service-2` uses an `existingSecret` named `my-existing-secret`

#javaAgents:
# - name: 'my-service-1'
# namespace: 'my-namespace-1'
# deploymentName: "my-deployment-1"
# containerSelector:
# - my-container-1
# serverHostname: 'lightrun.example.com'
# agentEnvVarName: '_JAVA_OPTIONS'
# agentConfig:
# max_log_cpu_cost: "2"
# agentCliFlags: "--lightrun_extra_class_path=<PATH_TO_JAR>:<PATH_TO_JAR>,lightrun_init_wait_time_ms"
# initContainer:
# image: "lightruncom/k8s-operator-init-java-agent-linux:latest"
# sharedVolumeName: 'my-shared-volume'
# sharedVolumeMountPath: '/mypath'
# agentPoolCredentials:
# existingSecret: ""
# apiKey: "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# pinnedCertHash: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# agentTags:
# - env-production
# - service-my-server
# - region-us_east_1
# - provider-aws
# - name: 'my-service-2'
# namespace: 'my-namespace-2'
# initContainer:
# image: "lightruncom/k8s-operator-init-java-agent-linux:latest"
# sharedVolumeName: 'my-shared-volume'
# sharedVolumeMountPath: '/mypath'
# deploymentName: "my-deployment-2"
# containerSelector:
# - my-container-2
# serverHostname: 'lightrun.example.com'
# agentEnvVarName: 'JAVA_OPTS'
# agentConfig:
# max_log_cpu_cost: "2"
# agentCliFlags: "--lightrun_extra_class_path=<PATH_TO_JAR>:<PATH_TO_JAR>,lightrun_init_wait_time_ms"
# agentPoolCredentials:
# existingSecret: "my-existing-secret"
# apiKey: ""
# pinnedCertHash: ""
# agentTags:
# - env-production
# - service-my-other-server
# - region-us_east_1
# - provider-aws

0 comments on commit 15f1c0c

Please sign in to comment.