Skip to main content
100%

Gist 682c0ed12e0006118fb5287146247844

✓ Published0🌍 Public
Aamazingandyyy
Last edited Mar 30, 2022
Created on Mar 30, 2022

This example shows a Bash script that automates the migration of Kubernetes deployment configurations and Argo CD application manifests for a service across multiple environments. It creates new cluster directories by copying existing ones, generates an ingress DNS patch file, and updates the kustomization.yaml with the new patch reference. The script also writes a kustomization file for the Argo application that points to the newly created deployment path. It uses the `gsed` command for in-place text replacement and `echo` to generate YAML content, operating on files within a specified current working directory.

AI-generated description

Similar vizzes