Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc-factory
Manage
Activity
Members
Labels
Plan
Issues
74
Issue boards
Milestones
Wiki
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
hpc-factory
Commits
543c233d
Commit
543c233d
authored
8 months ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
created floating ip for both instances
parent
a05f469c
No related branches found
No related tags found
2 merge requests
!117
This MR merges the feat-hpc-factory branch, which was focused on building and deploying proxy images for the COD cluster.
,
!101
Refactor CI/CD pipeline to include workflow rules and retain only deploy jobs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-4
14 additions, 4 deletions
.gitlab-ci.yml
with
14 additions
and
4 deletions
.gitlab-ci.yml
+
14
−
4
View file @
543c233d
...
@@ -42,7 +42,7 @@ deploy_ood_proxy_node:
...
@@ -42,7 +42,7 @@ deploy_ood_proxy_node:
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
EOF
EOF
-
>
-
>
export
NEW
_INSTANCE_ID=$(openstack server create
export
PROXY_OOD
_INSTANCE_ID=$(openstack server create
-c id -f value --image $PROXY_OOD_IMAGE_ID
-c id -f value --image $PROXY_OOD_IMAGE_ID
--network $OOD_PROXY_NETWORK
--network $OOD_PROXY_NETWORK
--security-group https-port
--security-group https-port
...
@@ -52,7 +52,12 @@ deploy_ood_proxy_node:
...
@@ -52,7 +52,12 @@ deploy_ood_proxy_node:
--flavor $INSTANCE_FLAVOR
--flavor $INSTANCE_FLAVOR
--wait
--wait
$OOD_PROXY_INSTANCE_NAME)
$OOD_PROXY_INSTANCE_NAME)
-
openstack server add floating ip $OOD_PROXY_INSTANCE_NAME $OOD_PROXY_FLOATING_IP
# Create and assign a floating IP
PROXY_OOD_FLOATING_IP=$(openstack floating ip create $PKR_VAR_floating_ip_network -f value -c floating_ip_address)
echo "Created FLOATING_IP: $PROXY_OOD_FLOATING_IP"
# Associate the floating IP with the ood proxy instance
openstack server add floating ip $PROXY_OOD_INSTANCE_ID $PROXY_OOD_FLOATING_IP
echo "Associated FLOATING_IP $PROXY_OOD_FLOATING_IP with PROXY_OOD_INSTANCE_ID $PROXY_OOD_INSTANCE_ID"
rules
:
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
when
:
always
when
:
always
...
@@ -74,7 +79,7 @@ deploy_ssh_proxy_node:
...
@@ -74,7 +79,7 @@ deploy_ssh_proxy_node:
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
EOF
EOF
-
>
-
>
export
NEW
_INSTANCE_ID=$(openstack server create
export
PROXY_SSH
_INSTANCE_ID=$(openstack server create
-c id -f value --image $PROXY_SSH_IMAGE_ID
-c id -f value --image $PROXY_SSH_IMAGE_ID
--network $OOD_PROXY_NETWORK
--network $OOD_PROXY_NETWORK
--security-group allow-ssh
--security-group allow-ssh
...
@@ -82,7 +87,12 @@ deploy_ssh_proxy_node:
...
@@ -82,7 +87,12 @@ deploy_ssh_proxy_node:
--flavor $INSTANCE_FLAVOR
--flavor $INSTANCE_FLAVOR
--wait
--wait
$SSH_PROXY_INSTANCE_NAME)
$SSH_PROXY_INSTANCE_NAME)
-
openstack server add floating ip $NEW_INSTANCE_ID $SSH_PROXY_FLOATING_IP
# Create and assign a proxy ssh floating IP
PROXY_SSH_FLOATING_IP=$(openstack floating ip create $PKR_VAR_floating_ip_network -f value -c floating_ip_address)
echo "Created PROXY_SSH_FLOATING_IP: $PROXY_SSH_FLOATING_IP"
# Associate the floating IP with the ssh proxy instance
openstack server add floating ip $PROXY_SSH_INSTANCE_ID $PROXY_SSH_FLOATING_IP
echo "Associated FLOATING_IP $PROXY_SSH_FLOATING_IP with PROXY_SSH_INSTANCE_ID $PROXY_SSH_INSTANCE_ID"
rules
:
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
when
:
always
when
:
always
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment