Skip to content

Commit

Permalink
Merge pull request #1447 from arooshap/modify_deploy.sh
Browse files Browse the repository at this point in the history
Script to automate deployment for dbs services in production.
  • Loading branch information
arooshap authored Jan 29, 2024
2 parents 2fda4cd + 341a3cc commit 3019f11
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions kubernetes/cmsweb/scripts/deploy-srv-dbs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# Define the target namespace in the new cluster
target_namespace="dbs"

# Mapping of service names to their full image tags
declare -A service_image_tags=(
["check-metric"]="registry.cern.ch/cmsweb/check-metric:20220404-stable"
["dbs2go-global-m"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable"
["dbs2go-global-migration"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable"
["dbs2go-global-r"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable"
["dbs2go-global-w"]="registry.cern.ch/cmsweb/dbs2go:v00.06.43-stable"
["dbs2go-phys03-m"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable"
["dbs2go-phys03-migration"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable"
["dbs2go-phys03-r"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable"
["dbs2go-phys03-w"]="registry.cern.ch/cmsweb/dbs2go:v00.06.43-stable"
)

# Loop through the service names and their full image tags
for service in "${!service_image_tags[@]}"; do
full_image_tag="${service_image_tags[$service]}"
tag_part="${full_image_tag##*:}"
echo "Deploying $service with image tag $tag_part to $target_namespace namespace"
./deploy-srv.sh "$service" "$tag_part"
done

0 comments on commit 3019f11

Please sign in to comment.