GitLab Traps and Pitfalls


Listed several pitfalls in GitLab that might be troublesome in developers’ daily life:

1. Resource Leak While Cancelling Job

Each GitLab job can have script and after_script blocks. Normally, we prepare resources and do the job execution in the script block and cleanup or recycle the resources in the after_script block.

job:
  before_script:
    - prepare resouces and requisites
  script:
    - job commands
  after_script:
    - cleanup/recycle resources

This works well in most scenarios. However, when we manually cancel the job, the after_script block won’t get executed. Resources allocated in the script block might be hanging around there permanently.

Posted by Joey Yu on June 12, 2020

Everything you need to know about AWS assume role


In this article, I will discuss the AWS assume role mechanism. Hopefully, you can understand it for every single details.

Brief Introduction

I will start with a YouTube video:

Posted by Joey Yu on June 7, 2020

Set up rollback stage in GitLab CI/CD pipeline


What’s GitLab?

GitLab is a web-based DevOps lifecycle tool that provides a Git-repository manager providing wiki, issue-tracking and continuous integration/continuous deployment pipeline features, using an open-source license, developed by GitLab Inc.

Posted by Joey Yu on June 5, 2020

Useful shell scripts on Kubernetes world


Kuberntes is becoming more and more popular in application deployment and management as a container-orchestration system. Below are some of the useful shell scripts or commands that can be used in Kubernetes world based on my daily experience.

Posted by Joey Yu on June 1, 2020