Posts

Showing posts from December, 2017

Running Kubernetes locally via Minikube

$ minikube start Starting local Kubernetes cluster... Running pre-create checks... Creating machine... Starting local Kubernetes cluster... $ kubectl run hello-minikube --image = gcr.io/google_containers/echoserver:1.4 --port = 8080 deployment "hello-minikube" created $ kubectl expose deployment hello-minikube --type = NodePort service "hello-minikube" exposed # We have now launched an echoserver pod but we have to wait until the pod is up before curling/accessing it # via the exposed service. # To check whether the pod is up and running we can use the following: $ kubectl get pod NAME READY STATUS RESTARTS AGE hello-minikube-3383150820-vctvh 1/1 ContainerCreating 0 3s # We can see that the pod is still being created from the ContainerCreating status $ kubectl get pod NAME READY STATUS RESTARTS AGE hello-minikube-3383150820-vctvh 1/1 Running

Docker on AWS with Elastic CONTAINER Service and ECR

Step1: Configuring of the cluster #ecs-cli configure –cluster myCluster –region us-east-1 Step2: Starting the cluster #ecs-cli up --keypair ubuntu_mum --capability-iam --size 3 --instance-type t2.micro INFO[0002] Created cluster                                cluster=myCluster region=us-east-1 INFO[0003] Waiting for your cluster resources to be created... INFO[0004] Cloudformation stack status                    stackStatus="CREATE_IN_PROGRESS" INFO[0066] Cloudformation stack status                    stackStatus="CREATE_IN_PROGRESS" INFO[0129] Cloudformation stack status                    stackStatus="CREATE_IN_PROGRESS" Cluster creation succeeded. VPC created: vpc-4bd2bd33 Security Group created: sg-11980264 Subnet created: subnet-42fd9526 Subnet created: subnet-51e1457e Step3: We need to create a project (anything which is simple to access any application) # git clone https://github.co