Bu projemizde bir kubenetes cluster kuracağız. Server 1 Master Node , Server 2 Worker Node olacaktır. Server 3 üzerine docker compose ile docker private registry ve jenkins kuracağız. Jenkins ile build ettiğimiz imageleri docker registry üzerinde tutacağız ve yine jenkins ile kubernetes clustera ileteceğiz.
Server 1 ve 2 Kurulumu için bu dosyadaki yönergeleri takip edeceğiz
Jenkins kurulumu için bu docker compose dosyasını kullanalım
Jenkins kurulumu sonrası projemizi kubernetese göndermemiz için bu Pipeline ihtiyacımız olacak.
Private Docker Registry kurulumu için bu docker compose dosyasını kullanalım
Dockerize etmemiz için gereken Docker file kodumuz bu şekildedir.
Hello world sayfamızın kodlarına erişmek için
Bir sonraki aşamada NGINX Ingress Controller kurarak istekleri 80 portundan alıp içeride 300007 portuna yönlendirebiliriz.
![image](https://private-user-images.githubusercontent.com/57253957/276595674-421f48f7-35a2-416a-b92b-9c6e60fc90e2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ5ODYxMDcsIm5iZiI6MTcyNDk4NTgwNywicGF0aCI6Ii81NzI1Mzk1Ny8yNzY1OTU2NzQtNDIxZjQ4ZjctMzVhMi00MTZhLWI5MmItOWM2ZTYwZmM5MGUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMwVDAyNDMyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmMTkyMGNlN2NkZjgyNTg1OTVlZmQxZjc2YTNmYWQ1NThhZWU4MDMwOTliZmYyM2JjMGRkZGFhNzI1MTIyMzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.vMIieSI5KeYSFp0ri_uruwJ_RSltLzfMS7ZBO-5EZmY)
![image](https://private-user-images.githubusercontent.com/57253957/276596028-07553e1b-c171-4971-ad6b-c8ffc9b2f511.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ5ODYxMDcsIm5iZiI6MTcyNDk4NTgwNywicGF0aCI6Ii81NzI1Mzk1Ny8yNzY1OTYwMjgtMDc1NTNlMWItYzE3MS00OTcxLWFkNmItYzhmZmM5YjJmNTExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMwVDAyNDMyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxYWY5ZjU5ZGEzMGNkOWQ3ODdjMzA5N2QwMjE1MDc3YzA3MmRiNWM4OTBjN2Y4NjA2NDA3MTM3ZjQ1NmViNmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UGNY-fGE431358y1UoufYwrfEGm6CLzk2wvHu9vKG9w)
![image](https://private-user-images.githubusercontent.com/57253957/276596404-434332f3-80f1-49df-9d80-c968dc93c654.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsIm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