Giter Club home page Giter Club logo

terraform-nifcloud-minimum-k8s-cluster's Introduction

terraform-nifcloud-minimum-k8s-cluster

This module deploys single-master Kubernetes cluster on NIFCLOUD using kubeadm.

This project is for develop environment, so please do not use this in production

Overview

overview.png

Requirements

Before this module can be used on a project, you must ensure that the following pre-requisites are fulfilled:

  1. Terraform are installed on the machine where Terraform is executed.
  2. The Nifcloud Account you execute the module with has the right permissions.
    • You can set environment variable NIFCLOUD_ACCESS_KEY_ID and NIFCLOUD_SECRET_ACCESS_KEY

Usage

There are examples included in the examples folder but simple usage is as follows:

# Provider
provider "nifcloud" {
  region = "jp-west-1"
}

# Module
module "minimum_k8s_cluster" {
  source  = "ystkfujii/minimum-k8s-cluster/nifcloud"

  availability_zone = "west-11"

  instance_key_name = "deployerkey"
}

Then perform the following commands on the root folder:

  • terraform init to get the plugins
  • terraform plan to see the infrastructure plan
  • terraform apply to apply the infrastructure build
  • terraform destroy to destroy the built infrastructure

Inputs

Name Description Type Default
availability_zone The availability zone string
cni cni string containerd
prefix Prefix to include in the name of the resource to be created string 001
private_network_subnet The subnet of private network string 192.168.10.0
instance_key_name The key name of the Key Pair to use for the instance string
instance_count_wk Number of worker to be created number 2
instance_type_wk The instance type of worker string e-large
instance_type_cp The instance type of control plane string e-large
accounting_type Accounting type string 1

Outputs

Name Description
security_group_name The security group used in the cluster
private_network_id The private network used in the cluster
worker_info The worker information in cluster
control_plane_info The control plane information in cluster

Software Dependencies

Author

terraform-nifcloud-minimum-k8s-cluster's People

Contributors

sogokato avatar ystkfujii avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

sogokato

terraform-nifcloud-minimum-k8s-cluster's Issues

terrafrom apply実行中にinstanceが突如削除されるときがある

  • リージョンを変えたら解消される時がある(?別事象かも)
  • TF_LOG=DEBUGで確認すると、RunInstance実行後は通常のDescribeしか実行していないように見える
  • ystk/instanceリソースを使用しているが、通常のnifcloud instanceリソースを使っても再現する
  • 可能性としては
    • provider側かAPI側のバグ
    • クライアント側の設定ミスだがそれを通知できてない

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.