Kubernetes Upgrade Steps:
- Run and review: https://github.com/FairwindsOps/pluto
- Update APIs as needed
- Upgrade EKS version with TF
- Upgrade EKS plugins https://docs.aws.amazon.com/eks/latest/userguide/update-cluster.html
- Turn over the nodes
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
sudo npm install -g npm | |
sudo npm install -g n | |
sudo npm install gulp -g | |
sudo n stable | |
npm rebuild node-sass | |
npm install | |
composer update --no-scripts |
# Install the Let's Encrypt Client | |
sudo apt-get update | |
sudo apt-get install python-letsencrypt-apache | |
# Set up the SSL Certificate for ServerName and ServerAlias | |
# select force SSL if desired | |
# add email | |
# accept terms and conditions | |
# select appropriate .conf file if applicable | |
sudo letsencrypt --apache -d example.com -d www.example.com |
sudo vim /etc/hosts | |
# add this line: | |
127.0.0.1 EXAMPLE.loc | |
# create new conf file based off of the default | |
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/EXAMPLE.loc.conf | |
# edit the apache2.conf file | |
# add this block of text below the other Directory tags | |
<Directory /home/mac/code/ztrust/ztrust/> |
#!/usr/bin/env ruby | |
# 1. Read STDIN (Format: "from_commit to_commit branch_name") | |
from, to, branch = ARGF.read.split " " | |
# 2. Only deploy if master branch was pushed | |
if (branch =~ /master$/) == nil | |
puts "Received branch #{branch}, not deploying." | |
exit | |
end |
# generate key | |
php artisan key:generate | |
# disable debugging | |
sed -i "s/'debug' => env('APP_DEBUG', true),/'debug' => env('APP_DEBUG', false),/g" config/app.php | |
# allow Laravel to write to storeage | |
sudo chmod -R 775 /var/www/SITE-NAME/public/storage | |
composer install --no-dev --optimize-autoloader |
#make sure composer is installed globally | |
composer global require "laravel/installer" | |
#make sure that composer is installed | |
composer install --no-dev --optimize-autoloader | |
#update composer to make sure dependencies are up to date | |
composer update --no-scripts | |
#copy .env.example file as .env |
Kubernetes Upgrade Steps: