- GNU/Linux
terraform
docker
kubernetes
https://github.com/AdhamMGaber9/GKE-Infrastrucure-Terraform.git
cd GCP-DevOps
cd Terraform-infastructure
terraform init
terraform plan
terraform apply
cd ../jenkins
- Create
namespace
to isolate the components. - Create
role
to enable thejenkins pod
to create, list, deleteservices and deployments
. - Create
service account
to be attached in thedeployment
. - Create
role bind
to bind therole
withservice account
. - Create
service loadbalancer
to create loadbalacer with external ip to access the application. -
Create
deployment
that contains:- Container with
jenkins
image with container port8080
. - Execute commands to install
docker cli and kubectl
after pod started usinglifecycle
. - Mount volume to use the
Docker
of the node. - Attach the
service account
to make pod create deployments and services in the same cluster - Create the pod with
root
privilege.
- Container with