OpenStack

16th February 2018 at 4:27pm
Cloud jq TechnicalNotes TechnologyBookmarks

Instance Creation

$ declare instance="nicolaw-gitlab-runner-test"
$ openstack server create \
    --image bf58184c-bcfb-4fd9-a479-d0575623a7da \
    --flavor m1.small \
    --key-name nicolaw \
    --network my_private_network \
    --property gitlab_ci_lock_to_project='false' \
    --property gitlab_ci_executor='docker' \
    --property gitlab_ci_run_untagged_jobs='true' \
    --property gitlab_ci_description='gitlab-runner-description' \
    --property gitlab_ci_coordinator_url='https://gitlab.local/ci' \
    --property gitlab_ci_token='oREtddddqzAYpNpmry33' \
    --property gitlab_ci_tags='docker, nicolaw, linux, openstack' \
    --property gitlab_ci_docker_image='alpine:latest' \
    "$instance"
$ eval "$(openstack floating ip create my_public_network -f shell)"
$ openstack server add floating ip "$instance" "$floating_ip_address"
$ openstack server show "$instance"
openstack server list \
    --name gitlab-runner \
    -f json \
    | jq -r '.[].Networks' \
    | egrep -ow '10\.([0-9]{1,3}\.){2}[0-9]{1,3}'

Deployment

Configuration

Scaling & Capacity Planning

Videos


Related