Тёмный
No video :(

How to Create GKE Cluster Using TERRAFORM from Scratch? (GCP Shared VPC | Terraform GCP Kubernetes) 

Anton Putra
Подписаться 54 тыс.
Просмотров 17 тыс.
50% 1

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 49   
@AntonPutra
@AntonPutra 11 месяцев назад
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
@felipedonadon7039
@felipedonadon7039 3 месяца назад
I've been into DevOps for barely two years now, and have just started using GCP due to a new client that we now have. Your videos are a lifesaver brother, thank you so much for the clear explanations and all the tutorials!
@AntonPutra
@AntonPutra 3 месяца назад
thank you so much, I'll refresh them soon
@AntonPutra
@AntonPutra Год назад
👉 How to Manage Secrets in Terraform - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3N0tGKwvBdA.html 👉 Terraform Tips & Tricks - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7S94oUTy2z4.html 👉 ArgoCD Tutorial - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zGndgdGa1Tc.html
@AntonPutra
@AntonPutra 3 года назад
RU-vid still processing HD version of this video, the quality should improve soon...
@AntonPutra
@AntonPutra 2 года назад
🔴UPDATED🔴 How to Create GKE Cluster Using TERRAFORM? (Google Kubernetes Engine & Workload Identity) - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-X_IK0GBbBTw.html
@AntonPutra
@AntonPutra 3 года назад
⏱️TIMESTAMPS⏱️ 0:00 Intro 0:24 Define Terraform Google Provider 01:41 Create Terraform Locals Variables 04:42 Create Google Projects Using Terraform 06:06 Create Terraform google_compute_network 06:50 Create Terraform google_compute_subnetwork 08:10 Create Terraform google_compute_router 08:56 Create Terraform google_compute_router_nat 10:27 Create Terraform google_compute_shared_vpc_host_project 10:58 Create Terraform google_compute_shared_vpc_service_project 11:09 Create Terraform google_compute_subnetwork_iam_binding 11:38 Create Terraform google_project_iam_binding 12:05 Create Terraform google_service_account 12:48 Create Terraform google_container_cluster 14:53 Create Terraform google_container_node_pool 19:35 Deploy Nginx and Create Public Loadbalancer 22:25 Create Terraform google_compute_firewall
@knightrider6478
@knightrider6478 2 года назад
Super super video Anton !!! Thank you for your effort in making up this kind of videos. If you allow me I would like to suggest you to make a video on how to deploy Google Anthos using Ansible / Terraform, it will be a great addition to the very useful collection of videos. Currently I'm struggling to learn how to deal with all the init part of Google SDK by using Ansible. Best regards !
@AntonPutra
@AntonPutra 2 года назад
Thank you! I'll add it to my list :)
@ErsanYolcu
@ErsanYolcu 3 года назад
This is an amazing content. Thank you for your hard work and sharing. Keep it up!
@AntonPutra
@AntonPutra 3 года назад
Thank you Ersan! Will do :)
@eappan100
@eappan100 2 года назад
Very good content and presentation. Just necessary details!
@AntonPutra
@AntonPutra 2 года назад
Thanks
@joeb.1163
@joeb.1163 3 года назад
Thank so much, this is very good content
@AntonPutra
@AntonPutra 3 года назад
Glad you think so!
@davidcsidavidcsi
@davidcsidavidcsi 2 года назад
Very good stuff! Thanks!!
@AntonPutra
@AntonPutra 2 года назад
My pleasure! Code is here - github.com/antonputra/tutorials/tree/main/lessons/069
@nahum35
@nahum35 3 года назад
Very inspiring my friend. :)
@AntonPutra
@AntonPutra 3 года назад
Thanks so much!
@sasidharpathapati8677
@sasidharpathapati8677 3 года назад
Hi @anton,Thank you so much man,You were really amazing .Can you please tell me about creating a Private GKE cluster .Usng bastion if possible
@AntonPutra
@AntonPutra 3 года назад
Hi Sasidhar, I don't think that you need bastion in gcp at all. To ssh just use gcloud compute ssh command, also about to wrap up OpenVPN tutorial that lets you connect to gcp VPC including resolving private hosted zones.
@oscarwidjaya7176
@oscarwidjaya7176 2 года назад
how would i get the value master_ipv4_cidr_block in the private_cluster_config ? is this a predefined subnet in the host project ? Thank you for a great video. It was very helpful
@AntonPutra
@AntonPutra 2 года назад
It's not, it's arbitrary private subnet with /28 that google use to create control plane for your GKE cluster.
@davidvillasmil1800
@davidvillasmil1800 2 года назад
Why is it necessary to create a "host-staging" and a separate "k8s-staging"?
@AntonPutra
@AntonPutra 2 года назад
It depends on your setup and your future goals. If you have a small infrastructure and team, keep it under a single project. If you have a lot of VM and other services that you use in GCP. The best practice is to create shared VPC and share subnets with other projects. In that way, you can centralize network management/security in one place/group. Also, projects help you to keep billing under control; it's match easy to get a total bill for Kubernetes that you run if it is in a dedicated project. There are other benefits. If it's for your personal project, keep it in 1 project for enterprise, follow multi-project/shared VPC setup.
@imamulakhyarakhyar3537
@imamulakhyarakhyar3537 2 года назад
This is so amazing. thanks for sharing this video.. Im wondering how to reserve an external static IP address in GCP for our nginx. Many thanks 🙇
@AntonPutra
@AntonPutra 2 года назад
You can reserve static IP from "external ip address" section. Click reserve static address
@imamulakhyarakhyar3537
@imamulakhyarakhyar3537 2 года назад
@@AntonPutra Thanks for the quick replies 😺 Oh for that one I did it already. And i put the loadBalancerIP: "x.x.x.x" in my nginx yaml service.. But after i deploy it and run kubectl get svc nginx, the column external-ip is always in state. Am I doing woring ? 🙇
@vijaysarde385
@vijaysarde385 2 года назад
@@imamulakhyarakhyar3537 You can patch it - kubectl patch svc -n -p '{"spec": {"type": "LoadBalancer", "externalIPs":["XX.XX.XX.XX"]}}'
@arnoldwolfstein
@arnoldwolfstein 2 года назад
sorry but how this is best practice with "private endpoint disabled"? your master totally open to attackers. Also i should emphasize that "bastion host" should be used in a private cluster with vpc native network. thanks for the video btw.
@AntonPutra
@AntonPutra 2 года назад
It’s a good point, I always use private endpoints with OpenVPN server set up that I can access private IP. It was too much for one video to configure VPN, that’s why I decided to leave it out. My next tutorial is about OpenVPN.
@arnoldwolfstein
@arnoldwolfstein 2 года назад
@@AntonPutra i see, fair enough. it would be good then to mention referring "gke hardening guide" at least. waiting for your next video.
@AntonPutra
@AntonPutra 2 года назад
@@arnoldwolfstein yeah, my mistake
@arnoldwolfstein
@arnoldwolfstein 2 года назад
@@AntonPutra no no, just a reminder.
@ch4rlysan
@ch4rlysan 3 месяца назад
@@AntonPutra thanks for sharing all this, your videos and source code are great! Would you be able to elaborate a bit more on this particular topic? (security concerns when private endpoint is disabled). I'm planning to use a very similar setup as the one you shared here for a staging deployment; and then create a separate GCP project for production. You said in another comment in this video that bastion might not be needed in GCP; what would then be the security suggestion to protect the k8s cluster when using a setup like the one you shared here? I don't see a problem if you keep GCP credentials secured, but maybe I'm missing something. Thanks!
@DG-cd3jb
@DG-cd3jb 6 месяцев назад
Very informative. Very informative. I tried to create a GKE auto pilot cluster with shared VPC. But I got this exception repeatedly as “ Error in creating a cluster; 0 nodes were created out of 1, cluster may be unhealthy”… I have verified the permissions on the GKE project service account, verified the terraform module and I have assigned the right permissions. But I got the above exception. Any thoughts and suggestions on this error ?
@AntonPutra
@AntonPutra 6 месяцев назад
i would focus on the permissions, make sure you have network and other access from the GKE and service project. also when granting permissions use "*iam_member" terraform resource, it's Non-authoritative and help to add additional permissions in the future
@DG-cd3jb
@DG-cd3jb 6 месяцев назад
@@AntonPutraI have created a service project and assigned the necessary permission (container.googleapis.com) and i tried to create With the assigned IP range for the GKE auto pilot resource, here I’m able to create a GKE standard cluster with out any issues. But while creating a GKE auto pilot cluster within the same service project with the same shared IP range I’m getting the exception “Error: Error waiting for creating GKE Cluster: All cluster resources were brought up , but only 0 nodes out of 1 have registered; cluster may be unhealthy “. Any references or directions to overcome this issue?
@spainman2020
@spainman2020 29 дней назад
"Error 403: The caller does not have permission, forbidden." 😕
@AntonPutra
@AntonPutra 29 дней назад
🤔
@kedarnathbelavanaki4160
@kedarnathbelavanaki4160 3 года назад
Clarity of the video is not good.
@AntonPutra
@AntonPutra 3 года назад
Sorry about that, youtube still processing HD quality...
@andreawijayakusuma6008
@andreawijayakusuma6008 Год назад
thanks bro, I really liked your video. but I want to asked something, so If I want to use subnet from host project, do I need to create service account in service project first ? so when the service account already created, I just need to add that service account in members resource google_compute_subnetwork_iam_binding host project ?
@AntonPutra
@AntonPutra Год назад
yes you need service account and also enable k8s in both host and service project
@andreawijayakusuma6008
@andreawijayakusuma6008 Год назад
@@AntonPutra new subscribers here, I hope that share vpc will work in my production. Thanks
Далее
what will you choose? #tiktok
00:14
Просмотров 6 млн
Terragrunt Tutorial: Create VPC, EKS from Scratch!
1:01:09
Use Terraform Module to Build a 3 Tier AWS Network VPC
1:13:37
Set up Terraform to create a GKE cluster
1:04:42
Просмотров 2,9 тыс.
How to Create GCP VPC with Terraform Modules
9:07
Просмотров 8 тыс.
How to Manage Secrets in Terraform?
15:54
Просмотров 25 тыс.
I forced EVERYONE to use Linux
22:59
Просмотров 472 тыс.
what will you choose? #tiktok
00:14
Просмотров 6 млн