Running with Kubernetes (k8s)
This guide explains how to deploy and run the Rated Log Indexer in a Kubernetes environment.
Prerequisites
Access to a Kubernetes cluster
kubectl
CLI tool installed and configuredBasic understanding of Kubernetes concepts (ConfigMaps, Deployments)
Rated Log Indexer credentials and configuration details
Setup Instructions
1. Prepare Configuration
Navigate to the
config
directory where you'll findrated-configmap.example.yaml
Create your configuration file:
Modify the configuration file with your specific settings
The example file includes both the ConfigMap for your indexer configuration and the Deployment specification needed for Kubernetes.
2. Deploy to Kubernetes
Apply the configurations to your cluster:
3. Verify Deployment
Check the status of your deployment:
Configuration Reference
ConfigMap Settings
The ConfigMap contains your Rated Log Indexer configuration in YAML format. Key sections include:
inputs
: Configure your data sourcesintegration
: Specify the integration type (e.g., cloudwatch)filters
: Define how to process and transform logsoffset
: Configure ingestion tracking and start points
output
: Configure where processed data should be sentsecrets
: Manage sensitive information
Deployment Settings
The Deployment configuration defines how the indexer runs in your cluster:
replicas
: Number of indexer instances (default: 1)image
: Docker image to use (default:ratedlabs/rated-log-indexer:latest
)volumeMounts
: Configuration file mountingvolumes
: ConfigMap volume definition
Security Considerations
Sensitive Data: Consider using Kubernetes Secrets instead of ConfigMap for sensitive values
RBAC: Ensure appropriate RBAC policies are in place for the indexer pod
Troubleshooting
Common Issues
Pod Startup Failures
Configuration Issues
Resource Constraints
Maintenance
Updating Configuration
Update the ConfigMap:
Restart the pods:
Version Updates
To update the indexer version:
Best Practices
Always use version tags for the Docker image instead of
latest
Implement appropriate resource requests and limits
Set up monitoring and alerting
Regularly backup your configuration
Use namespaces to isolate the indexer deployment
Implement liveness and readiness probes
Last updated