[Document] CI/CD will be change using Kubernetes #116
Labels
status: question
Further information is requested
theme: documentation
Improvements or additions to documentation
Original CI/CD flows
v
prefix and separate intomajor
,minor
andpatch
./gradlew build --build-cache --parallel -Pversion=${new version}
which build the.jar
files and appending${new version}
at the end of.jar
file name. Also creating Dockerfile building with.jar
filesdocker-compose-prod.yaml
in backgroundSince I run 12 docker containers in t2.micro instance, it could be overloaded. I'm considering upgrade EC2 or horizontal scaling or EKS for running multiple servers.
Originally posted by @ghkdqhrbals in #78 (comment)
To explain simple, process will be like this.
Changed CI/CD plan
Same process
Push new tag -> Build projects -> Build images -> Push to ECR.
Different process
Applying multiple
service.yaml
,deploy.yaml
,persistance volume
, etc. files to EC2 kubernetes master node.But here comes with the question.
Since we are using kubernetes, we need to specify the exact name and tag of image that we pull from ECR. How can we write the image name and tag inside every
deploy.yaml
files? Kubernetes API doesn't support regular expression. What we want is that for example, find images withv5.0.1
postfix, pull that images, change to latest tag, write down likeimage: B-service:latest
. The process becomes harder because of image versioning. Since we are using ECR, they automatically versioning our images withimageDigest
so there's no need for custom versioning. But not human-readable. It's just hash values. For human-friendly, I set tag with custom versioning.Anyway how can we write each of deploy.yaml files? Well... Let's find out!
The text was updated successfully, but these errors were encountered: