content/operate/kubernetes/7.22/reference/yaml/_index.md
This section provides complete YAML examples that cover common Redis Enterprise for Kubernetes deployment scenarios. Each example includes the necessary configuration files and step-by-step instructions for editing and applying them.
kubectl applyRedis Enterprise for Kubernetes stores configuration in several places:
Apply YAML files using kubectl apply:
# Apply a single file
kubectl apply -f my-config.yaml
# Apply multiple files
kubectl apply -f rbac/ -f cluster/ -f database/
# Validate files without applying
kubectl apply --dry-run=client -f my-config.yaml
Check the status of your resources after applying:
# Check operator deployment
kubectl get deployment redis-enterprise-operator
# Check cluster status
kubectl get rec
kubectl describe rec <cluster-name>
# Check database status
kubectl get redb
kubectl describe redb <database-name>
# View events for troubleshooting
kubectl get events --sort-by=.metadata.creationTimestamp
kubectl apply --dry-run=client to validate YAML syntax and object schemas before applying