Advertisement
kusokMIPT

Untitled

Jan 29th, 2022
945
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. name: my-group
  2. service_account_id: ajeu495h1s9tn1rorulb
  3.  
  4. instance_template:
  5.     platform_id: standard-v1
  6.     resources_spec:
  7.         memory: 2g
  8.         cores: 2
  9.     boot_disk_spec:
  10.         mode: READ_WRITE
  11.         disk_spec:
  12.             image_id: fd8fosbegvnhj5haiuoq
  13.             type_id: network-hdd
  14.             size: 32g
  15.     network_interface_specs:
  16.         - network_id: enpnr4onfs6ihtoao32u
  17.           primary_v4_address_spec: { one_to_one_nat_spec: { ip_version: IPV4 }}
  18.     scheduling_policy:
  19.         preemptible: false
  20.     metadata:
  21.       user-data: |-
  22.         #cloud-config
  23.           package_update: true
  24.           runcmd:
  25.            - [ apt-get, install, -y, nginx ]
  26.             - [/bin/bash, -c, 'source /etc/lsb-release; sed -i "s/Welcome to nginx/It is $(hostname) on $DISTRIB_DESCRIPTION/" /var/www/html/index.nginx-debian.html']
  27.  
  28. deploy_policy:
  29.     max_unavailable: 1
  30.     max_expansion: 0
  31. scale_policy:
  32.     fixed_scale:
  33.         size: 3
  34. allocation_policy:
  35.     zones:
  36.         - zone_id: ru-central1-a
  37.  
  38. load_balancer_spec:
  39.     target_group_spec:
  40.         name: my-target-group
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement