From 869d8b9d5c64c36696ced8a7756030b2408ff37e Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 19 Oct 2022 16:09:10 +0200 Subject: [PATCH] feat(base): adding nginx-gateway installation --- .gitmodules | 2 +- base/kustomization.yaml | 3 +-- base/nginx/kustomization.yaml | 12 ++++++++++++ base/{ => nginx}/nginx-gateway | 0 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 base/nginx/kustomization.yaml rename base/{ => nginx}/nginx-gateway (100%) diff --git a/.gitmodules b/.gitmodules index 2ff6d08..45a230f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,5 +2,5 @@ path = base/minio url = https://github.com/minio/operator.git [submodule "base/nginx-gateway"] - path = base/nginx-gateway + path = base/nginx/nginx-gateway url = https://github.com/nginxinc/nginx-kubernetes-gateway.git diff --git a/base/kustomization.yaml b/base/kustomization.yaml index 139aa57..24e8962 100644 --- a/base/kustomization.yaml +++ b/base/kustomization.yaml @@ -5,5 +5,4 @@ bases: - https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml - https://github.com/cert-manager/cert-manager/releases/download/v1.10.0/cert-manager.yaml - ./minio - - github.com/kubernetes-sigs/gateway-api/config/crd?ref=v0.5.1 - - ./nginx-gateway \ No newline at end of file + - ./nginx \ No newline at end of file diff --git a/base/nginx/kustomization.yaml b/base/nginx/kustomization.yaml new file mode 100644 index 0000000..858041d --- /dev/null +++ b/base/nginx/kustomization.yaml @@ -0,0 +1,12 @@ + +resources: + - github.com/kubernetes-sigs/gateway-api/config/crd?ref=v0.5.1 + - ./nginx-gateway/deploy/manifests/namespace.yaml + - ./nginx-gateway/deploy/manifests/gatewayclass.yaml + - ./nginx-gateway/deploy/manifests/nginx-gateway.yaml + - ./nginx-gateway/deploy/manifests/service/loadbalancer.yaml + +configMapGenerator: +- name: njs-modules + files: + - ./nginx-gateway/internal/nginx/modules/src/httpmatches.js diff --git a/base/nginx-gateway b/base/nginx/nginx-gateway similarity index 100% rename from base/nginx-gateway rename to base/nginx/nginx-gateway