Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Shell Script to Update K8S Manifest File Before Deployment #389

Open
8 tasks
prasad-takale-eminds opened this issue Feb 3, 2025 · 1 comment
Open
8 tasks
Assignees
Labels
beckn onix beckn onix project

Comments

@prasad-takale-eminds
Copy link
Contributor

Description

Develop a shell script to modify Kubernetes manifest files dynamically before deployment. The script should allow updates based on user input, ensuring correct configurations are applied before deploying to the cluster.

Goals

  • Create a shell script to update Kubernetes manifest files.
  • Accept user input for dynamic modifications (e.g., environment variables, image tags, resource limits).
  • Ensure validation and formatting of the updated manifest file.
  • Automate the update process before deploying to Kubernetes.

Expected Outcome

The script successfully modifies the K8S manifest file based on user input and ensures a smooth deployment process.

Acceptance Criteria

  • Shell script is developed and tested for modifying K8S manifest files.
  • User input can dynamically update necessary fields in the manifest.
  • Manifest validation is performed before deployment.
  • Script integrates seamlessly with the existing deployment workflow.

Mockups / Wireframes

NA

Product Name

Beckn

Domain

TBD

Tech Skills Needed

  • Shell Scripting
  • Kubernetes (K8S)
  • YAML File Manipulation
  • DevOps & Automation

Complexity

Medium

Category

DevOps

Sub Category

Automation & Deployment

@prasad-takale-eminds prasad-takale-eminds self-assigned this Feb 3, 2025
@prasad-takale-eminds prasad-takale-eminds added the beckn onix beckn onix project label Feb 3, 2025
@prasad-takale-eminds
Copy link
Contributor Author

Started working on a menu-driven shell script to streamline the Kubernetes manifest updates for Registry, Gateway, BAP, and BPP. This script will automate the process of configuring and deploying Beckn-ONIX services efficiently.

Key Updates:

  • Menu-Driven Shell Script:

    • Created an interactive script that allows users to select and configure Registry, Gateway, BAP, or BPP deployment options.
    • Ensures seamless Kubernetes manifest updates with dynamic variable substitution.
  • Registry Configuration Updates:

    • Developed a function to dynamically update REGISTRY_URL, REGISTRY_PORT, and PROTOCOL based on user input.
    • Supports different formats such as https, http, and localhost while maintaining compatibility across Ubuntu, Debian, macOS, and WSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beckn onix beckn onix project
Projects
None yet
Development

No branches or pull requests

1 participant