Skip to content

roeinoah/sampleApp

Repository files navigation

README.md

Prepare the kubernetes cluster on AWS using terraform :

  • connect to terraform server

1.install kubectl install aws-iam-authenticator install eksctl

  1. copy vpc.tf and bucket.tf (includes EKS configuration) to your terraform server , and run "terraform apply"

  2. wait for the deployment to finish.

  3. when it's done run the following commands :

    "aws eks --region eu-central-1 update-kubeconfig --name terraform-eks-demo"

    "terraform output config_map_aws_auth >> aws-auth-cm.yaml"

    "kubectl apply -f aws-auth-cm.yaml"

  4. wait for all the kuberenetes nodes to come up using : kubectl get nodes --watch

  5. copy the follwoing yaml files into the server : jenkins-deployment.yaml , jenkins-service.yaml .

  6. run the following commands : kubectl create -f jenkins-deployment.yaml kubectl create -f jenkins-service.yaml

  7. wait for the jenkins deployment to be ready .

  8. connect to jenkins and configure it with admin user and add docker plugin.

  9. connect Jenkins to github repository via webook to pull the source code and the docker file.

  10. copy the file called deployment.yaml to your server (the one which we will be using to deploy the app itself)

  11. copy the jenkinsfile into jenkins , it will pull the source code + the dockerfile and build it , afterwards it will push it to docker registry and finally it will deploy the app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published