Knative: Example of Knative Service Example with all the options available

This page walks through a Knative Serving Service manifest that uses most of the commonly used fields: metadata, the revision template, probes, resources, volumes, autoscaling and traffic…

Read More

Knative Tutorials: Knative Service: configmap config-autoscaler

The config-autoscaler ConfigMap in the knative-serving namespace sets the cluster-wide defaults for the Knative Pod Autoscaler (KPA): the concurrency targets, the stable and panic windows, scale-to-zero timing…

Read More

KNative Serving API Resources: Domainmapping

A Knative DomainMapping is a custom resource in the serving.knative.dev API group. It sends a custom domain such as api.example.com to a Knative Service in the same…

Read More

Jenkins Pipeline code for Sending an email on Build Failure

To get an email when a Jenkins build fails, call the mail step (Mailer plugin) or the emailext step (Email Extension plugin) inside the post { failure…

Read More

Kubernetes Tutorials: Example of StorageClass, PersistentVolume, PersistentVolumeClaim using EBS

This page shows how a StorageClass, a PersistentVolume (PV) and a PersistentVolumeClaim (PVC) work together to give Kubernetes pods persistent Amazon EBS storage. Below the original manifests…

Read More

AWS IAM Policy to Protect SES SMTP

You can lock down Amazon SES SMTP credentials with an IAM policy on the IAM user that owns them. A Deny on aws:SourceIp limits which IP addresses…

Read More

Terraform dynamaic block details explaination with example

A Terraform dynamic block generates repeated nested blocks inside a resource, data source, provider or provisioner, such as ingress rules in a security group or rule blocks…

Read More

How to see number of emails sent using smtp in laravel

Laravel does not count or log SMTP emails by default, so a grep will only return a real number once your application writes one log line for…

Read More

Shell script to git add and commit and push each directory at a time

This page shows how to use a Bash script to stage, commit and push changes one directory at a time. That can mean a folder full of…

Read More

MySql Tutorials: How to grant user access to Database?

To give a MySQL user access to one database, create the account with CREATE USER, then grant privileges on database_name.* with GRANT. The syntax in the example…

Read More

How to restore deleted ‘root’ user and password for MySQL

If the MySQL root account has been dropped or its password lost, restart the server with grant checks turned off, recreate the account with CREATE USER and…

Read More

ArgoCD Assignment & Excercise

This page is a hands-on Argo CD and Argo Rollouts assignment. It lists exercises on application creation, syncing, secrets, Helm, blue/green and canary rollouts, followed by interview-style…

Read More

Google Cloud Platform Assignment & Excercise

This page is a Google Cloud Platform (GCP) assignment: hands-on exercises for creating a project, assigning IAM roles and launching a labelled Compute Engine VM, followed by…

Read More

Datadog Tutorials: How to Monitor Apache using Datadog in Windows

To monitor Apache on Windows with Datadog, you expose Apache's mod_status page on localhost, then point the Datadog Agent's built-in Apache check at http://localhost/server-status?auto. The steps above…

Read More

Jenkins Tutorials: Meaning of $class in scripted pipeline

In a Jenkins Pipeline, $class is a special map key that tells Jenkins which plugin or core class to create when a step or property accepts more…

Read More

AWS Tutorials: AWS CodeBuild – Buildspec code for creating AMI from running instances

This page has an AWS CodeBuild buildspec that finds every running EC2 instance tagged environment=uat and creates an AMI from each one with the AWS CLI. It…

Read More

Packer Tutorials: Amazon Secrets Manager Data Source – amazon-secretsmanager

The amazon-secretsmanager data source lets a Packer HCL2 template read a secret from AWS Secrets Manager during a build, so passwords and tokens stay out of your…

Read More

How to Install Helix Core (Perforce Server)

To install Helix Core (the Perforce server, p4d) on Ubuntu, add the official Perforce APT repository and install the helix-p4d package. Then run the bundled configure-helix-p4d.sh script…

Read More

Oracle Tutorial: Install Oracle 19c EE

This guide installs Oracle Database 19c Enterprise Edition on Oracle Linux without the GUI. It uses the preinstall RPM, a software-only runInstaller run, and a DBCA response…

Read More

Knative Tutorials: How to install Knative Serving 1.9 in Minikube?

This page shows how to install Knative Serving 1.9.3 on a local Minikube cluster, using Istio as the networking layer and an optional cert-manager integration. Below the…

Read More

Minikube Tutorials: minikube commands

minikube config set memory 10000 sets the default memory for new minikube clusters. It does not resize a cluster that already exists. This page explains how minikube…

Read More

Packer Tutorials: Packer Install and configurations

HashiCorp Packer is a single binary that builds machine images (AMIs, Azure images, Docker images, VMware templates and more) from one HCL template. The commands above install…

Read More

Terraform: Azure VM using terraform-azurerm-compute Module

The example above uses the community Azure/compute/azurerm and Azure/network/azurerm Terraform modules to build one Linux VM and one Windows VM in Azure. Both share a virtual network…

Read More

Terraform: Azure VM using virtual-machine Module

This tutorial uses the community kumarvna/virtual-machine/azurerm module from the Terraform Registry to deploy two Windows Server 2019 VMs into an existing Azure resource group, virtual network and…

Read More

Terraform: Create Azure Windows VM with file, remote-exec & local-exec provisioner

This page shows how to create an Azure Windows Server VM with Terraform and run all three provisioner types on it: file copies a script to the…

Read More

How to Setup Jenkins X using AWS EKS?

Jenkins X v3 runs on Amazon EKS in two parts. Terraform (the jx3-terraform-eks repository) creates the EKS cluster and installs the Jenkins X git operator. The operator…

Read More

Terraform Error Handing with Try Catch

Terraform has no try { } catch { } block. Error handling in HCL uses the try() function, which returns the first of its arguments that evaluates…

Read More

Zabbix Tutorials: Example of zabbix_proxy.conf

The example above is the full, commented sample zabbix_proxy.conf shipped with Zabbix 7.0. It includes 7.0-only options such as ProxyBufferMode, ProxyMemoryBufferSize and the asynchronous agent, HTTP and…

Read More

Zabbix Tutorials: Example of zabbix_agentd.conf

zabbix_agentd.conf is the configuration file for the classic Zabbix agent on Linux and Unix. It sets which Zabbix servers may poll the agent, where it sends active…

Read More

Zabbix Tutorials: Example of zabbix_agentd.win.conf

zabbix_agentd.win.conf is the sample configuration file that comes with the classic Zabbix agent for Windows. The file above is the stock sample from a recent release, but…

Read More