Giter Club home page Giter Club logo

using_terraform_kubernetes_cluster's Introduction

Using_Terraform_Kubernetes_Cluster

Github Action, Terraform Cloud, AWS EKS을 이용하여 Kubernetes Cluster 구축

사전 준비

실행 방법

hashicorp/learn-terraform-provision-eks-cluster 기반으로 작성

1. Repository 설정

Github Secrets에 생성한 Terraform Cloud 토큰 값 저장
참고 자료: https://docs.github.com/ko/actions/security-guides/encrypted-secrets

2. 코드 수정

'Terraform Cloud - API 기반 워크플로우 생성' 시 설정한 조직 이름과 워크플로우 이름으로 수정
(해당 파일 위치: scripts/terraform.tf)

3. main branch에 코드 커밋

4. kubernetes cluster 엑세스 자격 증명 구성

(생성 완료된 후) Terraform Cloud에서 region, cluster_name 값 확인 가능

aws eks --region $(terraform output -raw region) update-kubeconfig \
    --name $(terraform output -raw cluster_name)
kubectl get pods --all-namespaces

참고 자료

using_terraform_kubernetes_cluster's People

Contributors

hahic avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.