skip to main content
Installation Guide > Appendices > Appendix B: Log retention using Vector > ICE Server configuration for the Vector agent
ICE Server configuration for the Vector agent
To configure ICE Server for the Vector agent
1. Deploy the Vector agent using helm:
helm repo add vector https://helm.vector.dev
helm repo update
2. Create a vector_values.json for the Vector agent on ICE Server:
cat <<-'VALUES' > ~/vector_values.json
{
"role": "Agent"
}
VALUES
3. Deploy Vector on ICE Server:
helm install vector vector/vector \
--namespace vector \
--create-namespace \
--values ~/vector_values.yaml
4. Change the default output from stdout to the remote Vector server:
5. Edit the vector configmap on the ICE Server in a vi editor:
kubectl -n vector edit cm vector
6. Look for the sinks section:
sinks:
prom_exporter:
type: prometheus_exporter
inputs: [host_metrics, internal_metrics]
address: 0.0.0.0:9090
stdout:
type: console
inputs: [kubernetes_logs]
encoding:
codec: json
7. Replace stdout with your preferred name for the Vector output, e.g., my_vector_sink:
my_vector_sink:
type: console
inputs: [kubernetes_logs]
encoding:
codec: json
8. Update type from console to vector:
my_vector_sink:
type: vector
inputs: [kubernetes_logs]
encoding:
codec: json
9. Delete the codec line:
my_vector_sink:
type: vector
inputs: [kubernetes_logs]
encoding:
10. Replace the encoding line with address: remote_vector_fqdn_or_IP:9000:
helm repo add vector https://helm.vector.dev
helm repo update
11. If TLS is enabled on the remote server, you must also enable it on the agent with the FQDN name of the Vector server by adding a TLS section:
my_vector_sink:
type: vector
inputs: [kubernetes_logs]
address: vector.icnow.app:9000
tls:
enabled: true
12. Restart the Vector agent on ICE Server:
kubectl -n vector delete pods --all