Skip to content

ivkosarev Infra repository

License

Notifications You must be signed in to change notification settings

Otus-DevOps-2020-02/ivkosarev_infra

Repository files navigation

ivkosarev_infra

ivkosarev Infra repository

testapp_IP = 34.77.129.82 testapp_port = 9292

bastion_IP = 35.205.201.59 someinternalhost_IP = 10.132.0.3

#Команда для создания инстанса и передачи startup-script из локального файла

gcloud compute instances create reddit-app
--boot-disk-size=10GB
--image-family ubuntu-1604-lts
--image-project=ubuntu-os-cloud
--machine-type=g1-small
--tags puma-server
--restart-on-failure
--metadata-from-file startup-script=startup-script.sh

#Команда для создания правила в фаерволе gcloud compute firewall-rules create default-puma-server
--direction=INGRESS
--priority=1000
--network=default
--action=ALLOW
--rules=tcp:9292
--source-ranges=0.0.0.0/0
--target-tags=puma-server pritunl_web_address = https://35.205.201.59/ pritunl_web_username = pritunl pritunl_web_password = NCKmaQEWOW5jaBxsOU bastion_IP = 35.205.201.59 someinternalhost_IP = 10.132.0.3

#ProxyJump #ssh -J [email protected] [email protected]

About

ivkosarev Infra repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published