PREEMPTABLE VMs: This is based on highest bidder. You will have 91% discount but can be terminated sooner due to system demand. Preemptable VM's always stop after 24hours, and its fully managed by GCP. This pricing is only recommended for fault-tolerant application. You have to be very careful because with this pricing model, you want to ensure that the workload can accept disruption at anytime. You cannot run critical workload.
Friday, May 26, 2023
GCP -PRICING MODEL
Thursday, May 25, 2023
GCE- MANUAL KEY CONFIGURATION - SSH KEY -PROJECT
cat ~/.ssh/gce-ssh-key.pub
cat ~/.ssh/gce-ssh-key
Saturday, May 20, 2023
HYBRID CONNECTIVITY, VPN, ROUTING, BGP
HYBRID CONNECTIVITY: This is the connectivity between Google Cloud Platform and on-premises data centre. There are several ways to provide this connectivity, depending on enterprise bandwidth and latency requirements.
INTERCONNECT
1. Dedicated Interconnect.
2. Partner Interconnect.
Clients that make use of workspaces, when it comes to communication you make use of partner peering.
PEERING
3. Direct peering
4. Career / Partner Peering
5. VPN
VPN: Virtual Private Network. It allows you to be able to share data from one open internet to another. for example, You can set up your connection from on-premises data centre to cloud via the VPN tunnel and the data is encrypted. VPN communication when it comes to the bandwidth is between 3 - 30GBPS. However, If your environment have a massive data to migrate VPN will not be the best choice.
TWO OPTIONS OF VPN
This depends on the client preferences, when it comes to the actual data transmission.
Classic VPN: Allows you to set up one tunnel per direction. This is a one way connection from from on-premises to cloud environment. Classic VPN gateways provides an SLA of 9.99% service availability. If the data application is low classic VPN will be best to leverage.
High Availability VPN : Google cloud gives you the options to boost the two or more tunnel and channels from on-premises to GCP infrastructure. You can use automatic or static external IP addressAnd if one of the environment goes down, other tunnels will be active and functional. You can use ACTIVE ACTIVE tunnel or ACTIVE PASSIVE tunnel. This only support dynamic routing.
VPN TERMINOLOGY
Tunnel: Is the based security you configure. The IPsec and SSL are both protocols used for securing data in transit through encryption. SSL is a protocol for web browser that encrypts, decrypts and authenticate all the data.
VPN GATEWAY
When you are setting up a connection from on-premises to cloud, you will need two gateways. One set-up on-premises and cloud. The gateway on-premises will be encrypting the data while the cloud gateway will be decrypting the data and this is done automatically before translating based on the IPSEC set up.
Interfaces: The entry and exit point of data between gateways. You can have a gateways that has dual IP's and its represented by an IP. When you create a VM, you need an IP to communicate. It is your responsibility to know what IPS address from on-premises is managed
Packets/Payload: It means the data that is communicating between gateways.
ROUTING
Google Cloud provides static and dynamic routes.
Dynamic routing: During configuration process, you must create a cloud router to make that connection from on-premises to cloud infrastructure. Google cloud provides an internal BGP IP range 169.254.0.0/16, that you literally need to connect with VPN configuration. When it comes with the BGP intelligence, it provision more route which automatically integrate the communication with an autonomous system number to generates a seamless workload.
Border Gateway Protocol:Allows you to be able to discover your IPS address automatically . It is based on a particular IP that google cloud provides and this will comes in when you're establishing tunnels. The IPs that will be assign to the interface, this will be based on BGP and the BGP makes use of the assign IP.
Autonomous System Number (ASN): Is a globally unique number for autonomous system on the internet.
Static routing : You manually configure the integration from on-premises to cloud environment.
Friday, May 19, 2023
VPC PEERING DEMO
We are creating a peering connection between your default VPC and custom VPC. This two should be able to communicate privately without the need of external IP . VPC peering is completely free.
STEP 1:
Sign into your console
STEP 2:
Click on VPC network peering and create connection
STEP 3:
This is requesting for the connection to be establish, you'll not see the request visible, its running at the back ground. We do not have custom route to export so, in this demo its disabled.
You are making a VPC peering connection from Default (auto) to custom
You are making a VPC peering connection from Default (auto) to custom. A target point has been established. We do not have custom route to export so, in this demo its disabled.
And if you get an error its possible you're experiencing an IP overlap.
STEP 5:Referencing: Google Documentation.
Thursday, May 18, 2023
GCS -LIFE-CYCLE MANAGEMENT, CONDITIONS.
Lifecycle management : In order to use Object Lifecycle management, you define a lifecycle configuration which is specified on a bucket. At the level of GCS allow you to create particular rules to transition data from one storage class to another based on specific conditions. And the conditions could be, for example, an object can be stored in cloud storage for four months and after four months the developers likely not won't be accessing the data frequently. At this point the conditions you set up will be based on timeline.
You can also move data from standard to nearline or coldline. If the objects is not assessable within the specified lifecycle, it can be moved to archive and you can also delete the object anytime.
Lifecycle management has help to automate move of objects to a different storage class based on their age. It has delete old version of objects and reduce storage costs.
CLOUD STORAGE OBJECTS BY SETTING CONDITIONS.
Timeline
Age: Many companies use this condition. Age condition defines the time when the object was created in a bucket and it can be moved from one location to another 80days, 90days, 360days. This works with any class and the actual files.
Createdbefore : In this case, you can create a rule in GCS that every previous object that was created before MAY 19TH to transition the object from one storage class to another.
Multiple rules and Conditions: Another conditions you can set up would be, if the storage class matches any standard, nearline, archive, which the data can be transitioned.
Versioning: When it comes to the bucket, first you have to delete the object before the bucket. If you're wondering where the object resides after deletion, this is were versioning comes in. You have to explicitly enable the management capability of the bucket because, it will keep multiple version of all the object in the bucket and anytime you try to delete, it will take a back-up and store it in the versioning pool. Versioning will act as your recycle bin.
Pub-sub: It is fully managed real-time messaging system to send auto-alert between independent applications. You can set up a topic that act as a pub-sub resources and then integrate GCS at the level of the topic and then create a subscription within the specific topic then subscribe email. This will give you visibility of the bucket.
Referencing: Google Documentation.
Wednesday, May 17, 2023
SET-UP SHARED VPC
Today's hands-on, we will be deploying two applications for an e-commerce environment. The goal is sharing the VPC networking within the projects. Six subnets will be created which is attached within shared network and you configure the firewall rules.
With shared VPC you're able to delegate administrative responsibilities by managing instances, to services project Admins while maintaining centralized control of subnets, routes, firewalls.
STEP 1:
Sign in as an admin.
STEP 2
Click on IAM & Admin
STEP 3:
Click on the project "My First Project". This will be host project and your shared VPC will be inside of the host project.
STEP 4:
STEP 5:
STEP 11:
Create third subnet.
STEP 12:
create the fourth subnet.
STEP 13:
Create the fifth and sixth subnet and select your firewall rules.
STEP 14:
Configure firewall and create.
STEP 15:
Click on shared VPC and set up to integrate with project.
GOOGLE CLOUD STORAGE CLASSES, NEARLINE,COLDLINE.
STORAGE OPTIONS IN GOOGLE CLOUD
AUTO CLASS STORAGE: You can ONLY use this at the time of creation. This moves your data from one storage to another. If your data has a variety of access pattern . For example, if a customer says they have 5 TB of data and they want to optimize cost further or the client has no idea how often they will access their data. Auto class will be the best option. There's NO RETRIEVAL COST, AUTOMATION, STORAGE. You only pay monthly management fee $0.0025 for every 1000 objects assign to the project.
STANDARD STORAGE CLASS: This is a frequent accessed data with high performance, low- latency. It is suitable for website content, interactive applications and analytics data. It is more expensive. A used case can be development data, the developer will utilize this on a daily base to analysis logs.NEAR LINE STORAGE CLASS: This storage is less frequently( like once a month) assessed and when you need to retrieve data or access it incur additional cost. A used case can be backup or reporting. With minimum storage duration of 30 days.
COLD LINE STORAGE CLASS: Is a storage class that is infrequently accessed and its slightly higher when retrieving and storing data. The access pattern is every 90 days/ quarterly.
ARCHIVE STORAGE CLASS: This data are stored for a long period of time and it incur additional cost retrieving and early deletion of data. The minimum storage duration is 365 days. A used case will be long-term backup, compliance or regulatory purposes.
THE DIFFERENCE BETWEEN STORAGE COST AND RETRIEVAL COST.
STORAGE COST: This is the amount of money you pay based on your data size.
RETRIEVAL COST: The amount you pay to retrieve data from GCS bucket meaning it will download the object and this only apply to Nearline, Coldline, Archive.
Referencing: Google Cloud documentation.
GRC
How confident are you in your security program (Tools, systems, controls etc)? In the context of information security , the terms valida...
-
This hands-on will solve hard coded credential in our configuration file. For this...
-
This is for learning purposes. In this project, you will create the different folders, projects and some resources such as VM instances an...
-
Docker run command is used to run a command in a new container. it creates a new space where you can put things and play with them withou...