Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: agent k8s deployment #3983

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions k8s/agent/deploy-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ API_KEY=""
AGENT_VERSION="latest"
SKIP_VERIFY=false
SERVER_URL=""
ENVIRONMENT=""

POSITIONAL_ARGS=()

Expand All @@ -41,6 +42,11 @@ while [[ $# -gt 0 ]]; do
shift
shift
;;
--environment)
ENVIRONMENT="$2"
shift
shift
;;
-h|--help)
showUsageAndExit
;;
Expand Down Expand Up @@ -83,6 +89,10 @@ if [ -n "$SERVER_URL" ]; then
extraCmd+=("--server-url" "$SERVER_URL")
fi

if [ -n "$ENVIRONMENT" ]; then
extraCmd+=("--environment" "$ENVIRONMENT")
fi


kubectl create -n $NAMESPACE secret generic tracetest-agent-secret --from-literal=api-key=$API_KEY
curl $FILE_PATH \
Expand Down
2 changes: 1 addition & 1 deletion k8s/agent/deploy-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
containers:
- name: tracetest-agent
image: kubeshop/tracetest-agent:TAG
command: [EXTRA_CMD]
args: [EXTRA_CMD]
env:
- name: TRACETEST_API_KEY
valueFrom:
Expand Down
Loading