In this blog post, you will find a setup that deploy Docker swarm cluster to AWS.
Here is one idea how to automate AWS infrastructure to deploy it easily and safety, using a tool from HashiCorp. That tool is Terraform. Using Terraform helps to create the infrastructure you can change, and trace safely and efficiently.
Go to this link in GitHub for details of the setup.
The istruction how to install the tool you may find on the official page. I use a docker image by amontaigu to run Terraform as a Docker container. To run Terraform commands, I created a shell script you can find it in the repo.
That is it.
Terraform is managing infrastructure by the *.tf files. In README, It is provided all necessary information you may need to use the setup. I just describe the files, help you to build a picture how it works.
A small swarm cluster will be created during startup. One swarm manager + two swarm workers. The swarm is initiated during provisioning. All other swarm agents (workers) will connect to the manager by a token, generated during the swarm initialisation. The trick is we should do it automatically, but we don’t know the token before the initialisation. To send the token to the agents, I copy it to a file on the swarm-manager instance and do “scp” to the agent’s machines.
After all configuration files are ready, you can do check if there are no mistakes
This command will show up either syntax errors or list of resources will be created. After you can run
This command will build and run all resources in the *.tf files. If you run this command many times, Terraform will be destroying previous instances before creating new ones. That is it. Now you have fully functioned docker swarm cluster in AWS.
Using Terraform, you may also configure secure groups, VPC, networks, iam’s and so on. It is the power tool to automate infrastructures. The most important thing is tools like Terraform helps you keep configuration tracible, like this setup in GitHub. It gives you the ability to deploy your infrastructure repeatedly from any host.
Do you have a tendency to use the backlog as an eternal placeholder? If so, you probably have a lot of clutter that’s creating a lot of frustrations for your end-users. In this post we’ll show you how to clean up your Jira issues and reduce the backlog with some basic JQL queries.
Tips to improve project management in the Atlassian suite
How to test Kubernetes artifacts like Helm charts and YAML manifests in your CI pipelines with a low-overhead, on-demand Kubernetes cluster deployed with KIND - Kubernetes in Docker.
Low overhead, on-demand Kubernetes clusters deployed on CI Workers Nodes with KIND
Had enough of sluggish polling? With instant Artifactory event triggers you can give responsiveness in Jenkins a real boost. Here’s an easy way to set it up.
A super easy configuration guide
With the arrival of microservices code is becoming disposable. Does this mean that we no longer need maintainable code? Is it the end of refactoring?
Still relevant or increasingly redundant?
In software development tight coupling is one of our biggest enemies. On the function level it makes our application hard to change and fragile. Unfortunately, tight coupling is like the entropy of software development, so we have always have to be working to reduce it.
How to safely introduce modular architecture to legacy software
I am an Atlassian certified trainer and over the years I have been spending much time with clients and their Jiras. In this blogpost, I have collected some small tips and tricks that will make your Jira usage better.
Jira Software is a powerful tool deployed in so many organizations, yet in day to day usage people are missing out on improvements, big and small.
In this post, I’ll take a closer look at the version of Jenkins X using Tekton, to give you an idea of how the general development, build, test, deploy flow looks like with Jenkins X. How does it feel to ship your code to production using a product coming from the Jenkins community that has very little Jenkins in it?
A crash course in Jenkins X and how to test it out on a local Kubernetes cluster
In this blog I will show you how to create snapshots of Persistent volumes in Kubernetes clusters and restore them again by only talking to the api server. This can be useful for either backups or when scaling stateful applications that need “startup data”.
Sneak peak at CSI Volume snapshotting Alpha feature
When I read Fowler’s new ‘Refactoring’ book I felt sure the example from the first chapter would make a good Code Kata. However, he didn’t include the code for the test cases. I can fix that!
Writing tests for ‘Theatrical Players’
Nicole Forsgren and the Accelerate DORA team has just released the newest iteration of the State of DevOps report. The report investigates what practices make us better at delivering valuable software to our users as measured by business outcomes. Read on for our analysis of the report, and how it can be best put to use.
The latest drivers of software delivery performance
Hear about upcoming events in Scandinavia, latest tech blogs, and training in the field of Continuous Delivery and DevOps