apt update && apt upgrade -y
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To view the status of all instances, use the following command: | |
| aws ec2 describe-instance-status | |
| To get the status of all instances with a instance status of impaired: | |
| aws ec2 describe-instance-status --filters Name=instance-status.status,Values=impaired | |
| To get the status of a single instance, use the following command: | |
| aws ec2 describe-instance-status --instance-ids i-1234567890abcdef0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>Google Maps Multiple Markers</title> | |
| <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <div id="map" style="height: 400px; width: 500px;"> | |
| </div> | |
| <script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| yum install -y aws-cli | |
| cd /home/ec2-user/ | |
| aws s3 cp 's3://aws-codedeploy-us-east-1/latest/codedeploy-agent.noarch.rpm' . --region us-east-1 | |
| yum -y install codedeploy-agent.noarch.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -d -p 5000:5000 --restart always --name registry registry:2 | |
| docker run --rm -it -p 5000:5000 registry:2 | |
| http://localhost:5000/v2/_catalog | |
| //format to to push image into the registry | |
| format: source image registry:port/repository [:tag] | |
| docker tag mongo localhost:5000/mongo | |
| docker push localhost:5000/mongo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| EC@ instnace types | |
| On Spot: | |
| Suitable for developmentand flexibility, also for application with unpredictable load or spiky workloads | |
| Reserverd Instance | |
| Suitable for steady and predictable usage, also schduled instance available | |
| Spot Instance | |
| Suitable for flexible start and end time , also needing large amount of additional computing capacity with urgent need | |
| Dedicated Hosts | |
| It is good for deployments which does not support multitenance and cloud deployments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| What is kubernetes | |
| (An orchetrator for microservice apps) | |
| system for running many different containers over multiple different machines | |
| Why user kubernetes? | |
| when you need to run many different conatiners with different images | |
| kubectl -> used for managing containers in the node and interact with node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker network | |
| docker network ls | |
| docker network inspect <networkname> | |
| dcoker network create -d bridge --subnet 10.0.0.1/24 ps-bridge | |
| //tutorial link | |
| https://docs.docker.com/network/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWS Cloudwatch- is used for monitoring the aws services as well as the applications running on aws | |
| Cloudwatch can monitor things like | |
| Compute: | |
| AUto scaling | |
| ELB | |
| Route 53 healthcheck | |
| Storage and content Delivery | |
| EBS volumne | |
| Storgae gateway |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pre Hadoop 2.2 | |
| Two main components | |
| -disstributed file system | |
| -MapReduce Engine | |
| HDFS runs on top of the existing file system | |
| Designed to handle very large files |