1618667146
In this video, you will learn about deploying Microservice applications to Kubernetes Cluster using Github Actions.
Github Actions provides a way to automates the different workflows for our applications with different events.
GitHub Link: https://bit.ly/3twL8M8
📚Course Contents 📚
⌚ (00:00) Intro
⌚ (00:21) What is GitHub Actions
⌚ (1:15) Project Details
⌚ (02:00) Project Architecture
⌚ (03:46) Creating GKE Cluster
⌚ (06:06) Creating GitHub Actions
⌚ (07:47) Adding Workflow configuration
⌚ (22:13) Committing Changes
⌚ (27:18) Connecting to GKE Cluster
#github #microservices
1601042400
Long story short: Jekyll is a template engine changing
markdown
documents on staticHTML
webpages, that you can then host anywyere, because you don’t need databases or server that has PHP or Python.
Normally the process of adding new post looks like this:
asvid.github.io
jekyll build
#github-pages #github-page-with-jekyll #jekyll #github-actions #github #deployment #continuous-deployment #web-development
1599055326
The shift towards microservices and modular applications makes testing more important and more challenging at the same time. You have to make sure that the microservices running in containers perform well and as intended, but you can no longer rely on conventional testing strategies to get the job done.
This is where new testing approaches are needed. Testing your microservices applications require the right approach, a suitable set of tools, and immense attention to details. This article will guide you through the process of testing your microservices and talk about the challenges you will have to overcome along the way. Let’s get started, shall we?
Traditionally, testing a monolith application meant configuring a test environment and setting up all of the application components in a way that matched the production environment. It took time to set up the testing environment, and there were a lot of complexities around the process.
Testing also requires the application to run in full. It is not possible to test monolith apps on a per-component basis, mainly because there is usually a base code that ties everything together, and the app is designed to run as a complete app to work properly.
Microservices running in containers offer one particular advantage: universal compatibility. You don’t have to match the testing environment with the deployment architecture exactly, and you can get away with testing individual components rather than the full app in some situations.
Of course, you will have to embrace the new cloud-native approach across the pipeline. Rather than creating critical dependencies between microservices, you need to treat each one as a semi-independent module.
The only monolith or centralized portion of the application is the database, but this too is an easy challenge to overcome. As long as you have a persistent database running on your test environment, you can perform tests at any time.
Keep in mind that there are additional things to focus on when testing microservices.
Test containers are the method of choice for many developers. Unlike monolith apps, which lets you use stubs and mocks for testing, microservices need to be tested in test containers. Many CI/CD pipelines actually integrate production microservices as part of the testing process.
As mentioned before, there are many ways to test microservices effectively, but the one approach that developers now use reliably is contract testing. Loosely coupled microservices can be tested in an effective and efficient way using contract testing, mainly because this testing approach focuses on contracts; in other words, it focuses on how components or microservices communicate with each other.
Syntax and semantics construct how components communicate with each other. By defining syntax and semantics in a standardized way and testing microservices based on their ability to generate the right message formats and meet behavioral expectations, you can rest assured knowing that the microservices will behave as intended when deployed.
#testing #software testing #test automation #microservice architecture #microservice #test #software test automation #microservice best practices #microservice deployment #microservice components
1601376600
GitHub Actions makes it easy to automate all your software workflows. You can build, test, and deploy your code right from GitHub. In this post we will explore how you can use GitHub Actions to automate serverless application deployment on AWS. You can also use AWS’s own CI/CD services to achieve the same. But here we are going to keep our discussion limited to GitHub Actions.
Creating a GitHub action is simple. Go to your GitHub repository that you want to automate and click on “Actions”
You will be taken to Actions page where you can create a new Blank workflow or select existing actions from the marketplace. The actions from marketplace are reusable actions that you can use in your workflow. We are going to create a blank action and we will also use some actions from marketplace.
Let’s rename the YAML file to workflow.yml. You can name anything you like. We are going to create a Lambda function with API gateway in Serverless Application Model (SAM) template and deploy it using GitHub Actions. Below is our SAM template.
YAML
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description:
GitHub Actions demonstration App
Resources:
ApiGatewayApi:
Type: AWS::Serverless::Api
Properties:
StageName: Prod
Auth:
UsagePlan:
CreateUsagePlan: PER_API
Description: Usage plan for this API
Quota:
Limit: 500
Period: MONTH
Throttle:
BurstLimit: 100
RateLimit: 50
LamdbaFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./
Handler: lambda.handler
Runtime: python3.8
Events:
getCounter:
Type: Api
Properties:
Path: /hello
Method: get
RestApiId: !Ref ApiGatewayApi
#aws #automation #deployment automation #github actions #how-to guides
1618667146
In this video, you will learn about deploying Microservice applications to Kubernetes Cluster using Github Actions.
Github Actions provides a way to automates the different workflows for our applications with different events.
GitHub Link: https://bit.ly/3twL8M8
📚Course Contents 📚
⌚ (00:00) Intro
⌚ (00:21) What is GitHub Actions
⌚ (1:15) Project Details
⌚ (02:00) Project Architecture
⌚ (03:46) Creating GKE Cluster
⌚ (06:06) Creating GitHub Actions
⌚ (07:47) Adding Workflow configuration
⌚ (22:13) Committing Changes
⌚ (27:18) Connecting to GKE Cluster
#github #microservices
1617437520
I recently deployed my portfolio site and wanted to try out github actions and this is my experience of automating the deployment.
This article is more focused on how you can use the GitHub actions and how easy it is to deploy your code to GitHub pages rather than the portfolio site code.So every time you make an update or build to your website ,the changes are automatically reflected and this automated deploying process makes work much faster.
The way GitHub action works is you create actions in your repositories by creating one or more yaml files and these are called workflows.Workflows now can handle build tasks like CI CD. This means you use the action to test your code and push the site to the desired hosting platform (in this case GitHub pages ) when the main branch changes .
First step assuming that you have a GitHub account is to create a repository having your website code in it.Now I have a bootstrap website but in the future I do plan on adding node JS so I already added package.json.
#workflow #portfolio #github #github-actions #github-pages