repo<\/a>.<\/p>\n\n\n\nlink@hyrule:~$ git clone https:\/\/github.com\/rinoymjoseph\/k8s-hardway.git\nCloning into 'k8s-hardway'...\nremote: Enumerating objects: 550, done.\nremote: Counting objects: 100% (550\/550), done.\nremote: Compressing objects: 100% (296\/296), done.\nremote: Total 550 (delta 184), reused 492 (delta 129), pack-reused 0\nReceiving objects: 100% (550\/550), 159.36 KiB | 2.12 MiB\/s, done.\nResolving deltas: 100% (184\/184), done.\nlink@hyrule:~$ cd k8s-hardway\/\nlink@hyrule:~\/k8s-hardway$ ls\nansible_scripts ansible_scripts.zip docs k8s-infra.md LICENSE README.md terraform tests tests.md two-nodes<\/code><\/pre>\n\n\n\nZip ansible_scripts folder using below command<\/p>\n\n\n\n
zip -r ansible_scripts.zip ansible_scripts\/<\/code><\/pre>\n\n\n\ncd to terraform\/five-nodes<\/strong> folder<\/p>\n\n\n\nterraform init<\/code><\/pre>\n\n\n\nTerminal output for reference<\/em><\/p>\n\n\n\nlink@hyrule:~\/k8s-hardway\/terraform\/five-nodes$ terraform init\n\nInitializing the backend...\n\nInitializing provider plugins...\n- Finding telmate\/proxmox versions matching \"2.9.14\"...\n- Finding latest version of hashicorp\/null...\n- Installing telmate\/proxmox v2.9.14...\n- Installed telmate\/proxmox v2.9.14 (self-signed, key ID A9EBBE091B35AFCE)\n- Installing hashicorp\/null v3.2.1...\n- Installed hashicorp\/null v3.2.1 (signed by HashiCorp)\n\nPartner and community providers are signed by their developers.\nIf you'd like to know more about provider signing, you can read about it here:\nhttps:\/\/www.terraform.io\/docs\/cli\/plugins\/signing.html\n\nTerraform has created a lock file .terraform.lock.hcl to record the provider\nselections it made above. Include this file in your version control repository\nso that Terraform can guarantee to make the same selections by default when\nyou run \"terraform init\" in the future.\n\nTerraform has been successfully initialized!\n\nYou may now begin working with Terraform. Try running \"terraform plan\" to see\nany changes that are required for your infrastructure. All Terraform commands\nshould now work.\n\nIf you ever set or change modules or backend configuration for Terraform,\nrerun this command to reinitialize your working directory. If you forget, other\ncommands will detect it and remind you to do so if necessary.<\/code><\/pre>\n\n\n\nValidate the tf file<\/p>\n\n\n\n
terraform validate<\/code><\/pre>\n\n\n\nTerminal output for reference<\/em><\/p>\n\n\n\nlink@hyrule:~\/k8s-hardway\/terraform\/five-nodes$ terraform validate\nSuccess! The configuration is valid.<\/code><\/pre>\n\n\n\nExecute the script<\/p>\n\n\n\n
terraform apply --auto-approve<\/code><\/pre>\n\n\n\nIn proxmox ui machines appear and starts automatically<\/p>\n\n\n
\n
<\/figure><\/div>\n\n\n5. Workflow<\/h3>\n\n\n\n <\/p>\n\n\n\n <\/figure>\n","protected":false},"excerpt":{"rendered":"Introduction The scripts are available in https:\/\/github.com\/rinoymjoseph\/k8s-hardway repo. Kubernetes The Hard Way is a popular git hub repo which take the long route to ensure you understand each task required to bootstrap a Kubernetes cluster. 1. Prerequisites 2. System Diagram Single Controller and Three Worker Nodes 3. Configuration Infrastructure Configuration A terraform script creates the … Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":885,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[68,10,9],"_links":{"self":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/806"}],"collection":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/comments?post=806"}],"version-history":[{"count":53,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/806\/revisions"}],"predecessor-version":[{"id":889,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/806\/revisions\/889"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/media\/885"}],"wp:attachment":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/media?parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/categories?post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/tags?post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}