Skip to content

Instantly share code, notes, and snippets.

View 04-02-gcr.sh
# Source: https://gist.github.com/59f647c62db7502a2ad9e21210f38c63
# Pre-requisites: https://gist.github.com/2aa8ee4a6451fd762b1a10799bbeac88
gcloud auth configure-docker
docker image pull \
vfarcic/devops-toolkit-series
export IMAGE=gcr.io/$PROJECT_ID/devops-toolkit-series:0.0.1
View 04-03-knative.sh
# Source: https://gist.github.com/dc4ba562328c1d088047884026371f1f
###########################################################
# Using Knative To Deploy And Manage Serverless Workloads #
###########################################################
######################
# Installing Knative #
######################
View gke-simple.sh
# Source: https://gist.github.com/ebe4ad31d756b009b2e6544218c712e4
####################
# Create a Cluster #
####################
# Only if you did not yet clone that repository
git clone \
https://github.com/vfarcic/devops-catalog-code.git
View docker-5gb-4cpu.sh
# Source: https://gist.github.com/bf30b06cbec9f784c4d3bb9ed1c63236
####################
# Create a Cluster #
####################
# Make sure that Kubernetes is enabled
# Make sure that you do NOT have Ingress set up.
# If you do, please uninstall it since it would conflict with Istio exposed on port 80.
View aks-simple.sh
####################
# Create a Cluster #
####################
# Only if you did not yet clone that repository
git clone \
https://github.com/vfarcic/devops-catalog-code.git
cd devops-catalog-code
View aks.sh
####################
# Create a Cluster #
####################
# This script assumes that you followed the instructions from the "Creating And Managing Google Kubernetes Engine (GKE) Clusters With Terraform" section" section.
# It assumes that you have:
# * The resource group *devops-catalog-aks*
# * The storage account *devopscatalog*
# * The storage container *devopscatalog*
View eks-simple.sh
# Source: https://gist.github.com/8ef7f6cb24001e240432cd6a82a515fd
####################
# Create a Cluster #
####################
# Only if you did not yet clone that repository
git clone \
https://github.com/vfarcic/devops-catalog-code.git
View minikube-5gb-4cpu.sh
####################
# Create a Cluster #
####################
minikube start --memory 5g --cpus 4
#######################
# Destroy The Cluster #
#######################
View 99-ha.md

DEmystifying High-Availability

What Is High-Availability?

Availability is the period of time when a service (an application or a system) is available. It is measured from user's perspective and, in this context, a user is anyone or anything interacting with that service. It's a simple question. Is the application available to users (almost) always?

Lack of availability can be caused by many things. The application might not be running for a while because it failed or it is being upgraded. Often, an application might be up-and-running, but not available to users. It might be saturated with too many requests, dependant applications might not be available, networking might not be working, and so on and so forth.

High-availability means that an application is available almost always. Today, highly-available applications are considered those that have at least a few nines after 99%. Anything below at least one nine after the decimal (99.9%), is NOT considered highly available by today's standards. That m

View 04-02-aci.sh
# Source: https://gist.github.com/6d6041896ef1243233c11b51d082eb6e
# Pre-requisites: https://gist.github.com/34009f4c65683dd3a82081fa8d76cd85
az acr login --name $REGISTRY_NAME
docker image pull \
vfarcic/devops-toolkit-series
export IMAGE=$REGISTRY_NAME.azurecr.io/devops-toolkit-series:0.0.1
You can’t perform that action at this time.