Posts

Showing posts from January, 2020

How do you build 12-factor apps using Kubernetes?

Let’s look at what all of this means in terms of Kubernetes applications. Principle I. Codebase Principle 1 of a 12 Factor App is “One codebase tracked in revision control, many deploys”. For Kubernetes applications, this principle is actually embedded in the nature of container orchestration itself.  Typically, you create your code using a source control repository such as a git repo, then store specific versions of your images in the Docker Hub, ECR, ACR. When you define the containers to be orchestrated as part of a a Kubernetes Pod, Deployment, DaemonSet, you also specify a particular version of the image, as in: ... spec:      containers:      - name: AcctApp        image: acctApp:v3 ... In this way, you might have multiple versions of your application running in different deployments. Applications can also behave differently depending on the configuration information with which t...

Go and Test: Cucumber

Go and Test: Cucumber This if the first post of a series of three: Cucumber in Go with Godog Testing with GoConvey solution Mocking. Cucumber in Go with Godog When you begin to work with a new programing language, after you know the syntax and structures of languages, the next step write code. To write code It is necessary to know the testing tools that you can use with the language. This post addresses the tools that I use now with go. In Fexco we believe that first thing that you must do is to define the test and then to write the code. The reason is that we follow the paradigms BDD and TDD. We always define the features that our code must accomplish. The objective is for our code to have a good coverage and then it will do what it is designed for. That is the reason why we write in gherkin what we want the code to do. Writing the test before has something that I specially like: when an bug is discovered in code, the problem is not the code, the problem is that...