You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./ci/scripts/scalyr-query.sh '$serverHost="'${SCALYR_AGENT_POD_NAME}'" $logfile="/var/log/scalyr-agent-2/agent.log" attribute1="value1" "No checkpoints were found. All logs will be copied starting at their current end"'
./ci/scripts/scalyr-query.sh '$serverHost="'${SCALYR_AGENT_POD_NAME}'" $logfile="/var/log/scalyr-agent-2/agent.log" attribute1="value1" "No checkpoints were found. All logs will be copied starting at their current end"'
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,23 @@ Example:
127
127
```
128
128
This gives the pod permission to read the secret as defined in the IAM Policy. (Something in the cluster such as a MutatingWebhook will need to actually facilitate the secret lookup)
129
129
130
+
## Using raw value for "SCALYR_API_KEY" pod environment variable
131
+
132
+
By default, ``scalyr.apiKey`` chart value is stored in a Kubernetes Secret and then this secret is
133
+
referenced by the ``SCALYR_API_KEY`` pod environment variable.
134
+
135
+
In some situations, you may want to define a raw value for this environment variable. An example of
136
+
that is using a tool like ``kube-secrets-init`` which relies on environment variable being set to a
137
+
special prefixed value which will eventually get replaced with the actual secret by the tool itself.
138
+
139
+
Here is an example excerpt chart configuration for such use case:
Copy file name to clipboardExpand all lines: charts/scalyr-agent/values.yaml
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ volumeMounts: {}
28
28
scalyr:
29
29
# scalyr.server -- The Scalyr server to send logs to. Use eu.scalyr.com for EU
30
30
server: "agent.scalyr.com"
31
-
# scalyr.apiKey -- The Scalyr API key to use
31
+
# scalyr.apiKey -- The Scalyr API key to use. Can also be used in combination with "useRawApiKeyEnvValue" when using something like kube-secrets-init. In that case, this should be a reference to the secret which will be replaced by kube-secrets-init.
32
32
apiKey: ""
33
33
# scalyr.debugLevel -- Set this to number between 1 and 5 (inclusive - 1 being least verbose and
34
34
# 5 being most verbose) to enable additional debug logging into agent_debug.log file.
@@ -151,5 +151,8 @@ serviceAccount:
151
151
# serviceAccount.annotations -- optional arbitrary service account annotations
152
152
annotations: {}
153
153
154
+
# useRawApiKeyEnvValue -- Set this to true if you want raw API key from "scalyr.apiKey" chart value to be used for the SCALYR_API_KEY pod environment variable. This comes handy in situations where you don't want to use a secret (e.g. you utilize something like kube-secrets-init which directly replaces environment variable value with the actual secret).
155
+
useRawApiKeyEnvValue: false
156
+
154
157
# existingSecretRef -- Use this value if the Scalyr API key is already stored in a Kubernetes secret that was created by an external secrets operator or similar.
0 commit comments