GithubHelp home page GithubHelp logo

asmtal / rancher-scaleway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kenfdev/rancher-scaleway

0.0 0.0 0.0 636 KB

Deploy Kubernetes on Scaleway with Rancher and Terraform

Home Page: https://medium.com/@kenfdev/kubernetes-on-scaleway-with-rancher-and-terraform-582759a86536

Shell 46.61% HCL 53.39%

rancher-scaleway's Introduction

Kubernetes on Scaleway with Rancher and Terraform

Deploy Rancher and Kubernetes on Scaleway using Terraform (with DNS on Cloudflare).

This terraform is based on the DO quickstart deployment of Rancher

Overview

overview

Prerequisites

Jump Start

!!WARNING!! This will deploy resources to Scaleway and be sure that they are going to cost you money.

Set up the tfvars

rancherserver/terraform.tfvars

Be sure to set the following variables:

  • scw_access_key
    • Your Scaleway Access Key
  • scw_token
    • Your Scaleway Secret Token
  • scw_org
    • Your Scaleway Organization ID
  • admin_password
    • The password you're going to use for the Rancher Server
  • rancher_server_url
    • The URL you will use for your Rancher Server. This terraform is going to setup a rancher subdomain to your cloudflare zone. So if your zone is example.com , this terraform will create an A record to resolve rancher.example.com .
  • cloudflare_email
    • Your Email for Cloudflare
  • cloudflare_api_key
    • Your Cloudflare API Key
  • cloudflare_zone_id
    • Your Cloudflare zone ID

rancheragent/terraform.tfvars

Be sure to set the following variables:

  • rancher_server_address
    • The address for your Rancher Server. It can either be an IP or domain name but I would recommend the domain name you set previously.
  • count_agent_all_nodes
    • This is how many nodes to create that have all the roles(etcd, controlplae, worker). If you're just experimenting with the Kubernetes cluster, having one of this will be enough.
  • count_agent_etcd_nodes
    • This is how many nodes to create that have the etcd role
  • count_agent_controlplane_nodes
    • This is how many nodes to create that have the controlplane role
  • count_agent_worker_nodes
    • This is how many nodes to create that have the worker role

Deploy the Rancher Server resources

cd rancherserver
terraform apply

Deploy the Rancher Agent resources

cd rancheragent
terraform apply

Check it out

rancher

k8scluster

Clean up

Destroy the Rancher Agent and related resources

cd rancheragent
terraform destroy

Destroy the Rancher Server and related resources

cd rancherserver
terraform destroy

rancher-scaleway's People

Contributors

kenfdev 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.