Building a Cost-Effective Kubernetes Environment with secure CI/CD Pipelines: A Comprehensive Guide