Please enable JavaScript.
Coggle requires JavaScript to display documents.
GCP_1 GCE, SSH to mashine - Coggle Diagram
GCP_1 GCE
Creating params
-
machine series and types
Family
Memory Optimised - M2, M1 - Ultra memory utilisation
-
General purpose - E2, N2, N2D, N1 - best price-performance ratio
Types
Decide to choose type: E2 has different E2-standart2, E2-standart4...
diff in vCPU, RAM, egress bandwith, etc
-
-
-
-
-
-
-
-
-
-
Architecture feature
-
Availability policy
-
-
Preemtibility - it costs much less, but maybe terminated any time - by default - OFF. Preimtable VMs
-
-
may terminate any time, no SLA
not always available, no restarts,
-
-
Billing
-
-
Billing in seconds, after minimum time of 1m
-
-
-
Shutdown script
Works when: stop, terminated or restarted
to add
-
-
to add - need to put to metadata: key - value, "shutdown-script = schript.sh"
-
no guarantee, that it will be executed or fully executed
-
VM startup scope
we can create instances or groups of instances from template - to simplify and expedite the process.
-
-
-
-
templates are free, but created resources billable
-
-
VM startup script - will be run on restart, create
-
Redeploy of MIG
When the update type is set to OPPORTUNISTIC, the MIG applies updates only when you selectively apply the update to specific instances or when new instances are created by the MIG.
-
To automatically roll out new configuration to all or to a subset of the instances in a MIG, set the MIG's update type to PROACTIVE. If an automated update is potentially too disruptive, or you want more control over the update, set the MIG's update type to OPPORTUNISTIC then selectively update specific instances.
-
SSH to mashine
Linux - keys based
OS login - linux account pointed to google account, need to enable metadata as enebleOsLogin - to true. Need right role and can be from external LDAPor AD
-
-
-
-
-