What is Helm? Helm is a package manager for Kubernetes. A package manager generally aims to provide a single command to install some software. Installing software likely has dependencies - a package manager should be able to resolve those dependencies. A package manager is supposed to abstract some complexities of installing software and making it … Continue reading All Things Helm 3.0
Author: hrdarji
Kubernetes Cheatsheet [WIP]
kubectl get pods #get pods from default namespace kubectl get pods -o wide #get pods from default namespace kubectl get nodes #get nodes kubectl get pods --all-namespaces #list all pods kubectl drain node_name --ignore-deamonsets --force #drain a node, cannot delete pods managed by replicationcontroller, replicaset, job, deamonset, statefulset kubectl uncordon node_name # allow pods to … Continue reading Kubernetes Cheatsheet [WIP]
OAuth 2.0 and OpenID Connect Explained
What are OAuth 2.0 and OpenID Connect? OAuth 2.0 is an authorization framework developed by IETF defined in RFC 6749. OpenID Connect (AKA OIDC) is an identity layer built on top of OAuth 2.0. OpenID connect specification is built by OpenID Foundation. The Problem Statement If you wanted a service or an application to access … Continue reading OAuth 2.0 and OpenID Connect Explained
Terraform quickstart
What is Terraform? Terraform is an open-source IoC (infrastructure as code) software by HashiCorp. It allows us to define and provision infrastructure using a high-level configuration language. For example, the following piece of code will create a server on AWS. provider "aws" { region = "us-east-1" } resource "aws_instance" "example" { ami = "ami-12345678" instance_type … Continue reading Terraform quickstart
Arithmetic, Logical and Control Instructions in IA32 Assembly
This is not a blog post, per se, but rather an example program that contains basic usage of arithmetic, logical and control instructions. For this blog post, I thought that it is better to describe the example program in the program comments and not in separate paragraphs. We will write a simple program that will … Continue reading Arithmetic, Logical and Control Instructions in IA32 Assembly
Hello World in Assembly
This post is a part of my attempts at learning Assembly with NASM as our assembler with explanation of a simple, helloworld program. ; helloworld.nasm ; Author: HRDARJI global _start section .text _start: ; printing hello world mov eax, 0x4 mov ebx, 0x1 mov ecx, message mov edx, mlen int 0x80 ; exiting properly mov … Continue reading Hello World in Assembly
How to read CPU registers in Ubuntu?
We can inspect CPU registers in a context of a running program. We will compile a simple C program and we will load the binary in gdb command line debugger. Then, we will set a breakpoint in the program. Breakpoint can be thought of halting an executing program. When we run our program, the execution … Continue reading How to read CPU registers in Ubuntu?
Intel Architecture, 32 bit
First and foremost, please understand that I'll be writing about Intel architecture only in detail that is sufficient for getting me started in assembly language. Three main components, or basic building blocks of a computer, that we need to know for assembly language basics are the following: CPU Memory I/O Devices CPU CPU can be … Continue reading Intel Architecture, 32 bit
How to get CPU information in Ubuntu?
Two most common terminal commands by which we can get CPU information are: lscpu cat /proc/cpuinfo Here are the example output: lscpu cat /proc/cpuinfo If you are feeling nerdy, and you want CPU information in much more detail, you can use "cpuid". "cpuid" does not come by default in Ubuntu so you have to do … Continue reading How to get CPU information in Ubuntu?