Posts

Showing posts from July, 2023

DevOps Tools

 HELM Helm is a Kubernetes package manager used for installing and managing K8s applications. Charts are Helm packages which contain k8s manifest. And each chart can have its child charts as well. Application can be shared using Helm charts avoids rebuilding apps from scratch . Helm create 'chart name' -- will create a helm chart.     Contains Chart.yaml Values.yaml templates dir - contains k8s manifest files

Deploying Springboot project to Podman container

  • Get a VM with Podman • Login to VM • Run podman login /artifactory.global.standardchartered.com/artifactory/docker-release/ ○ Enter BankID and Pwd ○ Login Succeeded • To pull an image use podman pull reponame/imagename • Reponame  =  artifactory.global.standardchartered.com/ • Podman pull artifactory.global.standardchartered.com/nginx:latest (this works) • Without sudo it fails with error -  processing tar file(potentially insufficient UIDs or GIDs available in user namespace •  sudo podman pull  artifactory.global.standardchartered.com/nginx:latest - this work fine and image is now available locally • To create a container from local image ○ Sudo podman create --name "somename" imageid ○ Creates a pod but doesn’t run • To start a local container --> sudo podman start "container name" •  sudo podman run -d --name nginx-app -p 8080:80 -d  artifactory.global.standardchartered.com/nginx:latest curl localhost:8080 --> will h

Instagram Design

  Instagram design Top Features 1.      User registration/login 2.      Feeds on home page from fav people 3.      View Comments/Add comment 4.      Create post 5.      Reels 6.      Keyword search   Data store – User Profiles 1.      Millions of users 2.      Users linked with each – Graph DB Data storge – User content - Relational 1.      User ID 2.      Content ID 3.      Content URL 4.      Uploaded date time   Create Post – Rest API – ·        Content Upload – Reviewed – Virus Check - Categorized – Tagged – Stored. ·        Storage – in S3 IA and eventually moved to other S3 buckets ·        Content cached in Cloudfront spread globally ·        API is going to be hit million times a day – API gateway ·        Availability – taken care by multi-AZ, multi- region arch ·        Scalability – taken care by the container platform and elasticity ·          Queue based Feed publishing ·        Whenever there is new post created – ev