Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

fix: Docs example for OpenLIT operator (#1093)

Ishan Jainc16ac4222468
diff --git a/docs/snippets/openlit-operator-install.mdx b/docs/snippets/openlit-operator-install.mdx
index 4cf84558..72ba19f0 100644
--- a/docs/snippets/openlit-operator-install.mdx
+++ b/docs/snippets/openlit-operator-install.mdx
@@ -1,4 +1,4 @@
**Install OpenLIT Operator**
```bash
-helm install openlit-operator openlit/openlit-operator
+helm install openlit-operator openlit/openlit-operator -n openlit --create-namespace
```
diff --git a/docs/snippets/openlit-platform-install.mdx b/docs/snippets/openlit-platform-install.mdx
index 0bf2da4e..aadd9bd1 100644
--- a/docs/snippets/openlit-platform-install.mdx
+++ b/docs/snippets/openlit-platform-install.mdx
@@ -1,4 +1,4 @@
**Install OpenLIT Platform**
```bash
-helm install openlit openlit/openlit
+helm install openlit openlit/openlit -n openlit --create-namespace
```
diff --git a/operator/Dockerfile b/operator/Dockerfile
index 4da4e2a5..72f260e8 100644
--- a/operator/Dockerfile
+++ b/operator/Dockerfile
@@ -15,7 +15,13 @@
# docker build -t openlit-operator:latest .
# docker run openlit-operator:latest
#
-FROM golang:1.24-alpine AS builder
+# Multi-arch build (amd64 + arm64):
+# docker buildx build --platform linux/amd64,linux/arm64 -t openlit-operator:latest .
+#
+FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
+
+ARG TARGETOS=linux
+ARG TARGETARCH
# Install git for go mod download
RUN apk add --no-cache git
@@ -31,8 +37,8 @@ RUN go mod download
# Copy the source code
COPY . .
-# Build the webhook operator
-RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o operator ./cmd/operator
+# Build the operator for the target platform (cross-compiled from build platform)
+RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o operator ./cmd/operator
# Final stage
FROM alpine:latest
diff --git a/operator/examples/complete-openlit-instrumentation.yaml b/operator/examples/complete-openlit-instrumentation.yaml
index 7b4c491a..2de27361 100644
--- a/operator/examples/complete-openlit-instrumentation.yaml
+++ b/operator/examples/complete-openlit-instrumentation.yaml
@@ -75,7 +75,7 @@ spec:
otlp:
# OTLP endpoint URL (required)
# Should point to your OpenTelemetry collector or backend
- endpoint: "http://openlit.default.svc.cluster.local:4318"
+ endpoint: "http://openlit.openlit.svc.cluster.local:4318"
# Additional headers for OTLP requests (optional)
# Format: "key=value,key2=value2"
@@ -115,7 +115,7 @@ spec:
# Required OTLP configuration
otlp:
- endpoint: "http://openlit.default.svc.cluster.local:4318"
+ endpoint: "http://openlit.openlit.svc.cluster.local:4318"
# Optional: Override default provider settings
python: