- Install Java
- Install Git
- Install Maven
- Install Docker
- Install Jenkins
- Install Helm
- EKS Cluster
yum install java-1.8.0-openjdk-devel -y
yum install git -y
wget https://mirrors.estointernet.in/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar xvzf apache-maven-3.6.3-bin.tar.gz
vi /etc/profile.d/maven.sh
--------------------------------------------
export MAVEN_HOME=/opt/apache-maven-3.6.3
export PATH=$PATH:$MAVEN_HOME/bin
--------------------------------------------
source /etc/profile.d/maven.sh
mvn -version
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum install jenkins
service jenkins start
yum install docker -y
service docker start
usermod -aG docker jenkins
service jenkins restart
vi /etc/sudoers
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
jenkins --> Manage Jenkins --> Available
- CloudBees AWS Credentials
- Kubernetes Credentials
- Kubernetes Continuous Deploy
- docker credentials
(credentialsId: 'docker_credentials', username: 'username', password: 'password')
- kubernetes config credentials
(credentialsId: 'kube_config', variable: 'KUBECONFIG')
- aws configure credentials
(accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'aws_configure', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')
And one more step we need to do in Github
Now we can try by change anything inside Github
http://a66329da6d1804b61bdf5318a40ce772-1936783521.us-east-1.elb.amazonaws.com:8080/hello