初闻不知Terraform,再闻已是云中人。什么叫基础设施即代码?在以前,当我们需要把应用部署在服务器时,需要购买多台服务器和机房、组装交换机和网络、不间断电源UPS等。随着云时代的到来,我们可以在IaaS(Infrastructure as a Service)平台直接购买所有的基础设施,包括服务
1 什么是Terraform?Terraform是一个IaC工具,IaC全称为Infrastructure as Code,基础设施即代码。它的理念是通过代码来管理基础设施,如服务器、数据库等,更多请看《Terraform入门教程,示例展示管理Docker和Kubernetes资源》。而作为IaC的
1 IntroductionCloud SQL helps to manage RDB on GCP for us. There are 3 ways to create the database:(1) Create on Console(2) Create with gcloud(3) Crea
1 IntroductionWe always need to create the GCE(Google Compute Engine) if we use GCP. There are many ways to create GCE:(1) Create on Console(2) Create
1 IntroductionGKE(Google Kubernetes Engine) is a k8s platform, we can use gcloud to create a GKE cluster. For GCP initiation, can go to: How to initia
管理Terraform状态文件的最佳方式是通过云端的统一的存储,如谷歌云就用GCS。首先要创建一个Bucket:$ gsutil mb -p pkslow -l us-west1 -b on gs://pkslow-terraformCreating gs://pkslow-terraform/..