Skip to content

Instantly share code, notes, and snippets.

How to Deploy a Flask Application to a EKS Cluster using Jenkins and ArgoCD.

GitOps

Prerequisites.

  • Jenkins Server up and running.
  • Docker and git installed inside Jenkins Server.
  • Docker Hub account.
  • AWS Account.
  • GitHub Account.
  • EKS Cluster running
  • Basic Understanding of Jenkins, Docker and Kubernetes.
{
"autoscaling": {
"CreateAutoScalingGroup": "autoscaling:CreateAutoScalingGroup",
"CreateLaunchConfiguration": "autoscaling:CreateLaunchConfiguration",
"CreateOrUpdateScalingTrigger": "autoscaling:CreateOrUpdateScalingTrigger",
"CreateOrUpdateTags": "autoscaling:CreateOrUpdateTags",
"DeleteAutoScalingGroup": "autoscaling:DeleteAutoScalingGroup",
"DeleteLaunchConfiguration": "autoscaling:DeleteLaunchConfiguration",
"DeleteNotificationConfiguration": "autoscaling:DeleteNotificationConfiguration",
"DeletePolicy": "autoscaling:DeletePolicy",
@santoshstha
santoshstha / docker-help.md
Created January 13, 2024 07:58 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@santoshstha
santoshstha / README.md
Created January 13, 2024 07:06 — forked from dims/README.md
Kubernetes Resources
@santoshstha
santoshstha / Highcharts Cheat Sheet
Created September 7, 2022 09:48 — forked from mulhoon/Highcharts Cheat Sheet
Highcharts Cheat Sheet
$('#container').highcharts({
chart: {
alignTicks: true, // When using multiple axis, the ticks of two or more opposite axes will automatically be aligned by adding ticks to the axis or axes with the least ticks.
animation: true, // Set the overall animation for all chart updating. Animation can be disabled throughout the chart by setting it to false here.
backgroundColor: '#FFF', // The background color or gradient for the outer chart area.
borderColor: '#4572A7', // The color of the outer chart border.
borderRadius: 5, // The corner radius of the outer chart border. In export, the radius defaults to 0. Defaults to 5.
borderWidth: 0, // The pixel width of the outer chart border.
className: null, // A CSS class name to apply to the charts container div, allowing unique CSS styling for each chart.
defaultSeriesType: 'line', // Alias of type.
@santoshstha
santoshstha / Flask-blueprint-with-imported-routes
Created June 2, 2022 05:50 — forked from Jaza/Flask-blueprint-with-imported-routes
Example of how to split a Flask blueprint into multiple files, with routes in each file, and of how to register all those routes.
*
@santoshstha
santoshstha / advanced.csv
Created May 12, 2022 03:09 — forked from Tvkoushik/advanced.csv
Advanced Unix Commands
COMMAND FUNCTIONALITY
grep -v ‘^$’ filename > new_filename Remove Blank Lines in a file
ls -l | grep '^-' | awk '/^-/ {if ($5 !=0 ) print $9 }' Display zero byte size files
sed 's/honey/pasta/n' < filename Replace the nth occurrence of the word 'honey' with 'pasta' in a file
echo 'string' | tr [a-z] [A-Z] command to convert a string from lower case to upper case
grep -i 'search string' filename Search for a given string in a file (case in-sensitive search)
cal 03 2022 Display the calendar for the month march in the year 2022
find -atime n -type f List the files that are accessed n days ago in the current directory
find -mtime n -type f List the files that were modified n days ago in the current directory
find -ctime n -type f List the files that were changed n days ago in the current directory
@santoshstha
santoshstha / basic.csv
Created May 12, 2022 03:09 — forked from Tvkoushik/basic.csv
Basic Unix Commands
COMMAND FUNCTIONALITY
ls Lists all files and directories in the present working directory
ls -R Lists files in sub-directories as well
ls -a Lists hidden files as well
ls -al Lists files and directories with detailed information.
ls 'path' | more Show listing one screen at a time
cd or cd ~ Navigate to HOME directory
cd .. Move one level up
cd To change to a particular directory
cd / Move to the root directory
@santoshstha
santoshstha / react_on_docker2.md
Created February 15, 2022 16:04 — forked from przbadu/react_on_docker2.md
Docker configuration to run react app

Setup docker to run React app

After setting up docker to generate React app without installing node js in https://gist.github.com/przbadu/4a62a5fc5f117cda1ed5dc5409bd4ac1 It was confusing to some of the devs, how to run react app, so I am creating this as second step to the configuration.

Generate required files in your react project

cd my-react-app
touch Dockerfile Dockerfile.dev docker-compose.yml .dockerignore
@santoshstha
santoshstha / Instructions.sh
Created October 10, 2021 11:28 — forked from GhazanfarMir/Instructions.sh
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa