Skip to main content

Posts

Showing posts from June, 2019

Bash Reverse Shell explained.

 

Kubernetes in Google Cloud : Basics Series

Kubernetes Engine is a container orchestration system for deploying applications to run in clusters. Kubernetes uses pods as instances running a container.Multiple containers in a pod is also possible. 1) Set the Zone gcloud config set compute/zone [ZONE_NAME] 2) Create a Kubernetes Cluster gcloud container clusters create [CLUSTER-NAME] 3) After creating your cluster, need to get authentication credentials to interact with the cluster. gcloud container clusters get-credentials [CLUSTER-NAME] 4) Deployment of Service/Applciation : kubectl run command in Cloud Shell to create a new deployment "hello-server" from the hello-app container image: kubectl run hello-server --image=gcr.io/google-samples/hello-app:1.0 --port 8080 In Kubernetes, all containers run in pods. kubectl run command made Kubernetes to create a deployment consisting of a single pod containing the nginx container. A Kubernetes deployment keeps a given number of pods up and running even in the eve

Google Cloud : Basic Cloud Shell commands

Google Cloud resources can be managed in multiple ways. It can be done using Cloud Console, SDK or by using Cloud Shell. A few basic Google Cloud shell commands are listed below. 1)    List the active account name gcloud auth list 2)    List the project ID gcloud config list project 3)    Create a new instance using Gcloud shell gcloud compute instances create [INSTANCE_NAME] --machine-type n1-standard-2 --zone [ZONE_NAME] Use gcloud compute machine-types list to view a list of machine types available in particular zone. If the additional parameters, such as a zone is not specified, Google Cloud will use the information from your default project. To view the default project information, use gcloud compute project-info describe 4)    SSH in to the machine gcloud compute ssh [INSTANCE_NAME] --zone [YOUR_ZONE] 5)    RDP a windows server gcloud compute instances get-serial-port-output [INSTANCE_NAME] --zone [ZONE_NAME] 6)    Command to check whether the server is ready f

Serverless Computing in Google Cloud.

Google Cloud Platform offers two server-less computing options and they are App Engine and Cloud Functions. App Engine is used for applications and containers that run for extended periods of time, such as a website back-end or a custom application for some specific functions/requirements. Cloud Functions is a platform for running code in response to an event, such as uploading a file or adding a message to a message queue. This server-less option works well when you need to respond to an event by running a short process coded in a function or by calling a longer-running application that might be running on a Virtual Machine, managed cluster, or App Engine. And what is a Managed Cluster? A cluster consists of at least one cluster master machine and multiple worker machines called nodes. Nodes are Compute Engine virtual machine (VM) instances that run the Kubernetes processes necessary to make them part of the cluster.