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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Simple Web Server", | |
"Mappings": { | |
"RegionAMI": { | |
"us-east-1": {"AmazonLinux": "ami-8fcee4e5", "Ubuntu": "ami-fce3c696"}, | |
"eu-west-1": {"AmazonLinux": "ami-e1398992", "Ubuntu": "ami-f95ef58a"}, | |
"ap-northeast-1": {"AmazonLinux": "ami-59bdb937", "Ubuntu": "ami-a21529cc"} | |
} | |
}, |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "SSH Bastion Host", | |
"Parameters": { | |
"VPC": { | |
"Description": "The default VPC", | |
"Type": "AWS::EC2::VPC::Id" | |
}, | |
"Subnet": { | |
"Description": "A public subnet of VPC.", |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Simple Wordpress", | |
"Parameters": { | |
"VPC": { | |
"Description": "The default VPC", | |
"Type": "AWS::EC2::VPC::Id" | |
}, | |
"Subnets": { | |
"Description": "At least two public subnets from default VPC.", |
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
Method 1 – Using /etc/environment - Set up http proxy permanently using /etc/environment | |
====================================================================== | |
http_proxy="http://myproxy.server.com:8080/" | |
https_proxy="http://myproxy.server.com:8080/" | |
ftp_proxy="http://myproxy.server.com:8080/" | |
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" | |
HTTP_PROXY="http://myproxy.server.com:8080/" | |
HTTPS_PROXY="http://myproxy.server.com:8080/" | |
FTP_PROXY="http://myproxy.server.com:8080/" | |
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com" |
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
Example 1 - Sample Task has description and action and method | |
ext.projectVersion = "3.0" | |
project.task("Task1") | |
task("Task2") | |
task "Task3" | |
task Task4 |
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
gradle-task1-example-1 | |
Example 1 - Sample Task has description and action and method | |
ext.projectVersion = "3.0" | |
project.task("Task1") | |
task("Task2") |
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
gradle-task1-example-1 | |
Example 1 - Sample Task has description and action and method | |
ext.projectVersion = "3.0" | |
project.task("Task1") | |
task("Task2") |
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
----------ONE COMMAND---------------- | |
cat <<EOF > /etc/yum.repos.d/kubernetes.repo | |
[kubernetes] | |
name=Kubernetes | |
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 | |
enabled=1 | |
gpgcheck=1 | |
repo_gpgcheck=0 | |
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg | |
exclude=kube* |
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
======================================= | |
Method 1 | |
======================================= | |
for n in $(kubectl get -o=name pvc,configmap,serviceaccount,secret,ingress,service,deployment,statefulset,hpa,job,cronjob) | |
do | |
mkdir -p $(dirname $n) | |
kubectl get -o=yaml --export $n > $n.yaml | |
done | |
======================================= | |
Method 2 |
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
# Add following configuration in /etc/sysconfig/docker file: | |
# vi /etc/sysconfig/docker | |
export HTTP_PROXY="http://USERNAME:PASSWORD@[your.proxy.server]:[port]" | |
export HTTPS_PROXY="https://USERNAME:PASSWORD@[your.proxy.server]:[port]" | |
# vi /etc/sysconfig/docker | |
HTTP_PROXY="http://user01:[email protected]:8080" | |
HTTPS_PROXY="https://user01:[email protected]:8080" | |
# Restart the Docker daemon after setting up the proxy. | |
service docker restart |