Skip to content

pkgsh/gcloud-custom-fqdn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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. :)

About

Custom hostname on Google Compute Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages