Git Product home page Git Product logo

terraform-helm-nginx-controller's Introduction

Terraform module for Nginx Ingress Controller

Terraform module used to create nginx ingress controller in Kubernetes via Helm. With simple syntax.

Usage

For activate controller in ingress resource, please add this annotation to ingress:

"kubernetes.io/ingress.class"    = "nginx"

GCP

resource "google_compute_address" "ingress_ip_address" {
  name = "nginx-controller"
}

module "nginx-controller" {
  source  = "terraform-iaac/nginx-controller/kubernetes"

  ip_address = google_compute_address.ingress_ip_address.address
}

AWS

module "nginx-controller" {
  source  = "terraform-iaac/nginx-controller/kubernetes"

  additional_set = [
    {
      name  = "controller.service.annotations.service\\.beta\\.kubernetes\\.io/aws-load-balancer-type"
      value = "nlb"
      type  = "string"
    },
    {
      name  = "controller.service.annotations.service\\.beta\\.kubernetes\\.io/aws-load-balancer-cross-zone-load-balancing-enabled"
      value = "true"
      type  = "string"
    }
  ]
}

Inputs

Name Description Type Default Required
name Name of created helm release string ingress-nginx no
namespace_name Name of namespace where nginx controller should be deployed string kube-system no
ip_address External Static Address for loadbalancer (Doesn't work with AWS) string n/a no
controller_kind Controller type: DaemonSet, Deployment etc.. string DaemonSet no
controller_daemonset_useHostPort Also use host ports(80,443) for pods. Node Ports in services will be untouched bool false no
controller_service_externalTrafficPolicy Traffic policy for controller. See docs. string Local no
controller_request_memory Memory request for pod. Value in MB nubmer 140 no
publish_service Publish LoadBalancer endpoint to Service bool true no
define_nodePorts By default service using NodePorts. It can be generated automatically, or you can assign this ports number bool true no
service_nodePort_http NodePort number for http number 32001 no
service_nodePort_https NodePort number for https number 32002 no
metrics_enabled Allow exposing metrics for prometheus-operator bool false no
disable_heavyweight_metrics Disable some 'heavyweight' or unnecessary metrics bool false no
additional_set Additional sets to Helm
list(object({
name = string
value = string
type = string // Optional
}))
[] no

Outputs

Name Description
name Namespace used by nginx controller
namespace Namespace used by nginx controller

Terraform Requirements

Name Version
terraform >= 0.13.0
helm >= 2.1.0

terraform-helm-nginx-controller's People

Contributors

bohdantverdyi avatar dmytro-ostapenko-97 avatar

Watchers

James Cloos avatar  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.