Published in ITNEXT·PinnedRouting external traffic into your Kubernetes servicesThere are several methods to route internet traffic to your Kubernetes cluster. However, when choosing the right approach, we need to consider some factors such as cost, security, and maintainability. …Kubernetes5 min read
Jan 28, 2021Do we need liveness and readiness probes in Kubernetes deployments?One of the most common question with the Kubernetes deployment is, do we really need liveness or readiness probes? The simple answer to this question is ‘YES’, let’s dive into more details so that you will understand why. Liveness and readiness are the two main probe types available in Kubernetes…Livenessprobe3 min read
Published in ITNEXT·Dec 8, 2020Create Lambdas in an existing VPC using CDKBy default lambda is not bound to a VPC and it can communicate with all the resources inside public subents. However, there are many use cases that you need to connect your lambda with databases, ec2 or internal services inside private subnets in a VPC. …Lambda2 min read
Published in ITNEXT·Dec 3, 2020Deploying Lambda Functions with Lambda layers using CDKServerless deployment needs to import libraries and dependencies into the Lambda functions. So the easiest way to import those third party dependencies to your function is to use Lamda Layers. Today I am going to show you how to use this lambda layer inside your CDK code. The example code…Lambda2 min read
Nov 24, 2020Pass environment variables to lambda function deployed with AWS CDKThere are cases that we need to deal with passing information inside lambda function using environment variables.Lambda1 min read
Published in FAUN Publication·Nov 13, 2020Cross-account access to invoke AWS lambda using AWS CDKIf you are here, you may have a pretty good knowledge of how to use AWS CDK for defining cloud infrastructure in code and provisioning it through AWS. So let’s get started on how to grant permission to your lambda function to access the resources in another AWS account. let’s…Lambda3 min read
Published in ITNEXT·Jun 24, 2020Monitoring Multiple Kubernetes Clusters using a single Kibana DashboardWhen we have to manage multiple Kubernetes environments, it would be easy that we can monitor all the cluster metrics using a single Kibana dashboard. Let’s say we have 2K8s environments such as test and production and we are sending all the metrics of both environments to a single Kibana…Kubernetes2 min read
Published in ITNEXT·Jun 24, 2020Setup Metricbeat on Kubernetes and config Kibana dashboard to visualize cluster dataWhat is Kibana? Kibana is an open-source application which provides search and data visualization capabilities for data indexed in Elasticsearch. Mainly Kibana acts as the user interface for monitoring and managing an Elastic Stack cluster. Kibana simplifies analyzing the data through the creation of bar charts, pie charts, tables, histograms…Kibana4 min read
Published in ITNEXT·Apr 13, 2020Back up and restore EKS Kubernetes cluster resourcesBackups are critical. It is a good practice that you backup your Kubernetes cluster resources before performing severe tasks on the cluster. There is a tool called Velero, which allows you to back up the Kubernetes cluster resources in an easy manner. From this blog, I am going to…Velero3 min read
Published in ITNEXT·Mar 9, 2020Kubernetes node affinity: Placing pods on specific nodesThere are some cases that we need to run some of our applications on a specific node in a Kubernetes cluster. For example there is an application which requires more resources than any single node in the cluster. In this case we need to create a new node and place…Kubernetes3 min read