Skip to content
Snippets Groups Projects
Commit 63da50bf authored by Dmytro Bogatov's avatar Dmytro Bogatov :two_hearts:
Browse files

New cluster.

parent afd5b9f3
Branches
No related tags found
No related merge requests found
Pipeline #53558 passed
......@@ -23,7 +23,7 @@ get_gcp_k8s_version () {
local REGEX='[0-9]\.([0-9]+).*'
VERSION=$1
gcloud container get-server-config --zone=$REGION-$ZONE --format=json \
gcloud container get-server-config --project "$PROJECT" --zone=$REGION-$ZONE --format=json \
| jq -r '.channels[1].validVersions[]' \
| while read version
do
......@@ -55,8 +55,7 @@ CERTDIRPATH=$1
PROJECT=$2
STATUSSITECONFIG=$CERTDIRPATH/appsettings.production.yml
# TIMESTAMP=$(date +%s)
TIMESTAMP="1691077967"
TIMESTAMP=$(date +%s)
VERSION="23"
REGION="us-east1"
ZONE="b"
......@@ -186,6 +185,7 @@ echo "IMPORTANT: run ./dockerhub-retention/touch-all-images.sh !"
echo "Use these two one-liners to transfer S3 data"
echo "gsutil cp gs://OLD_BUCKET/GITLAB-BACKUP-NAME gs://NEW_BUCKET"
echo "gsutil cp gs://OLD_BUCKET/mattermost_data_LATEST.gz gs://NEW_BUCKET"
echo "gsutil -m cp \"gs://OLD_BUCKET/duplicity*\" gs://NEW_BUCKET"
echo "gsutil cp gs://OLD_BUCKET/gitlab-secrets.json gs://NEW_BUCKET"
......@@ -197,4 +197,3 @@ echo " - mailinabox (host: storage.googleapis.com)"
echo "Upload SSL certificates to (if needed)"
echo " - gitlab"
echo " - cluster"
echo " - salix"
......@@ -7,7 +7,7 @@ set -e
source sources/data.sh
source .secret.sh
VALUES=( "34.138.245.221" )
VALUES=( "34.73.93.229" )
echo "Values are ${VALUES[*]}"
#
......
#!/usr/bin/env bash
set -e
shopt -s globstar
usage () {
printf "usage: $0 <certDirPath>\n"
printf "where\n"
printf "\t certDirPath - absolute path to directory with SSL cert (certificate.crt) and key (certificate.key) file\n"
exit 1;
}
if ! [ $# -eq 1 ]
then
usage
fi
CERTDIRPATH=$1
FILES=("certificate.key" "certificate.crt")
for file in ${FILES[@]}
do
scp $CERTDIRPATH/$file dmytro@salix-energy.com:/home/dmytro
done
echo "Done."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment