Giter VIP home page Giter VIP logo

sak-nginx's Introduction

Swiss Army Kube nginx module

This module was created to deploy nginx within Swiss Army Kube cluster with ease and simplicity. Check out main repo of Swiss Army Kube for more information about the project in general.

Swiss Army Kube Contributing Guide

Requirements

terraform >= 1.1

Providers

Name Version
aws >= 3.0
helm >= 1.0
kubernetes >= 1.11
local >=2.1.0

Nginx Ingress Controller

Based on https://kubernetes.github.io/ingress-nginx

For Example with TLS offload

module "nginx" {
  depends_on   = [module.sak-acm]
  source       = "https://github.com/provectus/sak-nginx.git"
  argocd       = module.argocd.state
  conf = {
    "controller.service.targetPorts.http"                                                                = "http"
    "controller.service.targetPorts.https"                                                               = "http"
    "controller.service.annotations.service\\.beta\\.kubernetes\\.io/aws-load-balancer-ssl-cert"         = module.clusterwide.this_acm_certificate_arn
    "controller.service.annotations.service\\.beta\\.kubernetes\\.io/aws-load-balancer-backend-protocol" = "http"
    "controller.service.annotations.service\\.beta\\.kubernetes\\.io/aws-load-balancer-ssl-ports"        = "https"
  }
  tags = {}
}

Example without SSL or with cert-manager

module "nginx" {
  source       = "github.com/provectus/sak-nginx.git"
  argocd       = module.argocd.state
  conf = {}
  tags = {}
}

Providers

Name Version
helm n/a
kubernetes n/a
local n/a

Inputs

Name Description Type Default Required
argocd A set of values for enabling deployment through ArgoCD map(string) {} no
aws_private Set true or false to use private or public infrastructure bool false no
conf A set of parameters to pass to Nginx Ingress Controller chart map {} no
module_depends_on A list of explicit dependencies for the module list [] no
namespace A name of the existing namespace string "" no
namespace_name A name of namespace for creating string "ingress-system" no

Outputs

No output.

Update version

  • Found the latest stable version of the helm chart from https://github.com/kubernetes/ingress-nginx/releases

  • Change the version in the default section, example: To test the SAK_NGINX module

  • Deploy SAK-NGINX by SAK (namespace ingress-system)

  • Deploy sample backend app:

kubectl create deployment web --image=registry.k8s.io/echoserver:1.4 --namespace ingress-system
kubectl expose deployment web --type=NodePort --port=8080 --namespace ingress-system
  • Get published hostname from column EXTERNAL-IP of ingress-Nginx: kubectl get svc -n ingress-system
  • Publish web app on ingress controller:
  • Check the web app from http://EXTERNAL-IP

sak-nginx's People

Contributors

akastav avatar dmiroshnik avatar khalatyanhovhannes avatar pbunakalia avatar pvlbnkl avatar sub2zero avatar wallhided avatar

Watchers

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