Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.01 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.01 KB

gcloud-custom-fqdn

This pakge will enable custom hostnames on Google Compute Engine

Installation

install.sh pkgsh/gcloud-custom-fqdn

or

sh <(curl -sL http://install.opensource.sh/pkgsh/gcloud-custom-fqdn)

Usage

To take advantage of this you should set metadata with name fqdn on your instance. You have to set it after the creation

This is the example of creation process:

gcloud compute instances create insance-name \
  --boot-disk-size 20GB \
  --boot-disk-type pd-ssd \
  --image centos-6 \
  --machine-type n1-standard-2 \
  --zone europe-west1-c \
  --metadata startup-script='sh <(curl -sL http://install.opensource.sh/pkgsh/gcloud-custom-fqdn)'

Add FQDN:

gcloud compute instances add-metadata insance-name --metadata fqdn='my.hostname.example.com'

Contributing

Fork the pkgsh/gcloud-custom-fqdn repo on GitHub, make changes, fix bugs, add compatibilities or make something cool and after that just send a Pull Request. :)