avatar

KZK's blog

Lead engineer

Kubernetes administration

Kubernetes administration 🔗Components of the cluster 🔗ETCD 🔗 a key-base database that is high available. Used to store the current state of the cluster kube-apiserver 🔗 Central api that all components use to ask for change or query info. Also is the API that we use with kubectl Scheduler 🔗 In charge to decide to wich node each pod has to go Kube Controller Manager 🔗 Manager of diferent logics in the k8s cluster

Run or Raise

Run-or-Raise shortcuts, are global shortcuts for focusing the window on an app (if already running) or launching it. I have to confess I got addicted, it feels extremely natural to just have a chord (Ctrl-Cmd-Option) and some other key to bring whatever you need in your screen. No more Cmd-Tab-Tab-Tab-Tab until find the app you want. In mac, I get there with Hammerspoon. It’s just a lua embed runtime that give you all the accessibility API in MacOSX.

Recent awesome - dev blog

Recent Awesome 🔗Is similar to github trending page, but for items in awesome lists. It’s composed on two basic parts Crawler: a job executed daily (using github actions?) to parse the awesome lists. The idea is to get some information as (awesome list, category in the list, link to the resource, date added to the list) a simple webpage that could get the json and show you the lastest additions Crawler 🔗First milestone is be able to get the for a sample awesome list (for example this: https://github.

Disposable e-mail

emaildrop.io 🔗 There is a lot of pages that as you to register to get some free product, it’s just annoying… people around me have a trash e-mail account but I never did, you know fucking laziness xD. Anyway there is this service https://www.emaildrop.io/ that generates random email addresses without any hassle!

What? So What? And now What?

read more here

AWS certified solution architect associate

AWS certified solution architect associate 🔗Compute 🔗EC2 Basic 🔗EC2 Types: 🔗 Generar purpose: A, T, M Compute: C Memory optimized: R, X, z Accelerated computing: P, G, F Storage Optimized: H, I, D EC2 Purchase options 🔗 on demand: pay per time of each instance (most expensive). Recommended for short term jobs that cannot be interrupted saving plans: lower prices but commitment to use X amount of USD per hour Reserved instances: lower prices but commitment to use a specific region, instance type Spot instance: bid for the time, good for analytics or short jobs that can be stopped Dedidacated hosts: Pay for a physical host, and bring your existing software licenses Dedicates instances: like on demand, but the physical host is not shared with anybody Capacity reservation: Reserve capacity for your EC2 in specific AZ for any duration (like reseverd instance, but in any time frame and apply and cancel in any time) EC2 - Networking 🔗 Security group: statefull (if you specify that a port is allowed for incomming, if a incoming request is started, we can talk back) NACL: Optional, rules at the level of subnet for allowing/denying trafic (stateless) Elastic IP: give a static ip to a EC2 instance, you can move this EIP around to give it to another instance (ie: fail mode, the instance doesn’t work and you give the IP to another EC2) Elastic Network interface: represents Virtual Network cards, this allows a EC2 instance to have more than 1 IP address in the subnet EBS 🔗 EBS Volumes: Block level storage,

CCDAK (Confluente Certified Developer for Apache Kafka) Notes == Cloud.Guru

CCDAK (Confluente Certified Developer for Apache Kafka) 🔗1 Introduction 🔗1.1 Installation 🔗 Kafka need around 6Gb of JVM Heap Space kafka-topics --list --bootstrap-server localhost:9092 # get the list of topics 1.2 What is Kafka 🔗What is: publish and subscribe to streams of data records store the records in a fault-tolerant and scalable fashion Process streams of records in real-team Kafka can be used to: messaging streaming Strong points: very reliable (not losing data) Fault tolerance robust API 1.

AWS App runner

#TIL AWS App runner 🔗Is like BeansTalk but for containers. You just provide the code, and App Runner does the rest (ECR, Fargate, Load Balance… even build the service ) More info https://semaphoreci.com/blog/aws-app-runner

NeoVim

neovim-config 🔗Followed the Youtube series of neovim from scratch. Here are some notes I took :) To install just clone the repository into ~/.config/nvim/ During first execution, is normal that something is missing… Just execute :PackerInstall Execute :LSPInstall to install LspClients notes 🔗We are using lua, that means we have the configuration spread around the files, and importing them in the init.lua What are AutoCmd 🔗Are scripts that can be executed when specific events happens, for example we could set to reload the plugins, each time the plugins.

Github Actions - Push to AWS container repository (ECR)

We all know the benefits of pushing code automatically to production, here is a small guide on how to do it with Github actions and AWS. The high level steps are: Create a docker image repository in AWS ( ECR ) Create a single user in AWS that only has permissions to add images to the ECR Configure login of the pipeline into AWS Configure the pipeline to do the push Step 1 - Create a docker image repository 🔗For use of all this code, we are going to use AWS-CDK a library to create infrastructure from our code.