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
| https://kiddcorp.signin.aws.amazon.com/console | |
| sudo yum -y install jq git | |
| sudo pip install --upgrade pip | |
| sudo ln -s /usr/local/bin/pip /bin | |
| sudo pip install --upgrade awscli | |
| curl -O https://releases.hashicorp.com/terraform/0.12.4/terraform_0.12.4_linux_amd64.zip | |
| sudo unzip terraform_0.12.4_linux_amd64.zip -d /usr/bin/ |
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
| kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-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
| import time | |
| import redis | |
| from flask import Flask | |
| import socket | |
| app = Flask(__name__) | |
| cache = redis.Redis(host='redis', port=6379) | |
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
| Install Dashboard: | |
| kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended/kubernetes-dashboard.yaml | |
| Get the Pods: | |
| kubectl get pods --namespace=kube-system | |
| Forward the Dashboard Port: | |
| kubectl port-forward kubernetes-dashboard-<YOUR DASHBOARD ID> 8443:8443 --namespace=kube-system | |
| To get Token: |
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
| { | |
| "family": "yourApp-demo", | |
| "containerDefinitions": [ | |
| { | |
| "volumesFrom": [], | |
| "portMappings": [ | |
| { | |
| "hostPort": 80, | |
| "containerPort": 80 | |
| } |
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
| #cloud-config | |
| package_upgrade: true | |
| write_files: | |
| - path: /etc/systemd/system/docker.service.d/docker.conf | |
| content: | | |
| [Service] | |
| ExecStart= | |
| ExecStart=/usr/bin/dockerd | |
| - path: /etc/docker/daemon.json | |
| content: | |
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
| EC2 Lab | |
| #!/bin/bash | |
| yum -y install httpd | |
| systemctl enable httpd | |
| systemctl start httpd | |
| echo '<html><h1>Hello From Your Web Server!</h1></html>' > /var/www/html/index.html | |
| ELB Lab | |
| #!/bin/sh | |
| yum -y install httpd php |
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
| Kubernetes | |
| kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended/kubernetes-dashboard.yaml | |
| admin.yml | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: admin-user | |
| namespace: kube-system | |
| apiVersion: rbac.authorization.k8s.io/v1 |
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 | |
| docker ps | |
| docker images | |
| docker ps -a | |
| docker rm -f <name> | |
| docker run --name cass_one -d -v /home/ops:/data -p 9042:9042 cassandra | |
| docker run --name cass_two -e CASSANDRA_SEEDS=<ip of other node> -d cassandra | |
| Nodetool |
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
| ec2-34-229-23-105.compute-1.amazonaws.com |