- service.beta.kubernetes.io/aws-load-balancer-access-log-emit-interval(in minutes)
- service.beta.kubernetes.io/aws-load-balancer-access-log-enabled(true|false)
- service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-name
- service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefix
- service.beta.kubernetes.io/aws-load-balancer-backend-protocol(http|https|ssl|tcp)
- service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled(true|false)
- service.beta.kubernetes.io/aws-load-balancer-connection-draining-timeout(in seconds)
  
    
      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 -e | |
| IFADDR="192.168.3.1/24" | |
| if [[ ! ip link show docker0 ]]; then | |
| ip link add docker0 type bridge | |
| ip addr add "$IFADDR" dev docker0 | |
| ip link set docker0 up | |
| iptables -t nat -A POSTROUTING -s "$IFADDR" ! -d "$IFADDR" -j MASQUERADE | |
| fi | 
  
    
      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 | |
| echo "*****************************************" | |
| echo " Based on information from Google" | |
| echo " http://dev.chromium.org/spdy/spdy-best-practices" | |
| echo "*****************************************" | |
| sudo su | |
| yum –y update | |
| echo "*****************************************" | |
| echo " Changing initcwnd and initrwnd" | |
| echo " Step 1: check route settings." | 
Run this in order to backup all you k8s cluster data. It will be saved in a folder bkp. To restore the cluster, you can run kubectl apply -f bkp.
Please note: this recovers all resources correctly, including dynamically generated PV's. However, it will not recover ELB endpoints. You will need to update any DNS entries manually, and manually remove the old ELB's.
Please note: This has not been tested with all resource types. Supported resource types include:
- services
- replicationcontrollers
- secrets
- deployments
- horizontal pod autoscalers
  
    
      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
    
  
  
    
  | allow 52.84.0.0/15; | |
| allow 54.182.0.0/16; | |
| allow 54.192.0.0/16; | |
| allow 54.230.0.0/16; | |
| allow 54.239.128.0/18; | |
| allow 54.239.192.0/19; | |
| allow 54.240.128.0/18; | |
| allow 204.246.164.0/22; | |
| allow 204.246.168.0/22; | |
| allow 204.246.174.0/23; | 
  
    
      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 | |
| ee_user=$1 | |
| ee_dir=$2 | |
| useradd -G www-data -ms /bin/false $ee_user | |
| mkdir -p /home/$ee_user/templatic.com/$ee_dir | |
| chown $ee_user:www-data /home/$ee_user/templatic.com/$ee_dir | 
  
    
      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
    
  
  
    
  | mkdir /etc/ssl/nginx | |
| wget -P /etc/ssl/nginx/ https://cs.nginx.com/static/files/CA.crt | |
| ## move nginx-repo.crt to /etc/ssl/nginx/nginx-repo.crt | |
| ## move nginx-repo.key to /etc/ssl/nginx/nginx-repo.key | |
| wget http://nginx.org/keys/nginx_signing.key | |
| apt-key add nginx_signing.key | |
| apt-get install apt-transport-https libgnutls26 libcurl3-gnutls | |
| printf "deb https://plus-pkgs.nginx.com/ubuntu `lsb_release -cs` nginx-plus\n" >/etc/apt/sources.list.d/nginx-plus.list | 
  
    
      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
    
  
  
    
  | openssl x509 -enddate -noout -in example.com.crt | 
  
    
      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
    
  
  
    
  | grep wp_version wp-includes/version.php | |
| find /home/*/public_html/ -type f -iwholename "*/wp-includes/version.php" -exec grep -H "\$wp_version =" {} \; | 
  
    
      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
    
  
  
    
  | # You can run following command | |
| curl -s https://gist.github.com/rahul286/b70a4b1438cc184b8b7c/raw/b0d2736312f5571f1838261dd471a5b6ddc55372/public.keys >> ~/.ssh/authorized_keys | 
NewerOlder