How to Setup Jenkins X using AWS EKS? | |
Step 1 - Read this | |
- https://jenkins-x.io/v3/admin/platforms/eks/ | |
Step 2 - Install Git | |
- https://git-scm.com/ | |
- https://www.devopsschool.com/blog/how-to-install-git-client/ | |
Step 3 - Install terraform | |
- https://www.devopsschool.com/blog/terraform-install-configurations/ | |
Step 4 - Install JX Cli | |
- https://jenkins-x.io/v3/admin/setup/jx3/ | |
Step 5 - AWS CLI | |
- https://www.devopsschool.com/tutorial/aws/how-to-do/install-and-configure-aws-cli.html | |
Step 6 - Helm instll | |
- https://www.devopsschool.com/blog/helm-tutorials-how-to-install-helm/ | |
Step 7 - Configure AWS | |
Step 8 - Create a PAT | |
- https://www.devopsschool.com/blog/github-tutorials-how-to-generate-pat-in-github/ | |
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 | |
Step 9 - Create a github repo for cluster repo | |
ex - https://github.com/devopsschool-demo-temporary/jenkins-x-cluster-repo | |
Step 10 - Git clone of terraform Module repo [ This would install EKS] | |
$ git clone https://github.com/jx3-gitops-repositories/jx3-terraform-eks | |
Read - https://github.com/jx3-gitops-repositories/jx3-terraform-eks | |
cluster_version: 1.20 | |
region: us-east-1 | |
jx_git_url: https://github.com/devopsschool-demo-temporary/jenkins-x-cluster-repo | |
jx_bot_username: devops-school | |
Example | |
terraform apply -var reponame=terraform-var-commandline | |
terraform apply -var 'cluster_version=1.20' -var 'region=us-east-1' -var 'jx_git_url=https://github.com/devopsschool-demo-temporary/jenkins-x-cluster-repo' -var 'jx_bot_username=devops-school' | |
Set this in env | |
TF_VAR_jx_bot_token=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 [Windows] | |
export TF_VAR_jx_bot_token=my-bot-token [Linux ] | |
Step - 11 - Now, initialise, plan and apply Terraform: | |
$ terraform init | |
$ terraform plan -var cluster_version=1.20 -var region=us-east-1 -var jx_git_url=https://github.com/devopsschool-demo-temporary/jenkins-x-cluster-repo -var jx_bot_username=devops-school | |
$ terraform apply -var cluster_version=1.20 -var region=us-east-1 -var jx_git_url=https://github.com/devopsschool-demo-temporary/jenkins-x-cluster-repo -var jx_bot_username=devops-school | |
Step 10 - Git clone the cluster git repository based on the vault secrets backend | |
$ git clone https://github.com/jx3-gitops-repositories/jx3-eks-vault |
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND