Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.57 KB

README.md

File metadata and controls

40 lines (24 loc) · 1.57 KB

terraform-kubernetes-ingress

Ingress Controller on Kubernetes

Please do not get confused with NginxInc Ingress Controller. This module installs kubernetes ingress controller maintained at https://github.com/kubernetes/ingress-nginx

Tested on GKE. According to original tutorial from kubernetes falks, Aws and Azure needs different kind of setup. Please see the deployment differences from here

How does it work?

This module creates following resources;

  • config_maps
  • roles/role_bindings with necessary permissions
  • cluster_role/cluster_role_bindings with necessary permissions
  • a service with LoadBalancer configured
  • a deployment with kubernetes/ingress controller image running within the given namespace(only listening ingress events specified for this namespace) for multi-namespace deployments

Inputs

  • namespaces::[string] : kubernetes namespaces to be deployed, list of namespaces
  • replicacount : replica instance count for Ingress Controller

Outputs

  • load_balancer_ip : list of LoadBalancer IPs from GKE

Dependencies

Terraform Kubernetes Provider

Tested With

  • terraform-providers/kubernetes : 1.9.0
  • quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.25.1 docker image
  • kubernetes 1.13.7-gke.8

Credits

This module was initially generated following the original tutorial of kubernetes ingress https://kubernetes.github.io/ingress-nginx/deploy a k2tf project.