diff --git a/.codecov.yml b/.codecov.yml
new file mode 100644
index 000000000..f91e5c1fe
--- /dev/null
+++ b/.codecov.yml
@@ -0,0 +1,8 @@
+coverage:
+ status:
+ project:
+ default:
+ target: 40%
+ threshold: null
+ patch: false
+ changes: false
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 07770e47c..095f079d6 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -10,8 +10,7 @@ assignees: ''
-**What happened**:
-
-
-
-**What you expected to happen**:
-
-
-
-
-**NGINX Ingress controller version** (exec into the pod and run `/nginx-ingress-controller --version`):
-
+**NGINX Ingress controller version**:
**Kubernetes version** (use `kubectl version`):
@@ -53,36 +37,17 @@ kubectl exec -it $POD_NAME -n $POD_NAMESPACE -- /nginx-ingress-controller --vers
- **OS** (e.g. from /etc/os-release):
- **Kernel** (e.g. `uname -a`):
- **Install tools**:
- - `Please mention how/where was the cluster created like kubeadm/kops/minikube/kind etc. `
-- **Basic cluster related info**:
- - `kubectl version`
- - `kubectl get nodes -o wide`
-
-- **How was the ingress-nginx-controller installed**:
- - If helm was used then please show output of `helm ls -A | grep -i ingress`
- - If helm was used then please show output of `helm -n get values `
- - If helm was not used, then copy/paste the complete precise command used to install the controller, along with the flags and options used
- - if you have more than one instance of the ingress-nginx-controller installed in the same cluster, please provide details for all the instances
-
-- **Current State of the controller**:
- - `kubectl describe ingressclasses`
- - `kubectl -n get all -A -o wide`
- - `kubectl -n describe po `
- - `kubectl -n describe svc `
-
-- **Current state of ingress object, if applicable**:
- - `kubectl -n get all,ing -o wide`
- - `kubectl -n describe ing `
- - If applicable, then, your complete and exact curl/grpcurl command (redacted if required) and the reponse to the curl/grpcurl command with the -v flag
-
- **Others**:
- - Any other related information like ;
- - copy/paste of the snippet (if applicable)
- - `kubectl describe ...` of any custom configmap(s) created and in use
- - Any other related information that may help
+**What happened**:
-**How to reproduce this issue**:
+
+
+**What you expected to happen**:
+
+
+
+**How to reproduce it**:
+
-
+/kind bug
diff --git a/.github/ISSUE_TEMPLATE/cve_report.md b/.github/ISSUE_TEMPLATE/cve_report.md
deleted file mode 100644
index d6e598c88..000000000
--- a/.github/ISSUE_TEMPLATE/cve_report.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-name: CVE Finding Report
-about: CVE reporting for ingress-nginx
-title: ''
-labels: kind/bug
-assignees:
- - Gacko
- - strongjz
----
-
-
-
-
-
-
-
-
-
-
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index 406a7ad0a..771804b54 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -7,15 +7,24 @@ assignees: ''
---
+
+
-
+
-
+/kind feature
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index c1c815678..8b499fe8d 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,6 +1,5 @@
-
## What this PR does / why we need it:
@@ -10,9 +9,7 @@
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
-- [ ] CVE Report (Scanner found CVE and adding report)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
-- [ ] Documentation only
## Which issue/s this PR fixes
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
-- [ ] I've read the [CONTRIBUTION](https://github.com/kubernetes/ingress-nginx/blob/main/CONTRIBUTING.md) guide
-- [ ] I have added unit and/or e2e tests to cover my changes.
+- [ ] I've read the [CONTRIBUTION](https://github.com/kubernetes/ingress-nginx/blob/master/CONTRIBUTING.md) guide
+- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
diff --git a/.github/actions/mkdocs/Dockerfile b/.github/actions/mkdocs/Dockerfile
index f00584d32..b5b564d3e 100644
--- a/.github/actions/mkdocs/Dockerfile
+++ b/.github/actions/mkdocs/Dockerfile
@@ -1,4 +1,6 @@
-FROM squidfunk/mkdocs-material:9.4.5
+FROM squidfunk/mkdocs-material:6.2.4
+
+RUN pip install mkdocs-awesome-pages-plugin
COPY action.sh /action.sh
diff --git a/.github/actions/mkdocs/action.sh b/.github/actions/mkdocs/action.sh
index d9f8ecbfc..07ddbddb9 100644
--- a/.github/actions/mkdocs/action.sh
+++ b/.github/actions/mkdocs/action.sh
@@ -16,7 +16,7 @@
set -e
-REQUIREMENTS="${GITHUB_WORKSPACE}/docs/requirements.txt"
+REQUIREMENTS="${GITHUB_WORKSPACE}/requirements.txt"
if [ -f "${REQUIREMENTS}" ]; then
pip install -r "${REQUIREMENTS}"
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
deleted file mode 100644
index deb434675..000000000
--- a/.github/dependabot.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-version: 2
-updates:
- - package-ecosystem: "github-actions"
- directory: "/"
- schedule:
- interval: "weekly"
- labels:
- - "area/dependency"
- - "release-note-none"
- - "ok-to-test"
- groups:
- actions:
- update-types:
- - "minor"
- - "patch"
- - package-ecosystem: "docker"
- directories:
- - "**/rootfs"
- schedule:
- interval: "weekly"
- labels:
- - "area/dependency"
- - "release-note-none"
- - "ok-to-test"
- groups:
- docker:
- update-types:
- - "minor"
- - "patch"
- - package-ecosystem: "gomod"
- directories:
- - "/"
- - "**/rootfs"
- schedule:
- interval: "weekly"
- labels:
- - "area/dependency"
- - "release-note-none"
- - "ok-to-test"
- groups:
- go:
- update-types:
- - "patch"
diff --git a/.github/workflows/chart.yaml b/.github/workflows/chart.yaml
deleted file mode 100644
index 7c37447af..000000000
--- a/.github/workflows/chart.yaml
+++ /dev/null
@@ -1,64 +0,0 @@
-name: Chart
-
-on:
- push:
- branches:
- - main
- - release-*
- paths:
- - charts/ingress-nginx/Chart.yaml
-
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- release:
- name: Release
- runs-on: ubuntu-latest
-
- permissions:
- contents: write
-
- steps:
- - name: Set up Python
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
- with:
- python-version: 3.x
-
- - name: Set up Helm
- uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
-
- - name: Set up Helm Chart Testing
- uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
-
- - name: Set up Artifact Hub
- run: |
- curl --fail --location https://github.com/artifacthub/hub/releases/download/v1.20.0/ah_1.20.0_linux_amd64.tar.gz --output /tmp/ah.tar.gz
- echo "9027626f19ff9f3ac668f222917130ac885e289e922e1428bfd2e7f066324e31 /tmp/ah.tar.gz" | shasum --check
- sudo tar --extract --file /tmp/ah.tar.gz --directory /usr/local/bin ah
-
- - name: Set up Git
- run: |
- git config --global user.name "${GITHUB_ACTOR}"
- git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
-
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- with:
- fetch-depth: 0
-
- - name: Lint chart
- run: |
- ct lint --config .ct.yaml
- ah lint --path charts/ingress-nginx
-
- - name: Release chart
- uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
- env:
- CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- CR_RELEASE_NAME_TEMPLATE: helm-chart-{{ .Version }}
- CR_SKIP_EXISTING: true
- with:
- charts_dir: charts
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index b06cef33c..612bd4b38 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -4,52 +4,25 @@ on:
pull_request:
branches:
- "*"
- paths-ignore:
- - 'docs/**'
- - 'deploy/**'
- - '**.md'
- - 'images/**' # Images changes should be tested on their own workflow
- - '!images/nginx/**'
push:
branches:
- - main
- - release-*
- paths-ignore:
- - 'docs/**'
- - 'deploy/**'
- - '**.md'
- - 'images/**' # Images changes should be tested on their own workflow
-
- workflow_dispatch:
- inputs:
- run_e2e:
- description: 'Force e2e to run'
- required: false
- type: boolean
-
-
-permissions:
- contents: read
+ - master
jobs:
changes:
- permissions:
- contents: read # for dorny/paths-filter to fetch a list of changed files
- pull-requests: read # for dorny/paths-filter to read pull requests
runs-on: ubuntu-latest
outputs:
go: ${{ steps.filter.outputs.go }}
charts: ${{ steps.filter.outputs.charts }}
- baseimage: ${{ steps.filter.outputs.baseimage }}
steps:
- name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ uses: actions/checkout@v2
- - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
+ - uses: dorny/paths-filter@v2
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
@@ -61,128 +34,61 @@ jobs:
- 'rootfs/**/*'
- 'TAG'
- 'test/e2e/**/*'
- - 'NGINX_BASE'
charts:
- 'charts/ingress-nginx/Chart.yaml'
- 'charts/ingress-nginx/**/*'
- - 'NGINX_BASE'
- baseimage:
- - 'NGINX_BASE'
- - 'images/nginx/**'
- docs:
- - '**/*.md'
- lua:
- - '**/*.lua'
- lua-lint:
+ security:
runs-on: ubuntu-latest
- needs: changes
- if: |
- (needs.changes.outputs.lua == 'true') || ${{ github.event.workflow_dispatch.run_e2e == 'true' }}
steps:
+
- name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Lint Lua
- uses: lunarmodules/luacheck@v1
+ uses: actions/checkout@v2
+
+ - name: Run Gosec Security Scanner
+ uses: securego/gosec@master
with:
- args: --codes --globals lua_ingress --globals configuration --globals balancer --globals monitor --globals certificate --globals tcp_udp_configuration --globals tcp_udp_balancer --no-max-comment-line-length -q rootfs/etc/nginx/lua/
-
- test-go:
- runs-on: ubuntu-latest
- needs: changes
- if: |
- (needs.changes.outputs.go == 'true') || ${{ github.event.workflow_dispatch.run_e2e == 'true' }}
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Get go version
- run: echo "GOLANG_VERSION=$(cat GOLANG_VERSION)" >> $GITHUB_ENV
-
- - name: Set up Go
- id: go
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
- with:
- go-version: ${{ env.GOLANG_VERSION }}
- check-latest: true
-
- - name: Run test
- run: make test
-
-
- verify-docs:
- name: Verify Doc generation
- runs-on: ubuntu-latest
- needs: changes
- if: |
- (needs.changes.outputs.go == 'true') || (needs.changes.outputs.docs == 'true') || ${{ github.event.workflow_dispatch.run_e2e == 'true' }}
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- - name: Get go version
- run: echo "GOLANG_VERSION=$(cat GOLANG_VERSION)" >> $GITHUB_ENV
- - name: Set up Go
- id: go
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
- with:
- go-version: ${{ env.GOLANG_VERSION }}
- check-latest: true
- - name: Verify Docs
- run: make verify-docs
+ # G601 for zz_generated.deepcopy.go
+ # G306 TODO: Expect WriteFile permissions to be 0600 or less
+ # G307 TODO: Deferring unsafe method "Close"
+ args: -exclude=G601,G104,G204,G304,G306,G307 -tests=false -exclude-dir=test -exclude-dir=images/ -exclude-dir=docs/ ./...
build:
name: Build
runs-on: ubuntu-latest
needs: changes
- outputs:
- golangversion: ${{ steps.golangversion.outputs.version }}
if: |
- (needs.changes.outputs.go == 'true') || (needs.changes.outputs.charts == 'true') || (needs.changes.outputs.baseimage == 'true') || ${{ github.event.workflow_dispatch.run_e2e == 'true' }}
+ (needs.changes.outputs.go == 'true')
- env:
- PLATFORMS: linux/amd64
steps:
+
- name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ uses: actions/checkout@v2
- - name: Get go version
- id: golangversion
- run: |
- echo "version=$(cat GOLANG_VERSION)" >> "$GITHUB_OUTPUT"
-
- - name: Set up Go
+ - name: Set up Go 1.15
id: go
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
+ uses: actions/setup-go@v2
with:
- go-version: ${{ steps.golangversion.outputs.version }}
- check-latest: true
-
- - name: Set up QEMU
- uses: docker/setup-qemu-action@4574d27a4764455b42196d70a065bc6853246a25 # v3.4.0
+ go-version: 1.15
- name: Set up Docker Buildx
id: buildx
- uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
+ uses: crazy-max/ghaction-docker-buildx@v1
with:
- version: latest
+ buildx-version: latest
+ qemu-version: latest
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Prepare Host
run: |
- curl -LO https://dl.k8s.io/release/v1.32.2/bin/linux/amd64/kubectl
+ sudo apt-get -qq update || true
+ sudo apt-get install -y pigz
+ curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
- - name: Build NGINX Base image
- if: |
- needs.changes.outputs.baseimage == 'true'
- run: |
- export TAG=$(cat images/nginx/TAG)
- cd images/nginx/rootfs && docker buildx build --platform=${{ env.PLATFORMS }} --load -t registry.k8s.io/ingress-nginx/nginx:${TAG} .
-
- name: Build images
env:
TAG: 1.0.0-dev
@@ -190,133 +96,112 @@ jobs:
REGISTRY: ingress-controller
run: |
echo "building images..."
- export TAGNGINX=$(cat images/nginx/TAG)
- make BASE_IMAGE=registry.k8s.io/ingress-nginx/nginx:${TAGNGINX} clean-image build image image-chroot
+ make clean-image build image
make -C test/e2e-image image
echo "creating images cache..."
docker save \
nginx-ingress-controller:e2e \
ingress-controller/controller:1.0.0-dev \
- ingress-controller/controller-chroot:1.0.0-dev \
- | gzip > docker.tar.gz
+ | pigz > docker.tar.gz
- name: cache
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
+ uses: actions/upload-artifact@v2
with:
name: docker.tar.gz
path: docker.tar.gz
- retention-days: 5
- chart-lint:
- name: Chart / Lint
+ helm:
+ name: Helm chart
runs-on: ubuntu-latest
needs:
- changes
-
- if: fromJSON(needs.changes.outputs.charts) || fromJSON(needs.changes.outputs.baseimage) || fromJSON(github.event.workflow_dispatch.run_e2e)
+ if: |
+ (needs.changes.outputs.charts == 'true')
steps:
- - name: Set up Python
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
- with:
- python-version: 3.x
- - name: Set up Helm
- uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
+ - name: Checkout
+ uses: actions/checkout@v2
- - name: Set up Helm Chart Testing
- uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
-
- - name: Set up Artifact Hub
+ - name: Lint
run: |
- curl --fail --location https://github.com/artifacthub/hub/releases/download/v1.20.0/ah_1.20.0_linux_amd64.tar.gz --output /tmp/ah.tar.gz
- echo "9027626f19ff9f3ac668f222917130ac885e289e922e1428bfd2e7f066324e31 /tmp/ah.tar.gz" | shasum --check
- sudo tar --extract --file /tmp/ah.tar.gz --directory /usr/local/bin ah
+ ./build/run-in-docker.sh ./hack/verify-chart-lint.sh
- - name: Set up Helm Docs
- uses: gabe565/setup-helm-docs-action@d5c35bdc9133cfbea3b671acadf50a29029e87c2 # v1.0.4
-
- - name: Set up Helm Unit Test
- run: helm plugin install https://github.com/helm-unittest/helm-unittest
-
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- with:
- fetch-depth: 0
-
- - name: Lint chart
+ - name: fix permissions
run: |
- ct lint --config .ct.yaml
- ah lint --path charts/ingress-nginx
+ sudo mkdir -p $HOME/.kube
+ sudo chmod -R 777 $HOME/.kube
- - name: Check docs
- run: |
- helm-docs --chart-search-root charts
- git diff --exit-code charts/ingress-nginx/README.md
-
- - name: Run tests
- run: helm unittest charts/ingress-nginx --file "tests/**/*_test.yaml"
-
- chart-test:
- name: Chart / Test
- runs-on: ubuntu-latest
- needs:
- - changes
- - build
- - chart-lint
-
- if: fromJSON(needs.changes.outputs.charts) || fromJSON(needs.changes.outputs.baseimage) || fromJSON(github.event.workflow_dispatch.run_e2e)
-
- strategy:
- matrix:
- k8s: [v1.28.15, v1.29.12, v1.30.8, v1.31.4, v1.32.0]
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Download cache
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
+ - name: Create Kubernetes cluster
+ id: kind
+ uses: engineerd/setup-kind@v0.5.0
with:
- name: docker.tar.gz
+ version: v0.10.0
+ image: kindest/node:v1.20.2
- - name: Load cache
- run: gzip --decompress --stdout docker.tar.gz | docker load
-
- - name: Run tests
+ - name: Test
env:
- K8S_VERSION: ${{ matrix.k8s }}
- SKIP_IMAGE_CREATION: true
+ KIND_CLUSTER_NAME: kind
+ SKIP_CLUSTER_CREATION: true
run: |
- sudo mkdir -pm 777 "${HOME}/.kube"
+ kind get kubeconfig > $HOME/.kube/kind-config-kind
make kind-e2e-chart-tests
kubernetes:
name: Kubernetes
+ runs-on: ubuntu-latest
needs:
- changes
- build
if: |
- (needs.changes.outputs.go == 'true') || (needs.changes.outputs.baseimage == 'true') || ${{ github.event.workflow_dispatch.run_e2e == 'true' }}
- strategy:
- matrix:
- k8s: [v1.28.15, v1.29.12, v1.30.8, v1.31.4, v1.32.0]
- uses: ./.github/workflows/zz-tmpl-k8s-e2e.yaml
- with:
- k8s-version: ${{ matrix.k8s }}
+ (needs.changes.outputs.go == 'true')
- kubernetes-chroot:
- name: Kubernetes chroot
- needs:
- - changes
- - build
- if: |
- (needs.changes.outputs.go == 'true') || (needs.changes.outputs.baseimage == 'true') || ${{ github.event.workflow_dispatch.run_e2e == 'true' }}
strategy:
matrix:
- k8s: [v1.28.15, v1.29.12, v1.30.8, v1.31.4, v1.32.0]
- uses: ./.github/workflows/zz-tmpl-k8s-e2e.yaml
- with:
- k8s-version: ${{ matrix.k8s }}
- variation: "CHROOT"
+ k8s: [v1.16.15, v1.17.17, v1.18.15, v1.19.7, v1.20.2]
+
+ steps:
+
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: cache
+ uses: actions/download-artifact@v2
+ with:
+ name: docker.tar.gz
+
+ - name: Create Kubernetes ${{ matrix.k8s }} cluster
+ id: kind
+ uses: engineerd/setup-kind@v0.5.0
+ with:
+ version: v0.10.0
+ config: test/e2e/kind.yaml
+ image: kindest/node:${{ matrix.k8s }}
+
+ - uses: geekyeggo/delete-artifact@v1
+ with:
+ name: docker.tar.gz
+ failOnError: false
+
+ - name: Prepare cluster for testing
+ id: local-path
+ run: |
+ kubectl version
+ echo
+ echo "installing helm 3..."
+ curl -sSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
+
+ - name: Load images from cache
+ run: |
+ echo "loading docker images..."
+ pigz -dc docker.tar.gz | docker load
+
+ - name: Run e2e tests
+ env:
+ KIND_CLUSTER_NAME: kind
+ SKIP_CLUSTER_CREATION: true
+ SKIP_IMAGE_CREATION: true
+ run: |
+ kind get kubeconfig > $HOME/.kube/kind-config-kind
+ make kind-e2e-test
diff --git a/.github/workflows/depreview.yaml b/.github/workflows/depreview.yaml
deleted file mode 100644
index 6d7e44608..000000000
--- a/.github/workflows/depreview.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-name: 'Dependency Review'
-on: [pull_request]
-
-permissions:
- contents: read
-
-jobs:
- dependency-review:
- runs-on: ubuntu-latest
- steps:
- - name: 'Checkout Repository'
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- - name: 'Dependency Review'
- uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index 40ccba278..3d180dc54 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -3,17 +3,11 @@ name: Documentation
on:
push:
branches:
- - main
-
-permissions:
- contents: read
+ - master
jobs:
changes:
- permissions:
- contents: read # for dorny/paths-filter to fetch a list of changed files
- pull-requests: read # for dorny/paths-filter to read pull requests
runs-on: ubuntu-latest
if: |
(github.repository == 'kubernetes/ingress-nginx')
@@ -22,16 +16,17 @@ jobs:
charts: ${{ steps.filter.outputs.charts }}
steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - uses: dorny/paths-filter@v2
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
filters: |
docs:
- - 'docs/**/*'
+ - 'docs/**/*'
docs:
name: Update
@@ -42,14 +37,12 @@ jobs:
(github.repository == 'kubernetes/ingress-nginx') &&
(needs.changes.outputs.docs == 'true')
- permissions:
- contents: write # needed to write releases
-
steps:
+
- name: Checkout master
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ uses: actions/checkout@v2
- name: Deploy
uses: ./.github/actions/mkdocs
env:
- PERSONAL_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
+ PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml
deleted file mode 100644
index f57878084..000000000
--- a/.github/workflows/golangci-lint.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-name: golangci-lint
-
-on:
- pull_request:
- paths:
- - '**/*.go'
- - '.github/workflows/golangci-lint.yml'
-
-permissions:
- contents: read
-
-jobs:
- golangci:
- name: lint
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Get go version
- run: echo "GOLANG_VERSION=$(cat GOLANG_VERSION)" >> $GITHUB_ENV
-
- - name: Set up Go
- id: go
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
- with:
- go-version: ${{ env.GOLANG_VERSION }}
- check-latest: true
-
- - name: golangci-lint
- uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
- with:
- version: v1.62
- only-new-issues: true
diff --git a/.github/workflows/helm.yaml b/.github/workflows/helm.yaml
new file mode 100644
index 000000000..af8b01448
--- /dev/null
+++ b/.github/workflows/helm.yaml
@@ -0,0 +1,61 @@
+name: Helm
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+
+ changes:
+ runs-on: ubuntu-latest
+ if: |
+ (github.repository == 'kubernetes/ingress-nginx')
+ outputs:
+ docs: ${{ steps.filter.outputs.docs }}
+ charts: ${{ steps.filter.outputs.charts }}
+
+ steps:
+
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - uses: dorny/paths-filter@v2
+ id: filter
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ filters: |
+ charts:
+ - 'charts/ingress-nginx/Chart.yaml'
+ - 'charts/ingress-nginx/**/*'
+
+ chart:
+ name: Release Chart
+ runs-on: ubuntu-latest
+ needs:
+ - changes
+ if: |
+ (github.repository == 'kubernetes/ingress-nginx') &&
+ (needs.changes.outputs.charts == 'true')
+
+ steps:
+
+ - name: Checkout master
+ uses: actions/checkout@v2
+ with:
+ # Fetch entire history. Required for chart-releaser; see https://github.com/helm/chart-releaser-action/issues/13#issuecomment-602063896
+ fetch-depth: 0
+
+ - name: Setup
+ shell: bash
+ run: |
+ git config --global user.name "$GITHUB_ACTOR"
+ git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
+
+ - name: Run chart-releaser
+ uses: helm/chart-releaser-action@v1.1.0
+ env:
+ CR_TOKEN: "${{ secrets.PERSONAL_TOKEN }}"
+ CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
+ with:
+ charts_dir: charts
diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml
deleted file mode 100644
index 6d32f56f6..000000000
--- a/.github/workflows/images.yaml
+++ /dev/null
@@ -1,192 +0,0 @@
-name: Container Images
-
-on:
- pull_request:
- branches:
- - "*"
- paths:
- - 'images/**'
-
- push:
- branches:
- - main
- paths:
- - 'images/**'
-
-permissions:
- contents: write
- packages: write
-
-env:
- PLATFORMS: linux/amd64
-
-jobs:
- changes:
- permissions:
- contents: read # for dorny/paths-filter to fetch a list of changed files
- pull-requests: read # for dorny/paths-filter to read pull requests
- runs-on: ubuntu-latest
- outputs:
- custom-error-pages: ${{ steps.filter.outputs.custom-error-pages }}
- cfssl: ${{ steps.filter.outputs.cfssl }}
- fastcgi-helloserver: ${{ steps.filter.outputs.fastcgi-helloserver }}
- e2e-test-echo: ${{ steps.filter.outputs.e2e-test-echo }}
- go-grpc-greeter-server: ${{ steps.filter.outputs.go-grpc-greeter-server }}
- httpbun: ${{ steps.filter.outputs.httpbun }}
- kube-webhook-certgen: ${{ steps.filter.outputs.kube-webhook-certgen }}
- ext-auth-example-authsvc: ${{ steps.filter.outputs.ext-auth-example-authsvc }}
- nginx: ${{ steps.filter.outputs.nginx }}
-
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
- id: filter
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- filters: |
- custom-error-pages:
- - 'images/custom-error-pages/**'
- cfssl:
- - 'images/cfssl/**'
- fastcgi-helloserver:
- - 'images/fastcgi-helloserver/**'
- e2e-test-echo:
- - 'images/e2e-test-echo/**'
- go-grpc-greeter-server:
- - 'images/go-grpc-greeter-server/**'
- httpbun:
- - 'images/httpbun/**'
- kube-webhook-certgen:
- - 'images/kube-webhook-certgen/**'
- ext-auth-example-authsvc:
- - 'images/ext-auth-example-authsvc/**'
- nginx:
- - 'images/nginx/**'
-
- #### TODO: Make the below jobs 'less dumb' and use the job name as parameter (the github.job context does not work here)
- cfssl:
- needs: changes
- if: |
- (needs.changes.outputs.cfssl == 'true')
- uses: ./.github/workflows/zz-tmpl-images.yaml
- with:
- name: cfssl
- secrets: inherit
-
- custom-error-pages:
- needs: changes
- if: |
- (needs.changes.outputs.custom-error-pages == 'true')
- uses: ./.github/workflows/zz-tmpl-images.yaml
- with:
- name: custom-error-pages
- secrets: inherit
-
- e2e-test-echo:
- needs: changes
- if: |
- (needs.changes.outputs.e2e-test-echo == 'true')
- uses: ./.github/workflows/zz-tmpl-images.yaml
- with:
- name: e2e-test-echo
- secrets: inherit
-
- ext-auth-example-authsvc:
- needs: changes
- if: |
- (needs.changes.outputs.ext-auth-example-authsvc == 'true')
- uses: ./.github/workflows/zz-tmpl-images.yaml
- with:
- name: ext-auth-example-authsvc
- secrets: inherit
-
- fastcgi-helloserver:
- needs: changes
- if: |
- (needs.changes.outputs.fastcgi-helloserver == 'true')
- uses: ./.github/workflows/zz-tmpl-images.yaml
- with:
- name: fastcgi-helloserver
- secrets: inherit
-
- go-grpc-greeter-server:
- needs: changes
- if: |
- (needs.changes.outputs.go-grpc-greeter-server == 'true')
- uses: ./.github/workflows/zz-tmpl-images.yaml
- with:
- name: go-grpc-greeter-server
- secrets: inherit
-
- httpbun:
- needs: changes
- if: |
- (needs.changes.outputs.httpbun == 'true')
- uses: ./.github/workflows/zz-tmpl-images.yaml
- with:
- name: httpbun
- secrets: inherit
-
- kube-webhook-certgen:
- runs-on: ubuntu-latest
- needs: changes
- if: |
- (needs.changes.outputs.kube-webhook-certgen == 'true')
- strategy:
- matrix:
- k8s: [v1.28.15, v1.29.12, v1.30.8, v1.31.4, v1.32.0]
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Get go version
- run: echo "GOLANG_VERSION=$(cat GOLANG_VERSION)" >> $GITHUB_ENV
-
- - name: Set up Go
- id: go
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
- with:
- go-version: ${{ env.GOLANG_VERSION }}
- check-latest: true
- - name: image build
- run: |
- cd images/ && make NAME=kube-webhook-certgen build
- - name: Create Kubernetes cluster
- id: kind
- run: |
- kind create cluster --image=kindest/node:${{ matrix.k8s }}
- - name: image test
- run: |
- cd images/ && make NAME=kube-webhook-certgen test test-e2e
-
- nginx:
- permissions:
- contents: write
- packages: write
- runs-on: ubuntu-latest
- needs: changes
- if: |
- (github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.changes.outputs.nginx == 'true')
- env:
- PLATFORMS: linux/amd64,linux/arm,linux/arm64
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- - name: Set up QEMU
- uses: docker/setup-qemu-action@4574d27a4764455b42196d70a065bc6853246a25 # v3.4.0
- - name: Set up Docker Buildx
- id: buildx
- uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
- with:
- version: latest
- platforms: ${{ env.PLATFORMS }}
- - name: Login to GitHub Container Registry
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: build-image
- run: |
- export TAG=$(cat images/nginx/TAG)
- cd images/nginx/rootfs && docker buildx build --platform=${{ env.PLATFORMS }} --push -t ingressnginx/nginx:${TAG} .
diff --git a/.github/workflows/junit-reports.yaml b/.github/workflows/junit-reports.yaml
deleted file mode 100644
index e2a82910e..000000000
--- a/.github/workflows/junit-reports.yaml
+++ /dev/null
@@ -1,22 +0,0 @@
-name: 'E2E Test Report'
-
-on:
- workflow_run:
- workflows: ['CI'] # runs after CI workflow
- types:
- - completed
-
-permissions:
- checks: write
-
-jobs:
- report:
- runs-on: ubuntu-latest
- steps:
- - uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
- with:
- artifact: /e2e-test-reports-(.*)/
- name: JEST Tests $1 # Name of the check run which will be created
- path: 'report*.xml' # Path to test results (inside artifact .zip)
- reporter: jest-junit # Format of test results
- fail-on-empty: 'true'
diff --git a/.github/workflows/perftest.yaml b/.github/workflows/perftest.yaml
deleted file mode 100644
index de22d53d9..000000000
--- a/.github/workflows/perftest.yaml
+++ /dev/null
@@ -1,72 +0,0 @@
-name: Performance Test
-
-on:
- workflow_dispatch:
- inputs:
- logLevel:
- description: 'Log level'
- required: true
- default: 'warning'
- tags:
- description: 'K6 Load Test'
-
-permissions:
- contents: read
-
-jobs:
- k6_test_run:
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Install K6
- run: |
- wget https://github.com/grafana/k6/releases/download/v0.38.2/k6-v0.38.2-linux-amd64.tar.gz
- echo '7c9e5a26aaa2c638c042f6dfda7416161b8d2e0d4cb930721a38083b8be109ab *k6-v0.38.2-linux-amd64.tar.gz' | shasum -c
- tar -xvf k6-v0.38.2-linux-amd64.tar.gz k6-v0.38.2-linux-amd64/k6
- mv k6-v0.38.2-linux-amd64/k6 .
- ./k6
-
- - name: Make dev-env
- run: |
- mkdir $HOME/.kube
- make dev-env
- podName=`kubectl -n ingress-nginx get po | grep -i controller | awk '{print $1}'`
- if [[ -z ${podName} ]] ; then
- sleep 5
- fi
- kubectl wait pod -n ingress-nginx --for condition=Ready $podName
- kubectl get all -A
-
- - name: Deploy workload
- run: |
- kubectl create deploy k6 --image kennethreitz/httpbin --port 80 && \
- kubectl expose deploy k6 --port 80 && \
- kubectl create ing k6 --class nginx \
- --rule test.ingress-nginx-controller.ga/*=k6:80
- podName=`kubectl get po | grep -i k6 | awk '{print $1}'`
- if [[ -z ${podName} ]] ; then
- sleep 5
- fi
- kubectl wait pod --for condition=Ready $podName
- kubectl get all,secrets,ing
-
- - name: Tune OS
- run : |
- sudo sysctl -A 2>/dev/null | egrep -i "local_port_range|tw_reuse|tcp_timestamps"
- sudo sh -c "ulimit"
- sudo sysctl -w net.ipv4.ip_local_port_range="1024 65535"
- sudo sysctl -w net.ipv4.tcp_tw_reuse=1
- sudo sysctl -w net.ipv4.tcp_timestamps=1
- sudo sh -c "ulimit "
-
- - name: Run smoke test
- run: |
- vmstat -at 5 | tee vmstat_report &
- #./k6 login cloud -t $K6_TOKEN
- #./k6 run -o cloud ./smoketest.js
- ./k6 run test/k6/smoketest.js
- pkill vmstat
- cat vmstat_report
diff --git a/.github/workflows/plugin.yaml b/.github/workflows/plugin.yaml
deleted file mode 100644
index 20f2caeae..000000000
--- a/.github/workflows/plugin.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-name: kubectl plugin
-
-on:
- release:
- types: [published]
-
-permissions:
- contents: write # for goreleaser/goreleaser-action
-
-jobs:
- release-plugin:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- with:
- fetch-depth: 0
-
- - name: Get go version
- run: echo "GOLANG_VERSION=$(cat GOLANG_VERSION)" >> $GITHUB_ENV
-
- - name: Set up Go
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
- with:
- go-version: ${{ env.GOLANG_VERSION }}
- check-latest: true
-
- - name: Run GoReleaser Snapshot
- if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
- uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6.2.1
- with:
- version: "~> v2"
- args: release --snapshot --clean
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Run GoReleaser
- if: ${{ startsWith(github.ref, 'refs/tags/') }}
- uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6.2.1
- with:
- version: "~> v2"
- args: release --clean
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Update new version in krew-index
- if: ${{ startsWith(github.ref, 'refs/tags/') }}
- uses: rajatjindal/krew-release-bot@3d9faef30a82761d610544f62afddca00993eef9 # v0.0.47
- with:
- krew_template_file: cmd/plugin/krew.yaml
diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml
deleted file mode 100644
index 9babf234e..000000000
--- a/.github/workflows/project.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Adds all issues
-
-on:
- issues:
- types:
- - opened
-
-jobs:
- add-to-project:
- name: Add issue to project
- runs-on: ubuntu-latest
- permissions:
- repository-projects: write
- issues: write
- steps:
- - uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
- with:
- project-url: https://github.com/orgs/kubernetes/projects/104
- github-token: ${{ secrets.PROJECT_WRITER }}
diff --git a/.github/workflows/release.txt b/.github/workflows/release.txt
new file mode 100644
index 000000000..18039311e
--- /dev/null
+++ b/.github/workflows/release.txt
@@ -0,0 +1,128 @@
+name: Release
+
+on:
+ watch:
+ types: [started]
+
+jobs:
+ release:
+ runs-on: ubuntu-latest
+ if: github.actor == 'aledbf'
+ steps:
+ - name: Checkout master
+ uses: actions/checkout@v2
+
+ - name: Set up Go 1.14
+ uses: actions/setup-go@master
+ with:
+ go-version: 1.14
+
+ - name: Build krew plugin
+ shell: bash
+ run: |
+ export PATH=${PATH}:`go env GOPATH`/bin
+ make build-plugin
+
+# - name: Build and publish images
+# shell: bash
+# run: |
+# cat < build/images/nginx/aws.tfvars
+# access_key = "${{ secrets.AWS_ACCESS_KEY }}"
+# secret_key = "${{ secrets.AWS_ACCESS_SECRET_KEY }}"
+# EOF
+#
+# cat < build/images/nginx/env.tfvars
+# docker_username="${{ secrets.DOCKER_USERNAME }}"
+# docker_password="${{ secrets.DOCKER_PASSWORD }}"
+# EOF
+#
+# ./build/build-ingress-controller.sh
+
+ - name: Create env variables
+ shell: bash
+ run: |
+ # $(cat cmd/plugin/release/ingress-nginx.yaml)
+ echo "::set-env name=RELEASE_VERSION::$(make show-version)"
+ echo "::set-env name=RELEASE_CHANGELOG::##CHANGELOG##"
+
+ - name: Create release
+ id: create_release
+ uses: actions/create-release@v1
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/controller')
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ tag_name: controller-${{ env.RELEASE_VERSION }}
+ release_name: "NGINX: ${{ env.RELEASE_VERSION }}"
+ body: |
+ **Image:** `quay.io/kubernetes-ingress-controller/nginx-ingress-controller:${{ env.RELEASE_VERSION }}`
+
+ ${{ env.RELEASE_CHANGELOG }}
+
+ Complete changelog [here](https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md)
+
+ draft: false
+ prerelease: false
+
+ - name: Upload krew plugin Darwin
+ uses: actions/upload-release-asset@v1
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/controller')
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: cmd/plugin/release/kubectl-ingress_nginx-darwin-amd64.tar.gz
+ asset_name: kubectl-ingress_nginx-darwin-amd64.tar.gz
+ asset_content_type: application/tar+gzip
+
+ - name: Upload krew plugin Linux
+ uses: actions/upload-release-asset@v1
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/controller')
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: cmd/plugin/release/kubectl-ingress_nginx-linux-amd64.tar.gz
+ asset_name: kubectl-ingress_nginx-linux-amd64.tar.gz
+ asset_content_type: application/tar+gzip
+
+ - name: Upload krew plugin Windows
+ uses: actions/upload-release-asset@v1
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/controller')
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: cmd/plugin/release/kubectl-ingress_nginx-windows-amd64.tar.gz
+ asset_name: kubectl-ingress_nginx-windows-amd64.tar.gz
+ asset_content_type: application/tar+gzip
+
+ - name: Upload krew plugin
+ uses: actions/upload-release-asset@v1
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/controller')
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: cmd/plugin/release/ingress-nginx.yaml
+ asset_name: ingress-nginx.yaml
+ asset_content_type: text/x-yaml
+
+ - name: Create KREW_PLUGIN_BODY_PR env variable
+ shell: bash
+ run: |
+ echo "::set-env name=KREW_PLUGIN_BODY_PR::$(cat cmd/plugin/release/ingress-nginx.yaml)"
+
+# - name: Open PR for new release of Krew Plugin
+# uses: gha-utilities/init-pull-request@v0.1.2
+# env:
+# GITHUB_REPOSITORY: maintainer/repo-name
+# with:
+# verbose: true
+# draft: false
+# pull_request_token: ${{ secrets.GITHUB_TOKEN }}
+# head: ingress-nginx:krew
+# base: krew
+# title: 'Update ingress-nginx krew plugin to ${{ env.RELEASE_VERSION }}'
+# body: |
+# ${{ env.KREW_PLUGIN_BODY_PR }}
diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml
deleted file mode 100644
index a4473710d..000000000
--- a/.github/workflows/scorecards.yml
+++ /dev/null
@@ -1,64 +0,0 @@
-name: Scorecards supply-chain security
-
-on:
- # Only the default branch is supported.
- branch_protection_rule:
- schedule:
- - cron: '20 11 * * 5'
- push:
- branches:
- - "main"
-
-# Declare default permissions as read only.
-permissions: read-all
-
-jobs:
- analysis:
- name: Scorecards analysis
- runs-on: ubuntu-latest
- permissions:
- # Needed to upload the results to code-scanning dashboard.
- security-events: write
- # Used to receive a badge. (Upcoming feature)
- id-token: write
- # Needs for private repositories.
- contents: read
- actions: read
-
- steps:
- - name: "Checkout code"
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- with:
- persist-credentials: false
-
- - name: "Run analysis"
- uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
- with:
- results_file: results.sarif
- results_format: sarif
- # (Optional) Read-only PAT token. Uncomment the `repo_token` line below if:
- # - you want to enable the Branch-Protection check on a *public* repository, or
- # - you are installing Scorecards on a *private* repository
- # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
- # repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
-
- # Publish the results for public repositories to enable scorecard badges. For more details, see
- # https://github.com/ossf/scorecard-action#publishing-results.
- # For private repositories, `publish_results` will automatically be set to `false`, regardless
- # of the value entered here.
- publish_results: true
-
- # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
- # format to the repository Actions tab.
- - name: "Upload artifact"
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
- with:
- name: SARIF file
- path: results.sarif
- retention-days: 5
-
- # Upload the results to GitHub's code scanning dashboard.
- - name: "Upload to code-scanning"
- uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
- with:
- sarif_file: results.sarif
diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml
deleted file mode 100644
index 45a7cd320..000000000
--- a/.github/workflows/stale.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
-name: 'Stale Issues and PRs'
-
-on:
- schedule:
- - cron: '30 1 * * *'
-
-jobs:
- stale:
- runs-on: ubuntu-latest
-
- permissions:
- issues: write
- pull-requests: write
-
- steps:
- - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
- with:
- stale-issue-message: "This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach `#ingress-nginx-dev` on Kubernetes Slack."
- stale-pr-message: "This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach `#ingress-nginx-dev` on Kubernetes Slack."
- stale-issue-label: lifecycle/frozen
- stale-pr-label: lifecycle/frozen
- days-before-issue-stale: 30
- days-before-pr-stale: 45
- days-before-close: -1 # dont not close issues/prs
diff --git a/.github/workflows/vulnerability-scans.yaml b/.github/workflows/vulnerability-scans.yaml
deleted file mode 100644
index 4461d9757..000000000
--- a/.github/workflows/vulnerability-scans.yaml
+++ /dev/null
@@ -1,92 +0,0 @@
-# This workflow uses actions that are not certified by GitHub.
-# They are provided by a third-party and are governed by
-# separate terms of service, privacy policy, and support
-# documentation.
-
-name: Vulnerability Scan
-
-on:
- workflow_dispatch:
- release:
- schedule:
- - cron: '00 9 * * 1'
-
-permissions:
- contents: read
- security-events: write
-
-jobs:
- version:
- runs-on: ubuntu-latest
- outputs:
- versions: ${{ steps.version.outputs.TAGS }}
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- with:
- fetch-depth: 0
-
- - name: Latest Tag
- id: version
- shell: bash
- run: |
- readarray -t TAGS_ARRAY <<<"$(git tag --list 'controller-v*.*.*' --sort=-version:refname | grep -v 'beta\|alpha')"
- FULL_TAGS=(${TAGS_ARRAY[0]} ${TAGS_ARRAY[1]} ${TAGS_ARRAY[2]})
- SHORT_TAGS=()
- for i in ${FULL_TAGS[@]}
- do
- echo "tag: $i"
- short=$(echo "$i" | cut -d - -f 2)
- SHORT_TAGS+=($short)
- done
- echo "${SHORT_TAGS[0]},${SHORT_TAGS[1]},${SHORT_TAGS[2]}"
- TAGS_JSON="[\"${SHORT_TAGS[0]}\",\"${SHORT_TAGS[1]}\",\"${SHORT_TAGS[2]}\"]"
- echo "${TAGS_JSON}"
- echo "TAGS=${TAGS_JSON}" >> $GITHUB_OUTPUT
-
- scan:
- runs-on: ubuntu-latest
- needs: version
- strategy:
- matrix:
- versions: ${{ fromJSON(needs.version.outputs.versions) }}
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - shell: bash
- id: test
- run: echo "Scanning registry.k8s.io/ingress-nginx/controller@${{ matrix.versions }}"
-
- - name: Scan image with AquaSec/Trivy
- id: scan
- uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # v0.29.0
- with:
- image-ref: registry.k8s.io/ingress-nginx/controller:${{ matrix.versions }}
- format: 'sarif'
- output: trivy-results-${{ matrix.versions }}.sarif
- exit-code: 0
- vuln-type: 'os,library'
- severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
-
- - name: Output Sarif File
- shell: bash
- run: cat ${{ github.workspace }}/trivy-results-${{ matrix.versions }}.sarif
-
- # This step checks out a copy of your repository.
- - name: Upload SARIF file
- uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
- with:
- token: ${{ github.token }}
- # Path to SARIF file relative to the root of the repository
- sarif_file: ${{ github.workspace }}/trivy-results-${{ matrix.versions }}.sarif
-
- - name: Vulz Count
- shell: bash
- run: |
- TRIVY_COUNT=$(cat ${{ github.workspace }}/trivy-results-${{ matrix.versions }}.sarif | jq '.runs[0].results | length')
- echo "TRIVY_COUNT: $TRIVY_COUNT"
- echo "Image Vulnerability scan output" >> $GITHUB_STEP_SUMMARY
- echo "Image ID: registry.k8s.io/ingress-nginx/controller@${{ matrix.versions }}" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "Trivy Count: $TRIVY_COUNT" >> $GITHUB_STEP_SUMMARY
diff --git a/.github/workflows/zz-tmpl-images.yaml b/.github/workflows/zz-tmpl-images.yaml
deleted file mode 100644
index 5e98ddf70..000000000
--- a/.github/workflows/zz-tmpl-images.yaml
+++ /dev/null
@@ -1,81 +0,0 @@
-#### THIS IS A TEMPLATE ####
-# This workflow is created to be a template for every time an e2e test is required,
-
-on:
- workflow_call:
- inputs:
- name:
- required: true
- type: string
- platforms-test:
- type: string
- default: linux/amd64
- platforms-publish:
- type: string
- default: linux/amd64
-
-env:
- PLATFORMS: ${{ inputs.platforms-test }}
-
-permissions:
- contents: write
- packages: write
-
-jobs:
- changestag:
- permissions:
- contents: read # for dorny/paths-filter to fetch a list of changed files
- runs-on: ubuntu-latest
- outputs:
- tag: ${{ steps.filter.outputs.tag }}
-
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
- id: filter
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- filters: |
- tag:
- - 'images/**/TAG'
-
- image-build:
- name: Build
- runs-on: ubuntu-latest
- permissions:
- contents: read
-
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Build
- run: |
- cd images/ && make NAME=${{ inputs.name }} build
-
- image-push:
- name: Push
- needs: changestag
- if: |
- (github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'kubernetes/ingress-nginx' && needs.changestag.outputs.tag == 'true')
- runs-on: ubuntu-latest
- permissions:
- contents: write
- packages: write
- env:
- PLATFORMS: ${{ inputs.platforms-publish }}
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Login to GitHub Container Registry
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
-
- - name: Push
- run: |
- cd images/ && make REGISTRY=ingressnginx NAME=${{ inputs.name }} push
-
diff --git a/.github/workflows/zz-tmpl-k8s-e2e.yaml b/.github/workflows/zz-tmpl-k8s-e2e.yaml
deleted file mode 100644
index c46e4a957..000000000
--- a/.github/workflows/zz-tmpl-k8s-e2e.yaml
+++ /dev/null
@@ -1,57 +0,0 @@
-#### THIS IS A TEMPLATE ####
-# This workflow is created to be a template for every time an e2e test is required,
-
-on:
- workflow_call:
- inputs:
- k8s-version:
- required: true
- type: string
- variation:
- type: string
-
-permissions:
- contents: read
-
-jobs:
- kubernetes:
- name: Kubernetes ${{ inputs.variation }}
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: cache
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- with:
- name: docker.tar.gz
-
- - name: Create Kubernetes ${{ inputs.k8s-version }} cluster
- id: kind
- run: |
- kind create cluster --image=kindest/node:${{ inputs.k8s-version }} --config test/e2e/kind.yaml
-
- - name: Load images from cache
- run: |
- echo "loading docker images..."
- gzip -dc docker.tar.gz | docker load
-
- - name: Run e2e tests ${{ inputs.variation }}
- env:
- KIND_CLUSTER_NAME: kind
- SKIP_CLUSTER_CREATION: true
- SKIP_INGRESS_IMAGE_CREATION: true
- SKIP_E2E_IMAGE_CREATION: true
- IS_CHROOT: ${{ inputs.variation == 'CHROOT' }}
- run: |
- kind get kubeconfig > $HOME/.kube/kind-config-kind
- make kind-e2e-test
-
- - name: Upload e2e junit-reports ${{ inputs.variation }}
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
- if: success() || failure()
- with:
- name: e2e-test-reports-${{ inputs.k8s-version }}${{ inputs.variation }}
- path: 'test/junitreports/report*.xml'
-
diff --git a/.gitignore b/.gitignore
index 5eac1a800..257ff6594 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,7 +46,6 @@ test/e2e/e2e\.test
bin
test/e2e-image/wait-for-nginx.sh
.cache
-.modcache
cover.out
# secret terraform variables
@@ -58,6 +57,3 @@ images/fastcgi-helloserver/rootfs/fastcgi-helloserver
cmd/plugin/release/ingress-nginx.yaml
cmd/plugin/release/*.tar.gz
cmd/plugin/release/LICENSE
-tmp/
-test/junitreports/
-tests/__snapshot__
diff --git a/.golangci.yml b/.golangci.yml
deleted file mode 100644
index 729468711..000000000
--- a/.golangci.yml
+++ /dev/null
@@ -1,236 +0,0 @@
-run:
- timeout: 10m
- allow-parallel-runners: true
-
-issues:
- # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
- max-issues-per-linter: 0
-
- # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
- max-same-issues: 0
-linters:
- disable-all: true
- enable:
- - asasalint
- - asciicheck
- - bidichk
- - bodyclose
- - contextcheck
- - decorder
- - dogsled
- - dupl
- - durationcheck
- - errcheck
- - errchkjson
- - errname
- - ginkgolinter
- - gocheckcompilerdirectives
- - goconst
- - gocritic
- - gocyclo
- - godox
- - gofmt
- - gofumpt
- - goheader
- - goimports
- - gomoddirectives
- - gomodguard
- - goprintffuncname
- - gosec
- - gosimple
- - govet
- - grouper
- - importas
- - ineffassign
- - loggercheck
- - makezero
- - misspell
- - musttag
- - nakedret
- - nolintlint
- - nosprintfhostport
- - prealloc
- - predeclared
- - promlinter
- - reassign
- - revive
- - rowserrcheck
- - sqlclosecheck
- - staticcheck
- - stylecheck
- - tenv
- - testableexamples
- - typecheck
- - unconvert
- - unparam
- - unused
- - usestdlibvars
- - whitespace
- # - containedctx
- # - cyclop
- # - dupword
- # - errorlint
- # - exhaustive
- # - exhaustruct
- # - exportloopref
- # - forbidigo
- # - forcetypeassert
- # - funlen
- # - gci
- # - gochecknoglobals
- # - gochecknoinits
- # - gocognit
- # - godot
- # - goerr113
- # - gomnd
- # - interfacebloat
- # - ireturn
- # - lll
- # - maintidx
- # - nestif
- # - nilerr
- # - nilnil
- # - nlreturn
- # - noctx
- # - nonamedreturns
- # - paralleltest
- # - tagliatelle
- # - testpackage
- # - thelper
- # - tparallel
- # - varnamelen
- # - wastedassign
- # - wrapcheck
- # - wsl
-linters-settings:
- gocyclo:
- min-complexity: 40
- godox:
- keywords:
- - BUG
- - FIXME
- - HACK
- errcheck:
- check-type-assertions: true
- check-blank: true
- gocritic:
- enabled-checks:
- # Diagnostic
- - appendAssign
- - argOrder
- - badCall
- - badCond
- - badLock
- - badRegexp
- - badSorting
- - builtinShadowDecl
- - caseOrder
- - codegenComment
- - commentedOutCode
- - deferInLoop
- - deprecatedComment
- - dupArg
- - dupBranchBody
- - dupCase
- - dupSubExpr
- - dynamicFmtString
- - emptyDecl
- - evalOrder
- - exitAfterDefer
- - externalErrorReassign
- - filepathJoin
- - flagDeref
- - flagName
- - mapKey
- - nilValReturn
- - offBy1
- - regexpPattern
- - returnAfterHttpError
- - sloppyReassign
- - sloppyTypeAssert
- - sortSlice
- - sprintfQuotedString
- - sqlQuery
- - syncMapLoadAndDelete
- - truncateCmp
- - unnecessaryDefer
- - weakCond
-
- # Performance
- - appendCombine
- - equalFold
- - hugeParam
- - indexAlloc
- - preferDecodeRune
- - preferFprint
- - preferStringWriter
- - preferWriteByte
- - rangeExprCopy
- - rangeValCopy
- - sliceClear
- - stringXbytes
-
- # Style
- - assignOp
- - boolExprSimplify
- - captLocal
- - commentFormatting
- - commentedOutImport
- - defaultCaseOrder
- - deferUnlambda
- - docStub
- - dupImport
- - elseif
- - emptyFallthrough
- - emptyStringTest
- - exposedSyncMutex
- - hexLiteral
- - httpNoBody
- - ifElseChain
- - methodExprCall
- - newDeref
- - octalLiteral
- - preferFilepathJoin
- - redundantSprint
- - regexpMust
- - regexpSimplify
- - ruleguard
- - singleCaseSwitch
- - sloppyLen
- - stringConcatSimplify
- - stringsCompare
- - switchTrue
- - timeExprSimplify
- - tooManyResultsChecker
- - typeAssertChain
- - typeDefFirst
- - typeSwitchVar
- - underef
- - unlabelStmt
- - unlambda
- - unslice
- - valSwap
- - whyNoLint
- - wrapperFunc
- - yodaStyleExpr
-
- # Opinionated
- - builtinShadow
- - importShadow
- - initClause
- - nestingReduce
- - paramTypeCombine
- - ptrToRefParam
- - typeUnparen
- - unnamedResult
- - unnecessaryBlock
- nolintlint:
- # Enable to ensure that nolint directives are all used. Default is true.
- allow-unused: false
- # Exclude following linters from requiring an explanation. Default is [].
- allow-no-explanation: []
- # Enable to require an explanation of nonzero length after each nolint directive. Default is false.
- # TODO(lint): Enforce explanations for `nolint` directives
- require-explanation: false
- # Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
- require-specific: true
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
deleted file mode 100644
index a0ef6eb3d..000000000
--- a/.goreleaser.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-project_name: ingress-nginx
-release:
- github:
- owner: kubernetes
- name: ingress-nginx
-builds:
- - id: ingress-nginx
- goos:
- - darwin
- - linux
- - windows
- goarch:
- - arm64
- - amd64
- env:
- - CGO_ENABLED=0
- - GO111MODULE=on
- main: cmd/plugin/main.go
- binary: kubectl-ingress-nginx
- ldflags: |
- -s -w
- -X k8s.io/ingress-nginx/version.COMMIT={{ .Commit }}
- -X k8s.io/ingress-nginx/version.RELEASE={{ .Tag }}
-archives:
- - id: ingress-nginx
- builds:
- - ingress-nginx
- name_template: "kubectl-{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
- format: tar.gz
diff --git a/.luacheckrc b/.luacheckrc
index 5a1c249fe..a24399e26 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -1,6 +1,6 @@
std = 'ngx_lua'
max_line_length = 100
-exclude_files = {'./rootfs/etc/nginx/lua/test/**/*.lua'}
+exclude_files = {'./rootfs/etc/nginx/lua/test/**/*.lua', './rootfs/etc/nginx/lua/plugins/**/test/**/*.lua'}
files["rootfs/etc/nginx/lua/lua_ingress.lua"] = {
ignore = { "122" },
-- TODO(elvinefendi) figure out why this does not work
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a11435aef..5dd01830b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -2,8 +2,6 @@
Read the following guide if you're interested in contributing to Ingress. [Make Ingress-Nginx Work for you, and the Community](https://youtu.be/GDm-7BlmPPg) from KubeCon Europe 2018 is a great video to get you started!!
-Note that this guide refers to contributing to actual sources of the repository. If you interested in contributing through issue triaging, have a look at [this guide](./ISSUE_TRIAGE.md).
-
## Contributor License Agreements
We'd love to accept your patches! Before we can take them, we have to jump a couple of legal hurdles.
@@ -17,16 +15,14 @@ Follow either of the two links above to access the appropriate CLA and instructi
***NOTE***: Only original source code from you and other people that have signed the CLA can be accepted into the main repository.
-## Finding Issues That Need Help
+## Finding Things That Need Help
-If you're new to the project and want to help, but don't know where to start, we have a semi-curated list of issues that should not need deep knowledge of the system. [Have a look and see if anything sounds interesting](https://github.com/kubernetes/ingress-nginx/issues?utf8=%E2%9C%93&q=is%3Aopen%20is%3Aissue%20label%3A%22help+wanted%22).
-
-Alternatively, search for the label [`triage-accepted`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+is%3Aissue+label%3Atriage%2Faccepted+) if you have some experience with ingress-nginx. Note, that it could make sense to grab issues with higher priority first.
+If you're new to the project and want to help, but don't know where to start, we have a semi-curated list of issues that should not need deep knowledge of the system. [Have a look and see if anything sounds interesting](https://github.com/kubernetes/ingress-nginx/issues?utf8=%E2%9C%93&q=is%3Aopen%20is%3Aissue%20label%3A%22help+wanted%22). Alternatively, read some of the docs on other controllers and try to write your own, file and fix any/all issues that come up, including gaps in documentation!
## Contributing a Patch
1. If you haven't already done so, sign a Contributor License Agreement (see details above).
-1. Read the [Ingress development guide](docs/developer-guide/getting-started.md).
+1. Read the [Ingress development guide](docs/development.md).
1. Fork the desired repo, develop and test your code changes.
1. Submit a pull request.
@@ -34,9 +30,7 @@ All changes must be code reviewed. Coding conventions and standards are explaine
### Merge Approval
-Ingress Nginx collaborators may add "/lgtm" (Looks Good To Me) to indicate that a PR is acceptable. Any change requires at least one LGTM. No pull requests can be merged until at least one Ingress Nginx collaborator signs off with an LGTM. Adding the "/lgtm" comment result in the prow bot adding the `lgtm` label. Note that a pull request still needs an `approve` label from one of the owners.
-
-Reviewers or members who want to become reviewers according to the [k8s membership ladder](https://github.com/kubernetes/community/blob/master/community-membership.md), could actively search for [pull requests that need a review](https://github.com/kubernetes/ingress-nginx/pulls?q=is%3Aopen+is%3Apr+label%3Atriage%2Faccepted).
+Ingress collaborators may add "LGTM" (Looks Good To Me) or an equivalent comment to indicate that a PR is acceptable. Any change requires at least one LGTM. No pull requests can be merged until at least one Ingress collaborator signs off with an LGTM.
## Support Channels
@@ -47,6 +41,3 @@ Whether you are a user or contributor, official support channels include:
- Post: [Kubernetes Forum](https://discuss.kubernetes.io)
Before opening a new issue or submitting a new pull request, it's helpful to search the project - it's likely that another user has already reported the issue you're facing, or it's a known issue that we're already aware of.
-
-## New Contributor Tips
-If you're a new contributor, you can follow the [New Contributor Tips guide](NEW_CONTRIBUTOR.md)
diff --git a/Changelog.md b/Changelog.md
index f049654ee..d5316fc85 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -1,965 +1,5 @@
# Changelog
-All New change are in [Changelog](./changelog)
-
-### 1.5.1
-
-* Upgrade NGINX to 1.21.6
-* Upgrade Golang 1.19.2
-* Fix Service Name length Bug [9245](https://github.com/kubernetes/ingress-nginx/pull/9245)
-* CVE fixes CVE-2022-32149, CVE-2022-27664, CVE-2022-1996
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.5.1@sha256:4ba73c697770664c1e00e9f968de14e08f606ff961c76e5d7033a4a9c593c629
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.5.1@sha256:c1c091b88a6c936a83bd7b098662760a87868d12452529bad0d178fb36147345
-
-### All Changes:
-
-* chore Fixed to Support Versions table by @yutachaos in https://github.com/kubernetes/ingress-nginx/pull/9117
-* Updated incorrect version number in the Installation Guide by @afro-coder in https://github.com/kubernetes/ingress-nginx/pull/9120
-* Updated the Developer guide with New Contributor information by @afro-coder in https://github.com/kubernetes/ingress-nginx/pull/9114
-* Remove deprecated net dependency by @rikatz in https://github.com/kubernetes/ingress-nginx/pull/9110
-* Fixed docs helm-docs version by @yutachaos in https://github.com/kubernetes/ingress-nginx/pull/9121
-* Fix CVE 2022 27664 by @strongjz in https://github.com/kubernetes/ingress-nginx/pull/9109
-* upgrade to golang 1.19.2 by @strongjz in https://github.com/kubernetes/ingress-nginx/pull/9124
-* fix e2e resource leak when ginkgo exit before clear resource by @loveRhythm1990 in https://github.com/kubernetes/ingress-nginx/pull/9103
-* fix: handle 401 and 403 by external auth by @johanneswuerbach in https://github.com/kubernetes/ingress-nginx/pull/9131
-* Move bowei to emeritus owner by @rikatz in https://github.com/kubernetes/ingress-nginx/pull/9150
-* fix null ports by @tombokombo in https://github.com/kubernetes/ingress-nginx/pull/9149
-* Documentation added for implemented redirection in the proxy to ensure image pulling by @Sanghamitra-PERSONAL in https://github.com/kubernetes/ingress-nginx/pull/9098
-* updating runner with golang 1.19.2 by @strongjz in https://github.com/kubernetes/ingress-nginx/pull/9158
-* Add install command for OVHcloud by @scraly in https://github.com/kubernetes/ingress-nginx/pull/9171
-* GitHub Templates: Remove trailing whitespaces. by @Gacko in https://github.com/kubernetes/ingress-nginx/pull/9172
-* Update helm chart changelog to show that kubernetes v1.21.x is no longer supported by @cskinfill in https://github.com/kubernetes/ingress-nginx/pull/9147
-* Add section to troubleshooting docs for failure to listen on port by @jrhunger in https://github.com/kubernetes/ingress-nginx/pull/9185
-* Implement parseFloat for annotations by @kirs in https://github.com/kubernetes/ingress-nginx/pull/9195
-* fix typo in docs. by @guettli in https://github.com/kubernetes/ingress-nginx/pull/9167
-* add:(admission-webhooks) ability to set securityContext by @ybelMekk in https://github.com/kubernetes/ingress-nginx/pull/9186
-* Fix Markdown header level by @jaens in https://github.com/kubernetes/ingress-nginx/pull/9210
-* chore: bump NGINX version v1.21.4 by @tao12345666333 in https://github.com/kubernetes/ingress-nginx/pull/8889
-* chore: update NGINX to 1.21.6 by @tao12345666333 in https://github.com/kubernetes/ingress-nginx/pull/9231
-* fix svc long name by @tombokombo in https://github.com/kubernetes/ingress-nginx/pull/9245
-* update base image of nginx to 1.21.6 by @strongjz in https://github.com/kubernetes/ingress-nginx/pull/9257
-* Fix CVE-2022-32149 by @esigo in https://github.com/kubernetes/ingress-nginx/pull/9258
-* Fix CVE-2022-1996 by @esigo in https://github.com/kubernetes/ingress-nginx/pull/9244
-* Adding support for disabling liveness and readiness probes to the Helm chart by @njegosrailic in https://github.com/kubernetes/ingress-nginx/pull/9238
-* fix CVE-2022-27664 by @esigo in https://github.com/kubernetes/ingress-nginx/pull/9273
-* Add CVE-2022-27664 #9273 in latest release by @strongjz in https://github.com/kubernetes/ingress-nginx/pull/9275
-
-### Dependencies updates:
-
-* Bump docker/setup-buildx-action from 2.0.0 to 2.1.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9180
-* Bump dorny/paths-filter from 2.10.2 to 2.11.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9183
-* Bump helm/chart-releaser-action from 1.4.0 to 1.4.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9136
-* Bump github/codeql-action from 2.1.25 to 2.1.27 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9137
-* Bump ossf/scorecard-action from 2.0.3 to 2.0.4 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9138
-* Bump google.golang.org/grpc from 1.49.0 to 1.50.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9134
-* Bump actions/checkout from 3.0.2 to 3.1.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9135
-* Bump actions/dependency-review-action from 2.5.0 to 2.5.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9237
-* Bump github/codeql-action from 2.1.28 to 2.1.29 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9236
-* Bump github.com/spf13/cobra from 1.6.0 to 1.6.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9233
-* Bump actions/upload-artifact from 3.1.0 to 3.1.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9234
-* Bump azure/setup-helm from 3.3 to 3.4 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9235
-* Bump github.com/onsi/ginkgo/v2 from 2.3.1 to 2.4.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9201
-* Bump goreleaser/goreleaser-action from 3.1.0 to 3.2.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9208
-* Bump github.com/stretchr/testify from 1.8.0 to 1.8.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9202
-* Bump ossf/scorecard-action from 2.0.4 to 2.0.6 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9203
-* Bump docker/setup-buildx-action from 2.1.0 to 2.2.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9204
-* Bump actions/setup-go from 3.3.0 to 3.3.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9205
-* Bump github/codeql-action from 2.1.27 to 2.1.28 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9206
-* Bump actions/download-artifact from 3.0.0 to 3.0.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9207
-* Bump github.com/prometheus/client_model from 0.2.0 to 0.3.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9200
-* Bump github.com/spf13/cobra from 1.5.0 to 1.6.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9173
-* Bump google.golang.org/grpc from 1.50.0 to 1.50.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9174
-* Bump k8s.io/component-base from 0.25.2 to 0.25.3 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9175
-* Bump github.com/fsnotify/fsnotify from 1.5.4 to 1.6.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9176
-* Bump github.com/onsi/ginkgo/v2 from 2.2.0 to 2.3.1 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9177
-* Bump geekyeggo/delete-artifact from 1.0.0 to 2.0.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9178
-* Bump actions/dependency-review-action from 2.4.0 to 2.5.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9179
-* Bump docker/setup-qemu-action from 2.0.0 to 2.1.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9181
-* Bump securego/gosec from 2.13.1 to 2.14.0 by @dependabot in https://github.com/kubernetes/ingress-nginx/pull/9182
-
-
-## New Contributors
-* @yutachaos made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9117
-* @Gacko made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9123
-* @loveRhythm1990 made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9103
-* @johanneswuerbach made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9131
-* @FutureMatt made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9133
-* @Sanghamitra-PERSONAL made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9098
-* @scraly made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9171
-* @cskinfill made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9147
-* @jrhunger made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9185
-* @guettli made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9167
-* @ybelMekk made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9186
-* @jaens made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9210
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.4.0...controller-v1.5.1
-
-### 1.4.0
-
-### Community Updates
-
-We will discuss the results of our Community Survey, progress on the stabilization project, and ideas going
-forward with the project at
-[Kubecon NA 2022 in Detroit](https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/). Come join us
-and let us hear what you'd like to see in the future for ingress-nginx.
-
-https://kccncna2022.sched.com/event/18lgl?iframe=no
-
-[**Kubernetes Registry change notice**](https://twitter.com/BenTheElder/status/1575898507235323904)
-The [@kubernetesio](https://twitter.com/kubernetesio) container image host http://k8s.gcr.io is
-*actually* getting redirected to the community controlled http://registry.k8s.io starting with a small portion of
-traffic on October 3rd.
-
-If you notice any issues, *please* ping [Ben Elder](https://twitter.com/BenTheElder),
-[@thockin](https://twitter.com/thockin), [@ameukam](https://twitter.com/ameukam),or report issues in slack to
-[sig-k8s-infra slack channel](https://kubernetes.slack.com/archives/CCK68P2Q2).
-
-### What's Changed
-
-* 1.4.0 updates ingress-nginx to use Endpointslices instead of Endpoints. Thank you, @tombokombo, for your work in
-[8890](https://github.com/kubernetes/ingress-nginx/pull/8890)
-* Update to Prometheus metric names, more information [available here]( https://github.com/kubernetes/ingress-nginx/pull/8728
-)
-* Deprecated Kubernetes versions 1.20-1.21, Added support for, 1.25, currently supported versions v1.22, v1.23, v1.24, v1.25
-
-ADDED
-* `_request_duration_seconds` Histogram
-* `_connect_duration_seconds` Histogram
-* `_header_duration_seconds` Histogram
-* `_response_duration_seconds` Histogram
-
-Updated
-* `_response_size` Histogram
-* `_request_size` Histogram
-* `_requests` Counter
-
-DEPRECATED
-* `_bytes_sent` Histogram
-* _ingress_upstream_latency_seconds` Summary
-
-REMOVED
-* `ingress_upstream_header_seconds` Summary
-
-Also upgraded to golang 1.19.1
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.4.0@sha256:34ee929b111ffc7aa426ffd409af44da48e5a0eea1eb2207994d9e0c0882d143
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.4.0@sha256:b67e889f1db8692de7e41d4d9aef8de56645bf048261f31fa7f8bfc6ea2222a0
-
-
-### All Changes:
-
-* [9104](https://github.com/kubernetes/ingress-nginx/pull/9104) Fix yaml formatting error with multiple annotations
-* [9090](https://github.com/kubernetes/ingress-nginx/pull/9090) fix chroot module mount path
-* [9088](https://github.com/kubernetes/ingress-nginx/pull/9088) Add annotation for setting sticky cookie domain
-* [9086](https://github.com/kubernetes/ingress-nginx/pull/9086) Update Version ModSecurity and Coreruleset
-* [9081](https://github.com/kubernetes/ingress-nginx/pull/9081) plugin - endpoints to slices
-* [9078](https://github.com/kubernetes/ingress-nginx/pull/9078) expand CI testing for all stable versions of Kubernetes
-* [9074](https://github.com/kubernetes/ingress-nginx/pull/9074) fix: do not apply job-patch psp on Kubernetes 1.25 and newer
-* [9072](https://github.com/kubernetes/ingress-nginx/pull/9072) Added a Link to the New Contributors Tips
-* [9069](https://github.com/kubernetes/ingress-nginx/pull/9069) Add missing space to error message
-* [9059](https://github.com/kubernetes/ingress-nginx/pull/9059) kubewebhookcertgen sha change after go1191
-* [9058](https://github.com/kubernetes/ingress-nginx/pull/9058) updated testrunner image sha after bump to go1191
-* [9046](https://github.com/kubernetes/ingress-nginx/pull/9046) Parameterize metrics port name
-* [9036](https://github.com/kubernetes/ingress-nginx/pull/9036) update OpenTelemetry image
-* [9035](https://github.com/kubernetes/ingress-nginx/pull/9035) Added instructions for Rancher Desktop
-* [9028](https://github.com/kubernetes/ingress-nginx/pull/9028) fix otel init_module
-* [9023](https://github.com/kubernetes/ingress-nginx/pull/9023) updates for fixing 1.3.1 release
-* [9018](https://github.com/kubernetes/ingress-nginx/pull/9018) Add v1.25 test and reduce amount of e2e tests
-* [9017](https://github.com/kubernetes/ingress-nginx/pull/9017) fix LD_LIBRARY_PATH for opentelemetry
-
-### Dependencies updates:
-
-* [9085](https://github.com/kubernetes/ingress-nginx/pull/9085) Bump actions/dependency-review-action from 2.1.0 to 2.4.0
-* [9084](https://github.com/kubernetes/ingress-nginx/pull/9084) Bump actions/checkout from 1 to 3
-* [9083](https://github.com/kubernetes/ingress-nginx/pull/9083) Bump github/codeql-action from 2.1.24 to 2.1.25
-* [9089](https://github.com/kubernetes/ingress-nginx/pull/9089) Bump k8s.io/component-base from 0.25.1 to 0.25.2
-* [9066](https://github.com/kubernetes/ingress-nginx/pull/9066) Bump github/codeql-action from 2.1.23 to 2.1.24
-* [9065](https://github.com/kubernetes/ingress-nginx/pull/9065) Bump k8s.io/component-base from 0.25.0 to 0.25.1
-* [9064](https://github.com/kubernetes/ingress-nginx/pull/9064) Bump github.com/onsi/ginkgo/v2 from 2.1.6 to 2.2.0
-* [9057](https://github.com/kubernetes/ingress-nginx/pull/9057) bump go to v1.19.1
-* [9053](https://github.com/kubernetes/ingress-nginx/pull/9053) Bump ossf/scorecard-action from 2.0.2 to 2.0.3
-* [9052](https://github.com/kubernetes/ingress-nginx/pull/9052) Bump github/codeql-action from 2.1.22 to 2.1.23
-* [9045](https://github.com/kubernetes/ingress-nginx/pull/9045) Bump actions/upload-artifact from 3.0.0 to 3.1.0
-* [9044](https://github.com/kubernetes/ingress-nginx/pull/9044) Bump ossf/scorecard-action from 1.1.2 to 2.0.2
-* [9043](https://github.com/kubernetes/ingress-nginx/pull/9043) Bump k8s.io/klog/v2 from 2.80.0 to 2.80.1
-* [9022](https://github.com/kubernetes/ingress-nginx/pull/9022) Bump github.com/onsi/ginkgo/v2 from 2.1.4 to 2.1.6
-* [9021](https://github.com/kubernetes/ingress-nginx/pull/9021) Bump k8s.io/klog/v2 from 2.70.1 to 2.80.0
-
-## New Contributors
-* @gunamata made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9035
-* @afro-coder made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8924
-* @wilmardo made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9074
-* @nicolasjulian made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9086
-* @mtneug made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9088
-* @knbnnate made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8692
-* @mklauber made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9104
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.3.1...controller-v1.4.0
-
-### 1.3.1
-
-In v1.3.1 leader elections will be done entirely using the Lease API and no longer using configmaps.
-v1.3.0 is a safe transition version, using v1.3.0 can automatically complete the merging of election locks, and then you can safely upgrade to v1.3.1.
-
-Also, *important note*, with the Release of Kubernetes v1.25 we are dropping support for the legacy branches,
-Also, *important note*, with the release of Kubernetes v1.25, we are dropping support for the legacy edition,
-that means all version <1.0.0 of the ingress-nginx-controller.
-
-## Image:
-- registry.k8s.io/ingress-nginx/controller:v1.3.1@sha256:54f7fe2c6c5a9db9a0ebf1131797109bb7a4d91f56b9b362bde2abd237dd1974
-- registry.k8s.io/ingress-nginx/controller-chroot:v1.3.1@sha256:a8466b19c621bd550b1645e27a004a5cc85009c858a9ab19490216735ac432b1
-
-
-## What's Changed
-
-_IMPORTANT CHANGES:_
-- Update to golang 1.19
-- Started migration for Data and Control Plane splits
-- Upgrade to Alpine 3.16.2
-- New kubectl plugin release workflow
-- New CVE findings template
-
-All other Changes
-- [9006](https://github.com/kubernetes/ingress-nginx/pull/9006) issue:8739 fix doc issue
-- [9003](https://github.com/kubernetes/ingress-nginx/pull/9003) Bump github/codeql-action from 2.1.21 to 2.1.22
-- [9001](https://github.com/kubernetes/ingress-nginx/pull/9001) GitHub Workflows security hardening
-- [8992](https://github.com/kubernetes/ingress-nginx/pull/8992) Bump github.com/opencontainers/runc from 1.1.3 to 1.1.4
-- [8991](https://github.com/kubernetes/ingress-nginx/pull/8991) Bump google.golang.org/grpc from 1.48.0 to 1.49.0
-- [8986](https://github.com/kubernetes/ingress-nginx/pull/8986) Bump goreleaser/goreleaser-action from 3.0.0 to 3.1.0
-- [8984](https://github.com/kubernetes/ingress-nginx/pull/8984) fixed deprecated ginkgo flags
-- [8982](https://github.com/kubernetes/ingress-nginx/pull/8982) Bump github/codeql-action from 2.1.20 to 2.1.21
-- [8981](https://github.com/kubernetes/ingress-nginx/pull/8981) Bump actions/setup-go from 3.2.1 to 3.3.0
-- [8976](https://github.com/kubernetes/ingress-nginx/pull/8976) Update apiserver to 0.25 to remove v2 go-restful
-- [8970](https://github.com/kubernetes/ingress-nginx/pull/8970) bump Golang to 1.19 #8932
-- [8969](https://github.com/kubernetes/ingress-nginx/pull/8969) fix: go-restful CVE #8745
-- [8967](https://github.com/kubernetes/ingress-nginx/pull/8967) updated to testrunnerimage with updated yamale yamllint
-- [8966](https://github.com/kubernetes/ingress-nginx/pull/8966) added note on digitalocean annotations
-- [8960](https://github.com/kubernetes/ingress-nginx/pull/8960) upgrade yamale and yamllint version
-- [8959](https://github.com/kubernetes/ingress-nginx/pull/8959) revert changes to configmap resource permissions
-- [8957](https://github.com/kubernetes/ingress-nginx/pull/8957) Bump github/codeql-action from 2.1.19 to 2.1.20
-- [8956](https://github.com/kubernetes/ingress-nginx/pull/8956) Bump azure/setup-helm from 2.1 to 3.3
-- [8954](https://github.com/kubernetes/ingress-nginx/pull/8954) Bump actions/dependency-review-action from 2.0.4 to 2.1.0
-- [8953](https://github.com/kubernetes/ingress-nginx/pull/8953) Bump aquasecurity/trivy-action from 0.5.1 to 0.7.1
-- [8952](https://github.com/kubernetes/ingress-nginx/pull/8952) Bump securego/gosec from b99b5f7838e43a4104354ad92a6a1774302ee1f9 to 2.13.1
-- [8951](https://github.com/kubernetes/ingress-nginx/pull/8951) Bump geekyeggo/delete-artifact from a6ab43859c960a8b74cbc6291f362c7fb51829ba to 1
-- [8950](https://github.com/kubernetes/ingress-nginx/pull/8950) Bump github/codeql-action from 2.1.18 to 2.1.19
-- [8948](https://github.com/kubernetes/ingress-nginx/pull/8948) updated testrunner and testecho images
-- [8946](https://github.com/kubernetes/ingress-nginx/pull/8946) Clean old code and move helper functions
-- [8944](https://github.com/kubernetes/ingress-nginx/pull/8944) Make keep-alive documentation more explicit for clarity
-- [8939](https://github.com/kubernetes/ingress-nginx/pull/8939) bump baseimage alpine to v3.16.2 for zlib CVE fix
-
-## New Contributors
-* @mtnezm made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8817
-* @tamcore made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8821
-* @guilhem made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8827
-* @lilien1010 made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8830
-* @qilongqiu made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8855
-* @dgoffredo made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8848
-* @Volatus made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8859
-* @europ made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8841
-* @mrksngl made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/7892
-* @omichels made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8895
-* @zeeZ made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8881
-* @mjudeikis made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8928
-* @NissesSenap made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8873
-* @anders-swanson made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8665
-* @aslafy-z made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8905
-* @harry1064 made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/8825
-* @sashashura made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9001
-* @sreelakshminarayananm made their first contribution in https://github.com/kubernetes/ingress-nginx/pull/9006
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.3.0...controller-v1.3.1
-
-### 1.3.0
-
-Image:
-- registry.k8s.io/ingress-nginx/controller:v1.3.0@sha256:d1707ca76d3b044ab8a28277a2466a02100ee9f58a86af1535a3edf9323ea1b5
-- registry.k8s.io/ingress-nginx/controller-chroot:v1.3.0@sha256:0fcb91216a22aae43b374fc2e6a03b8afe9e8c78cbf07a09d75636dc4ea3c191
-
-_IMPORTANT CHANGES:_
-* This release removes support for Kubernetes v1.19.0
-* This release adds support for Kubernetes v1.24.0
-* Starting with this release, we will need permissions on the `coordination.k8s.io/leases` resource for leaderelection lock
-
-_KNOWN ISSUES:_
-* This release reports a false positive on go-restful library that will be fixed with Kubernetes v1.25 release - Issue #8745
-
-_Changes:_
-- "[8810](https://github.com/kubernetes/ingress-nginx/pull/8810) Prepare for v1.3.0"
-- "[8808](https://github.com/kubernetes/ingress-nginx/pull/8808) revert arch var name"
-- "[8805](https://github.com/kubernetes/ingress-nginx/pull/8805) Bump k8s.io/klog/v2 from 2.60.1 to 2.70.1"
-- "[8803](https://github.com/kubernetes/ingress-nginx/pull/8803) Update to nginx base with alpine v3.16"
-- "[8802](https://github.com/kubernetes/ingress-nginx/pull/8802) chore: start v1.3.0 release process"
-- "[8798](https://github.com/kubernetes/ingress-nginx/pull/8798) Add v1.24.0 to test matrix"
-- "[8796](https://github.com/kubernetes/ingress-nginx/pull/8796) fix: add MAC_OS variable for static-check"
-- "[8793](https://github.com/kubernetes/ingress-nginx/pull/8793) changed to alpine-v3.16"
-- "[8781](https://github.com/kubernetes/ingress-nginx/pull/8781) Bump github.com/stretchr/testify from 1.7.5 to 1.8.0"
-- "[8778](https://github.com/kubernetes/ingress-nginx/pull/8778) chore: remove stable.txt from release process"
-- "[8775](https://github.com/kubernetes/ingress-nginx/pull/8775) Remove stable"
-- "[8773](https://github.com/kubernetes/ingress-nginx/pull/8773) Bump github/codeql-action from 2.1.14 to 2.1.15"
-- "[8772](https://github.com/kubernetes/ingress-nginx/pull/8772) Bump ossf/scorecard-action from 1.1.1 to 1.1.2"
-- "[8771](https://github.com/kubernetes/ingress-nginx/pull/8771) fix bullet md format"
-- "[8770](https://github.com/kubernetes/ingress-nginx/pull/8770) Add condition for monitoring.coreos.com/v1 API"
-- "[8769](https://github.com/kubernetes/ingress-nginx/pull/8769) Fix typos and add links to developer guide"
-- "[8767](https://github.com/kubernetes/ingress-nginx/pull/8767) change v1.2.0 to v1.2.1 in deploy doc URLs"
-- "[8765](https://github.com/kubernetes/ingress-nginx/pull/8765) Bump github/codeql-action from 1.0.26 to 2.1.14"
-- "[8752](https://github.com/kubernetes/ingress-nginx/pull/8752) Bump github.com/spf13/cobra from 1.4.0 to 1.5.0"
-- "[8751](https://github.com/kubernetes/ingress-nginx/pull/8751) Bump github.com/stretchr/testify from 1.7.2 to 1.7.5"
-- "[8750](https://github.com/kubernetes/ingress-nginx/pull/8750) added announcement"
-- "[8740](https://github.com/kubernetes/ingress-nginx/pull/8740) change sha e2etestrunner and echoserver"
-- "[8738](https://github.com/kubernetes/ingress-nginx/pull/8738) Update docs to make it easier for noobs to follow step by step"
-- "[8737](https://github.com/kubernetes/ingress-nginx/pull/8737) updated baseimage sha"
-- "[8736](https://github.com/kubernetes/ingress-nginx/pull/8736) set ld-musl-path"
-- "[8733](https://github.com/kubernetes/ingress-nginx/pull/8733) feat: migrate leaderelection lock to leases"
-- "[8726](https://github.com/kubernetes/ingress-nginx/pull/8726) prometheus metric: upstream_latency_seconds"
-- "[8720](https://github.com/kubernetes/ingress-nginx/pull/8720) Ci pin deps"
-- "[8719](https://github.com/kubernetes/ingress-nginx/pull/8719) Working OpenTelemetry sidecar (base nginx image)"
-- "[8714](https://github.com/kubernetes/ingress-nginx/pull/8714) Create Openssf scorecard"
-- "[8708](https://github.com/kubernetes/ingress-nginx/pull/8708) Bump github.com/prometheus/common from 0.34.0 to 0.35.0"
-- "[8703](https://github.com/kubernetes/ingress-nginx/pull/8703) Bump actions/dependency-review-action from 1 to 2"
-- "[8701](https://github.com/kubernetes/ingress-nginx/pull/8701) Fix several typos"
-- "[8699](https://github.com/kubernetes/ingress-nginx/pull/8699) fix the gosec test and a make target for it"
-- "[8698](https://github.com/kubernetes/ingress-nginx/pull/8698) Bump actions/upload-artifact from 2.3.1 to 3.1.0"
-- "[8697](https://github.com/kubernetes/ingress-nginx/pull/8697) Bump actions/setup-go from 2.2.0 to 3.2.0"
-- "[8695](https://github.com/kubernetes/ingress-nginx/pull/8695) Bump actions/download-artifact from 2 to 3"
-- "[8694](https://github.com/kubernetes/ingress-nginx/pull/8694) Bump crazy-max/ghaction-docker-buildx from 1.6.2 to 3.3.1"
-
-### 1.2.1
-
-Image:
-- k8s.gcr.io/ingress-nginx/controller:v1.2.1@sha256:5516d103a9c2ecc4f026efbd4b40662ce22dc1f824fb129ed121460aaa5c47f8
-- k8s.gcr.io/ingress-nginx/controller-chroot:v1.2.1@sha256:d301551cf62bc3fb75c69fa56f7aa1d9e87b5079333adaf38afe84d9b7439355
-
-This release removes the root and alias directives in NGINX, this can avoid some potential security attacks.
-
-_Changes:_
-
-- [8459](https://github.com/kubernetes/ingress-nginx/pull/8459) Update default allowed CORS headers
-- [8202](https://github.com/kubernetes/ingress-nginx/pull/8202) disable modsecurity on error page
-- [8178](https://github.com/kubernetes/ingress-nginx/pull/8178) Add header Host into mirror annotations
-- [8458](https://github.com/kubernetes/ingress-nginx/pull/8458) Add portNamePreffix Helm chart parameter
-- [8587](https://github.com/kubernetes/ingress-nginx/pull/8587) Add CAP_SYS_CHROOT to DS/PSP when needed
-- [8213](https://github.com/kubernetes/ingress-nginx/pull/8213) feat: always set auth cookie
-- [8548](https://github.com/kubernetes/ingress-nginx/pull/8548) Implement reporting status classes in metrics
-- [8612](https://github.com/kubernetes/ingress-nginx/pull/8612) move so files under /etc/nginx/modules
-- [8624](https://github.com/kubernetes/ingress-nginx/pull/8624) Add patch to remove root and alias directives
-- [8623](https://github.com/kubernetes/ingress-nginx/pull/8623) Improve path rule
-
-### 1.2.0
-
-Image:
-- k8s.gcr.io/ingress-nginx/controller:v1.2.0@sha256:d8196e3bc1e72547c5dec66d6556c0ff92a23f6d0919b206be170bc90d5f9185
-- k8s.gcr.io/ingress-nginx/controller-chroot:v1.2.0@sha256:fb17f1700b77d4fcc52ca6f83ffc2821861ae887dbb87149cf5cbc52bea425e5
-
-This minor version release, introduces 2 breaking changes. For the first time, an option to jail/chroot the nginx process, inside the controller container, is being introduced. This provides an additional layer of security, for sensitive information like K8S serviceaccounts. This release also brings a special new feature of deep inspection into objects. The inspection is a walk through of all the spec, checking for possible attempts to escape configs. Currently such an inspection only occurs for `networking.Ingress`. Additionally there are fixes for the recently announced CVEs on busybox & ssl_client. And there is a fix to a recently introduced redirection related bug, that was setting the protocol on URLs to "nil".
-
-_Changes:_
-
-- [8481](https://github.com/kubernetes/ingress-nginx/pull/8481) Fix log creation in chroot script
-- [8479](https://github.com/kubernetes/ingress-nginx/pull/8479) changed nginx base img tag to img built with alpine3.14.6
-- [8478](https://github.com/kubernetes/ingress-nginx/pull/8478) update base images and protobuf gomod
-- [8468](https://github.com/kubernetes/ingress-nginx/pull/8468) Fallback to ngx.var.scheme for redirectScheme with use-forward-headers when X-Forwarded-Proto is empty
-- [8456](https://github.com/kubernetes/ingress-nginx/pull/8456) Implement object deep inspector
-- [8455](https://github.com/kubernetes/ingress-nginx/pull/8455) Update dependencies
-- [8454](https://github.com/kubernetes/ingress-nginx/pull/8454) Update index.md
-- [8447](https://github.com/kubernetes/ingress-nginx/pull/8447) typo fixing
-- [8446](https://github.com/kubernetes/ingress-nginx/pull/8446) Fix suggested annotation-value-word-blocklist
-- [8444](https://github.com/kubernetes/ingress-nginx/pull/8444) replace deprecated topology key in example with current one
-- [8443](https://github.com/kubernetes/ingress-nginx/pull/8443) Add dependency review enforcement
-- [8434](https://github.com/kubernetes/ingress-nginx/pull/8434) added new auth-tls-match-cn annotation
-- [8426](https://github.com/kubernetes/ingress-nginx/pull/8426) Bump github.com/prometheus/common from 0.32.1 to 0.33.0
-- [8417](https://github.com/kubernetes/ingress-nginx/pull/8417) force helm release to artifact hub
-- [8405](https://github.com/kubernetes/ingress-nginx/pull/8405) kubectl-plugin code overview info
-- [8399](https://github.com/kubernetes/ingress-nginx/pull/8399) Darwin arm64
-- [8443](https://github.com/kubernetes/ingress-nginx/pull/8443) Add dependency review enforcement
-- [8444](https://github.com/kubernetes/ingress-nginx/pull/8444) replace deprecated topology key in example with current one
-- [8446](https://github.com/kubernetes/ingress-nginx/pull/8446) Fix suggested annotation-value-word-blocklist
-- [8219](https://github.com/kubernetes/ingress-nginx/pull/8219) Add keepalive support for auth requests
-- [8455](https://github.com/kubernetes/ingress-nginx/pull/8455) Update dependencies
-- [8456](https://github.com/kubernetes/ingress-nginx/pull/8456) Implement object deep inspector
-- [8325](https://github.com/kubernetes/ingress-nginx/pull/8325) Fix for buggy ingress sync with retries
-- [8322](https://github.com/kubernetes/ingress-nginx/pull/8322) Improve req handling dashboard
-
-### 1.2.0-beta.0
-
-**Image:**
-- k8s.gcr.io/ingress-nginx/controller:v1.2.0-beta.0@sha256:92115f5062568ebbcd450cd2cf9bffdef8df9fc61e7d5868ba8a7c9d773e0961
-- k8s.gcr.io/ingress-nginx/controller-chroot:v1.2.0-beta.0@sha256:0082f0f547b147a30ad85a5d6d2ceb3edbf0848b2008ed754365b6678bdea9a5
-
-This release introduces Jail/chroot nginx process inside controller container for the first time
-
-_Changes:_
-
-- [8417](https://github.com/kubernetes/ingress-nginx/pull/8417) force helm release to artifact hub
-- [8421](https://github.com/kubernetes/ingress-nginx/pull/8421) fix change log changes list
-- [8405](https://github.com/kubernetes/ingress-nginx/pull/8405) kubectl-plugin code overview info
-- [8399](https://github.com/kubernetes/ingress-nginx/pull/8399) Darwin arm64
-- [8443](https://github.com/kubernetes/ingress-nginx/pull/8443) Add dependency review enforcement
-- [8426](https://github.com/kubernetes/ingress-nginx/pull/8426) Bump github.com/prometheus/common from 0.32.1 to 0.33.0
-- [8444](https://github.com/kubernetes/ingress-nginx/pull/8444) replace deprecated topology key in example with current one
-- [8447](https://github.com/kubernetes/ingress-nginx/pull/8447) typo fixing
-- [8446](https://github.com/kubernetes/ingress-nginx/pull/8446) Fix suggested annotation-value-word-blocklist
-- [8219](https://github.com/kubernetes/ingress-nginx/pull/8219) Add keepalive support for auth requests
-- [8337](https://github.com/kubernetes/ingress-nginx/pull/8337) Jail/chroot nginx process inside controller container
-- [8454](https://github.com/kubernetes/ingress-nginx/pull/8454) Update index.md
-- [8455](https://github.com/kubernetes/ingress-nginx/pull/8455) Update dependencies
-- [8456](https://github.com/kubernetes/ingress-nginx/pull/8456) Implement object deep inspector
-- [8325](https://github.com/kubernetes/ingress-nginx/pull/8325) Fix for buggy ingress sync with retries
-- [8322](https://github.com/kubernetes/ingress-nginx/pull/8322) Improve req handling dashboard
-- [8464](https://github.com/kubernetes/ingress-nginx/pull/8464) Prepare v1.2.0-beta.0 release
-
-
-### 1.1.3
-
-**Image:**
-- k8s.gcr.io/ingress-nginx/controller:v1.1.3@sha256:31f47c1e202b39fadecf822a9b76370bd4baed199a005b3e7d4d1455f4fd3fe2
-
-This release upgrades Alpine to 3.14.4 and nginx to 1.19.10
-
-Patches [OpenSSL CVE-2022-0778](https://github.com/kubernetes/ingress-nginx/issues/8339)
-
-Patches [Libxml2 CVE-2022-23308](https://github.com/kubernetes/ingress-nginx/issues/8321)
-
-_Breaking Changes:_
-
-- https://github.com/nginx/nginx/commit/d18e066d650bff39f1705d3038804873584007af Deprecated http2_recv_timeout in favor of client_header_timeout (client-header-timeout)
-- https://github.com/nginx/nginx/commit/51fea093e4374dbd857dc437ff9588060ef56471 Deprecated http2_max_field_size (http2-max-field-size) and http2_max_header_size (http2-max-header-size) in favor of large_client_header_buffers (large-client-header-buffers)
-- https://github.com/nginx/nginx/commit/49ab3312448495f0ee8e00143a29624dde46ef5c Deprecated http2_idle_timeout and http2_max_requests (http2-max-requests) in favor of keepalive_timeout (upstream-keepalive-timeout?) and keepalive_requests (upstream-keepalive-requests?) respectively
-
-_Changes:_
-
-- [8415](https://github.com/kubernetes/ingress-nginx/pull/8415) base img update for e2e-test-runner & opentelemetry
-- [8403](https://github.com/kubernetes/ingress-nginx/pull/8403) Add execute permissions to nginx image entrypoint.sh
-- [8392](https://github.com/kubernetes/ingress-nginx/pull/8392) fix document for monitoring
-- [8386](https://github.com/kubernetes/ingress-nginx/pull/8386) downgrade to 3.14.4 and fix tag
-- [8379](https://github.com/kubernetes/ingress-nginx/pull/8379) bump luarocks to 3.8.0
-- [8368](https://github.com/kubernetes/ingress-nginx/pull/8368) Updated semver in install docs URLs
-- [8360](https://github.com/kubernetes/ingress-nginx/pull/8360) Bump github.com/stretchr/testify from 1.7.0 to 1.7.1
-- [8334](https://github.com/kubernetes/ingress-nginx/pull/8334) Pinned GitHub workflows by SHA
-- [8324](https://github.com/kubernetes/ingress-nginx/pull/8324) Added missing "repo" option on "helm upgrade" command
-- [8315](https://github.com/kubernetes/ingress-nginx/pull/8315) Fix 50% split between canary and mainline tests
-- [8311](https://github.com/kubernetes/ingress-nginx/pull/8311) leaving it the git tag
-- [8307](https://github.com/kubernetes/ingress-nginx/pull/8307) Nginx v1.19.10
-- [8302](https://github.com/kubernetes/ingress-nginx/pull/8302) docs: fix changelog formatting for 1.1.2
-- [8300](https://github.com/kubernetes/ingress-nginx/pull/8300) Names cannot contain _ (underscore)! So I changed it to -.
-- [8288](https://github.com/kubernetes/ingress-nginx/pull/8288) [docs] Missing annotations
-- [8287](https://github.com/kubernetes/ingress-nginx/pull/8287) Add the shareProcessNamespace as a configurable setting in the helm chart
-- [8286](https://github.com/kubernetes/ingress-nginx/pull/8286) Fix OpenTelemetry sidecar image build
-- [8281](https://github.com/kubernetes/ingress-nginx/pull/8281) force prow job by changing something in images/ot dir
-- [8273](https://github.com/kubernetes/ingress-nginx/pull/8273) Issue#8241
-- [8267](https://github.com/kubernetes/ingress-nginx/pull/8267) Add fsGroup value to admission-webhooks/job-patch charts
-- [8262](https://github.com/kubernetes/ingress-nginx/pull/8262) Updated confusing error
-- [8258](https://github.com/kubernetes/ingress-nginx/pull/8258) remove 0.46.0 from supported versions table
-- [8256](https://github.com/kubernetes/ingress-nginx/pull/8256) fix: deny locations with invalid auth-url annotation
-- [8253](https://github.com/kubernetes/ingress-nginx/pull/8253) Add a certificate info metric
-
-### 1.1.2
-
-**Image:**
-- k8s.gcr.io/ingress-nginx/controller:v1.1.2@sha256:28b11ce69e57843de44e3db6413e98d09de0f6688e33d4bd384002a44f78405c
-
-This release bumps grpc version to 1.44.0 & runc to version 1.1.0. The release also re-introduces the ingress.class annotation, which was previously declared as deprecated. Besides that, several bug fixes and improvements are listed below.
-
-_Changes:_
-
-- [8291](https://github.com/kubernetes/ingress-nginx/pull/8291) remove git tag env from cloud build
-- [8286](https://github.com/kubernetes/ingress-nginx/pull/8286) Fix OpenTelemetry sidecar image build
-- [8277](https://github.com/kubernetes/ingress-nginx/pull/8277) Add OpenSSF Best practices badge
-- [8273](https://github.com/kubernetes/ingress-nginx/pull/8273) Issue#8241
-- [8267](https://github.com/kubernetes/ingress-nginx/pull/8267) Add fsGroup value to admission-webhooks/job-patch charts
-- [8262](https://github.com/kubernetes/ingress-nginx/pull/8262) Updated confusing error
-- [8256](https://github.com/kubernetes/ingress-nginx/pull/8256) fix: deny locations with invalid auth-url annotation
-- [8253](https://github.com/kubernetes/ingress-nginx/pull/8253) Add a certificate info metric
-- [8236](https://github.com/kubernetes/ingress-nginx/pull/8236) webhook: remove useless code.
-- [8227](https://github.com/kubernetes/ingress-nginx/pull/8227) Update libraries in webhook image
-- [8225](https://github.com/kubernetes/ingress-nginx/pull/8225) fix inconsistent-label-cardinality for prometheus metrics: nginx_ingress_controller_requests
-- [8221](https://github.com/kubernetes/ingress-nginx/pull/8221) Do not validate ingresses with unknown ingress class in admission webhook endpoint
-- [8210](https://github.com/kubernetes/ingress-nginx/pull/8210) Bump github.com/prometheus/client_golang from 1.11.0 to 1.12.1
-- [8209](https://github.com/kubernetes/ingress-nginx/pull/8209) Bump google.golang.org/grpc from 1.43.0 to 1.44.0
-- [8204](https://github.com/kubernetes/ingress-nginx/pull/8204) Add Artifact Hub lint
-- [8203](https://github.com/kubernetes/ingress-nginx/pull/8203) Fix Indentation of example and link to cert-manager tutorial
-- [8201](https://github.com/kubernetes/ingress-nginx/pull/8201) feat(metrics): add path and method labels to requests countera
-- [8199](https://github.com/kubernetes/ingress-nginx/pull/8199) use functional options to reduce number of methods creating an EchoDeployment
-- [8196](https://github.com/kubernetes/ingress-nginx/pull/8196) docs: fix inconsistent controller annotation
-- [8191](https://github.com/kubernetes/ingress-nginx/pull/8191) Using Go install for misspell
-- [8186](https://github.com/kubernetes/ingress-nginx/pull/8186) prometheus+grafana using servicemonitor
-- [8185](https://github.com/kubernetes/ingress-nginx/pull/8185) Append elements on match, instead of removing for cors-annotations
-- [8179](https://github.com/kubernetes/ingress-nginx/pull/8179) Bump github.com/opencontainers/runc from 1.0.3 to 1.1.0
-- [8173](https://github.com/kubernetes/ingress-nginx/pull/8173) Adding annotations to the controller service account
-- [8163](https://github.com/kubernetes/ingress-nginx/pull/8163) Update the $req_id placeholder description
-- [8162](https://github.com/kubernetes/ingress-nginx/pull/8162) Versioned static manifests
-- [8159](https://github.com/kubernetes/ingress-nginx/pull/8159) Adding some geoip variables and default values
-- [8155](https://github.com/kubernetes/ingress-nginx/pull/8155) #7271 feat: avoid-pdb-creation-when-default-backend-disabled-and-replicas-gt-1
-- [8151](https://github.com/kubernetes/ingress-nginx/pull/8151) Automatically generate helm docs
-- [8143](https://github.com/kubernetes/ingress-nginx/pull/8143) Allow to configure delay before controller exits
-- [8136](https://github.com/kubernetes/ingress-nginx/pull/8136) add ingressClass option to helm chart - back compatibility with ingress.class annotations
-
-
-### 1.1.1
-
-**Image:**
-- k8s.gcr.io/ingress-nginx/controller:v1.1.1@sha256:0bc88eb15f9e7f84e8e56c14fa5735aaa488b840983f87bd79b1054190e660de
-
-This release contains several fixes and improvements. This image is now built using Go v1.17.6 and gRPC v1.43.0. See detailed list below.
-
-_Changes:_
-
-- [8120](https://github.com/kubernetes/ingress-nginx/pull/8120) Update go in runner and release v1.1.1
-- [8119](https://github.com/kubernetes/ingress-nginx/pull/8119) Update to go v1.17.6
-- [8118](https://github.com/kubernetes/ingress-nginx/pull/8118) Remove deprecated libraries, update other libs
-- [8117](https://github.com/kubernetes/ingress-nginx/pull/8117) Fix codegen errors
-- [8115](https://github.com/kubernetes/ingress-nginx/pull/8115) chart/ghaction: set the correct permission to have access to push a release
-- [8098](https://github.com/kubernetes/ingress-nginx/pull/8098) generating SHA for CA only certs in backend_ssl.go + comparision of P…
-- [8088](https://github.com/kubernetes/ingress-nginx/pull/8088) Fix Edit this page link to use main branch
-- [8072](https://github.com/kubernetes/ingress-nginx/pull/8072) Expose GeoIP2 Continent code as variable
-- [8061](https://github.com/kubernetes/ingress-nginx/pull/8061) docs(charts): using helm-docs for chart
-- [8058](https://github.com/kubernetes/ingress-nginx/pull/8058) Bump github.com/spf13/cobra from 1.2.1 to 1.3.0
-- [8054](https://github.com/kubernetes/ingress-nginx/pull/8054) Bump google.golang.org/grpc from 1.41.0 to 1.43.0
-- [8051](https://github.com/kubernetes/ingress-nginx/pull/8051) align bug report with feature request regarding kind documentation
-- [8046](https://github.com/kubernetes/ingress-nginx/pull/8046) Report expired certificates (#8045)
-- [8044](https://github.com/kubernetes/ingress-nginx/pull/8044) remove G109 check till gosec resolves issues
-- [8042](https://github.com/kubernetes/ingress-nginx/pull/8042) docs_multiple_instances_one_cluster_ticket_7543
-- [8041](https://github.com/kubernetes/ingress-nginx/pull/8041) docs: fix typo'd executible name
-- [8035](https://github.com/kubernetes/ingress-nginx/pull/8035) Comment busy owners
-- [8029](https://github.com/kubernetes/ingress-nginx/pull/8029) Add stream-snippet as a ConfigMap and Annotation option
-- [8023](https://github.com/kubernetes/ingress-nginx/pull/8023) fix nginx compilation flags
-- [8021](https://github.com/kubernetes/ingress-nginx/pull/8021) Disable default modsecurity_rules_file if modsecurity-snippet is specified
-- [8019](https://github.com/kubernetes/ingress-nginx/pull/8019) Revise main documentation page
-- [8018](https://github.com/kubernetes/ingress-nginx/pull/8018) Preserve order of plugin invocation
-- [8015](https://github.com/kubernetes/ingress-nginx/pull/8015) Add newline indenting to admission webhook annotations
-- [8014](https://github.com/kubernetes/ingress-nginx/pull/8014) Add link to example error page manifest in docs
-- [8009](https://github.com/kubernetes/ingress-nginx/pull/8009) Fix spelling in documentation and top-level files
-- [8008](https://github.com/kubernetes/ingress-nginx/pull/8008) Add relabelings in controller-servicemonitor.yaml
-- [8003](https://github.com/kubernetes/ingress-nginx/pull/8003) Minor improvements (formatting, consistency) in install guide
-- [8001](https://github.com/kubernetes/ingress-nginx/pull/8001) fix: go-grpc Dockerfile
-- [7999](https://github.com/kubernetes/ingress-nginx/pull/7999) images: use k8s-staging-test-infra/gcb-docker-gcloud
-- [7996](https://github.com/kubernetes/ingress-nginx/pull/7996) doc: improvement
-- [7983](https://github.com/kubernetes/ingress-nginx/pull/7983) Fix a couple of misspellings in the annotations documentation.
-- [7979](https://github.com/kubernetes/ingress-nginx/pull/7979) allow set annotations for admission Jobs
-- [7977](https://github.com/kubernetes/ingress-nginx/pull/7977) Add ssl_reject_handshake to defaul server
-- [7975](https://github.com/kubernetes/ingress-nginx/pull/7975) add legacy version update v0.50.0 to main changelog
-- [7972](https://github.com/kubernetes/ingress-nginx/pull/7972) updated service upstream definition
-- [7963](https://github.com/kubernetes/ingress-nginx/pull/7963) Change sanitization message from error to warning
-
-### 1.1.0
-
-**Image:**
-- k8s.gcr.io/ingress-nginx/controller:v1.1.0@sha256:f766669fdcf3dc26347ed273a55e754b427eb4411ee075a53f30718b4499076a
-
-This release makes the annotation `annotation-value-word-blocklist` backwards compatible by being an empty list instead of prescribed defaults.
-Effectively reverting [7874](https://github.com/kubernetes/ingress-nginx/pull/7874) but keeping the functionality of `annotation-value-word-blocklist`
-
-See Issue [7939](https://github.com/kubernetes/ingress-nginx/pull/7939) for more discussion
-
-Admins should still consider putting a reasonable block list in place, more information on why can be found [here](https://github.com/kubernetes/ingress-nginx/issues/7837) and how in our documentation [here](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#annotation-value-word-blocklist)
-
-_Changes:_
-- [7963](https://github.com/kubernetes/ingress-nginx/pull/7963) Change sanitization message from error to warning (#7963)
-- [7942](https://github.com/kubernetes/ingress-nginx/pull/7942) update default block list,docs, tests (#7942)
-- [7948](https://github.com/kubernetes/ingress-nginx/pull/7948) applied allowPrivilegeEscalation=false (#7948)
-- [7941](https://github.com/kubernetes/ingress-nginx/pull/7941) update build for darwin arm64 (#7941)
-
-### 1.0.5
-
-**Image:**
-- k8s.gcr.io/ingress-nginx/controller:v1.0.5@sha256:55a1fcda5b7657c372515fe402c3e39ad93aa59f6e4378e82acd99912fe6028d
-
-_Possible Breaking Change_
-We now implement string sanitization in annotation values. This means that words like "location", "by_lua" and
-others will drop the reconciliation of an Ingress object.
-
-Users from mod_security and other features should be aware that some blocked values may be used by those features
-and must be manually unblocked by the Ingress Administrator.
-
-For more details please check [https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#annotation-value-word-blocklist]
-
-_Changes:_
-- [7874](https://github.com/kubernetes/ingress-nginx/pull/7874) Add option to sanitize annotation inputs
-- [7854](https://github.com/kubernetes/ingress-nginx/pull/7854) Add brotli-min-length configuration option
-- [7800](https://github.com/kubernetes/ingress-nginx/pull/7800) Fix thread synchronization issue
-- [7711](https://github.com/kubernetes/ingress-nginx/pull/7711) Added AdmissionController metrics
-- [7614](https://github.com/kubernetes/ingress-nginx/pull/7614) Support cors-allow-origin with multiple origins
-- [7472](https://github.com/kubernetes/ingress-nginx/pull/7472) Support watch multiple namespaces matched witch namespace selector
-
-### 1.0.4
-
-**Image:**
-- k8s.gcr.io/ingress-nginx/controller:v1.0.4@sha256:545cff00370f28363dad31e3b59a94ba377854d3a11f18988f5f9e56841ef9ef
-
-_Possible Breaking Change_
-We have disabled the builtin ssl_session_cache due to possible memory fragmentation. This should not impact the majority of users, but please let us know
-if you face any problem
-
-_Changes:_
-
-- [7777](https://github.com/kubernetes/ingress-nginx/pull/7777) Disable builtin ssl_session_cache
-- [7727](https://github.com/kubernetes/ingress-nginx/pull/7727) Print warning only instead of error if no IngressClass permission is available
-- Bump internal libraries versions
-- Fix diverse documentation
-
-### 1.0.3
-
-**Image:**
-- k8s.gcr.io/ingress-nginx/controller:v1.0.3@sha256:4ade87838eb8256b094fbb5272d7dda9b6c7fa8b759e6af5383c1300996a7452
-
-**Known Issues**
-* Ingress controller now (starting from v1.0.0) mandates cluster scoped access to IngressClass. This leads to problems when updating old Ingress controller to newest version, as described [here](https://github.com/kubernetes/ingress-nginx/issues/7510). We plan to fix it in v1.0.4, see [this](https://github.com/kubernetes/ingress-nginx/pull/7578).
-
-_New Features:_
-
-_Changes:_
-
-- [X] [#7727](https://github.com/kubernetes/ingress-nginx/pull/7727) Fix selector for shutting down Pods status
-- [X] [#7719](https://github.com/kubernetes/ingress-nginx/pull/7719) Fix overlap check when ingress is configured as canary
-- Diverse docs fixes and libraries bumping
-
-### 1.0.2
-
-**Image:**
-- k8s.gcr.io/ingress-nginx/controller:v1.0.2@sha256:85b53b493d6d658d8c013449223b0ffd739c76d76dc9bf9000786669ec04e049
-
-**Known Issues**
-* Ingress controller now (starting from v1.0.0) mandates cluster scoped access to IngressClass. This leads to problems when updating old Ingress controller to newest version, as described [here](https://github.com/kubernetes/ingress-nginx/issues/7510). We plan to fix it in v1.0.3, see [this](https://github.com/kubernetes/ingress-nginx/pull/7578).
-
-_New Features:_
-
-_Changes:_
-
-- [X] [#7706](https://github.com/kubernetes/ingress-nginx/pull/7706) Add build info on prometheus metrics
-- [X] [#7702](https://github.com/kubernetes/ingress-nginx/pull/7702) Upgrade lua-resty-balancer to v0.04
-- [X] [#7696](https://github.com/kubernetes/ingress-nginx/pull/7696) Add canary backend name for requests metrics
-
-### 1.0.1
-
-**Image:**
-- k8s.gcr.io/ingress-nginx/controller:v1.0.1@sha256:26bbd57f32bac3b30f90373005ef669aae324a4de4c19588a13ddba399c6664e
-
-**Known Issues**
-* Ingress controller now (starting from v1.0.0) mandates cluster scoped access to IngressClass. This leads to problems when updating old Ingress controller to newest version, as described [here](https://github.com/kubernetes/ingress-nginx/issues/7510). We plan to fix it in v1.0.2, see [this](https://github.com/kubernetes/ingress-nginx/pull/7578).
-
-_New Features:_
-
-_Changes:_
-
-- [X] [#7670](https://github.com/kubernetes/ingress-nginx/pull/7670) Change enable-snippet to allow-snippet-annotation (#7670)
-- [X] [#7672](https://github.com/kubernetes/ingress-nginx/pull/7672) add option for documentiony only to pr template (#7672)
-- [X] [#7668](https://github.com/kubernetes/ingress-nginx/pull/7668) added example multiple controller install to faq (#7668)
-- [X] [#7665](https://github.com/kubernetes/ingress-nginx/pull/7665) Add option to force enabling snippet directives (#7665)
-- [X] [#7659](https://github.com/kubernetes/ingress-nginx/pull/7659) Replace kube-lego docs with cert-manager (#7659)
-- [X] [#7656](https://github.com/kubernetes/ingress-nginx/pull/7656) Changelog.md: Update references to sigs.k8s.io/promo-tools (#7656)
-- [X] [#7603](https://github.com/kubernetes/ingress-nginx/pull/7603) additional info for the custom-headers documentation page (#7603)
-- [X] [#7630](https://github.com/kubernetes/ingress-nginx/pull/7630) images/kube-webhook-certgen/rootfs: improvements (#7630)
-- [X] [#7636](https://github.com/kubernetes/ingress-nginx/pull/7636) Add github action for building images (#7636)
-- [X] [#7648](https://github.com/kubernetes/ingress-nginx/pull/7648) Update e2e-test-runner image (#7648)
-- [X] [#7643](https://github.com/kubernetes/ingress-nginx/pull/7643) Update NGINX base image to v1.19 (#7643)
-- [X] [#7642](https://github.com/kubernetes/ingress-nginx/pull/7642) Add security contacts (#7642)
-- [X] [#7640](https://github.com/kubernetes/ingress-nginx/pull/7640) fix typos. (#7640)
-- [X] [#7639](https://github.com/kubernetes/ingress-nginx/pull/7536) Downgrade nginx to v1.19 (#7639)
-- [X] [#7575](https://github.com/kubernetes/ingress-nginx/pull/7575) Add e2e tests for secure cookie annotations (#7575) (#7619)
-- [X] [#7625](https://github.com/kubernetes/ingress-nginx/pull/7625) Only build nginx-errors for linux/amd64 (#7625)
-- [X] [#7609](https://github.com/kubernetes/ingress-nginx/pull/7609) Add new flag to watch ingressclass by name instead of spec (#7609)
-- [X] [#7604](https://github.com/kubernetes/ingress-nginx/pull/7604) Change the cloudbuild timeout (#7604)
-- [X] [#7460](https://github.com/kubernetes/ingress-nginx/pull/7460) Fix old tag of custom error pages used in example (#7460)
-- [X] [#7577](https://github.com/kubernetes/ingress-nginx/pull/7577) Added command to get Nginx versionq! (#7577)
-- [X] [#7611](https://github.com/kubernetes/ingress-nginx/pull/7611) Helm notes outputs non nil value for ingress.class annotation (#7611)
-- [X] [#7469](https://github.com/kubernetes/ingress-nginx/pull/7469) Allow the usage of Services as Upstream on a global level (#7469)
-- [X] [#7393](https://github.com/kubernetes/ingress-nginx/pull/7393) getEndpoints uses service target port directly if it's a number and mismatch with port name in endpoint (#7393)
-- [X] [#7514](https://github.com/kubernetes/ingress-nginx/pull/7514) nginx flag: --disable-full-test flag to allow testing configfile of the current single ingress (#7514)
-- [X] [#7374](https://github.com/kubernetes/ingress-nginx/pull/7374) Trigger syncIngress on Service addition/deletion #7346 (#7374)
-- [X] [#7464](https://github.com/kubernetes/ingress-nginx/pull/7464) Sync Hostname and IP address from service to ingress status (#7464)
-- [X] [#7560](https://github.com/kubernetes/ingress-nginx/pull/7560) put modsecurity e2e tests into their own packages (#7560)
-- [X] [#7202](https://github.com/kubernetes/ingress-nginx/pull/7202) Additional AuthTLS assertions and doc change to demonstrate auth-tls-secret enables the other AuthTLS annotations (#7202)
-- [X] [#7606](https://github.com/kubernetes/ingress-nginx/pull/7606) fix cli flag typo in faq (#7606)
-- [X] [#7601](https://github.com/kubernetes/ingress-nginx/pull/7601) fix charts README.md to give additional detail on prometheus metrics … (#7601)
-- [X] [#7596](https://github.com/kubernetes/ingress-nginx/pull/7596) Update e2e test runner image (#7596)
-- [X] [#7604](https://github.com/kubernetes/ingress-nginx/pull/7604) Update cloudbuild timeout (#7604)
-- [X] [#7440](https://github.com/kubernetes/ingress-nginx/pull/7440) remove timestamp when requeuing Element (#7440)
-- [X] [#7598](https://github.com/kubernetes/ingress-nginx/pull/7598) correct docs on ingressClass resource being disabled (#7598)
-- [X] [#7597](https://github.com/kubernetes/ingress-nginx/pull/7597) Update to the base nginx image (#7597)
-- [X] [#7540](https://github.com/kubernetes/ingress-nginx/pull/7540) improve faq for migration to ingress api v1 (#7540)
-- [X] [#7594](https://github.com/kubernetes/ingress-nginx/pull/7594) Remove addgroup directive from alpine building (#7594)
-- [X] [#7592](https://github.com/kubernetes/ingress-nginx/pull/7592) Change builder in a new attempt to make it run (#7592)
-- [X] [#7584](https://github.com/kubernetes/ingress-nginx/pull/7584) Changing gcb builder (#7584)
-- [X] [#7583](https://github.com/kubernetes/ingress-nginx/pull/7583) update alpine and remove buildx restriction (#7583)
-- [X] [#7561](https://github.com/kubernetes/ingress-nginx/pull/7561) Add doc ref for preserve-trailing-slash annotation (#7561)
-- [X] [#7581](https://github.com/kubernetes/ingress-nginx/pull/7581) Default KinD manifest to watch ingresses without class (#7581)
-- [X] [#7511](https://github.com/kubernetes/ingress-nginx/pull/7511) add same tcp and udp ports to internal load balancer (#7511)
-- [X] [#7399](https://github.com/kubernetes/ingress-nginx/pull/7399) feat: add session-cookie-secure annotation (#7399)
-- [X] [#7556](https://github.com/kubernetes/ingress-nginx/pull/7556) Fix YAML indentation issue (#7556)
-- [X] [#7558](https://github.com/kubernetes/ingress-nginx/pull/7558) Revert "Update base nginx" (#7558)
-- [X] [#7552](https://github.com/kubernetes/ingress-nginx/pull/7552) Update base nginx (#7552)
-- [X] [#7541](https://github.com/kubernetes/ingress-nginx/pull/7541) Add a flag to specify address to bind the healthz server (#7541)
-- [X] [#7503](https://github.com/kubernetes/ingress-nginx/pull/7503) Document the keep-alive 0 effect on http/2 requests (#7503)
-- [X] [#7264](https://github.com/kubernetes/ingress-nginx/pull/7264) Update docs for new ingress api in cluster version >=1.19 (#7264)
-- [X] [#7545](https://github.com/kubernetes/ingress-nginx/pull/7545) Improving e2e tests for non-service backends #7544 (#7545)
-- [X] [#7537](https://github.com/kubernetes/ingress-nginx/pull/7537) improve docs for release - added step to edit README for support matrix (#7537)
-- [X] [#7536](https://github.com/kubernetes/ingress-nginx/pull/7536) add known issues in changelog.md for release v1.0.0 (#7536)
-
-### 1.0.0
-**This is a breaking change**
-
-This release only supports Kubernetes versions >= v1.19. The support for Ingress Object in `networking.k8s.io/v1beta` is being dropped and manifests should now use `networking.k8s.io/v1`.
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v1.0.0@sha256:0851b34f69f69352bf168e6ccf30e1e20714a264ab1ecd1933e4d8c0fc3215c6`
-
-**Known Issues**
-Ingress Controller only supports cluster scoped IngressClass and needs cluster wide permission for this object, otherwise it is not going to start.
-We plan to fix this in v1.0.1 and issues #7510 and #7502 are tracking this.
-
-Changes:
-- [X] [#7529](https://github.com/kubernetes/ingress-nginx/pull/7529) End-to-end tests for canary affinity
-- [X] [#7489](https://github.com/kubernetes/ingress-nginx/pull/7489) docs: Clarify default-backend behavior
-- [X] [#7524](https://github.com/kubernetes/ingress-nginx/pull/7524) docs for migration to apiVersion networking.k8s.io/v1
-- [X] [#7443](https://github.com/kubernetes/ingress-nginx/pull/7443) fix ingress-nginx panic when the certificate format is wrong.
-- [X] [#7521](https://github.com/kubernetes/ingress-nginx/pull/7521) Update ingress to go 1.17
-- [X] [#7493](https://github.com/kubernetes/ingress-nginx/pull/7493) Add appProtocol field to all ServicePorts
-- [X] [#7525](https://github.com/kubernetes/ingress-nginx/pull/7525) improve RELEASE.md
-- [X] [#7203](https://github.com/kubernetes/ingress-nginx/pull/7203) Make HPA behavior configurable
-- [X] [#7487](https://github.com/kubernetes/ingress-nginx/pull/7487)[Cherry - Pick] - Fix default backend annotation and tests
-- [X] [#7459](https://github.com/kubernetes/ingress-nginx/pull/7459) Add controller.watchIngressWithoutClass config option
-- [X] [#7478](https://github.com/kubernetes/ingress-nginx/pull/7478) Release new helm chart with certgen fixed
-- [X] [#7341](https://github.com/kubernetes/ingress-nginx/pull/7341) Fix IngressClass logic for newer releases (#7341)
-- [X] [#7355](https://github.com/kubernetes/ingress-nginx/pull/7355) Downgrade Lua modules for s390x (#7355)
-- [X] [#7319](https://github.com/kubernetes/ingress-nginx/pull/7319) Lower webhook timeout for digital ocean (#7319)
-- [X] [#7161](https://github.com/kubernetes/ingress-nginx/pull/7161) fix: allow scope/tcp/udp configmap namespace to altered (#7161)
-- [X] [#7331](https://github.com/kubernetes/ingress-nginx/pull/7331) Fix forwarding of auth-response-headers to gRPC backends (#7331)
-- [X] [#7332](https://github.com/kubernetes/ingress-nginx/pull/7332) controller: ignore non-service backends (#7332)
-- [X] [#7314](https://github.com/kubernetes/ingress-nginx/pull/7314) Add configuration to disable external name service feature
-- [X] [#7313](https://github.com/kubernetes/ingress-nginx/pull/7313) Add file containing stable release
-- [X] [#7311](https://github.com/kubernetes/ingress-nginx/pull/7311) Handle named (non-numeric) ports correctly
-- [X] [#7308](https://github.com/kubernetes/ingress-nginx/pull/7308) Updated v1beta1 to v1 as its deprecated
-- [X] [#7298](https://github.com/kubernetes/ingress-nginx/pull/7298) Speed up admission hook by eliminating deep copy of Ingresses in CheckIngress
-- [X] [#7242](https://github.com/kubernetes/ingress-nginx/pull/7242) Retry to download maxmind DB if it fails
-- [X] [#7228](https://github.com/kubernetes/ingress-nginx/pull/7228) Discover mounted geoip db files
-- [X] [#7208](https://github.com/kubernetes/ingress-nginx/pull/7208) ingress/tcp: add additional error logging on failed
-- [X] [#7190](https://github.com/kubernetes/ingress-nginx/pull/7190) chart: using Helm builtin capabilities check
-- [X] [#7146](https://github.com/kubernetes/ingress-nginx/pull/7146) Use ENV expansion for namespace in args
-- [X] [#7107](https://github.com/kubernetes/ingress-nginx/pull/7107) Fix MaxWorkerOpenFiles calculation on high cores nodes
-- [X] [#7076](https://github.com/kubernetes/ingress-nginx/pull/7076) Rewrite clean-nginx-conf.sh in Go to speed up admission webhook
-- [X] [#7031](https://github.com/kubernetes/ingress-nginx/pull/7031) Remove mercurial from build
-- [X] [#6990](https://github.com/kubernetes/ingress-nginx/pull/6990) Use listen to ensure the port is free
-- [X] [#6944](https://github.com/kubernetes/ingress-nginx/pull/6944) Update proper default value for HTTP2MaxConcurrentStreams in Docs
-- [X] [#6940](https://github.com/kubernetes/ingress-nginx/pull/6940) Fix definition order of modsecurity directives
-- [X] [#7156] Drops support for Ingress Object v1beta1
-
-### 0.50.0
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v0.50.0@sha256:f46fc2d161c97a9d950635acb86fb3f8d4adcfb03ee241ea89c6cde16aa3fdf8`
-
-This release makes the annotation `annotation-value-word-blocklist` backwards compatible by being an empty list instead of prescribed defaults.
-Effectively reverting [7874](https://github.com/kubernetes/ingress-nginx/pull/7874) but keeping the functionality of `annotation-value-word-blocklist`
-
-See Issue [7939](https://github.com/kubernetes/ingress-nginx/pull/7939) for more discussion
-
-Admins should still consider putting a reasonable block list in place, more information on why can be found [here](https://github.com/kubernetes/ingress-nginx/issues/7837) and how in our documentation [here](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#annotation-value-word-blocklist)
-
-_Changes:_
-- [7963](https://github.com/kubernetes/ingress-nginx/pull/7963) Change sanitization message from error to warning (#7963)
-- [7942](https://github.com/kubernetes/ingress-nginx/pull/7942) update default block list,docs, tests (#7942)
-
-### 0.49.3
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v0.49.3@sha256:35fe394c82164efa8f47f3ed0be981b3f23da77175bbb8268a9ae438851c8324`
-
-_Changes:_
-
-- [X] [#7731](https://github.com/kubernetes/ingress-nginx/pull/7727) Fix selector for shutting down Pods status
-- [X] [#7741](https://github.com/kubernetes/ingress-nginx/pull/7719) Fix overlap check when ingress is configured as canary
-
-### 0.49.2
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v0.49.2@sha256:84e351228337bb7b09f0e90e6b6f5e2f8f4cf7d618c1ddc1e966f23902d273db`
-
-_Changes:_
-
-- [x] [#7702](https://github.com/kubernetes/ingress-nginx/pull/#7702) upgrade lua-resty-balancer to v0.04
-
-### 0.49.1
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v0.49.1@sha256:4080849490fd4f61416ad7bdba6fdd0ee58164f2e13df1128b407ce82d5f3986`
-
-_New Features:_
-
-
-_Changes:_
-
-- [x] [#7670](https://github.com/kubernetes/ingress-nginx/pull/7670) Change enable-snippet to allow-snippet-annotation (#7670) (#7677)
-- [x] [#7676](https://github.com/kubernetes/ingress-nginx/pull/7676) Fix opentracing in v0.X (#7676)
-- [x] [#7643](https://github.com/kubernetes/ingress-nginx/pull/7643) Update NGINX base image to v1.19 (#7643)
-- [x] [#7665](https://github.com/kubernetes/ingress-nginx/pull/7665) Add option to force enabling snippet directives (7665)
-- [x] [#7521](https://github.com/kubernetes/ingress-nginx/pull/7521) Update ingress to go 1.17 (#7521)
-
-### 0.49.0
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v0.49.0@sha256:e9707504ad0d4c119036b6d41ace4a33596139d3feb9ccb6617813ce48c3eeef`
-
-_New Features:_
-
-
-_Changes:_
-
-- [x] [#7486](https://github.com/kubernetes/ingress-nginx/pull/7486) Fix default backend annotation test
-- [x] [#7481](https://github.com/kubernetes/ingress-nginx/pull/7481) Add linux node selector as default
-- [x] [#6750](https://github.com/kubernetes/ingress-nginx/pull/6750) allow kb granularity for lua shared dicts
-- [x] [#7463](https://github.com/kubernetes/ingress-nginx/pull/7463) Improved disableaccesslog tests
-- [x] [#7485](https://github.com/kubernetes/ingress-nginx/pull/7485) update e2e test images to newest promoted one
-- [x] [#7479](https://github.com/kubernetes/ingress-nginx/pull/7479) Make custom-default-backend upstream name more unique
-- [x] [#7477](https://github.com/kubernetes/ingress-nginx/pull/7477) Trigger webhook image generation
-- [x] [#7475](https://github.com/kubernetes/ingress-nginx/pull/7475) Migrate the webhook-certgen program to inside ingress repo
-- [x] [#7331](https://github.com/kubernetes/ingress-nginx/pull/7331) Fix forwarding of auth-response-headers to gRPC backends
-- [x] [#7228](https://github.com/kubernetes/ingress-nginx/pull/7228) fix: discover mounted geoip db files
-- [x] [#7242](https://github.com/kubernetes/ingress-nginx/pull/7242) Retry to download maxmind DB if it fails
-- [x] [#7473](https://github.com/kubernetes/ingress-nginx/pull/7473) update to newest image
-- [x] [#7386](https://github.com/kubernetes/ingress-nginx/pull/7386) Add hostname value to override pod's hostname
-- [x] [#7467](https://github.com/kubernetes/ingress-nginx/pull/7467) use listen to ensure the port is free
-- [x] [#7411](https://github.com/kubernetes/ingress-nginx/pull/7411) Update versions of components for base image, including `nginx-http-auth-digest`, `ngx_http_substitutions_filter_module`, `nginx-opentracing`, `opentracing-cpp`, `ModSecurity-nginx`, `yaml-cpp`, `msgpack-c`, `lua-nginx-module`, `stream-lua-nginx-module`, `lua-upstream-nginx-module`, `luajit2`, `dd-opentracing-cpp`, `ngx_http_geoip2_module`, `nginx_ajp_module`, `lua-resty-string`, `lua-resty-balancer`, `lua-resty-core`, `lua-cjson`, `lua-resty-cookie`, `lua-resty-lrucache`, `lua-resty-dns`, `lua-resty-http`, `lua-resty-memcached`, `lua-resty-ipmatcher`.
-- [x] [#7462](https://github.com/kubernetes/ingress-nginx/pull/7462) Update configmap.md
-- [x] [#7369](https://github.com/kubernetes/ingress-nginx/pull/7369) Change all master reference to main
-- [x] [#7245](https://github.com/kubernetes/ingress-nginx/pull/7245) Allow overriding of the default response format
-- [x] [#7449](https://github.com/kubernetes/ingress-nginx/pull/7449) Fix cap for NET_BIND_SERVICE
-- [x] [#7450](https://github.com/kubernetes/ingress-nginx/pull/7450) correct ingress-controller naming
-- [x] [#7437](https://github.com/kubernetes/ingress-nginx/pull/7437) added K8s v1.22 tip for kind cluster,bug-report
-- [x] [#7455](https://github.com/kubernetes/ingress-nginx/pull/7455) Add documentation for monitoring without helm
-- [x] [#7454](https://github.com/kubernetes/ingress-nginx/pull/7454) Update go version to v1.16, modules and remove ioutil
-- [x] [#7452](https://github.com/kubernetes/ingress-nginx/pull/7452) run k8s job ci pipeline with 1.21.2 in main branch
-- [x] [#7451](https://github.com/kubernetes/ingress-nginx/pull/7451) Prepare for go v1.16
-- [x] [#7434](https://github.com/kubernetes/ingress-nginx/pull/7434) Helm - Enable configuring request and limit for containers in webhook jobs
-- [x] [#6864](https://github.com/kubernetes/ingress-nginx/pull/6864) Add scope configuration check
-- [x] [#7421](https://github.com/kubernetes/ingress-nginx/pull/7421) Bump PDB API version to v1
-- [x] [#7431](https://github.com/kubernetes/ingress-nginx/pull/7431) Add http request test to annotaion ssl cipher test
-- [x] [#7426](https://github.com/kubernetes/ingress-nginx/pull/7426) Removed tabs and one extra-space
-- [x] [#7423](https://github.com/kubernetes/ingress-nginx/pull/7423) Fixed chart version
-- [x] [#7424](https://github.com/kubernetes/ingress-nginx/pull/7424) Add dev-v1 branch into helm releaser
-- [x] [#7415](https://github.com/kubernetes/ingress-nginx/pull/7415) added checks to verify backend works with the given configs
-- [x] [#7371](https://github.com/kubernetes/ingress-nginx/pull/7371) Enable session affinity for canaries
-- [x] [#6985](https://github.com/kubernetes/ingress-nginx/pull/6985) auto backend protocol for HTTP/HTTPS
-- [x] [#7394](https://github.com/kubernetes/ingress-nginx/pull/7394) reorder contributing infos
-- [x] [#7224](https://github.com/kubernetes/ingress-nginx/pull/7224) docs:update troubleshooting.md
-- [x] [#7353](https://github.com/kubernetes/ingress-nginx/pull/7353) aws-load-balancer-internal is a boolean value
-- [x] [#7387](https://github.com/kubernetes/ingress-nginx/pull/7387) Automatically add area labels to help triaging
-- [x] [#7360](https://github.com/kubernetes/ingress-nginx/pull/7360) grpc - replaced fortune-builder app with official greeter app
-- [x] [#7361](https://github.com/kubernetes/ingress-nginx/pull/7361) doc: fix monitoring usage docs
-- [x] [#7365](https://github.com/kubernetes/ingress-nginx/pull/7365) update OWNERS and aliases files
-- [x] [#7039](https://github.com/kubernetes/ingress-nginx/pull/7039) Add missing tests for store/endpoint
-- [x] [#7364](https://github.com/kubernetes/ingress-nginx/pull/7364) Add cpanato as Helm chart approver
-- [x] [#7362](https://github.com/kubernetes/ingress-nginx/pull/7362) changed syntax from v1beta1 to v1
-
-### 0.48.1
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v0.48.1@sha256:e9fb216ace49dfa4a5983b183067e97496e7a8b307d2093f4278cd550c303899`
-
-_New Features:_
-
-
-_Changes:_
-
-- [X] [#7298](https://github.com/kubernetes/ingress-nginx/pull/ ) Speed up admission hook by eliminating deep
- copy of Ingresses in CheckIngress
-- [X] [#6940](https://github.com/kubernetes/ingress-nginx/pull/6940) Fix definition order of modsecurity
- directives for controller
-- [X] [#7314](https://github.com/kubernetes/ingress-nginx/pull/7314) Add configuration to disable external name service feature #7314
-- [X] [#7076](https://github.com/kubernetes/ingress-nginx/pull/7076) Rewrite clean-nginx-conf.sh in Go to speed up
- admission webhook
-- [X] [#7255](https://github.com/kubernetes/ingress-nginx/pull/7255) Fix nilpointer in admission and remove failing
- test #7255
-- [X] [#7216](https://github.com/kubernetes/ingress-nginx/pull/7216) Admission: Skip validation checks if an ingress
- is marked as deleted #7216
-
-### 1.0.0-beta.3
-** This is a breaking change**
-
-This release only supports Kubernetes versions >= v1.19. The support for Ingress Object in `networking.k8s.io/v1beta` is being dropped and manifests should now use `networking.k8s.io/v1`.
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v1.0.0-beta.3@sha256:44a7a06b71187a4529b0a9edee5cc22bdf71b414470eff696c3869ea8d90a695`
-
-Changes:
-
-- [X] [#7487](https://github.com/kubernetes/ingress-nginx/pull/7487)[Cherry - Pick] - Fix default backend annotation and tests
-- [X] [#7459](https://github.com/kubernetes/ingress-nginx/pull/7459) Add controller.watchIngressWithoutClass config option
-- [X] [#7478](https://github.com/kubernetes/ingress-nginx/pull/7478) Release new helm chart with certgen fixed
-
-### 1.0.0-beta.1
-**THIS IS A BREAKING CHANGE**
-
-This release only supports Kubernetes versions >= v1.19. The support for Ingress Object in `networking.k8s.io/v1beta` is being dropped and manifests should now use `networking.k8s.io/v1`.
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v1.0.0-beta.1@sha256:f058f3fdc940095957695829745956c6acddcaef839907360965e27fd3348e2e`
-
-_ New Features:_
-
-_Changes:_
-
-- [X] [#7341](https://github.com/kubernetes/ingress-nginx/pull/7341) Fix IngressClass logic for newer releases (#7341)
-- [X] [#7355](https://github.com/kubernetes/ingress-nginx/pull/7355) Downgrade Lua modules for s390x (#7355)
-- [X] [#7319](https://github.com/kubernetes/ingress-nginx/pull/7319) Lower webhook timeout for digital ocean (#7319)
-- [X] [#7161](https://github.com/kubernetes/ingress-nginx/pull/7161) fix: allow scope/tcp/udp configmap namespace to altered (#7161)
-- [X] [#7331](https://github.com/kubernetes/ingress-nginx/pull/7331) Fix forwarding of auth-response-headers to gRPC backends (#7331)
-- [X] [#7332](https://github.com/kubernetes/ingress-nginx/pull/7332) controller: ignore non-service backends (#7332)
-
-### 1.0.0-alpha.2
-**THIS IS A BREAKING CHANGE**
-
-This release only supports Kubernetes versions >= v1.19. The support for Ingress Object in `networking.k8s.io/v1beta` is being dropped and manifests should now use `networking.k8s.io/v1`.
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v1.0.0-alpha.2@sha256:04a0ad3a1279c2a58898e789eed767eafa138ee1e5b9b23a988c6e8485cf958d`
-
-_ New Features:_
-
-- [X] [#7314](https://github.com/kubernetes/ingress-nginx/pull/7314) Add configuration to disable external name service feature
-- [X] [#7313](https://github.com/kubernetes/ingress-nginx/pull/7313) Add file containing stable release
-- [X] [#7311](https://github.com/kubernetes/ingress-nginx/pull/7311) Handle named (non-numeric) ports correctly
-- [X] [#7308](https://github.com/kubernetes/ingress-nginx/pull/7308) Updated v1beta1 to v1 as its deprecated
-- [X] [#7298](https://github.com/kubernetes/ingress-nginx/pull/7298) Speed up admission hook by eliminating deep copy of Ingresses in CheckIngress
-- [X] [#7242](https://github.com/kubernetes/ingress-nginx/pull/7242) Retry to download maxmind DB if it fails
-- [X] [#7228](https://github.com/kubernetes/ingress-nginx/pull/7228) Discover mounted geoip db files
-- [X] [#7208](https://github.com/kubernetes/ingress-nginx/pull/7208) ingress/tcp: add additional error logging on failed
-- [X] [#7190](https://github.com/kubernetes/ingress-nginx/pull/7190) chart: using Helm builtin capabilities check
-- [X] [#7146](https://github.com/kubernetes/ingress-nginx/pull/7146) Use ENV expansion for namespace in args
-- [X] [#7107](https://github.com/kubernetes/ingress-nginx/pull/7107) Fix MaxWorkerOpenFiles calculation on high cores nodes
-- [X] [#7076](https://github.com/kubernetes/ingress-nginx/pull/7076) Rewrite clean-nginx-conf.sh in Go to speed up admission webhook
-- [X] [#7031](https://github.com/kubernetes/ingress-nginx/pull/7031) Remove mercurial from build
-- [X] [#6990](https://github.com/kubernetes/ingress-nginx/pull/6990) Use listen to ensure the port is free
-- [X] [#6944](https://github.com/kubernetes/ingress-nginx/pull/6944) Update proper default value for HTTP2MaxConcurrentStreams in Docs
-- [X] [#6940](https://github.com/kubernetes/ingress-nginx/pull/6940) Fix definition order of modsecurity directives
-
-### 1.0.0-alpha.1
-**THIS IS A BREAKING CHANGE**
-
-This release only supports Kubernetes versions >= v1.19. The support for Ingress Object in `networking.k8s.io/v1beta` is being dropped and manifests should now use `networking.k8s.io/v1`.
-
-**Image:**
-
-- `k8s.gcr.io/ingress-nginx/controller:v1.0.0-alpha.1@sha256:32f3f02a038c0d7cf33b71a14028c3a4ddee6f4c3fe5fadfa14b915e5e0d9faf`
-
-_ New Features:_
-
-- [X] [#7156] Drops support for Ingress Object v1beta1
-
### 0.47.0
**Image:**
@@ -972,15 +12,15 @@ _New Features:_
_Changes:_
-- [X] [#7179](https://github.com/kubernetes/ingress-nginx/pull/7179) Upgrade Nginx to 1.20.1
-- [X] [#7101](https://github.com/kubernetes/ingress-nginx/pull/7101) Removed Codecov
-- [X] [#6993](https://github.com/kubernetes/ingress-nginx/pull/6993) Fix cookieAffinity log printing error
-- [X] [#7046](https://github.com/kubernetes/ingress-nginx/pull/7046) Allow configuring controller container name
-- [X] [#6994](https://github.com/kubernetes/ingress-nginx/pull/6994) Fixed oauth2 callback url
-- [X] [#6740](https://github.com/kubernetes/ingress-nginx/pull/6740) non-host canary ingress use default server name as host to merge
-- [X] [#7126](https://github.com/kubernetes/ingress-nginx/pull/7126) set x-forwarded-scheme to be the same as x-forwarded-proto
-- [X] [#6734](https://github.com/kubernetes/ingress-nginx/pull/6734) Update controller-poddisruptionbudget.yaml
-- [X] [#7117](https://github.com/kubernetes/ingress-nginx/pull/7117) Adding annotations for HPA
+- [X] [#7179] Upgrade Nginx to 1.20.1
+- [X] [#7101] Removed Codecov
+- [X] [#6993] Fix cookieAffinity log printing error
+- [X] [#7046] Allow configuring controller container name
+- [X] [#6994] Fixed oauth2 callback url
+- [X] [#6740] non-host canary ingress use default server name as host to merge
+- [X] [#7126] set x-forwarded-scheme to be the same as x-forwarded-proto
+- [X] [#6734] Update controller-poddisruptionbudget.yaml
+- [X] [#7117] Adding annotations for HPA
### 0.46.0
@@ -1421,7 +461,7 @@ _Documentation:_
_New Features:_
- NGINX 1.19.2
-- New configmap option `enable-real-ip` to enable [realip_module](https://nginx.org/en/docs/http/ngx_http_realip_module.html)
+- New configmap option `enable-real-ip` to enable [realip_module](http://nginx.org/en/docs/http/ngx_http_realip_module.html)
- Use k8s.gcr.io vanity domain
- Go 1.15
- client-go v0.18.6
@@ -1515,7 +555,7 @@ _New Features:_
- Configure User-Agent for [client-go](https://github.com/kubernetes/ingress-nginx/pull/5700)
- Switch to [gcr.io](https://cloud.google.com/container-registry/) as container registry
- Use cloud-build to build [container images](https://console.cloud.google.com/gcr/images/k8s-artifacts-prod/US/ingress-nginx)
-- Publish images using [artifact promotion tooling](https://sigs.k8s.io/promo-tools)
+- Publish images using [Container Image Promoter](https://github.com/kubernetes-sigs/k8s-container-image-promoter)
- Go 1.14.4
- client-go v0.18.5
@@ -1743,7 +783,7 @@ _New Features:_
- NGINX 1.17.10
- OpenSSL 1.1.1g - [CVE-2020-1967](https://cve.mitre.org/cgi-bin/cvename.cgi?name=2020-1967)
- OCSP stapling
-- Helm chart [stable/nginx-ingress](https://github.com/helm/charts/tree/master/stable/nginx-ingress) is now maintained in the [ingress-nginx](https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx) repository
+- Helm chart [stable/nginx-ingress](https://github.com/helm/charts/tree/master/stable/nginx-ingress) is now maintained in the [ingress-nginx](https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx) repository
- Support for custom Maxmind GeoLite2 Databases [flag --maxmind-edition-ids](https://kubernetes.github.io/ingress-nginx/user-guide/cli-arguments/)
- New [PathType](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types) and [IngressClass](https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class) fields. Requires Kubernetes v1.18 or higher
- Enable configuration of lua plugins using the configuration configmap
@@ -2057,7 +1097,7 @@ _Breaking Changes:_
```
Due to upcoming data privacy regulations, we are making significant changes to how you access free GeoLite2 databases starting December 30, 2019.
- Learn more on our blog https://blog.maxmind.com/2019/12/significant-changes-to-accessing-and-using-geolite2-databases/
+ Learn more on our blog https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/
```
Because of this change, it is not clear we can provide the databases directly from the docker image.
@@ -2193,7 +1233,7 @@ _New Features:_
If the active connections end before that, the pod will terminate gracefully at that time.
- To effectively take advantage of this feature, the Configmap feature [worker-shutdown-timeout](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#worker-shutdown-timeout) new value is `240s` instead of `10s`.
+ To efectively take advantage of this feature, the Configmap feature [worker-shutdown-timeout](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#worker-shutdown-timeout) new value is `240s` instead of `10s`.
**IMPORTANT:** this value has a side effect during reloads, consuming more memory until the old NGINX workers are replaced.
@@ -2595,7 +1635,7 @@ _Documentation:_
_New Features:_
- NGINX 1.15.9
-- New `canary-by-header-value` [annotation](https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md#canary).
+- New `canary-by-header-value` [annotation](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md#canary).
- New debug binary to get runtime information from lua [3686](https://github.com/kubernetes/ingress-nginx/pull/3686)
- Support for Opentracing with Datadog
- New [kubectl plugin](https://github.com/kubernetes/ingress-nginx/pull/3779) **Alpha**
@@ -2603,7 +1643,7 @@ _New Features:_
_Breaking changes:_
- The NGINX server listening in port 18080 was removed. It was replaced by a server using an unix socket as port [#3684](https://github.com/kubernetes/ingress-nginx/pull/3684)
- This server was internal to the ingress controller. In case this was being acceded from the outside, you can restore the old server using the `http-snippet` feature in the configuration configmap like:
+ This server was internal to the ingress controller. In case this was being acceded from the outside, you can restore the old server using the `http-snipet` feature in the configuration configmap like:
```yaml
http-snippet: |
@@ -2964,7 +2004,7 @@ _Documentation:_
_New Features:_
- NGINX 1.15.5
-- Support for *regular expressions* in paths https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/ingress-path-matching.md
+- Support for *regular expressions* in paths https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/ingress-path-matching.md
- Provide possibility to block IPs, User-Agents and Referers globally
- Remove --default-backend-service requirement. Use the flag only for custom default backends
- Valgrind and Openresty gdb tools
@@ -3165,7 +2205,7 @@ _Documentation:_
_New Features:_
-- [Grafana dashboards](https://github.com/kubernetes/ingress-nginx/tree/main/deploy/grafana/dashboards)
+- [Grafana dashboards](https://github.com/kubernetes/ingress-nginx/tree/master/deploy/grafana/dashboards)
_Changes:_
@@ -3487,7 +2527,7 @@ _New Features:_
- The annotation `nginx.ingress.kubernetes.io/grpc-backend: "true"` enable this feature
- If the gRPC service requires TLS `nginx.ingress.kubernetes.io/secure-backends: "true"`
- Configurable load balancing with EWMA
-- Support for [lua-resty-waf](https://github.com/p0pr0ck5/lua-resty-waf) as alternative to ModSecurity. [Check configuration guide](https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/annotations.md#lua-resty-waf)
+- Support for [lua-resty-waf](https://github.com/p0pr0ck5/lua-resty-waf) as alternative to ModSecurity. [Check configuration guide](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/annotations.md#lua-resty-waf)
- Support for session affinity when dynamic configuration is enabled.
- Add NoAuthLocations and default it to "/.well-known/acme-challenge"
@@ -4524,7 +3564,7 @@ _New Features:_
- Custom log formats using `log-format-upstream` directive in the configuration configmap.
- Force redirect to SSL using the annotation `ingress.kubernetes.io/force-ssl-redirect`
- Prometheus metric for VTS status module (transparent, just enable vts stats)
-- Improved external authentication adding `ingress.kubernetes.io/auth-signin` annotation. Please check this [example](https://github.com/kubernetes/ingress/tree/main/examples/external-auth/nginx)
+- Improved external authentication adding `ingress.kubernetes.io/auth-signin` annotation. Please check this [example](https://github.com/kubernetes/ingress/tree/master/examples/external-auth/nginx)
_Breaking changes:_
@@ -4588,9 +3628,9 @@ _Changes:_
_New Features:_
-- New configuration flag `proxy-set-headers` to allow set custom headers before send traffic to backends. [Example here](https://github.com/kubernetes/ingress/tree/main/examples/customization/custom-headers/nginx)
+- New configuration flag `proxy-set-headers` to allow set custom headers before send traffic to backends. [Example here](https://github.com/kubernetes/ingress/tree/master/examples/customization/custom-headers/nginx)
- Disable directive access_log globally using `disable-access-log: "true"` in the configuration ConfigMap.
-- Sticky session per Ingress rule using the annotation `ingress.kubernetes.io/affinity`. [Example here](https://github.com/kubernetes/ingress/tree/main/examples/affinity/cookie/nginx)
+- Sticky session per Ingress rule using the annotation `ingress.kubernetes.io/affinity`. [Example here](https://github.com/kubernetes/ingress/tree/master/examples/affinity/cookie/nginx)
_Changes:_
diff --git a/GOLANG_VERSION b/GOLANG_VERSION
deleted file mode 100644
index d8c40e539..000000000
--- a/GOLANG_VERSION
+++ /dev/null
@@ -1 +0,0 @@
-1.23.6
diff --git a/ISSUE_TRIAGE.md b/ISSUE_TRIAGE.md
deleted file mode 100644
index e6d2c1d8e..000000000
--- a/ISSUE_TRIAGE.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# Triage Process
-
-As any kind of contributor (triage, reviewer ...), always have in mind that if a user came to us and raised an issue, the user may have a real problem. We must assume that, and not the opposite (the user needs to prove to us that this is a bug). Keeping that in mind, **be nice with users, even if you don’t agree with them**
-
-Note that this guide refers to contributing through issue triaging. If you are interested in contributing to actual sources of the repository, see [this guide](./CONTRIBUTING.md).
-
-## General Information
-
-The triage process of the ingress-nginx maintainers is based on the [triage process guidelines](https://github.com/kubernetes/community/blob/master/contributors/guide/issue-triage.md) of the Kubernetes community
-
-However the exact process of the ingress-nginx maintainers may differ in certain aspects. This doc gives a more precise overview on how the ingress-nginx maintainers approach the issue triage process and other processes that are related.
-
-## Triage Flow (Issues)
-
-This section describes the different stages of the triage flow for issues.
-
-### Prepare Issues
-New issues come in with the labels `needs-triage` and `needs-priority` and one of: `kind/bug`, `kind/feature` or `kind/support`. Unfortunately there are also some legacy issues that only have a `kind/*` label but neither `needs-triage` nor `needs-priority` . However for every issue that does not have the `triage-accepted` label the following steps have to be done to prepare them for further processing:
-
-* Filter for issues [without the `triage-accepted`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+-label%3Atriage%2Faccepted+is%3Aissue) label.
-* Check if all necessary information are available. This is basically true, if people filled out the issue template correctly. If necessary information is missing, ask the author to add the missing information and add the label `triage/needs-information` if not already present. If already present, send the author a friendly reminder to add those.
-* Check if the used versions of ingress-nginx and Kubernetes is supported. Note that [we only support n-3 versions](https://github.com/kubernetes/ingress-nginx#support-versions-table). If the version is not supported, ask the author to upgrade to newer versions and see if the error still persists.
-* Read through the issue description and comments briefly to understand what the issue is about. Also check if the kind and area is correct, and adjust it if necessary. If the issue is understandable add the label `triage-accepted`.
-* If at any point you don't know how to proceed with an issue during the triage process, tag one of the [core maintainers](OWNERS_ALIASES) in the issue to raise attention or alternatively come to [this slack channel](https://kubernetes.slack.com/archives/C021E147ZA4) which may be the quicker way as people tend to miss github notifications.
-
-Note: Issues that are stale for 90 days are being closed automatically. However we could be missing a bug here, so from time to time it makes sense to go over the closed ones and see if there is something important. Use [this filter](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aclosed+is%3Aissue+label%3Alifecycle%2Frotten+) to find those.
-
-Who and When?
-* Basically everyone who wants to contribute can do the mentioned steps at any time.
-
-### Issue Prioritization
-For all issues, where all necessary information is available thus triage is accepted, we need to do some prioritization:
-
-* Go through all issues with label [`triage-accepted`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+is%3Aissue+label%3Atriage%2Faccepted+).
-* Add appropriate priority label: `priority/backlog`, `priority/critical-urgent`, `priority/awaiting-more-evidence`, `priority/important-longterm`, `priority/important-soon` or `good first issue`
-
-Who and When?
-* Basically every contributor should be able to do that.
-* Tricky/important ones could be brought up during community meetings
-
-## Triage Flow (Pull Requests)
-
-This section describes the different stages of the triage flow for pull requests.
-
-### Prepare Pull Requests
-Pull requests come in with the labels `needs-triage`, `needs-priority` and `needs-kind` and one that indicates the size(`size/*`). Unfortunately there are also some legacy pull requests that only have a `size/*` label but neither `needs-triage` nor `needs-priority` . However for every pull request that does not have the `triage-accepted` label the following steps should be done to prepare them for further processing:
-
-* Filter for pull requests [without the `triage-accepted`](https://github.com/kubernetes/ingress-nginx/pulls?q=is%3Aopen+-label%3Atriage%2Faccepted+is%3Apr) label.
-* Check if the cla is signed and all necessary information are available. This is basically true, if people filled out the pull request template correctly. If everything is fine add the `triage-accepted` label.
-* If at any point you don't know how to proceed with an issue during the triage process, tag one of the [core maintainers](OWNERS_ALIASES) in the issue to raise attention or alternatively come to [this slack channel](https://kubernetes.slack.com/archives/C021E147ZA4) which may be the quicker way as people tend to miss github notifications.
-
-Who and When?
-* Basically everyone who wants to contribute can do the mentioned steps at any time.
-
-### Pull Request Prioritization
-For all pull requests, where all necessary information is available and cla is signed thus triage is accepted, we need to do some prioritization:
-
-* Go through all pull requests with label [`triage-accepted`](https://github.com/kubernetes/ingress-nginx/pulls?q=is%3Aopen+is%3Apr+label%3Atriage%2Faccepted).
-* Sync the `kind/*` and `priority/*` label from the linked issue for the pull request. If the pull request does not have any issue associated (which normally should not be the case), add an appropriate priority and kind label (one of: `priority/backlog`, `priority/critical-urgent`, `priority/important-longterm`, `priority/important-soon`)
-
-Who and When?
-* Basically every contributor should be able to do that.
-* Tricky/important ones could be brought up during community meetings
-
-## Labels
-Labels are helpful for issues or pull requests to indicate in which lifecycle state they are currently and to categorize them. This section describes the most important ones with the additional info about how to add those. A complete label list of the Kubernetes community can be found [here](https://github.com/kubernetes/kubernetes/labels) while a complete label list for this project can be found [here](https://github.com/kubernetes/ingress-nginx/labels). However, here the most important ones:
-
-* Triage:
- * [`needs-triage`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+is%3Aissue+label%3Aneeds-triage): Indicates that the issue or pull request needs triage. Automatically added.
- * [`triage/accepted`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Atriage%2Faccepted+is%3Aissue+): Indicates that the issue is ready for further processing. Add with `/triage accepted`.
- * [`triage/needs-information`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Atriage%2Fneeds-information+is%3Aissue+): Indicates that the issue lacks information. Add with `/triage needs-information`.
-* Kind:
- * [`kind/bug`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Akind%2Fbug+is%3Aissue): Indicates that the issue is assumed to be a bug. Add with `/kind bug`. Remove with `/remove-kind bug`.
- * [`kind/feature`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Akind%2Ffeature+is%3Aissue+): Indicates that the issue is a feature request. Add with `/kind feature`. Remove with `/remove-kind feature`.
- * [`kind/documentation`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Akind%2Fdocumentation+is%3Aissue+): Indicates that the issue is documentation related. Add with `/kind documentation`. Remove with `/remove-kind documentation`.
- * [`kind/support`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Akind%2Fsupport+is%3Aissue+): Indicates the the issue is a support request. Add with `/kind support`. Remove with `/remove-kind support`.
-* Area:
- * [`area/helm`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Aarea%2Fhelm+is%3Aissue+): Indicates that the issue is related to helm charts. Add with `/area helm`.
- * [`area/lua`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Aarea%2Flua+is%3Aissue+): Indicates that the issue is related to lua. Add with `/area lua`.
- * [`area/docs`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Aarea%2Fdocs+is%3Aissue): Indicates that the issue is related to documentation. Add with `/area docs` .
-* Priority:
- * [`needs-priority`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+is%3Aissue+label%3Aneeds-priority): Indicates that the issue has no prioritization yet. Automatically added.
- * [`priority/critical-urgent`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Apriority%2Fcritical-urgent+is%3Aissue+): indicates that the issue has highest priority. Add with `/priority critical-urgent`.
- * [`priority/important-soon`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Apriority%2Fimportant-soon+is%3Aissue+): indicates that the issue should be worked on either currently soon, ideally in time for the next release. Add with `/priority important-soon`.
- * [`priority/important-longterm`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Apriority%2Fimportant-longterm+is%3Aissue+): indicates that the issue is not important for now, but should be worked on in one of the upcoming releases. Add with `/priority important-longterm`.
- * [`priority/backlog`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+label%3Apriority%2Fbacklog+is%3Aissue+): Indicates that the issue has the lowest priority. Add with `/priority backlog`.
-* Other:
- * [`help wanted`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22): indicates that the issue needs help from a contributor. Add with `/help`.
- * [`good first issue`](https://github.com/kubernetes/ingress-nginx/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22): indicates that the issue needs help from a contributor and is a good first issue for new contributors. Add with `/good-first-issue`.
\ No newline at end of file
diff --git a/MANUAL_RELEASE.md b/MANUAL_RELEASE.md
deleted file mode 100644
index 0ae7a4e37..000000000
--- a/MANUAL_RELEASE.md
+++ /dev/null
@@ -1,300 +0,0 @@
-# RELEASE PROCESS
-
-## 1. BUILD the new Ingress-Nginx-Controller image
-
-### a. Make changes in codebase
-
-- Make changes as per issue
-
-### b. Make changes to appropriate files in [images directory ](images)
-
-- Make changes in /images
-
-### c. Create Pull Request
-
-- Open a Pull Request for your changes considering the following steps to fire cloudbuild of a new image for the Ingress-Nginx-Controller:
-
- - In case of rare CVE fix or other reason to rebuild the nginx-base-image itself, look at the /images directory [NGINX Base Image](https://github.com/kubernetes/ingress-nginx/tree/main/images/nginx).
-
- - Example [NGINX_VERSION](images/nginx/rootfs/build.sh#L21), [SHA256](images/nginx/rootfs/build.sh#L124).
-
- - If you are updating any component in [build.sh](images/nginx/rootfs/build.sh) please also update the SHA256 checksum of that component as well, the cloud build will fail with an exit 10 if not.
-
-### d. Merge
-
-- Merging will fire cloudbuild, which will result in images being promoted to the [staging container registry](https://console.cloud.google.com/gcr/images/k8s-staging-ingress-nginx).
-
-### e. Make sure cloudbuild is a success
-
-- Wait for [cloud build](https://console.cloud.google.com/cloud-build/builds?project=k8s-staging-ingress-nginx). If you don't have access to cloudbuild, you can also have a look at [this](https://prow.k8s.io/?repo=kubernetes%2Fingress-nginx&job=post-*), to see the progress of the build.
-
-- Proceed only after cloud-build is successful in building a new Ingress-Nginx-Controller image.
-
-
-## 2. If applicable, BUILD other images
-
-- If applicable, then build a new image of any other related component, ONLY IF APPLICABLE TO THE RELEASE
-
-### a. If applicable then make changes in relevant codebase
-
-- Change code as per issue
-
-### b. Make changes to appropriate files in [images directory ](images)
-
-- Sometimes, you may also be needing to rebuild, images for one or multiple other related components of the Ingress-Nginx-Controller ecosystem. Make changes to the required files in the /images directory, if/as applicable, in the context of the release you are attempting. :
-
- - [e2e](https://github.com/kubernetes/ingress-nginx/tree/main/test/e2e-image)
-
- - Update references to e2e-test-runner image [If applicable] :
-
- - [e2e-image](https://github.com/kubernetes/ingress-nginx/blob/main/test/e2e-image/Dockerfile#L1)
- - [run-in-docker.sh](https://github.com/kubernetes/ingress-nginx/blob/main/build/run-in-docker.sh#L37)
-
- - [test-runner](https://github.com/kubernetes/ingress-nginx/tree/main/images/test-runner)
-
- - [echo](https://github.com/kubernetes/ingress-nginx/tree/main/images/echo)
-
- - [cfssl](https://github.com/kubernetes/ingress-nginx/tree/main/images/cfssl)
-
- - [fastcgi-helloserver](https://github.com/kubernetes/ingress-nginx/tree/main/images/fastcgi-helloserver)
-
- - [httpbin](https://github.com/kubernetes/ingress-nginx/tree/main/images/httpbin)
-
- - [kube-webhook-certgen](https://github.com/kubernetes/ingress-nginx/tree/main/images/kube-webhook-certgen)
-
-### c. Create PR
-
-- Open pull request(s) accordingly, to fire cloudbuild for rebuilding the component's image (if applicable).
-
-### d. Merge
-
-- Merging will fire cloudbuild, which will result in images being promoted to the [staging container registry](https://console.cloud.google.com/gcr/images/k8s-staging-ingress-nginx).
-
-### e. Make sure cloudbuild is a success
-
-- Wait for [cloud build](https://console.cloud.google.com/cloud-build/builds?project=k8s-staging-ingress-nginx). If you don't have access to cloudbuild, you can also have a look at [this](https://prow.k8s.io/?repo=kubernetes%2Fingress-nginx&job=post-*), to see the progress of the build.
-
-- Proceed only after cloud-build is successful in building a new Ingress-Nginx-Controller image.
-
-
-## 3. PROMOTE the Image(s):
-
-Promoting the images basically means that images, that were pushed to staging container registry in the steps above, now are also pushed to the public container registry. Thus are publicly available. Follow these steps to promote images:
-
-### a. Get the sha
-
-- Get the sha of the new image(s) of the controller, (and any other component image IF APPLICABLE to release), from the cloudbuild, from steps above
-
- - The sha is available in output from [cloud build](https://console.cloud.google.com/cloud-build/builds?project=k8s-staging-ingress-nginx)
-
- - The sha is also visible here https://console.cloud.google.com/gcr/images/k8s-staging-ingress-nginx/global/controller
-
- - The sha is also visible [here](https://prow.k8s.io/?repo=kubernetes%2Fingress-nginx&job=post-*), after cloud build is finished. Click on the respective job, go to `Artifacts` section in the UI, then again `artifacts` in the directory browser. In the `build.log` at the very bottom you see something like this:
-
- ```
- ...
- pushing manifest for us-central1-docker.pkg.dev/k8s-staging-images/ingress-nginx/controller:v1.0.2@sha256:e15fac6e8474d77e1f017edc33d804ce72a184e3c0a30963b2a0d7f0b89f6b16
- ...
- ```
-
-### b. Add the new image to [k8s.io](http://github.com/kubernetes/k8s.io)
-
-- The sha(s) from the step before (and the tag(s) for the new image(s) have to be added, as a new line, in a file, of the [k8s.io](http://github.com/kubernetes/k8s.io) project of Kubernetes organization.
-
-- Fork that other project (if you don't have a fork already).
-
-- Other project to fork [GitHub repo kubernetes/k8s.io](http://github.com/kubernetes/k8s.io)
-
-- Fetch --all and rebase to upstream if already forked.
-
-- Create a branch in your fork, named as the issue number for this release
-
-- In the related branch, of your fork, edit the file /registry.k8s.io/images/k8s-staging-ingress-nginx/images.yaml.
-
-- For making, it easier, you can edit your branch directly in the browser. But be careful about making any mistake.
-
-- Insert the sha(s) & the tag(s), in a new line, in this file [Project kubernetes/k8s.io Ingress-Nginx-Controller Images](https://github.com/kubernetes/k8s.io/blob/main/registry.k8s.io/images/k8s-staging-ingress-nginx/images.yaml) Look at this [example PR and the diff](https://github.com/kubernetes/k8s.io/pull/2536) to see how it was done before
-
-- Save and commit
-
-### c. Create PR
-
-- Open pull request to promote the new controller image.
-
-### d. Merge
-
-- Merge success is required for next step
-
-- Proceed only after cloud-build is successful in building a new Ingress-Nginx-Controller image.
-
-
-## 4. PREPARE for a new Release
-
-- Make sure to get the tag and sha of the promoted image from the step before, either from cloudbuild or from [here](https://console.cloud.google.com/gcr/images/k8s-artifacts-prod/us/ingress-nginx/controller).
-
-- This involves editing of several files. So carefully follow the steps below and double check all changes with diff/grep etc., repeatedly. Mistakes here impact endusers.
-
-### a. Make sure your git workspace is ready
-
-- Get your git workspace ready
-
- - If not using a pre-existing fork, then Fork the repo kubernetes/ingress-nginx
-
- - Clone (to laptop or wherever)
-
- - Add upstream
-
- - Set upstream url to no_push
-
- - Checkout & switch to branch, named as per related new-release-issue-number
-
- - If already forked, and upstream already added, then `git fetch --all` and `git rebase upstream/main` (not origin)
-
- - Checkout a branch in your fork's clone
-
- - Perform any other diligence as needed
-
-- Prefer to edit only and only in your branch, in your Fork
-
-### b. Edit the semver tag
- - [TAG](https://github.com/kubernetes/ingress-nginx/blob/main/TAG#L1)
-
-### c. Edit the helm Chart
- - Change the below-mentioned [Fields in Chart.yaml](https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/Chart.yaml)
- - version
- - appVersion
- - kubeVersion (**ONLY if applicable**)
- - annotations
- - artifacthub.io/prerelease: "true"
- - artifacthub.io/changes: |
- - Replace this line and other lines under this annotation with the Changelog. One process to generate the Changelog is described below
- - Install and configure GitHub cli as per the docs of gh-cli https://cli.github.com/,
- - Change dir to your clone, of your fork, of the ingress-nginx project
- - Run the below command and save the output to a txt file
-
- ```
- gh pr list -R kubernetes/ingress-nginx -s merged -L 38 -B main | cut -f1,2 | tee ~/Downloads/prlist.txt
- ```
- - The -L 38 was used for 2 reasons.
- - Default number of results is 30 and there were more than 30 PRs merged while releasing v1.1.1. If you see the current/soon-to-be-old changelog, you can look at the most recent PR number that has been accounted for already, and start from after that last accounted for PR.
- - The other reason to use -L 38 was to omit the 39th, the 40th and the 41st line in the resulting list. These were non-relevant PRs.
- - If you save the output of above command to a file called prlist.txt. It looks somewhat like this ;
-
- ```
- % cat ~/Downloads/prlist.txt
- 8129 fix syntax in docs for multi-tls example
- 8120 Update go in runner and release v1.1.1
- 8119 Update to go v1.17.6
- 8118 Remove deprecated libraries, update other libs
- 8117 Fix codegen errors
- 8115 chart/ghaction: set the correct permission to have access to push a release
- ....
- ```
- You can delete the lines, that refer to PRs of the release process itself. We only need to list the feature/bugfix PRs. You can also delete the lines that are housekeeping or not really worth mentioning in the changelog.
- - you use some easy automation in bash/python/other, to get the PR-List that can be used in the changelog. For example, it's possible to use a bash scripty way, seen below, to convert those plaintext PR numbers into clickable links.
-
- ```
- #!/usr/bin/bash
-
- file="$1"
-
- while read -r line; do
- pr_num=`echo "$line" | cut -f1`
- pr_title=`echo "$line" | cut -f2`
- echo "[$pr_num](https://github.com/kubernetes/ingress-nginx/pull/$pr_num) $pr_title"
- done <$file
-
- ```
- - There was a parsing issue and path issue on MacOS, so above script had to be modified and MacOS monterey compatible script is below ;
-
- ```
- #!/bin/bash
-
- file="$1"
-
- while read -r line; do
- pr_num=`echo "$line" | cut -f1`
- pr_title=`echo "$line" | cut -f2`
- echo \""[$pr_num](https://github.com/kubernetes/ingress-nginx/pull/$pr_num) $pr_title"\"
- done <$file
-
- ```
- - If you saved the bash script content above, in a file like `$HOME/bin/prlist_to_changelog.sh`, then you could execute a command like this to get your prlist in a text file called changelog_content.txt;`
-
- ```
- prlist_to_changelog.sh ~/Downloads/prlist.txt | tee ~/Downloads//changelog_content.txt
- ```
-
-### d. Edit the values.yaml and run helm-docs
-
- - [Fields to edit in values.yaml](https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/values.yaml)
-
- - tag
- - digest
-
- - [helm-docs](https://github.com/norwoodj/helm-docs) is a tool that generates the README.md for a Helm chart automatically. In the CI pipeline workflow of GitHub actions (.github/workflows/ci.yaml), you can see how helm-docs is used. The CI pipeline is not designed to make commits back into the project, so we need to run helm-docs manually and commit the resulting generated README.md. You can obtain a recent version of the helm-docs binary here: https://github.com/norwoodj/helm-docs/releases.
- ```
- helm-docs --chart-search-root charts
- git diff charts/ingress-nginx/README.md
- ```
- Take care of not leaving the helm-docs executable in your clone workspace or not committing the new README.md.
-
-### e. Edit the static manifests
-
- - Prepare to use a script to update the edit the static manifests and set the "image", "digest", "version" etc. fields to the desired value.
-
- - This script depends on kustomize and helm. The versions are pinned in `hack/.tool-versions` and you can use [asdf](https://github.com/asdf-vm/asdf#asdf) to install them
-
- - Execute the script to update static manifests using that script [hack/generate-deploy-scripts.sh](https://github.com/kubernetes/ingress-nginx/blob/main/hack/generate-deploy-scripts.sh)
- - Open some of the manifests and check if the script worked properly
-
- - Use `grep -ir image: | less` on the deploy directory, to view for any misses by the script on image digest value or other undesired changes. The script should properly set the image and the digest fields to the desired tag and semver
-
-
-### f. Edit the changelog
-
- [Changelog.md](https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md)
-- Each time a release is made, a new section is added to the Changelog.md file
-- A new section in the Changelog.md file consists of 3 components listed below
- - the "Image"
- - the "Description"
- - the "PRs list"
-- Look at the previous content to understand what the 3 components look like.
-- You can easily get the "Image" from a yaml manifest but be sure to look at a manifest in your git clone now and not the upstream on github. This is because, if you are following this documentation, then you generated manifests with new updated digest for the image, in step 4e above. You also most likely promoted the new image in a step above. Look at the previous release section in Changelog.md. The format looks like `registry.k8s.io/ingress-nginx/controller:.......`. One example of a yaml file to look at is /deploy/static/provider/baremetal/deploy.yaml (in your git clone branch and not on the upstream).
-- Next, you need to have a good overview of the changes introduced in this release and based on that you write a description. Look at previous descriptions. Ask the ingress-nginx-dev channel if required.
-- And then you need to add a list of the PRs merged, since the previous release.
-- One process to generate this list of PRs is already described above in step 4c. So if you are following this document, then you have done this already and very likely have retained the file containing the list of PRs, in the format that is needed.
-
-### g. Edit the Documentation:
-
-- Update the version in [docs/deploy/index.md](docs/deploy/index.md)
-- Update Supported versions in the Support Versions table in the README.md
-- Execute the script to update e2e docs [hack/generate-e2e-suite-doc.sh](https://github.com/kubernetes/ingress-nginx/blob/main/hack/generate-e2e-suite-doc.sh)
-
-### h. Update README.md
-
-- Update the table in README.md in the root of the project to reflect the support matrix. Add the new release version and details in there.
-
-## 5. RELEASE new version
-
-### a. Create PR
-
-- Open PR for releasing the new version of the Ingress-Nginx-Controller ;
- - Look at this PR for how it was done before [example PR](https://github.com/kubernetes/ingress-nginx/pull/7490)
- - Create a PR
-
-### b. Merge
-
-- Merge should produce manifests as well as chart
-- Check
- - `helm repo update`
- - `helm search repo ingress-nginx`
-
-## 6. GitHub release
-
-- Release to github
-
-- Edit the ghpages file as needed
-
-## TODO
-- Automate & simplify as much as possible, whenever possible, however possible
diff --git a/Makefile b/Makefile
index 0b8f1f5c2..8a449ede8 100644
--- a/Makefile
+++ b/Makefile
@@ -29,14 +29,9 @@ SHELL=/bin/bash -o pipefail -o errexit
# Use the 0.0 tag for testing, it shouldn't clobber any release builds
TAG ?= $(shell cat TAG)
-# The env below is called GO_VERSION and not GOLANG_VERSION because
-# the gcb image we use to build already defines GOLANG_VERSION and is a
-# really old version
-GO_VERSION ?= $(shell cat GOLANG_VERSION)
-
# e2e settings
# Allow limiting the scope of the e2e tests. By default run everything
-FOCUS ?=
+FOCUS ?= .*
# number of parallel test
E2E_NODES ?= 7
# run e2e test suite with tests that check for memory leaks? (default is false)
@@ -54,13 +49,9 @@ ifeq ($(ARCH),)
$(error mandatory variable ARCH is empty, either set it when calling the command or make sure 'go env GOARCH' works)
endif
-ifneq ($(PLATFORM),)
- PLATFORM_FLAG="--platform"
-endif
+REGISTRY ?= gcr.io/k8s-staging-ingress-nginx
-REGISTRY ?= us-central1-docker.pkg.dev/k8s-staging-images/ingress-nginx
-
-BASE_IMAGE ?= $(shell cat NGINX_BASE)
+BASE_IMAGE ?= k8s.gcr.io/ingress-nginx/nginx:v20210530-g6aab4c291@sha256:a7356029dd0c26cc3466bf7a27daec0f4df73aa14ca6c8b871a767022a812c0b
GOARCH=$(ARCH)
@@ -70,8 +61,7 @@ help: ## Display this help
.PHONY: image
image: clean-image ## Build image for a particular arch.
echo "Building docker image ($(ARCH))..."
- docker build \
- ${PLATFORM_FLAG} ${PLATFORM} \
+ @docker build \
--no-cache \
--build-arg BASE_IMAGE="$(BASE_IMAGE)" \
--build-arg VERSION="$(TAG)" \
@@ -80,110 +70,71 @@ image: clean-image ## Build image for a particular arch.
--build-arg BUILD_ID="$(BUILD_ID)" \
-t $(REGISTRY)/controller:$(TAG) rootfs
-.PHONY: gosec
-gosec:
- docker run --rm -it -w /source/ -v "$(pwd)"/:/source securego/gosec:2.11.0 -exclude=G109,G601,G104,G204,G304,G306,G307 -tests=false -exclude-dir=test -exclude-dir=images/ -exclude-dir=docs/ /source/...
-
-.PHONY: image-chroot
-image-chroot: clean-chroot-image ## Build image for a particular arch.
- echo "Building docker image ($(ARCH))..."
- docker build \
- --no-cache \
- --build-arg BASE_IMAGE="$(BASE_IMAGE)" \
- --build-arg VERSION="$(TAG)" \
- --build-arg TARGETARCH="$(ARCH)" \
- --build-arg COMMIT_SHA="$(COMMIT_SHA)" \
- --build-arg BUILD_ID="$(BUILD_ID)" \
- -t $(REGISTRY)/controller-chroot:$(TAG) rootfs -f rootfs/Dockerfile-chroot
-
.PHONY: clean-image
clean-image: ## Removes local image
echo "removing old image $(REGISTRY)/controller:$(TAG)"
@docker rmi -f $(REGISTRY)/controller:$(TAG) || true
-
-.PHONY: clean-chroot-image
-clean-chroot-image: ## Removes local image
- echo "removing old image $(REGISTRY)/controller-chroot:$(TAG)"
- @docker rmi -f $(REGISTRY)/controller-chroot:$(TAG) || true
-
-
.PHONY: build
build: ## Build ingress controller, debug tool and pre-stop hook.
- E2E_IMAGE=golang:$(GO_VERSION)-alpine3.21 USE_SHELL=/bin/sh build/run-in-docker.sh \
- MAC_OS=$(MAC_OS) \
+ @build/run-in-docker.sh \
PKG=$(PKG) \
ARCH=$(ARCH) \
COMMIT_SHA=$(COMMIT_SHA) \
REPO_INFO=$(REPO_INFO) \
TAG=$(TAG) \
+ GOBUILD_FLAGS=$(GOBUILD_FLAGS) \
build/build.sh
+.PHONY: build-plugin
+build-plugin: ## Build ingress-nginx krew plugin.
+ @build/run-in-docker.sh \
+ PKG=$(PKG) \
+ ARCH=$(ARCH) \
+ COMMIT_SHA=$(COMMIT_SHA) \
+ REPO_INFO=$(REPO_INFO) \
+ TAG=$(TAG) \
+ GOBUILD_FLAGS=$(GOBUILD_FLAGS) \
+ build/build-plugin.sh
.PHONY: clean
clean: ## Remove .gocache directory.
rm -rf bin/ .gocache/ .cache/
-.PHONY: verify-docs
-verify-docs: ## Verify doc generation
- hack/verify-annotation-docs.sh
-
.PHONY: static-check
static-check: ## Run verification script for boilerplate, codegen, gofmt, golint, lualint and chart-lint.
@build/run-in-docker.sh \
- MAC_OS=$(MAC_OS) \
hack/verify-all.sh
-.PHONY: golint-check
-golint-check:
- @build/run-in-docker.sh \
- MAC_OS=$(MAC_OS) \
- hack/verify-golint.sh
-
-###############################
-# Tests for ingress-nginx
-###############################
-
.PHONY: test
test: ## Run go unit tests.
@build/run-in-docker.sh \
PKG=$(PKG) \
- MAC_OS=$(MAC_OS) \
ARCH=$(ARCH) \
COMMIT_SHA=$(COMMIT_SHA) \
REPO_INFO=$(REPO_INFO) \
TAG=$(TAG) \
- GOFLAGS="-buildvcs=false" \
- test/test.sh
+ GOBUILD_FLAGS=$(GOBUILD_FLAGS) \
+ build/test.sh
.PHONY: lua-test
lua-test: ## Run lua unit tests.
@build/run-in-docker.sh \
- MAC_OS=$(MAC_OS) \
- test/test-lua.sh
+ BUSTED_ARGS=$(BUSTED_ARGS) \
+ build/test-lua.sh
.PHONY: e2e-test
e2e-test: ## Run e2e tests (expects access to a working Kubernetes cluster).
- @test/e2e/run-e2e-suite.sh
-
-.PHONY: kind-e2e-test
-kind-e2e-test: ## Run e2e tests using kind.
- @test/e2e/run-kind-e2e.sh
-
-.PHONY: kind-e2e-chart-tests
-kind-e2e-chart-tests: ## Run helm chart e2e tests
- @test/e2e/run-chart-test.sh
+ @build/run-e2e-suite.sh
.PHONY: e2e-test-binary
e2e-test-binary: ## Build binary for e2e tests.
@build/run-in-docker.sh \
- MAC_OS=$(MAC_OS) \
ginkgo build ./test/e2e
.PHONY: print-e2e-suite
print-e2e-suite: e2e-test-binary ## Prints information about the suite of e2e tests.
@build/run-in-docker.sh \
- MAC_OS=$(MAC_OS) \
hack/print-e2e-suite.sh
.PHONY: vet
@@ -192,11 +143,10 @@ vet:
.PHONY: check_dead_links
check_dead_links: ## Check if the documentation contains dead links.
- @docker run ${PLATFORM_FLAG} ${PLATFORM} -t \
- -w /tmp \
- -v $$PWD:/tmp dkhamsing/awesome_bot:1.20.0 \
+ @docker run -t \
+ -v $$PWD:/tmp aledbf/awesome_bot:0.1 \
--allow-dupe \
- --allow-redirect $(shell find $$PWD -mindepth 1 -name vendor -prune -o -name .modcache -prune -o -iname Changelog.md -prune -o -name "*.md" | sed -e "s#$$PWD/##")
+ --allow-redirect $(shell find $$PWD -mindepth 1 -name "*.md" -printf '%P\n' | grep -v vendor | grep -v Changelog.md)
.PHONY: dev-env
dev-env: ## Starts a local Kubernetes cluster using kind, building and deploying the ingress controller.
@@ -206,28 +156,31 @@ dev-env: ## Starts a local Kubernetes cluster using kind, building and deployin
dev-env-stop: ## Deletes local Kubernetes cluster created by kind.
@kind delete cluster --name ingress-nginx-dev
-
-
.PHONY: live-docs
live-docs: ## Build and launch a local copy of the documentation website in http://localhost:8000
- @docker build ${PLATFORM_FLAG} ${PLATFORM} \
- --no-cache \
- -t ingress-nginx-docs .github/actions/mkdocs
- @docker run ${PLATFORM_FLAG} ${PLATFORM} --rm -it \
+ @docker build -t ingress-nginx-docs .github/actions/mkdocs
+ @docker run --rm -it \
-p 8000:8000 \
-v ${PWD}:/docs \
- --entrypoint /bin/bash \
- ingress-nginx-docs \
- -c "pip install -r /docs/docs/requirements.txt && mkdocs serve --dev-addr=0.0.0.0:8000"
+ --entrypoint mkdocs \
+ ingress-nginx-docs serve --dev-addr=0.0.0.0:8000
.PHONY: misspell
misspell: ## Check for spelling errors.
- @go install github.com/client9/misspell/cmd/misspell@latest
+ @go get github.com/client9/misspell/cmd/misspell
misspell \
-locale US \
-error \
cmd/* internal/* deploy/* docs/* design/* test/* README.md
+.PHONY: kind-e2e-test
+kind-e2e-test: ## Run e2e tests using kind.
+ @test/e2e/run.sh
+
+.PHONY: kind-e2e-chart-tests
+kind-e2e-chart-tests: ## Run helm chart e2e tests
+ @test/e2e/run-chart-test.sh
+
.PHONY: run-ingress-controller
run-ingress-controller: ## Run the ingress controller locally using a kubectl proxy connection.
@build/run-ingress-controller.sh
@@ -240,43 +193,25 @@ ensure-buildx:
show-version:
echo -n $(TAG)
-PLATFORMS ?= amd64 arm arm64
-BUILDX_PLATFORMS ?= linux/amd64,linux/arm,linux/arm64
+PLATFORMS ?= amd64 arm arm64 s390x
+
+EMPTY :=
+SPACE := $(EMPTY) $(EMPTY)
+COMMA := ,
.PHONY: release # Build a multi-arch docker image
release: ensure-buildx clean
echo "Building binaries..."
$(foreach PLATFORM,$(PLATFORMS), echo -n "$(PLATFORM)..."; ARCH=$(PLATFORM) make build;)
- echo "Building and pushing ingress-nginx image...$(BUILDX_PLATFORMS)"
-
- docker buildx build \
+ echo "Building and pushing ingress-nginx image..."
+ @docker buildx build \
--no-cache \
- $(MAC_DOCKER_FLAGS) \
--push \
- --pull \
--progress plain \
- --platform $(BUILDX_PLATFORMS) \
+ --platform $(subst $(SPACE),$(COMMA),$(PLATFORMS)) \
--build-arg BASE_IMAGE="$(BASE_IMAGE)" \
--build-arg VERSION="$(TAG)" \
--build-arg COMMIT_SHA="$(COMMIT_SHA)" \
--build-arg BUILD_ID="$(BUILD_ID)" \
-t $(REGISTRY)/controller:$(TAG) rootfs
-
- docker buildx build \
- --no-cache \
- $(MAC_DOCKER_FLAGS) \
- --push \
- --pull \
- --progress plain \
- --platform $(BUILDX_PLATFORMS) \
- --build-arg BASE_IMAGE="$(BASE_IMAGE)" \
- --build-arg VERSION="$(TAG)" \
- --build-arg COMMIT_SHA="$(COMMIT_SHA)" \
- --build-arg BUILD_ID="$(BUILD_ID)" \
- -t $(REGISTRY)/controller-chroot:$(TAG) rootfs -f rootfs/Dockerfile-chroot
-
-.PHONY: build-docs
-build-docs:
- pip install -r docs/requirements.txt
- mkdocs build --config-file mkdocs.yml
diff --git a/NEW_CONTRIBUTOR.md b/NEW_CONTRIBUTOR.md
deleted file mode 100644
index c9668430c..000000000
--- a/NEW_CONTRIBUTOR.md
+++ /dev/null
@@ -1,852 +0,0 @@
-## New Contributor Tips
-
-Welcome to the Ingress Nginx new contributor tips.
-This guide briefly outlines the necessary knowledge & tools, required to start working on Ingress-NGINX Issues.
-
-### Prerequisites
-- Basic understanding of linux
-- Familiarity with the command line on linux
-- OSI Model(Links below)
-
-### Introduction
-It all starts with the OSI model...
-> The Open Systems Interconnection (OSI) model describes seven layers that computer systems use to communicate over a network. It was the first standard model for network communications, adopted by all major computer and telecommunication companies
-
-
-
-#### Reading material for OSI Model
-[OSI Model CertificationKits](https://www.certificationkits.com/cisco-certification/cisco-ccna-640-802-exam-certification-guide/cisco-ccna-the-osi-model/)
-
-### Approaching the problem
-
-
-Not everybody knows everything. But the factors that help are a love/passion for this to begin. But to move forward, it's the approach and not the knowledge that sustains prolonged joy, while working on issues. If the approach is simple and powered by good-wishes-for-community, then info & tools are forthcoming and easy.
-
-Here we take a bird's eye-view of the hops in the network plumbing, that a packet takes, from source to destination, when we run `curl`, from a laptop to a nginx webserver process, running in a container, inside a pod, inside a Kubernetes cluster, created using `kind` or `minikube` or any other cluster-management tool.
-
-### [Kind](https://kind.sigs.k8s.io/) cluster example on a Linux Host
-
-#### TL;DR
-The destination of the packet from the curl command, is looked up, in the `routing table`. Based on the route, the packet first travels to the virtual bridge `172.18.0.1` interface, created by docker, when we created the kind cluster on a laptop. Next the packet is forwarded to `172.18.0.2`(See below on how we got this IP address), within the kind cluster. The `kube-proxy` container creates iptables rules that make sure the packet goes to the correct pod ip in this case `10.244.0.5`
-
-Command:
-```
-# docker ps
-CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
-230e7246a32c kindest/node:v1.24.1 "/usr/local/bin/entr…" 2 weeks ago Up 54 seconds 127.0.0.1:38143->6443/tcp kind-control-plane
-
-# docker inspect kind-control-plane -f '{{ .NetworkSettings.Networks.kind.IPAddress }}'
-172.18.0.2
-
-```
-
-
-
-If this part is confusing, you would first need to understand what a [bridge](https://tldp.org/HOWTO/BRIDGE-STP-HOWTO/what-is-a-bridge.html) is and what [docker network](https://docs.docker.com/network/) is.
-
-
-
-#### The journey of a curl packet.
-Let's begin with creating a [Kind](https://kind.sigs.k8s.io/docs/user/quick-start/) Cluster on your laptop
-```
-# kind create cluster
-```
-This will create a cluster called `kind`, to view the clusters type
-```
-# kind get clusters
-kind
-```
-Kind ships with `kubectl`, so we can use that to communicate with our clusters.
-```
-# kubectl get no -o wide
-NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
-kind-control-plane Ready control-plane 5d23h v1.24.1 172.18.0.2 Ubuntu 21.10 5.18.12-arch1-1 containerd://1.6.4
-```
-Kind creates a cluster using docker container as nodes, it does this using [containerd](https://containerd.io/) within the docker container.
-The concept of Docker in Docker is very important here.
-
-To start with simply create a nginx deployment using `kubectl`.
-```
-# kubectl create deployment nginx --image nginx:alpine --port=80
-deployment.apps/nginx created
-```
-Then we expose this as a NodePort Service.
-```
-# kubectl expose deployment/nginx --type=NodePort
-service/nginx-new exposed
-```
-Command: Now we can see that the service has been exposed.
-```
-# kubectl get svc -o wide
-NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
-nginx NodePort 10.96.176.241 80:32329/TCP 4d8h app=nginx
-```
-Output Relevance: From the above output, we can see that our nginx pod is being exposed as the `NodePort` service type, and now we can curl the Node IP `172.18.0.2` with the exposed port `32329`
-
-Command: The pod has an IP as shown below
-```
-# kubectl get po -o wide
-NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
-nginx-6c8b449b8f-pdvdk 1/1 Running 1 (32h ago) 4d8h 10.244.0.5 kind-control-plane
-```
-
-Command: We can use `curl` on the laptop to view the nginx container that is running on port `32329`.
-
-```
-# curl 172.18.0.2:32329
-
-
-
-
-Welcome to nginx!
-
-
-
-
Welcome to nginx!
-
If you see this page, the nginx web server is successfully installed and
-working. Further configuration is required.
-
-
For online documentation and support please refer to
-nginx.org.
-Commercial support is available at
-nginx.com.
-
-
Thank you for using nginx.
-
-
-```
-Now, we can check the ip interfaces as well subnets for our system is connected to:
-
-```
-$ ifconfig
-ethbr0: flags=4163 mtu 1500
- inet 192.168.31.9 netmask 255.255.255.0 broadcast 192.168.31.255
- inet6 fe80::7530:9ae5:3e8d:e45a prefixlen 64 scopeid 0x20
- ether 2e:90:b3:e8:52:5b txqueuelen 1000 (Ethernet)
- RX packets 31220566 bytes 44930589084 (41.8 GiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 18104006 bytes 1757183680 (1.6 GiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
-
-br-2fffe5cd5d9e: flags=4163 mtu 1500
- inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255
- inet6 fc00:f853:ccd:e793::1 prefixlen 64 scopeid 0x0
- inet6 fe80::42:12ff:fed3:8fb0 prefixlen 64 scopeid 0x20
- inet6 fe80::1 prefixlen 64 scopeid 0x20
- ether 02:42:12:d3:8f:b0 txqueuelen 0 (Ethernet)
- RX packets 3547 bytes 414792 (405.0 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 6267 bytes 8189931 (7.8 MiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
-docker0: flags=4099 mtu 1500
- inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
- inet6 fe80::42:a2ff:fe09:5edb prefixlen 64 scopeid 0x20
- ether 02:42:a2:09:5e:db txqueuelen 0 (Ethernet)
- RX packets 14 bytes 2143 (2.0 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 40 bytes 6406 (6.2 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
-```
-From the above output we can see that, there are two bridges connected to our systems network interface,one is the docker default bridge`docker0` and the other created by kind
-`br-2fffe5cd5d9e`.
-
-Since kind creates nodes as containers, this is easily accessible via `docker ps`.
-```
-$ docker ps
-
-CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
-230e7246a32c kindest/node:v1.24.1 "/usr/local/bin/entr…" 6 days ago Up 33 hours 127.0.0.1:38143->6443/tcp kind-control-plane
-```
-If we do a docker `exec` we can enter the container, we can also see the network interfaces within the container.
-```
-# docker exec -it 230e7246a32c bash
-
-# root@kind-control-plane:/# ip a
-1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- inet 127.0.0.1/8 scope host lo
- valid_lft forever preferred_lft forever
- inet6 ::1/128 scope host
- valid_lft forever preferred_lft forever
-2: vethdb0d1da1@if2: mtu 1500 qdisc noqueue state UP group default
- link/ether a2:a1:ce:08:d2:39 brd ff:ff:ff:ff:ff:ff link-netns cni-ddc25710-030a-cc05-c600-5a183fae01f7
- inet 10.244.0.1/32 scope global vethdb0d1da1
- valid_lft forever preferred_lft forever
-3: veth4d76603f@if2: mtu 1500 qdisc noqueue state UP group default
- link/ether 9a:9b:6b:3e:d1:53 brd ff:ff:ff:ff:ff:ff link-netns cni-f2270000-8fc8-6f89-e56b-4759ae10a084
- inet 10.244.0.1/32 scope global veth4d76603f
- valid_lft forever preferred_lft forever
-4: vethcc2586d6@if2: mtu 1500 qdisc noqueue state UP group default
- link/ether 52:f9:20:63:62:a2 brd ff:ff:ff:ff:ff:ff link-netns cni-97e337cd-1322-c1fa-7523-789af94f397f
- inet 10.244.0.1/32 scope global vethcc2586d6
- valid_lft forever preferred_lft forever
-5: veth783189a9@if2: mtu 1500 qdisc noqueue state UP group default
- link/ether ba:e1:55:1f:6f:12 brd ff:ff:ff:ff:ff:ff link-netns cni-90849001-668a-03d2-7d9e-192de79ccc59
- inet 10.244.0.1/32 scope global veth783189a9
- valid_lft forever preferred_lft forever
-6: veth79c98c12@if2: mtu 1500 qdisc noqueue state UP group default
- link/ether 22:05:55:c7:86:e9 brd ff:ff:ff:ff:ff:ff link-netns cni-734dfac9-9f70-ab33-265b-21569d90312a
- inet 10.244.0.1/32 scope global veth79c98c12
- valid_lft forever preferred_lft forever
-7: veth5b221c83@if2: mtu 1500 qdisc noqueue state UP group default
- link/ether 92:3f:04:54:72:5a brd ff:ff:ff:ff:ff:ff link-netns cni-d8f6666b-1cfb-ef08-4bf8-237a7fc32da2
- inet 10.244.0.1/32 scope global veth5b221c83
- valid_lft forever preferred_lft forever
-8: vethad630fb8@if2: mtu 1500 qdisc noqueue state UP group default
- link/ether 32:78:ec:f6:01:ea brd ff:ff:ff:ff:ff:ff link-netns cni-6cb3c179-cb17-3b81-2051-27231c44a3c4
- inet 10.244.0.1/32 scope global vethad630fb8
- valid_lft forever preferred_lft forever
-9: veth573a629b@if2: mtu 1500 qdisc noqueue state UP group default
- link/ether e2:57:f8:c9:bc:94 brd ff:ff:ff:ff:ff:ff link-netns cni-d2dbb903-8310-57b4-7ba4-9f353dbc79dc
- inet 10.244.0.1/32 scope global veth573a629b
- valid_lft forever preferred_lft forever
-10: eth0@if11: mtu 1500 qdisc noqueue state UP group default
- link/ether 02:42:ac:12:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
- inet 172.18.0.2/16 brd 172.18.255.255 scope global eth0
- valid_lft forever preferred_lft forever
- inet6 fc00:f853:ccd:e793::2/64 scope global nodad
- valid_lft forever preferred_lft forever
- inet6 fe80::42:acff:fe12:2/64 scope link
- valid_lft forever preferred_lft forever
-11: vethd7368e27@if2: mtu 1500 qdisc noqueue state UP group default
- link/ether 8a:74:ec:f6:d6:c9 brd ff:ff:ff:ff:ff:ff link-netns cni-7c7eb9cd-bbb1-65b0-0480-b8f1265f2f36
- inet 10.244.0.1/32 scope global vethd7368e27
- valid_lft forever preferred_lft forever
-12: veth7cadbf2b@if2: mtu 1500 qdisc noqueue state UP group default
- link/ether 12:48:10:b7:b8:f5 brd ff:ff:ff:ff:ff:ff link-netns cni-b39e37b5-1bc8-626a-a553-a0be2f94a117
- inet 10.244.0.1/32 scope global veth7cadbf2b
- valid_lft forever preferred_lft forever
-
-```
-When we run `curl 172.18.0.2:32329` on the laptop it first needs to figure out where `172.18.0.2`, to do this it refers to the host routing table.
-```
-sudo netstat -rn main
-Kernel IP routing table
-Destination Gateway Genmask Flags MSS Window irtt Iface
-0.0.0.0 192.168.31.1 0.0.0.0 UG 0 0 0 ethbr0
-172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
-172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-2fffe5cd5d9e
-172.19.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-be5b544733a3
-192.168.31.0 0.0.0.0 255.255.255.0 U 0 0 0 ethbr0
-192.168.31.0 0.0.0.0 255.255.255.0 U 0 0 0 ethbr0
-192.168.39.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr2
-192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
-```
-Output Relevance: From the above output, you can see that the `iface`(Interface) for `172.18.0.0` is `br-2fffe5cd5d9e`, which means traffic that needs to go to `172.18.0.0` will go through `br-2fffe5cd5d9e` which is created by docker for the kind container (this is the node in case of kind cluster).
-
-Now we need to understand how the packet travels from the container interface to the pod with IP `10.244.0.5`. The component that handles this is called kube-proxy
-
-So what exactly is [kube-proxy](https://kubernetes.io/docs/concepts/overview/components/#kube-proxy):
-> Kube-Proxy is a network proxy that runs on each node in your cluster, implementing part of the Kubernetes Service concept.
-kube-proxy maintains network rules on nodes. These network rules allow network communication to your Pods from network sessions inside or outside of your cluster
-
-So, as we can see that kube proxy handles the network rules required to aid the communication to the pods, we will look at the [iptables](https://linux.die.net/man/8/iptables)
-> `iptables` is a command line interface used to set up and maintain tables for the Netfilter firewall for IPv4, included in the Linux kernel. The firewall matches packets with rules defined in these tables and then takes the specified action on a possible match. Tables is the name for a set of chains
-
-Command:
-```
-# iptables -t nat -L PREROUTING -n
-Chain PREROUTING (policy ACCEPT)
-target prot opt source destination
-KUBE-SERVICES all -- 0.0.0.0/0 0.0.0.0/0 /* kubernetes service portals */
-DOCKER_OUTPUT all -- 0.0.0.0/0 172.18.0.1
-CNI-HOSTPORT-DNAT all -- 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
-```
-
-```
-# iptables-save | grep PREROUTING
--A PREROUTING -m comment --comment "kubernetes service portals" -j KUBE-SERVICES
-```
-Output Relevance:
-> -A: append new iptable rule
-> -j: jump to the target
-> KUBE-SERVICES: target
-
-> The above output appends a new rule for PREROUTING which every network packet will go through first as they try to access any kubernetes service
-
-
-What is `PREROUTING` in iptables?
->PREROUTING: This chain is used to make any routing related decisions before (PRE) sending any packets
-
-To dig in further we need to go to the target, `KUBE-SERVICES` for our nginx service.
-```
-# iptables -t nat -L KUBE-SERVICES -n| grep nginx
-KUBE-SVC-2CMXP7HKUVJN7L6M tcp -- 0.0.0.0/0 10.96.176.241 /* default/nginx cluster IP */ tcp dpt:80
-```
-Command:
-```
-# iptables -t nat -L KUBE-SVC-2CMXP7HKUVJN7L6M -n
-Chain KUBE-SVC-2CMXP7HKUVJN7L6M (2 references)
-target prot opt source destination
-KUBE-MARK-MASQ tcp -- !10.244.0.0/16 10.96.176.241 /* default/nginx cluster IP */ tcp dpt:80
-KUBE-SEP-4IEO3WJHPKXV3AOH all -- 0.0.0.0/0 0.0.0.0/0 /* default/nginx -> 10.244.0.5:80 */
-
-# iptables -t nat -L KUBE-MARK-MASQ -n
-Chain KUBE-MARK-MASQ (31 references)
-target prot opt source destination
-MARK all -- 0.0.0.0/0 0.0.0.0/0 MARK or 0x4000
-
-# iptables -t nat -L KUBE-SEP-4IEO3WJHPKXV3AOH -n
-Chain KUBE-SEP-4IEO3WJHPKXV3AOH (1 references)
-target prot opt source destination
-KUBE-MARK-MASQ all -- 10.244.0.5 0.0.0.0/0 /* default/nginx */
-DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 /* default/nginx */ tcp to:10.244.0.5:80
-```
-
-
-```
-iptables-save | grep 10.96.176.241
-
--A KUBE-SERVICES -d 10.96.176.241/32 -p tcp -m comment --comment "default/nginx cluster IP" -m tcp --dport 80 -j KUBE-SVC-2CMXP7HKUVJN7L6M
--A KUBE-SVC-2CMXP7HKUVJN7L6M ! -s 10.244.0.0/16 -d 10.96.176.241/32 -p tcp -m comment --comment "default/nginx cluster IP" -m tcp --dport 80 -j KUBE-MARK-MASQ
-```
-
-As you can see the rules added by `kube-proxy` helps the packet reach to the destination service.
-
-### Minikube KVM VM Example on Linux
-
-#### TL;DR
-Now we look at the curl packet journey on minikube. The `routing table` is looked up to know the destination of the curl packet. The packet then first travels to the virtual bridge `192.168.39.1`, created by minikube kvm2 driver, when we created the minikube cluster, on a linux laptop. Then this packet is forwarded to `192.168.39.57`, within the minikube VM. We have docker containers running in the VM. Among them, the `kube-proxy` container creates iptables rules that make sure the packet goes to the correct pod ip, in this case `172.17.0.4`.
-
-
-To begin with the minikube example, we first need to create a minikube cluster on a linux laptop. In this example I'll be using the `kvm2` driver option for `minikube start` command, as default.
-
-```
-minikube start
-😄 minikube v1.26.0 on Arch "rolling"
-🆕 Kubernetes 1.24.2 is now available. If you would like to upgrade, specify: --kubernetes-version=v1.24.2
-✨ Using the kvm2 driver based on existing profile
-👍 Starting control plane node minikube in cluster minikube
-🏃 Updating the running kvm2 "minikube" VM ...
-🐳 Preparing Kubernetes v1.23.3 on Docker 20.10.12 ...
- ▪ kubelet.housekeeping-interval=5m
-🔎 Verifying Kubernetes components...
- ▪ Using image registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.1.1
- ▪ Using image registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.1.1
- ▪ Using image registry.k8s.io/ingress-nginx/controller:v1.2.1
- ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
-🔎 Verifying ingress addon...
-🌟 Enabled addons: ingress, storage-provisioner, default-storageclass
-🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
-```
-**Note**: The KVM driver provides a lot of options on customizing the cluster, however that is currently beyond the scope of this guide.
-
-Next we will get the Node IP.
-```
-$ kubectl get no -o wide
-NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
-minikube Ready control-plane,master 25d v1.23.3 192.168.39.57 Buildroot 2021.02.4 4.19.202 docker://20.10.12
-```
-Minikube creates a Virtual Machine using the KVM2 driver(Other drivers such as Virtualbox do exist see `minikube start --help` for more information ), you should be able to see this with the following output(You may have to use sudo to get this output)
-
-```
-$ virsh --connect qemu:///system list
- Id Name State
---------------------------
- 1 minikube running
-
- or
-
- $ sudo virsh list
- Id Name State
---------------------------
- 1 minikube running
-
-```
-
-Moving on, simply create a nginx deployment using `kubectl`.
-```
-# kubectl create deployment nginx --image nginx:alpine --port=80
-deployment.apps/nginx created
-```
-Then we expose this as a NodePort Service.
-```
-# kubectl expose deployment/nginx --type=NodePort
-service/nginx-new exposed
-```
-Command: Now we can see that the service has been exposed.
-```
-# kubectl get svc -o wide main
-NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
-kubernetes ClusterIP 10.96.0.1 443/TCP 25d
-nginx-minikube NodePort 10.97.44.4 80:32007/TCP 45h app=nginx-minikube
-```
-Output Relevance: From the above output, we can see that our nginx pod is being exposed as the `NodePort` service type, and now we can curl the Node IP `192.168.39.57` with the exposed port `32007`
-
-Command: The pod has an IP as shown below
-```
-# kubectl get po -o wide
-NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
-nginx-minikube-7546f79bd8-x88bt 1/1 Running 3 (43m ago) 45h 172.17.0.4 minikube
-
-```
-
-Command: We can use `curl` on the laptop to view the nginx container that is running on port `32007`.
-```
-curl 192.168.39.57:32007
-
-
-
-Welcome to nginx!
-
-
-
-
Welcome to nginx!
-
If you see this page, the nginx web server is successfully installed and
-working. Further configuration is required.
-
-
For online documentation and support please refer to
-nginx.org.
-Commercial support is available at
-nginx.com.
-
-
Thank you for using nginx.
-
-
-```
-
-So, how does this packet travel, lets dive in.
-We can check the ip interfaces as well subnets for our system is connected to:
-```
-$ ifconfig
-virbr2: flags=4163 mtu 1500
- inet 192.168.39.1 netmask 255.255.255.0 broadcast 192.168.39.255
- ether 52:54:00:19:29:93 txqueuelen 1000 (Ethernet)
- RX packets 5132 bytes 1777099 (1.6 MiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 6113 bytes 998530 (975.1 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
-
-virbr0: flags=4163 mtu 1500
- inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
- ether 52:54:00:48:ee:35 txqueuelen 1000 (Ethernet)
- RX packets 23648 bytes 1265196 (1.2 MiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 40751 bytes 60265308 (57.4 MiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
-```
-Output Relevance: From the above output you can see there are two Virtual Bridges created by minikube when we created the cluster on the network. Here, `virbr0` is the default NAT network bridge while `virbr2` is a isolated network bridge on which the pods run.
-
-Minikube creates a Virtual Machine, to enter the virtual machine we can simply do:
-```
-# minikube ssh
-```
-
-The interfaces within the Virtual Machine are as follows.
-```
-docker0 Link encap:Ethernet HWaddr 02:42:03:24:26:78
- inet addr:172.17.0.1 Bcast:172.17.255.255 Mask:255.255.0.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:31478 errors:0 dropped:0 overruns:0 frame:0
- TX packets:36704 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:3264056 (3.1 MiB) TX bytes:14061883 (13.4 MiB)
-
-eth0 Link encap:Ethernet HWaddr 52:54:00:C9:3A:73
- inet addr:192.168.39.57 Bcast:192.168.39.255 Mask:255.255.255.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:8245 errors:0 dropped:9 overruns:0 frame:0
- TX packets:3876 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:812006 (792.9 KiB) TX bytes:1044724 (1020.2 KiB)
-
-eth1 Link encap:Ethernet HWaddr 52:54:00:7B:37:79
- inet addr:192.168.122.35 Bcast:192.168.122.255 Mask:255.255.255.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:4459 errors:0 dropped:9 overruns:0 frame:0
- TX packets:201 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:298528 (291.5 KiB) TX bytes:25813 (25.2 KiB)
-
-lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- UP LOOPBACK RUNNING MTU:65536 Metric:1
- RX packets:946772 errors:0 dropped:0 overruns:0 frame:0
- TX packets:946772 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:213465460 (203.5 MiB) TX bytes:213465460 (203.5 MiB)
-
-vetha4f1dc5 Link encap:Ethernet HWaddr 3E:1C:FE:C9:75:86
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:10 errors:0 dropped:0 overruns:0 frame:0
- TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:1413 (1.3 KiB) TX bytes:955 (955.0 B)
-
-vethbf35613 Link encap:Ethernet HWaddr BA:31:7D:AE:2A:BF
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:3526 errors:0 dropped:0 overruns:0 frame:0
- TX packets:3934 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:342408 (334.3 KiB) TX bytes:380193 (371.2 KiB)
-
-vethe092a51 Link encap:Ethernet HWaddr 8A:37:D3:D9:D9:0E
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:9603 errors:0 dropped:0 overruns:0 frame:0
- TX packets:11151 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:1199235 (1.1 MiB) TX bytes:5449408 (5.1 MiB)
-```
-Output Relevance: Here we have the Virtual Ethernet and we have docker bridges too since docker runs within the Virtual Machine.
-
-When we do a `curl` to `192.168.39.57:32007` on the laptop the packet first goes to the route table
-```
-Destination Gateway Genmask Flags MSS Window irtt Iface
-0.0.0.0 192.168.31.1 0.0.0.0 UG 0 0 0 ethbr0
-172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
-172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-2fffe5cd5d9e
-172.19.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-be5b544733a3
-192.168.31.0 0.0.0.0 255.255.255.0 U 0 0 0 ethbr0
-192.168.31.0 0.0.0.0 255.255.255.0 U 0 0 0 ethbr0
-192.168.39.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr2
-192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
-```
-Output Relevance: As you can see multiple routes are defined here, of which our Virtual Machine Node IP(192.168.39.57) is also shown in the table, so the packet now knows where it has to go.
-
-With that clear we now know how the packet goes from the laptop to the virtual bridge and then enters the Virtual Machine.
-
-Inside the virtual machine, [kube-proxy](https://kubernetes.io/docs/concepts/overview/components/#kube-proxy) handles the routing using iptables.
-
-So what exactly is [kube-proxy](https://kubernetes.io/docs/concepts/overview/components/#kube-proxy)(For those who skipped the kind example):
-> Kube-Proxy is a network proxy that runs on each node in your cluster, implementing part of the Kubernetes Service concept.
-kube-proxy maintains network rules on nodes. These network rules allow network communication to your Pods from network sessions inside or outside of your cluster
-
-So, as we can see that kube proxy handles the network rules required to aid the communication to the pods, we will look at the [iptables](https://linux.die.net/man/8/iptables)
-> `iptables` is a command line interface used to set up and maintain tables for the Netfilter firewall for IPv4, included in the Linux kernel. The firewall matches packets with rules defined in these tables and then takes the specified action on a possible match. Tables is the name for a set of chains
-
-Command:
-
-```
-# minikube ssh
- _ _
- _ _ ( ) ( )
- ___ ___ (_) ___ (_)| |/') _ _ | |_ __
-/' _ ` _ `\| |/' _ `\| || , < ( ) ( )| '_`\ /'__`\
-| ( ) ( ) || || ( ) || || |\`\ | (_) || |_) )( ___/
-(_) (_) (_)(_)(_) (_)(_)(_) (_)`\___/'(_,__/'`\____)
-
-$ sudo iptables -t nat -L PREROUTING -n
-Chain PREROUTING (policy ACCEPT)
-target prot opt source destination
-KUBE-SERVICES all -- 0.0.0.0/0 0.0.0.0/0 /* kubernetes service portals */
-DOCKER all -- 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
-
-$ iptables-save | grep PREROUTING
--A PREROUTING -m comment --comment "kubernetes service portals" -j KUBE-SERVICES
-
-```
-
-Output Relevance:
-> -A: append new iptable rule
-> -j: jump to the target
-> KUBE-SERVICES: target
-
-> The above output appends a new rule for PREROUTING which every network packet will go through first as they try to access any kubernetes service
-
-
-What is `PREROUTING` in iptables?
->PREROUTING: This chain is used to make any routing related decisions before (PRE) sending any packets
-
-To dig in further we need to go to the target, `KUBE-SERVICES` for our nginx service.
-```
-# iptables -t nat -L KUBE-SERVICES -n| grep nginx
-KUBE-SVC-NRDCJV6H42SDXARP tcp -- 0.0.0.0/0 10.97.44.4 /* default/nginx-minikube cluster IP */ tcp dpt:80
-```
-Command:
-```
-$ sudo iptables -t nat -L| grep KUBE-SVC-NRDCJV6H42SDXARP
-KUBE-SVC-NRDCJV6H42SDXARP tcp -- 0.0.0.0/0 0.0.0.0/0 /* default/nginx-minikube */ tcp dpt:32007
-KUBE-SVC-NRDCJV6H42SDXARP tcp -- 0.0.0.0/0 10.97.44.4 /* default/nginx-minikube cluster IP */ tcp dpt:80
-
-$ sudo iptables -t nat -L KUBE-MARK-MASQ -n
-Chain KUBE-MARK-MASQ (19 references)
-target prot opt source destination
-MARK all -- 0.0.0.0/0 0.0.0.0/0 MARK or 0x4000
-
-sudo iptables-save | grep 172.17.0.4
--A KUBE-SEP-AHQQ7ZFXMEBNX76B -s 172.17.0.4/32 -m comment --comment "default/nginx-minikube" -j KUBE-MARK-MASQ
--A KUBE-SEP-AHQQ7ZFXMEBNX76B -p tcp -m comment --comment "default/nginx-minikube" -m tcp -j DNAT --to-destination 172.17.0.4:80
-```
-As you can see the rules added by kube-proxy helps the packet reach to the destination service.
-
-
-### Connection termination
-Connection termination is a type of event that occurs when there are load balancers present, the information for this is quite scarce, however I've found the following article, [IBM - Network Termination](https://www.ibm.com/docs/en/sva/9.0.4?topic=balancer-network-termination) that describes what it means by connection termination between clients(laptop) and server(load balancer) and the various other services.
-
-### Different types of connection errors.
-The following article on [TCP/IP errors](https://www.ibm.com/docs/en/db2/11.1?topic=message-tcpip-errors) has a list of the important tcp timeout errors that we need to know.
-
-
-| Common TCP/IP errors | Meaning |
-| -------- | -------- |
-| Resource temporarily unavailable.| Self-explanatory. |
-| No space is left on a device or system table.|The disk partition is full|
-|No route to the host is available.|The routing table doesn't know where to route the packet.|
-|Connection was reset by the partner.|This usually means the packet was dropped as soon as it reached the server can be due to a firewall.|
-|The connection was timed out.|This indicates the firewall blocking your connection or the connection took too long.|
-
-## OSI Model Layer 7 (Application Layer)
-
-[What is layer 7?](https://www.cloudflare.com/learning/ddos/what-is-layer-7/)
-#### Summary
-Layer 7 refers to the seventh and topmost layer of the Open Systems Interconnect (OSI) Model known as the application layer. This is the highest layer which supports end-user processes and applications. Layer 7 identifies the communicating parties and the quality of service between them, considers privacy and user authentication, as well as identifies any constraints on the data syntax. This layer is wholly application-specific.
-
-
-## Setting up Ingress-Nginx Controller
-
-Since we are doing this on our local laptop, we are going to use the following tools:
-- [Minikube using KVM driver](https://minikube.sigs.k8s.io/docs/start/) - The host is linux-based in our example
-- [Metallb](https://metallb.universe.tf/) - Baremetal load-balancer.
-- [KVM](https://www.linux-kvm.org/page/Main_Page) / [Oracle VirtualBox](https://www.virtualbox.org/wiki/Downloads) / [VMWare](https://www.vmware.com/in/products/workstation-pro.html)
-
-
-### So let's begin with Metallb and Ingress-Nginx setup.
-
-For setting up metallb, we are going to follow the below steps:
-
- - To begin the installation, we will execute:
-```
-minikube start
-```
-- To install Metallb, one can install it using the [manifest](https://metallb.universe.tf/installation/#installation-by-manifest) or by using [helm](https://metallb.universe.tf/installation/#installation-with-helm), for now we will use the Manifest method:
-```
-kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.4/config/manifests/metallb-native.yaml
-```
-
-- We need to now configure Metallb, we are using [Layer 2 configuration](https://metallb.universe.tf/configuration/#announce-the-service-ips), let's head over to the [Metallb Configuration](https://metallb.universe.tf/configuration/) website, here you will see how to setup metallb.
->Layer 2 mode does not require the IPs to be bound to the network interfaces of your worker nodes. It works by responding to ARP requests on your local network directly, to give the machine’s MAC address to clients.
-In order to advertise the IP coming from an IPAddressPool, an L2Advertisement instance must be associated to the IPAddressPool.
-- We have modified the IP address pool so that our loadbalancer knows which subnet to choose an IP from.Since we have only one minikube IP we need to modify the code given in the documentation.
-Save this as `metallb-config.yaml`:
-```
-apiVersion: metallb.io/v1beta1
-kind: IPAddressPool
-metadata:
- name: first-pool
- namespace: metallb-system
-spec:
- addresses:
- # The configuration website show's you this
-
- #- 192.168.10.0/24
- #- 192.168.9.1-192.168.9.5
- #- fc00:f853:0ccd:e799::/124
-
- # We are going to change this to `minikube ip` as such
- - 192.168.39.57/32
-```
-Now deploy it using `kubectl`
-```
-kubectl apply -f metallb-config.yaml
-```
-- Now that metallb is setup, let's install [ingress-nginx](https://kubernetes.github.io/ingress-nginx/deploy/#quick-start) on the laptop.
-Note: We are using the install by manifest option from the Installation manual
-```
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.3.0/deploy/static/provider/cloud/deploy.yaml
-```
-or one can also install it using the minikube addons:
-```
-minikube addons enable ingress
-```
- - Once your Ingress-Nginx controller is created you can run the following commands to see the output of the setup done.
-```
-kubectl get pods -n ingress-nginx
-NAME READY STATUS RESTARTS AGE
-ingress-nginx-admission-create-65bld 0/1 Completed 0 14m
-ingress-nginx-admission-patch-rwq4x 0/1 Completed 0 14m
-ingress-nginx-controller-6dc865cd86-7c5zd 1/1 Running 0 14m
-```
-The Ingress controller creates a Service with the type LoadBalancer and metallb provides the IP address.
-
-```
-kubectl -n ingress-nginx get svc
-
-NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
-ingress-nginx-controller LoadBalancer 10.108.154.53 192.168.39.223 80:30367/TCP,443:31491/TCP 4d15h
-ingress-nginx-controller-admission ClusterIP 10.98.54.3 443/TCP 4d15h
-```
-
-#### Creating an Ingress
-
-We will deploy a `httpd` service in a `httpd` namespace and create a ingress for it.
-
-First, let's create a namespace.
-```
-kubectl create namespace httpd
-```
-
-Next we will create a deployment
-```
-kubectl create deployment httpd -n httpd --image=httpd:alpine
-```
-
-Now, In order to create a service, let's expose this deployment
-```
-kubectl expose deployment -n httpd httpd --port 80
-```
-Let's check the `pod` that is created
-
-```
-kubectl get po -n httpd
-NAME READY STATUS RESTARTS AGE
-httpd-fb7fcdc77-w287c 1/1 Running 0 64s
-```
-
-Let's list the services in the `httpd` namespace
-```
-kubectl get svc -n httpd
-NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
-httpd ClusterIP 10.104.111.0 80/TCP 13s
-```
-
-Once we have this we can now create an ingress using the following
-```
-kubectl -n httpd create ingress httpd --class nginx --rule httpd.dev.leonnunes.com/"*"=httpd:80
-```
-The above output, creates an ingress, for us with the rule to match the service if the host is `httpd.dev.leonnunes.com`. The class here is retrieved from the below command.
-
-To list the `ingressclasses` use
-```
-kubectl get ingressclasses
-NAME CONTROLLER PARAMETERS AGE
-nginx k8s.io/ingress-nginx 6h49m
-```
-
-The following command shows the ingress created
-```
-$ kubectl get ingress -A -o wide
-
-NAMESPACE NAME CLASS HOSTS ADDRESS PORTS AGE
-httpd httpd nginx httpd.dev.leonnunes.com 192.168.39.223 80 11d
-```
-
-To test if the rule works we can now do
-```
-$ minikube ip
-192.168.39.223
-
-$ curl --resolve httpd.dev.leonnunes.com:80:192.168.39.223 httpd.dev.leonnunes.com
-
It works!
-
-or
-
-curl -H "Host: httpd.dev.leonnunes.com" 192.168.39.223
-```
-
-#### Example of Information found on layer 7
-We have setup `Ingress-Nginx`, using `nginx` as a class and `httpd` for this example.
-
-In order to display the info on Layer - 7, we have extracted the Layer 7 information from a simple `curl` request, and then using `tcpdump` command within the `httpd` pod we extracted the network packets and opened it using the `Wireshark` utility.
-
-Below given is the output that is important:
-```bash
-Frame 4: 391 bytes on wire (3128 bits), 391 bytes captured (3128 bits)
-Linux cooked capture v2
-Internet Protocol Version 4, Src: 172.17.0.4, Dst: 172.17.0.3
-Transmission Control Protocol, Src Port: 49074, Dst Port: 80, Seq: 1, Ack: 1, Len: 319
-Hypertext Transfer Protocol
- GET / HTTP/1.1\r\n
- Host: httpd.dev.leonnunes.com\r\n
- X-Request-ID: 6e1a790412a0d1615dc0231358dc9c8b\r\n
- X-Real-IP: 172.17.0.1\r\n
- X-Forwarded-For: 172.17.0.1\r\n
- X-Forwarded-Host: httpd.dev.leonnunes.com\r\n
- X-Forwarded-Port: 80\r\n
- X-Forwarded-Proto: http\r\n
- X-Forwarded-Scheme: http\r\n
- X-Scheme: http\r\n
- User-Agent: curl/7.84.0\r\n
- Accept: */*\r\n
- \r\n
- [Full request URI: http://httpd.dev.leonnunes.com/]
- [HTTP request 1/1]
- [Response in frame: 6]
-
-```
-The above output shows the information that the `httpd` pod receives. The `curl` command sends the host header, `Host: httpd.dev.leonnunes.com`, to the nginx controller, that then matches the rule and sends the information to the right controller
-
-The following output shows what is sent via the laptop.
-```
-curl --resolve httpd.dev.leonnunes.com:80:192.168.39.57 -H "Host: httpd.dev.leonnunes.com" 192.168.39.57 -vL
-* Added httpd.dev.leonnunes.com:80:192.168.39.57 to DNS cache
-* Trying 192.168.39.57:80...
-* Connected to 192.168.39.57 (192.168.39.57) port 80 (#0)
-> GET / HTTP/1.1
-> Host: httpd.dev.leonnunes.com
-> User-Agent: curl/7.84.0
-> Accept: */*
->
-* Mark bundle as not supporting multiuse
-< HTTP/1.1 200 OK
-< Date: Mon, 22 Aug 2022 16:05:27 GMT
-< Content-Type: text/html
-< Content-Length: 45
-< Connection: keep-alive
-< Last-Modified: Mon, 11 Jun 2007 18:53:14 GMT
-< ETag: "2d-432a5e4a73a80"
-< Accept-Ranges: bytes
-<
-
It works!
-* Connection #0 to host 192.168.39.57 left intact
-```
-As you can see from the above output there are several headers added to the curl output after it reaches the `httpd` pod, these headers are added by the Ingress Nginx Controller.
-
-
-### References
-#### Basics of Networking
- - https://www.cisco.com/en/US/docs/security/vpn5000/manager/reference/guide/appA.html
- - http://web.stanford.edu/class/cs101/
- - https://www.geeksforgeeks.org/basics-computer-networking/
- - Subnetting
- - https://www.computernetworkingnotes.com/ccna-study-guide/subnetting-tutorial-subnetting-explained-with-examples.html
-
-#### Video Links
- - https://www.youtube.com/playlist?list=PLhfrWIlLOoKPc2RecyiM_A9nf3fUU3e6g
- - https://www.youtube.com/watch?v=S7MNX_UD7vY&list=PLIhvC56v63IJVXv0GJcl9vO5Z6znCVb1P
-
-### Topics to read about
- - Docker in Docker
- - [Docker/Containers](https://www.oreilly.com/library/view/docker-deep-dive/9781800565135/)
- - Containers
-
-### Basics of Kubernetes
-#### Reading Material
-- https://nubenetes.com/kubernetes-tutorials/
-- https://kubernetes.io/docs/concepts/
-#### Video Material
-- [Techworld with Nana 101](https://www.youtube.com/playlist?list=PLy7NrYWoggjziYQIDorlXjTvvwweTYoNC)
-- [Jeff Geerling Kubernetes 101](https://www.youtube.com/watch?v=IcslsH7OoYo&list=PL2_OBreMn7FoYmfx27iSwocotjiikS5BD)
-
-#### Hands-On Kubernetes
-- https://kube.academy/
-- https://www.civo.com/academy
-
-### Networking in Kubernetes
-- [Kubernetes Networking 101](https://youtu.be/CYnwBIpvSlM?t=284)
-- [CNCF Kubernetes 101](https://www.youtube.com/watch?v=cUGXu2tiZMc)
-
-### Tools/Commands to help with troubleshooting.
-- [mtr](https://www.redhat.com/sysadmin/linux-mtr-command) - Tracing the packet from the source to destination
-- [tcpdump](https://linuxconfig.org/how-to-use-tcpdump-command-on-linux) - Monitor packets
-- [wireshark](https://www.lifewire.com/wireshark-tutorial-4143298) - Read/Sniff packets
-- [nslookup](https://phoenixnap.com/kb/nslookup-command) - Lookup Nameservers
-- [netstat](https://www.lifewire.com/netstat-command-2618098) - List network details
-- [curl](https://linuxhandbook.com/curl-command-examples/) - Curl a website from the command line
-- [ifconfig](https://www.tecmint.com/ifconfig-command-examples/)/[ip](https://www.geeksforgeeks.org/ip-command-in-linux-with-examples/) - Show ip address configuration
-- [dig](https://www.geeksforgeeks.org/dig-command-in-linux-with-examples/) - Query Nameservers
-- [ipcalc](https://www.linux.com/topic/networking/how-calculate-network-addresses-ipcalc/) - Calculate IP addresses
-- Advanced Tools for troubleshooting
- - [Netshoot](https://github.com/nicolaka/netshoot) - Troubleshoot Networks
-- Cluster Creation tools
- - [kind](https://kind.sigs.k8s.io/docs/user/quick-start/)
- - [minikube](https://minikube.sigs.k8s.io/docs/start/)
-- MacOS users
- - [docker-mac-net-connect](https://github.com/chipmk/docker-mac-net-connect) - See this [issue](https://github.com/kubernetes/minikube/issues/7332)
diff --git a/NEW_RELEASE_PROCESS.md b/NEW_RELEASE_PROCESS.md
deleted file mode 100644
index cdb683abf..000000000
--- a/NEW_RELEASE_PROCESS.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Semi-Automated Release Process
-
-1. Update TAG
-2. Cloud Build
-3. k8s.io PR
-4. git pull origin main
-5. git checkout -b $RELEASE_VERSION
-6. mage release:newrelease $RELEASE_VERSION
-7. Wait for PR
\ No newline at end of file
diff --git a/NGINX_BASE b/NGINX_BASE
deleted file mode 100644
index dd8d6c586..000000000
--- a/NGINX_BASE
+++ /dev/null
@@ -1 +0,0 @@
-registry.k8s.io/ingress-nginx/nginx:v2.0.0@sha256:3e7bda4cf5111d283ed1e4ff5cc9a2b5cdc5ebe62d50ba67473d3e25b1389133
diff --git a/OWNERS b/OWNERS
index bafe6b3f7..250bce4e8 100644
--- a/OWNERS
+++ b/OWNERS
@@ -1,13 +1,15 @@
-# See the OWNERS docs: https://www.kubernetes.dev/docs/guide/owners
+# See the OWNERS docs: https://github.com/kubernetes/community/blob/master/contributors/guide/owners.md
approvers:
-- ingress-nginx-maintainers
+ - ingress-nginx-admins
+ - ingress-nginx-maintainers
+ - ElvinEfendi
+ - rikatz
reviewers:
-- ingress-nginx-reviewers
+ - ElvinEfendi
+ - cmluciano
+ - rikatz
emeritus_approvers:
-- aledbf # 2020-04-02
-- bowei # 2022-10-12
-- ElvinEfendi # 2023-04-23
-- rikatz # 2024-12-15
+ - aledbf # 2020-04-02
diff --git a/OWNERS_ALIASES b/OWNERS_ALIASES
index 314202c10..30f781cfc 100644
--- a/OWNERS_ALIASES
+++ b/OWNERS_ALIASES
@@ -1,17 +1,10 @@
-# See the OWNERS docs: https://www.kubernetes.dev/docs/guide/owners
+# See the OWNERS docs: https://git.k8s.io/community/docs/devel/owners.md
aliases:
+ sig-network-leads:
+ - caseydavenport
+ - dcbw
+ - thockin
+ ingress-nginx-admins:
+ - bowei
ingress-nginx-maintainers:
- - cpanato
- - Gacko
- - strongjz
- - tao12345666333
-
- ingress-nginx-reviewers:
- - cpanato
- - Gacko
- - strongjz
- - tao12345666333
-
- ingress-nginx-docs-maintainers:
- - longwuyuan
diff --git a/README.md b/README.md
index c95e644de..6a5d7605b 100644
--- a/README.md
+++ b/README.md
@@ -1,94 +1,57 @@
-# Ingress NGINX Controller
+## Help us to improve the NGINX Ingress controller [completing the survey](https://docs.google.com/forms/d/15ULTOvYDsV920V0GWrspew4yyjEmTAi740Wr34UgKwA/viewform)
+
+---
+
+# NGINX Ingress Controller
-[](https://bestpractices.coreinfrastructure.org/projects/5691)
[](https://goreportcard.com/report/github.com/kubernetes/ingress-nginx)
-[](https://github.com/kubernetes/ingress-nginx/blob/main/LICENSE)
+[](https://github.com/kubernetes/ingress-nginx/blob/master/LICENSE)
[](https://github.com/kubernetes/ingress-nginx/stargazers)
-[](https://github.com/kubernetes/ingress-nginx/blob/main/CONTRIBUTING.md)
+[](https://github.com/kubernetes/ingress-nginx/blob/master/CONTRIBUTING.md)
+[](https://app.fossa.io/projects/git%2Bgithub.com%2Fkubernetes%2Fingress-nginx?ref=badge_shield)
## Overview
-ingress-nginx is an Ingress controller for Kubernetes using [NGINX](https://www.nginx.org/) as a reverse proxy and load
-balancer.
+ingress-nginx is an Ingress controller for Kubernetes using [NGINX](https://www.nginx.org/) as a reverse proxy and load balancer.
-[Learn more about Ingress on the Kubernetes documentation site](https://kubernetes.io/docs/concepts/services-networking/ingress/).
+[Learn more about Ingress on the main Kubernetes documentation site](https://kubernetes.io/docs/concepts/services-networking/ingress/).
## Get started
See the [Getting Started](https://kubernetes.github.io/ingress-nginx/deploy/) document.
-Do not use in multi-tenant Kubernetes production installations. This project assumes that users that can create Ingress objects are administrators of the cluster. See the [FAQ](https://kubernetes.github.io/ingress-nginx/faq/#faq) for more.
-
## Troubleshooting
-If you encounter issues, review the [troubleshooting docs](docs/troubleshooting.md),
-[file an issue](https://github.com/kubernetes/ingress-nginx/issues), or talk to us on the
-[#ingress-nginx channel](https://kubernetes.slack.com/messages/ingress-nginx) on the Kubernetes Slack server.
+If you encounter issues, review the [troubleshooting docs](docs/troubleshooting.md), [file an issue](https://github.com/kubernetes/ingress-nginx/issues), or talk to us on the [#ingress-nginx channel](https://kubernetes.slack.com/messages/ingress-nginx) on the Kubernetes Slack server.
-## Changelog
-
-See [the list of releases](https://github.com/kubernetes/ingress-nginx/releases) for all changes.
-For detailed changes for each release, please check the [changelog-$version.md](./changelog) file for the release version.
-For detailed changes on the `ingress-nginx` helm chart, please check the changelog folder for a specific version.
-[CHANGELOG-$current-version.md](./charts/ingress-nginx/changelog) file.
-
-### Supported Versions table
-
-Supported versions for the ingress-nginx project mean that we have completed E2E tests, and they are passing for
-the versions listed. Ingress-Nginx versions **may** work on older versions, but the project does not make that guarantee.
-
-| Supported | Ingress-NGINX version | k8s supported version | Alpine Version | Nginx Version | Helm Chart Version |
-| :-------: | --------------------- | ----------------------------- | -------------- | ------------- | ------------------ |
-| 🔄 | **v1.12.0** | 1.32, 1.31, 1.30, 1.29, 1.28 | 3.21.0 | 1.25.5 | 4.12.0 |
-| 🔄 | **v1.12.0-beta.0** | 1.32, 1.31, 1.30, 1.29, 1.28 | 3.20.3 | 1.25.5 | 4.12.0-beta.0 |
-| 🔄 | **v1.11.4** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.21.0 | 1.25.5 | 4.11.4 |
-| 🔄 | **v1.11.3** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.20.3 | 1.25.5 | 4.11.3 |
-| 🔄 | **v1.11.2** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.20.0 | 1.25.5 | 4.11.2 |
-| 🔄 | **v1.11.1** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.20.0 | 1.25.5 | 4.11.1 |
-| 🔄 | **v1.11.0** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.20.0 | 1.25.5 | 4.11.0 |
-| | **v1.10.6** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.21.0 | 1.25.5 | 4.10.6 |
-| | **v1.10.5** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.20.3 | 1.25.5 | 4.10.5 |
-| | **v1.10.4** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.20.0 | 1.25.5 | 4.10.4 |
-| | **v1.10.3** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.20.0 | 1.25.5 | 4.10.3 |
-| | **v1.10.2** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.20.0 | 1.25.5 | 4.10.2 |
-| | **v1.10.1** | 1.30, 1.29, 1.28, 1.27, 1.26 | 3.19.1 | 1.25.3 | 4.10.1 |
-| | **v1.10.0** | 1.29, 1.28, 1.27, 1.26 | 3.19.1 | 1.25.3 | 4.10.0 |
-| | v1.9.6 | 1.29, 1.28, 1.27, 1.26, 1.25 | 3.19.0 | 1.21.6 | 4.9.1 |
-| | v1.9.5 | 1.28, 1.27, 1.26, 1.25 | 3.18.4 | 1.21.6 | 4.9.0 |
-| | v1.9.4 | 1.28, 1.27, 1.26, 1.25 | 3.18.4 | 1.21.6 | 4.8.3 |
-| | v1.9.3 | 1.28, 1.27, 1.26, 1.25 | 3.18.4 | 1.21.6 | 4.8.* |
-| | v1.9.1 | 1.28, 1.27, 1.26, 1.25 | 3.18.4 | 1.21.6 | 4.8.* |
-| | v1.9.0 | 1.28, 1.27, 1.26, 1.25 | 3.18.2 | 1.21.6 | 4.8.* |
-| | v1.8.4 | 1.27, 1.26, 1.25, 1.24 | 3.18.2 | 1.21.6 | 4.7.* |
-| | v1.7.1 | 1.27, 1.26, 1.25, 1.24 | 3.17.2 | 1.21.6 | 4.6.* |
-| | v1.6.4 | 1.26, 1.25, 1.24, 1.23 | 3.17.0 | 1.21.6 | 4.5.* |
-| | v1.5.1 | 1.25, 1.24, 1.23 | 3.16.2 | 1.21.6 | 4.4.* |
-| | v1.4.0 | 1.25, 1.24, 1.23, 1.22 | 3.16.2 | 1.19.10† | 4.3.0 |
-| | v1.3.1 | 1.24, 1.23, 1.22, 1.21, 1.20 | 3.16.2 | 1.19.10† | 4.2.5 |
-
-See [this article](https://kubernetes.io/blog/2021/07/26/update-with-ingress-nginx/) if you want upgrade to the stable
-Ingress API.
-
-## Get Involved
+## Contributing
Thanks for taking the time to join our community and start contributing!
-- This project adheres to the [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md).
- By participating in this project, you agree to abide by its terms.
-- **Contributing**: Contributions of all kinds are welcome!
+- This project adheres to the [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md). By participating in this project, you agree to abide by its terms.
+- See [CONTRIBUTING.md](CONTRIBUTING.md) for information about setting up your environment, the workflow that we expect, and instructions on the developer certificate of origin that we require.
+- Check out the [open issues](https://github.com/kubernetes/ingress-nginx).
+- Join our Kubernetes Slack channel: [#ingress-nginx](https://kubernetes.slack.com/messages/CANQGM8BA/).
- - Read [`CONTRIBUTING.md`](CONTRIBUTING.md) for information about setting up your environment, the workflow that we
- expect, and instructions on the developer certificate of origin that we require.
- - Join our Kubernetes Slack channel for developer discussion : [#ingress-nginx-dev](https://kubernetes.slack.com/archives/C021E147ZA4).
- - Submit GitHub issues for any feature enhancements, bugs, or documentation problems.
- - Please make sure to read the [Issue Reporting Checklist](https://github.com/kubernetes/ingress-nginx/blob/main/CONTRIBUTING.md#issue-reporting-guidelines) before opening an issue. Issues not conforming to the guidelines **may be closed immediately**.
- - Join our [ingress-nginx-dev mailing list](https://groups.google.com/a/kubernetes.io/g/ingress-nginx-dev/c/ebbBMo-zX-w)
-- **Support**:
+## Changelog
- - Join the [#ingress-nginx-users](https://kubernetes.slack.com/messages/CANQGM8BA/) channel inside the [Kubernetes Slack](http://slack.kubernetes.io/) to ask questions or get support from the maintainers and other users.
- - The [GitHub issues](https://github.com/kubernetes/ingress-nginx/issues) in the repository are **exclusively** for bug reports and feature requests.
- - **Discuss**: Tweet using the `#IngressNginx` hashtag or sharing with us [@IngressNginx](https://twitter.com/IngressNGINX).
+See [the list of releases](https://github.com/kubernetes/ingress-nginx/releases) to find out about feature changes.
+For detailed changes for each release; please check the [Changelog.md](Changelog.md) file.
+For detailed changes on the `ingress-nginx` helm chart, please check the following [CHANGELOG.md](charts/ingress-nginx/CHANGELOG.md) file.
+
+# Get Involved
+
+- **Contributing**: Pull requests are welcome!
+ - Read [`CONTRIBUTING.md`](CONTRIBUTING.md) and check out [help-wanted](https://github.com/kubernetes/ingress-nginx/labels/help%20wanted) issues.
+ - Submit github issues for any feature enhancements, bugs or documentation problems.
+- **Support**: Join to [Kubernetes Slack](http://slack.kubernetes.io/) in the [#ingress-nginx](https://kubernetes.slack.com/messages/CANQGM8BA/) channel to ask questions to get support from the maintainers and other users.
+ - The [github issues](https://github.com/kubernetes/ingress-nginx/issues) in the repository are **exclusively** for bug reports and feature requests.
+- **Discuss**: Tweet using the `#IngressNginx` hashtag.
+
+## Issues
+
+Please make sure to read the [Issue Reporting Checklist](https://github.com/kubernetes/ingress-nginx/blob/master/CONTRIBUTING.md#issue-reporting-guidelines) before opening an issue. Issues not conforming to the guidelines **may be closed immediately**.
## License
-[Apache License 2.0](https://github.com/kubernetes/ingress-nginx/blob/main/LICENSE)
+[Apache License 2.0](https://github.com/kubernetes/ingress-nginx/blob/master/LICENSE)
diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 000000000..f9a90a3da
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,76 @@
+1. [NGINX](https://github.com/kubernetes/ingress-nginx/tree/master/images/nginx)
+
+* Open pull request
+
+If you are updating any component in [build.sh](images/nginx/rootfs/build.sh) please also update the SHA256 checksum of that component as
+ well, the cloud build will fail with an exit 10 if not.
+Example [NGINX_VERSION](images/nginx/rootfs/build.sh#L21),
+[SHA256](images/nginx/rootfs/build.sh#L124)
+* Merge
+* Wait for [cloud build](https://console.cloud.google.com/cloud-build/builds?project=k8s-staging-ingress-nginx)
+
+1a. Promote images:
+
+Open pull request to promote staging image:
+[add sha - version](https://github.com/kubernetes/k8s.io/blob/main/k8s.gcr.io/images/k8s-staging-ingress-nginx/images.yaml#L1)
+
+The sha is available in output from [cloud build](https://console.cloud.google.com/cloud-build/builds?project=k8s-staging-ingress-nginx)
+
+2. Change to images:
+
+* [e2e](https://github.com/kubernetes/ingress-nginx/tree/master/images/test-runner)
+
+ * [test-runner](https://github.com/kubernetes/ingress-nginx/tree/master/images/echo)
+ * [echo](https://github.com/kubernetes/ingress-nginx/tree/master/images/echo)
+ * [cfssl](https://github.com/kubernetes/ingress-nginx/tree/master/images/cfssl)
+ * [fastcgi-helloserver](https://github.com/kubernetes/ingress-nginx/tree/master/images/fastcgi-helloserver)
+ * [httpbin](https://github.com/kubernetes/ingress-nginx/tree/master/images/httpbin)
+
+* Open pull request
+* Merge
+* Wait for [cloud build](https://console.cloud.google.com/cloud-build/builds?project=k8s-staging-ingress-nginx)
+
+2a. Promote images:
+
+* Open pull request to promote [staging image](https://github.com/kubernetes/k8s.io/blob/master/k8s.gcr.io/images/k8s-staging-ingress-nginx/images.yaml)
+ * e2e-test-runner
+ * e2e-test-cfssl
+ * e2e-test-echo
+ * e2e-test-fastcgi-helloserver
+ * e2e-test-httpbin
+
+3. Update references to e2e-test-runner image:
+
+* [e2e-image](https://github.com/kubernetes/ingress-nginx/blob/master/test/e2e-image/Dockerfile#L1)
+* [run-in-docker.sh](https://github.com/kubernetes/ingress-nginx/blob/ff60aa9e2b5377db1544091b98f475a90a630297/build/run-in-docker.sh#L37)
+
+4. Prepare for a new release:
+
+* Change [TAG](https://github.com/kubernetes/ingress-nginx/blob/master/TAG#L1)
+* Open pull request
+* Merge
+* [Wait for cloud build](https://console.cloud.google.com/cloud-build/builds?project=k8s-staging-ingress-nginx)
+
+4a. Promote images:
+
+* Open pull request to promote [staging image](https://github.com/kubernetes/k8s.io/blob/master/k8s.gcr.io/images/k8s-staging-ingress-nginx/images.yaml)
+ * controller
+
+5. Release helm chart:
+
+* Open pull request updating [Chart.yaml](https://github.com/kubernetes/ingress-nginx/blob/master/charts/ingress-nginx/Chart.yaml#L3-L4)
+* Merge
+* [New helm chart is available](https://github.com/kubernetes/ingress-nginx/blob/master/.github/workflows/main.yaml#L47-L68)
+
+6. New release:
+
+* Update static scripts:
+ * [generate-deploy-scripts.sh](https://github.com/kubernetes/ingress-nginx/blob/master/hack/generate-deploy-scripts.sh)
+ * Open pull request with the updates
+ * Merge
+
+* Update changelog:
+ * Open pull request updating [Changelog.md](https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md)
+ * Merge
+
+7. Github release
\ No newline at end of file
diff --git a/SECURITY_CONTACTS b/SECURITY_CONTACTS
index 587c7e016..fd437b717 100644
--- a/SECURITY_CONTACTS
+++ b/SECURITY_CONTACTS
@@ -9,5 +9,4 @@
#
# DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE
# INSTRUCTIONS AT https://kubernetes.io/security/
-Gacko
-strongjz
+
diff --git a/TAG b/TAG
new file mode 100644
index 000000000..0131a133c
--- /dev/null
+++ b/TAG
@@ -0,0 +1 @@
+v0.47.0
diff --git a/build/build-plugin.sh b/build/build-plugin.sh
new file mode 100755
index 000000000..578957eb4
--- /dev/null
+++ b/build/build-plugin.sh
@@ -0,0 +1,79 @@
+#!/bin/bash
+
+# Copyright 2018 The Kubernetes Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+if [ -n "$DEBUG" ]; then
+ set -x
+fi
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+declare -a mandatory
+mandatory=(
+ PKG
+ ARCH
+ COMMIT_SHA
+ REPO_INFO
+ TAG
+)
+
+missing=false
+for var in "${mandatory[@]}"; do
+ if [[ -z "${!var:-}" ]]; then
+ echo "Environment variable $var must be set"
+ missing=true
+ fi
+done
+
+if [ "$missing" = true ]; then
+ exit 1
+fi
+
+export CGO_ENABLED=0
+
+release=cmd/plugin/release
+
+function build_for_arch(){
+ os=$1
+ arch=$2
+ extension=$3
+
+ env GOOS="${os}" GOARCH="${arch}" go build \
+ "${GOBUILD_FLAGS}" \
+ -trimpath -ldflags="-buildid= -w -s" \
+ -X ${PKG}/version.RELEASE=${TAG} \
+ -X ${PKG}/version.COMMIT=${COMMIT_SHA} \
+ -X ${PKG}/version.REPO=${REPO_INFO}" \
+ -o "${release}/kubectl-ingress_nginx${extension}" "${PKG}/cmd/plugin"
+
+ cp LICENSE ${release}
+ tar -C "${release}" -zcvf "${release}/kubectl-ingress_nginx-${os}-${arch}.tar.gz" "kubectl-ingress_nginx${extension}" LICENSE
+ rm "${release}/kubectl-ingress_nginx${extension}"
+ hash=$(sha256sum "${release}/kubectl-ingress_nginx-${os}-${arch}.tar.gz" | awk '{ print $1 }')
+ sed -i "s/%%%shasum_${os}_${arch}%%%/${hash}/g" "${release}/ingress-nginx.yaml"
+}
+
+rm -rf "${release}"
+mkdir "${release}"
+
+cp cmd/plugin/ingress-nginx.yaml.tmpl "${release}/ingress-nginx.yaml"
+
+sed -i "s/%%%tag%%%/${TAG}/g" ${release}/ingress-nginx.yaml
+
+build_for_arch darwin amd64 ''
+build_for_arch linux amd64 ''
+build_for_arch windows amd64 '.exe'
diff --git a/build/build.sh b/build/build.sh
index bbcaf78e8..914716feb 100755
--- a/build/build.sh
+++ b/build/build.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Copyright 2018 The Kubernetes Authors.
#
@@ -14,56 +14,55 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-GO_BUILD_CMD="go build"
-
-#if [ -n "$DEBUG" ]; then
-# set -x
-# GO_BUILD_CMD="go build -v"
-#fi
+if [ -n "$DEBUG" ]; then
+ set -x
+fi
set -o errexit
set -o nounset
set -o pipefail
+declare -a mandatory
+mandatory=(
+ PKG
+ ARCH
+ COMMIT_SHA
+ REPO_INFO
+ TAG
+)
-if [ -z "$PKG" ] || [ -z "$ARCH" ] || [ -z "$COMMIT_SHA" ] || [ -z "$REPO_INFO" ] || [ -z "$TAG" ]; then
- echo "Environments PKG, ARCH, COMMIT_SHA, REPO_INFO and TAG are required"
- exit 1
+missing=false
+for var in "${mandatory[@]}"; do
+ if [[ -z "${!var:-}" ]]; then
+ echo "Environment variable $var must be set"
+ missing=true
+ fi
+done
+
+if [ "$missing" = true ]; then
+ exit 1
fi
-
export CGO_ENABLED=0
-export GOARCH="${ARCH}"
+export GOARCH=${ARCH}
-TARGETS_DIR="rootfs/bin/${ARCH}"
-echo "Building targets for ${ARCH}, generated targets in ${TARGETS_DIR} directory."
-
-echo "Building ${PKG}/cmd/nginx"
-
-${GO_BUILD_CMD} \
+go build \
-trimpath -ldflags="-buildid= -w -s \
- -X ${PKG}/version.RELEASE=${TAG} \
- -X ${PKG}/version.COMMIT=${COMMIT_SHA} \
- -X ${PKG}/version.REPO=${REPO_INFO}" \
- -buildvcs=false \
- -o "${TARGETS_DIR}/nginx-ingress-controller" "${PKG}/cmd/nginx"
+ -X ${PKG}/version.RELEASE=${TAG} \
+ -X ${PKG}/version.COMMIT=${COMMIT_SHA} \
+ -X ${PKG}/version.REPO=${REPO_INFO}" \
+ -o "rootfs/bin/${ARCH}/nginx-ingress-controller" "${PKG}/cmd/nginx"
-echo "Building ${PKG}/cmd/dbg"
-
-${GO_BUILD_CMD} \
+go build \
-trimpath -ldflags="-buildid= -w -s \
- -X ${PKG}/version.RELEASE=${TAG} \
- -X ${PKG}/version.COMMIT=${COMMIT_SHA} \
- -X ${PKG}/version.REPO=${REPO_INFO}" \
- -buildvcs=false \
- -o "${TARGETS_DIR}/dbg" "${PKG}/cmd/dbg"
+ -X ${PKG}/version.RELEASE=${TAG} \
+ -X ${PKG}/version.COMMIT=${COMMIT_SHA} \
+ -X ${PKG}/version.REPO=${REPO_INFO}" \
+ -o "rootfs/bin/${ARCH}/dbg" "${PKG}/cmd/dbg"
-echo "Building ${PKG}/cmd/waitshutdown"
-
-${GO_BUILD_CMD} \
+go build \
-trimpath -ldflags="-buildid= -w -s \
- -X ${PKG}/version.RELEASE=${TAG} \
- -X ${PKG}/version.COMMIT=${COMMIT_SHA} \
- -X ${PKG}/version.REPO=${REPO_INFO}" \
- -buildvcs=false \
- -o "${TARGETS_DIR}/wait-shutdown" "${PKG}/cmd/waitshutdown"
\ No newline at end of file
+ -X ${PKG}/version.RELEASE=${TAG} \
+ -X ${PKG}/version.COMMIT=${COMMIT_SHA} \
+ -X ${PKG}/version.REPO=${REPO_INFO}" \
+ -o "rootfs/bin/${ARCH}/wait-shutdown" "${PKG}/cmd/waitshutdown"
diff --git a/build/dev-env.sh b/build/dev-env.sh
index dd1518ee0..b089de206 100755
--- a/build/dev-env.sh
+++ b/build/dev-env.sh
@@ -36,7 +36,7 @@ if ! command -v kind &> /dev/null; then
fi
if ! command -v kubectl &> /dev/null; then
- echo "Please install kubectl 1.24.0 or higher"
+ echo "Please install kubectl 1.15 or higher"
exit 1
fi
@@ -45,18 +45,15 @@ if ! command -v helm &> /dev/null; then
exit 1
fi
-function ver { printf "%d%03d%03d" $(echo "$1" | tr '.' ' '); }
-
-HELM_VERSION=$(helm version 2>&1 | cut -f1 -d"," | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') || true
-echo $HELM_VERSION
-if [[ $(ver $HELM_VERSION) -lt $(ver "3.10.0") ]]; then
- echo "Please upgrade helm to v3.10.0 or higher"
+HELM_VERSION=$(helm version 2>&1 | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+') || true
+if [[ ${HELM_VERSION} < "v3.0.0" ]]; then
+ echo "Please upgrade helm to v3.0.0 or higher"
exit 1
fi
-KUBE_CLIENT_VERSION=$(kubectl version --client -oyaml 2>/dev/null | grep "minor:" | awk '{print $2}' | tr -d '"') || true
-if [[ ${KUBE_CLIENT_VERSION} -lt 24 ]]; then
- echo "Please update kubectl to 1.24.2 or higher"
+KUBE_CLIENT_VERSION=$(kubectl version --client --short | awk '{print $3}' | cut -d. -f2) || true
+if [[ ${KUBE_CLIENT_VERSION} -lt 14 ]]; then
+ echo "Please update kubectl to 1.15 or higher"
exit 1
fi
@@ -64,13 +61,32 @@ echo "[dev-env] building image"
make build image
docker tag "${REGISTRY}/controller:${TAG}" "${DEV_IMAGE}"
-export K8S_VERSION=${K8S_VERSION:-v1.32.0@sha256:c48c62eac5da28cdadcf560d1d8616cfa6783b58f0d94cf63ad1bf49600cb027}
+export K8S_VERSION=${K8S_VERSION:-v1.20.2@sha256:8f7ea6e7642c0da54f04a7ee10431549c0257315b3a634f6ef2fecaaedb19bab}
KIND_CLUSTER_NAME="ingress-nginx-dev"
if ! kind get clusters -q | grep -q ${KIND_CLUSTER_NAME}; then
- echo "[dev-env] creating Kubernetes cluster with kind"
- kind create cluster --name ${KIND_CLUSTER_NAME} --image "kindest/node:${K8S_VERSION}" --config ${DIR}/kind.yaml
+echo "[dev-env] creating Kubernetes cluster with kind"
+cat </dev/null || true
-}
-
set -o errexit
set -o nounset
set -o pipefail
@@ -49,9 +43,16 @@ if [ "$missing" = true ]; then
exit 1
fi
-BASEDIR=$(dirname "$0")
-NGINX_BASE_IMAGE=$(cat $BASEDIR/../../NGINX_BASE)
-HTTPBUN_IMAGE=$(cat $BASEDIR/HTTPBUN_IMAGE)
+function cleanup {
+ kubectl delete pod e2e 2>/dev/null || true
+}
+trap cleanup EXIT
+
+E2E_CHECK_LEAKS=${E2E_CHECK_LEAKS:-}
+FOCUS=${FOCUS:-.*}
+
+export E2E_CHECK_LEAKS
+export FOCUS
echo -e "${BGREEN}Granting permissions to ingress-nginx e2e service account...${NC}"
kubectl create serviceaccount ingress-nginx-e2e || true
@@ -61,14 +62,11 @@ kubectl create clusterrolebinding permissive-binding \
--user=kubelet \
--serviceaccount=default:ingress-nginx-e2e || true
-VER=$(kubectl version --client=false -o json |jq '.serverVersion.minor |tonumber')
-if [ $VER -lt 24 ]; then
- echo -e "${BGREEN}Waiting service account...${NC}"; \
- until kubectl get secret | grep -q -e ^ingress-nginx-e2e-token; do \
- echo -e "waiting for api token"; \
- sleep 3; \
- done
-fi
+echo -e "${BGREEN}Waiting service account...${NC}"; \
+until kubectl get secret | grep -q -e ^ingress-nginx-e2e-token; do \
+ echo -e "waiting for api token"; \
+ sleep 3; \
+done
echo -e "Starting the e2e test pod"
@@ -77,19 +75,6 @@ kubectl run --rm \
--restart=Never \
--env="E2E_NODES=${E2E_NODES}" \
--env="FOCUS=${FOCUS}" \
- --env="IS_CHROOT=${IS_CHROOT:-false}"\
- --env="SKIP_OPENTELEMETRY_TESTS=${SKIP_OPENTELEMETRY_TESTS:-false}"\
--env="E2E_CHECK_LEAKS=${E2E_CHECK_LEAKS}" \
- --env="NGINX_BASE_IMAGE=${NGINX_BASE_IMAGE}" \
- --env="HTTPBUN_IMAGE=${HTTPBUN_IMAGE}" \
--overrides='{ "apiVersion": "v1", "spec":{"serviceAccountName": "ingress-nginx-e2e"}}' \
e2e --image=nginx-ingress-controller:e2e
-
-# Get the junit-reports stored in the configMaps created during e2etests
-echo "Getting the report file out now.."
-reportsDir="test/junitreports"
-reportFile="report-e2e-test-suite.xml.gz"
-mkdir -p $reportsDir
-cd $reportsDir
-kubectl get cm $reportFile -o "jsonpath={.binaryData['${reportFile//\./\\.}']}" | base64 -d | gunzip > ${reportFile%\.gz}
-echo "done getting the report file out.."
diff --git a/build/run-in-docker.sh b/build/run-in-docker.sh
index c4f3b34e0..d6723c7a1 100755
--- a/build/run-in-docker.sh
+++ b/build/run-in-docker.sh
@@ -14,39 +14,27 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-DEBUG=${DEBUG:-"false"}
-if [ "$DEBUG" == "true" ]; then
+if [ -n "$DEBUG" ]; then
set -x
fi
-RUNTIME=${RUNTIME:-"docker"}
-
set -o errexit
set -o nounset
set -o pipefail
# temporal directory for the /etc/ingress-controller directory
-if [[ "$OSTYPE" == darwin* ]]; then
- mkdir -p "tmp"
- INGRESS_VOLUME=$(pwd)/$(mktemp -d tmp/XXXXXX)
-else
- INGRESS_VOLUME=$(mktemp -d)
-fi
+INGRESS_VOLUME=$(mktemp -d)
-# make sure directory for SSL cert storage exists under ingress volume
-mkdir "${INGRESS_VOLUME}/ssl"
+if [[ "$OSTYPE" == darwin* ]]; then
+ INGRESS_VOLUME=/private$INGRESS_VOLUME
+fi
function cleanup {
rm -rf "${INGRESS_VOLUME}"
}
trap cleanup EXIT
-E2E_IMAGE=${E2E_IMAGE:-registry.k8s.io/ingress-nginx/e2e-test-runner:v20250112-a188f4eb@sha256:043038b1e30e5a0b64f3f919f096c5c9488ac3f617ac094b07fb9db8215f9441}
-
-if [[ "$RUNTIME" == podman ]]; then
- # Podman does not support both tag and digest
- E2E_IMAGE=$(echo $E2E_IMAGE | awk -F "@sha" '{print $1}')
-fi
+E2E_IMAGE=${E2E_IMAGE:-k8s.gcr.io/ingress-nginx/e2e-test-runner:v20210601-g96a87c79b@sha256:f84dcddc84e5cba220260f315e18cd47fc8c6b7f3f4f57b7b3e9cc2ea25324b7}
DOCKER_OPTS=${DOCKER_OPTS:-}
DOCKER_IN_DOCKER_ENABLED=${DOCKER_IN_DOCKER_ENABLED:-}
@@ -64,33 +52,21 @@ fi
# create output directory as current user to avoid problem with docker.
mkdir -p "${KUBE_ROOT}/bin" "${KUBE_ROOT}/bin/${ARCH}"
-PLATFORM="${PLATFORM:-}"
-if [[ -n "$PLATFORM" ]]; then
- PLATFORM_FLAG=--platform
-else
- PLATFORM_FLAG=
-fi
-
-USER=${USER:-nobody}
-
-USE_SHELL=${USE_SHELL:-"/bin/bash"}
-
if [[ "$DOCKER_IN_DOCKER_ENABLED" == "true" ]]; then
- echo "..reached DIND check TRUE block, inside run-in-docker.sh"
- echo "FLAGS=$FLAGS"
- #go env
- go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.22.2
- find / -type f -name ginkgo 2>/dev/null
- which ginkgo
/bin/bash -c "${FLAGS}"
else
- echo "Reached DIND check ELSE block, inside run-in-docker.sh"
-
- args="${PLATFORM_FLAG} ${PLATFORM} --tty --rm ${DOCKER_OPTS} -e DEBUG=${DEBUG} -e GOCACHE="/go/src/${PKG}/.cache" -e GOMODCACHE="/go/src/${PKG}/.modcache" -e DOCKER_IN_DOCKER_ENABLED="true" -v "${HOME}/.kube:${HOME}/.kube" -v "${KUBE_ROOT}:/go/src/${PKG}" -v "${KUBE_ROOT}/bin/${ARCH}:/go/bin/linux_${ARCH}" -v "${INGRESS_VOLUME}:/etc/ingress-controller/" -w "/go/src/${PKG}""
-
- if [[ "$RUNTIME" == "docker" ]]; then
- args="$args -v /var/run/docker.sock:/var/run/docker.sock"
- fi
-
- ${RUNTIME} run $args ${E2E_IMAGE} ${USE_SHELL} -c "${FLAGS}"
+ docker run \
+ --tty \
+ --rm \
+ ${DOCKER_OPTS} \
+ -e GOCACHE="/go/src/${PKG}/.cache" \
+ -e DOCKER_IN_DOCKER_ENABLED="true" \
+ -v "${HOME}/.kube:${HOME}/.kube" \
+ -v "${KUBE_ROOT}:/go/src/${PKG}" \
+ -v "${KUBE_ROOT}/bin/${ARCH}:/go/bin/linux_${ARCH}" \
+ -v "/var/run/docker.sock:/var/run/docker.sock" \
+ -v "${INGRESS_VOLUME}:/etc/ingress-controller/" \
+ -w "/go/src/${PKG}" \
+ -u $(id -u ${USER}):$(id -g ${USER}) \
+ ${E2E_IMAGE} /bin/bash -c "${FLAGS}"
fi
diff --git a/build/run-ingress-controller.sh b/build/run-ingress-controller.sh
index 99f598b1f..29338241f 100755
--- a/build/run-ingress-controller.sh
+++ b/build/run-ingress-controller.sh
@@ -49,7 +49,7 @@ fi
SSL_VOLUME=$(mktemp -d)
function cleanup {
- echo -e "${BGREEN}Stopping kubectl proxy${NC}"
+ echo -e "${BGREEN}Stoping kubectl proxy${NC}"
rm -rf "${SSL_VOLUME}"
kill "$proxy_pid"
}
diff --git a/test/test-lua.sh b/build/test-lua.sh
similarity index 54%
rename from test/test-lua.sh
rename to build/test-lua.sh
index e7ee5843e..3b00cf35a 100755
--- a/test/test-lua.sh
+++ b/build/test-lua.sh
@@ -25,22 +25,14 @@ set -o pipefail
BUSTED_ARGS="-v --pattern=_test"
-SHDICT_ARGS=(
- "-I" "./rootfs/etc/nginx/lua"
- "--shdict" "configuration_data 5M"
- "--shdict" "certificate_data 16M"
- "--shdict" "certificate_servers 1M"
- "--shdict" "ocsp_response_cache 1M"
- "--shdict" "balancer_ewma 1M"
- "--shdict" "quota_tracker 1M"
- "--shdict" "high_throughput_tracker 1M"
- "--shdict" "balancer_ewma_last_touched_at 1M"
- "--shdict" "balancer_ewma_locks 512k"
- "./rootfs/etc/nginx/lua/test/run.lua"
-)
-
-if [ $# -eq 0 ]; then
- resty "${SHDICT_ARGS[@]}" ./rootfs/etc/nginx/lua/test/ ${BUSTED_ARGS}
-else
- resty "${SHDICT_ARGS[@]}" $@ ${BUSTED_ARGS}
-fi
+resty \
+ -I ./rootfs/etc/nginx/lua \
+ --shdict "configuration_data 5M" \
+ --shdict "certificate_data 16M" \
+ --shdict "certificate_servers 1M" \
+ --shdict "ocsp_response_cache 1M" \
+ --shdict "balancer_ewma 1M" \
+ --shdict "balancer_ewma_last_touched_at 1M" \
+ --shdict "balancer_ewma_locks 512k" \
+ --shdict "global_throttle_cache 5M" \
+ ./rootfs/etc/nginx/lua/test/run.lua ${BUSTED_ARGS} ./rootfs/etc/nginx/lua/test/ ./rootfs/etc/nginx/lua/plugins/**/test
diff --git a/test/test.sh b/build/test.sh
similarity index 97%
rename from test/test.sh
rename to build/test.sh
index 674b9484a..bb7ccdb7e 100755
--- a/test/test.sh
+++ b/build/test.sh
@@ -23,7 +23,6 @@ set -o errexit
set -o nounset
set -o pipefail
-mkdir -p /tmp/nginx
if [ -z "${PKG}" ]; then
echo "PKG must be set"
exit 1
diff --git a/changelog/controller-1.10.0.md b/changelog/controller-1.10.0.md
deleted file mode 100644
index e0a6c9a10..000000000
--- a/changelog/controller-1.10.0.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# Changelog
-
-This release is the first using NGINX v1.25.0!
-
-## Breaking changes
-* This version does not support chroot image, this will be fixed on a future minor patch release
-* This version dropped Opentracing and zipkin modules, just Opentelemetry is supported
-* This version dropped support for PodSecurityPolicy
-* This version dropped support for GeoIP (legacy). Only GeoIP2 is supported
-
-### controller-v1.10.0
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.10.0@sha256:42b3f0e5d0846876b1791cd3afeb5f1cbbe4259d6f35651dcc1b5c980925379c
-
-### All changes:
-
-* Start the release of v1.10.0 (#11038)
-* bump nginx and Go, remove tag file and old CI jobs (#11037)
-* Fix kubewebhook image tag (#11033)
-* add missing backend-protocol annotation option (#9545)
-* Update controller-prometheusrules.yaml (#8902)
-* Stop reporting interrupted tests (#11027)
-* test(gzip): reach ingress (#9541)
-* fix datasource, $exported_namespace variable in grafana nginx dashboard (#9092)
-* Properly support a TLS-wrapped OCSP responder (#10164)
-* Fix print-e2e-suite (#9536)
-* chore(deps): upgrade headers-more module to 0.37 (#10991)
-* Update ingress-path-matching.md (#11008)
-* Update ingress-path-matching.md (#11007)
-* E2E Tests: Explicitly enable metrics. (#10962)
-* Chart: Set `--enable-metrics` depending on `controller.metrics.enabled`. (#10959)
-* Chart: Remove useless `default` from `_params.tpl`. (#10957)
-* Fix golang makefile var name (#10932)
-* Fixing image push (#10931)
-* fix: live-docs script (#10928)
-* docs: Add vouch-proxy OAuth example (#10929)
-* Add OTEL build test and for NGINX v1.25 (#10889)
-* docs: update annotations docs with missing session-cookie section (#10917)
-* Release controller 1.9.6 and helm 4.9.1 (#10919)
-
-### Dependency updates:
-
-* Bump kubewebhook certgen (#11034)
-* Bump go libraries (#11023)
-* Bump modsecurity on nginx 1.25 (#11024)
-* Bump grpc and reintroduce OTEL compilation (#11021)
-* Bump github/codeql-action from 3.24.0 to 3.24.5 (#11017)
-* Bump actions/dependency-review-action from 4.0.0 to 4.1.3 (#11016)
-* Bump dorny/paths-filter from 3.0.0 to 3.0.1 (#10994)
-* Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 (#10998)
-* Bump actions/upload-artifact from 4.3.0 to 4.3.1 (#10978)
-* Bump actions/download-artifact from 4.1.1 to 4.1.2 (#10981)
-* Bump aquasecurity/trivy-action from 0.16.1 to 0.17.0 (#10979)
-* Bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 (#10980)
-* Bump golang.org/x/crypto from 0.18.0 to 0.19.0 (#10976)
-* Bump github/codeql-action from 3.23.2 to 3.24.0 (#10971)
-* Bump github.com/opencontainers/runc from 1.1.11 to 1.1.12 (#10951)
-* Bump google.golang.org/grpc from 1.60.1 to 1.61.0 (#10938)
-* Bump actions/upload-artifact from 4.2.0 to 4.3.0 (#10937)
-* Bump dorny/test-reporter from 1.7.0 to 1.8.0 (#10936)
-* Bump github/codeql-action from 3.23.1 to 3.23.2 (#10935)
-* Bump dorny/paths-filter from 2.11.1 to 3.0.0 (#10934)
-* Bump alpine to 3.19.1 (#10930)
-* Bump go to v1.21.6 and set a single source of truth (#10926)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.9.6...controller-v1.10.0
diff --git a/changelog/controller-1.10.1.md b/changelog/controller-1.10.1.md
deleted file mode 100644
index 40fc321fa..000000000
--- a/changelog/controller-1.10.1.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# Changelog
-
-### controller-v1.10.1
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.10.1@sha256:e24f39d3eed6bcc239a56f20098878845f62baa34b9f2be2fd2c38ce9fb0f29e
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.10.1@sha256:c155954116b397163c88afcb3252462771bd7867017e8a17623e83601bab7ac7
-
-### All changes:
-
-* start 1.10.1 build (#11246)
-* force nginx rebuild (#11245)
-* update k8s version to latest kind release (#11241)
-* remove _ssl_expire_time_seconds metric by identifier (#11239)
-* update post submit helm ci and clean up (#11221)
-* Chart: Add unit tests for default backend & topology spread constraints. (#11219)
-* sort default backend hpa metrics (#11217)
-* updated certgen image shatag (#11216)
-* changed testrunner image sha (#11211)
-* bumped certgeimage tag (#11213)
-* updated baseimage & deleted a useless file (#11209)
-* bump ginkgo to 2-17-1 in testrunner (#11204)
-* chunking related faq update (#11205)
-* Fix-semver (#11199)
-* refactor helm ci tests part I (#11188)
-* Proposal: e2e tests for regex patterns (#11185)
-* bump ginkgo to v2.17.1 (#11186)
-* fixes brotli build issue (#11187)
-* fix geoip2 configuration docs (#11151)
-* Fix typos in OTel doc (#11081) (#11129)
-* Chart: Render `controller.ingressClassResource.parameters` natively. (#11126)
-* Fix admission controller logging of `admissionTime` and `testedConfigurationSize` (#11114)
-* Chart: Align HPA & KEDA conditions. (#11113)
-* Chart: Improve IngressClass documentation. (#11111)
-* Chart: Add Gacko to maintainers. Again. (#11112)
-* Chart: Deploy `PodDisruptionBudget` with KEDA. (#11105)
-* Chores: Pick patches from main. (#11103)
-
-### Dependency updates:
-
-* Bump google.golang.org/grpc from 1.63.0 to 1.63.2 (#11238)
-* Bump google.golang.org/grpc from 1.62.1 to 1.63.0 (#11234)
-* Bump github.com/prometheus/common from 0.51.1 to 0.52.2 (#11233)
-* Bump golang.org/x/crypto from 0.21.0 to 0.22.0 (#11232)
-* Bump github.com/prometheus/client_model in the all group (#11231)
-* Bump the all group with 3 updates (#11230)
-* Bump the all group with 2 updates (#11190)
-* Bump actions/add-to-project from 0.6.1 to 1.0.0 (#11189)
-* Bump the all group with 3 updates (#11166)
-* Bump github.com/prometheus/common from 0.50.0 to 0.51.1 (#11160)
-* Bump the all group with 4 updates (#11140)
-* Bump the all group with 1 update (#11136)
-* Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /magefiles (#11127)
-* Bump google.golang.org/protobuf in /images/custom-error-pages/rootfs (#11128)
-* Bump google.golang.org/protobuf in /images/kube-webhook-certgen/rootfs (#11122)
-
diff --git a/changelog/controller-1.10.2.md b/changelog/controller-1.10.2.md
deleted file mode 100644
index 384768a24..000000000
--- a/changelog/controller-1.10.2.md
+++ /dev/null
@@ -1,130 +0,0 @@
-# Changelog
-
-### controller-v1.10.2
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.10.2@sha256:e3311b3d9671bc52d90572bcbfb7ee5b71c985d6d6cffd445c241f1e2703363c
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.10.2@sha256:c4395cba98f9721e3381d3c06e7994371bae20f5ab30e457cd7debe44a8c8c54
-
-### All changes:
-
-* update test runner to latest build (#11557)
-* add k8s 1.30 to ci build (#11553)
-* update test runner go base to 3.20 (#11550)
-* tag new test runner image with new nginx base 0.0.8 (#11549)
-* bump NGINX_BASE to v0.0.8 (#11543)
-* trigger build for NGINX-1.25 v0.0.8 (#11542)
-* Upgrade OWASP_MODSECURITY_CRS_VERSION 3.3.5 to 4.4.0 and update docs (#11548)
-* [feature] bump nginx to 1.25.5 and add http3 module (#11541)
-* add ssl patches to nginx-1.25 image for coroutines to work in lua client hello and cert ssl blocks (#11534)
-* bump alpine version to 3.20 to custom-error-pages (#11537)
-* fix: Ensure changes in MatchCN annotation are detected (#11528)
-* Docs: Add information about HTTP/3 support. (#11525)
-* Docs: Specify `ingressClass` for multi-controller setup. (#11520)
-* Docs: Improve default certificate usage. (#11519)
-* docs: Update Ingress-NGINX v1.10.1 compatibility with Kubernetes v1.30 (#11500)
-* Update getting-started.md with new prerequisites (#11487)
-* Fix boolean configuration (#11484)
-* Chores: Align security contacts & chart maintainers to actual owners. (#11480)
-* CI: Bump forgotten Ginkgo versions. (#11469)
-* Tests: Replace deprecated `grpc.Dial` by `grpc.NewClient`. (#11468)
-* Owners: Promote Gacko to admin. (#11464)
-* fixed fastcgi userguide (#11455)
-* Remove unnecessary space character (#11451)
-* fix for docs issue 11432 (#11446)
-* Update index.md (#11445)
-* upgrade to alpine 3.20 (#11438)
-* update golang to 1.22.4 (#11431)
-* Adapt dashboards for Grafana 11 compatibility (#11414)
-* Rename variable to fix typo (#11413)
-* Fix helm install on cloud provider admonition block (#11412)
-* edited helm-install tips (#11411)
-* added info for aws helm install (#11410)
-* added multiplecontrollers-howto to faq (#11409)
-* removed tlsv1 & tlsv1.1 (#11408)
-* Docs: Remove opentracing and zipkin from docs (#11405)
-* Go: Sync modules from `main`. (#11398)
-* add workflow to helm release and update ct for branch (#11317)
-* Merge pull request #11277 from strongjz/chart-1.10.1 (#11314)
-* Release Helm Chart on branch update (#11306)
-* Release controller 1.10.1 (#11298)
-* fix path in file changed detected message (#11286)
-* chore: fix function names in comment (#11281)
-* fix: update kube version requirement to 1.21 (#11279)
-* release helm chart from release branch (#11278)
-* start 1.10.1 build (#11246)
-* force nginx rebuild (#11245)
-* update k8s version to latest kind release (#11241)
-* remove _ssl_expire_time_seconds metric by identifier (#11239)
-* update post submit helm ci and clean up (#11221)
-* Chart: Add unit tests for default backend & topology spread constraints. (#11219)
-* sort default backend hpa metrics (#11217)
-* updated certgen image shatag (#11216)
-* changed testrunner image sha (#11211)
-* bumped certgeimage tag (#11213)
-* updated baseimage & deleted a useless file (#11209)
-* bump ginkgo to 2-17-1 in testrunner (#11204)
-* chunking related faq update (#11205)
-* Fix-semver (#11199)
-* refactor helm ci tests part I (#11188)
-* Proposal: e2e tests for regex patterns (#11185)
-* bump ginkgo to v2.17.1 (#11186)
-* fixes brotli build issue (#11187)
-* fix geoip2 configuration docs (#11151)
-* Fix typos in OTel doc (#11081) (#11129)
-* Chart: Render `controller.ingressClassResource.parameters` natively. (#11126)
-* Fix admission controller logging of `admissionTime` and `testedConfigurationSize` (#11114)
-* Chart: Align HPA & KEDA conditions. (#11113)
-* Chart: Improve IngressClass documentation. (#11111)
-* Chart: Add Gacko to maintainers. Again. (#11112)
-* Chart: Deploy `PodDisruptionBudget` with KEDA. (#11105)
-* Chores: Pick patches from main. (#11103)
-* Start the release of v1.10.0 (#11038)
-
-### Dependency updates:
-
-* Bump the all group with 2 updates (#11524)
-* Bump k8s.io/klog/v2 from 2.130.0 to 2.130.1 in the all group (#11521)
-* Bump aquasecurity/trivy-action from 0.22.0 to 0.23.0 in the all group (#11501)
-* Bump k8s.io/klog/v2 from 2.120.1 to 2.130.0 (#11479)
-* Bump the all group with 3 updates (#11478)
-* Bump the all group with 2 updates (#11477)
-* Bump golang.org/x/crypto from 0.23.0 to 0.24.0 (#11471)
-* Bump sigs.k8s.io/controller-runtime in the all group (#11449)
-* Bump github.com/prometheus/common from 0.53.0 to 0.54.0 (#11447)
-* Bump the all group with 3 updates (#11450)
-* Bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0 (#11448)
-* Bump github.com/onsi/ginkgo/v2 from 2.17.2 to 2.19.0 (#11422)
-* Bump the all group with 2 updates (#11421)
-* Bump google.golang.org/grpc from 1.63.2 to 1.64.0 (#11423)
-* Bump the all group across 1 directory with 6 updates (#11407)
-* Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1 (#11406)
-* Bump the all group with 3 updates (#11404)
-* Bump Kubernetes version on images (#11403)
-* Bump golangci/golangci-lint-action from 4.0.0 to 5.0.0 (#11402)
-* Bump the all group with 4 updates (#11380)
-* Bump k8s.io/component-base from 0.29.3 to 0.30.0 (#11301)
-* Bump github.com/prometheus/common from 0.52.3 to 0.53.0 (#11300)
-* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#11285)
-* Bump golang.org/x/net in /images/kube-webhook-certgen/rootfs (#11284)
-* Bump the all group with 2 updates (#11266)
-* Bump azure/setup-helm from 3.5 to 4 (#11265)
-* Bump actions/add-to-project from 1.0.0 to 1.0.1 in the all group (#11264)
-* Bump google.golang.org/grpc from 1.63.0 to 1.63.2 (#11238)
-* Bump google.golang.org/grpc from 1.62.1 to 1.63.0 (#11234)
-* Bump github.com/prometheus/common from 0.51.1 to 0.52.2 (#11233)
-* Bump golang.org/x/crypto from 0.21.0 to 0.22.0 (#11232)
-* Bump github.com/prometheus/client_model in the all group (#11231)
-* Bump the all group with 3 updates (#11230)
-* Bump the all group with 2 updates (#11190)
-* Bump actions/add-to-project from 0.6.1 to 1.0.0 (#11189)
-* Bump the all group with 3 updates (#11166)
-* Bump github.com/prometheus/common from 0.50.0 to 0.51.1 (#11160)
-* Bump the all group with 4 updates (#11140)
-* Bump the all group with 1 update (#11136)
-* Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /magefiles (#11127)
-* Bump google.golang.org/protobuf in /images/custom-error-pages/rootfs (#11128)
-* Bump google.golang.org/protobuf in /images/kube-webhook-certgen/rootfs (#11122)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.10.1...controller-v1.10.2
diff --git a/changelog/controller-1.10.3.md b/changelog/controller-1.10.3.md
deleted file mode 100644
index 1cbc77951..000000000
--- a/changelog/controller-1.10.3.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Changelog
-
-### controller-v1.10.3
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.10.3@sha256:b5a5082f8e508cc1aac1c0ef101dc2f87b63d51598a5747d81d6cf6e7ba058fd
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.10.3@sha256:9033e04bd3cd01f92414f8d5999c5095734d4caceb4923942298152a38373d4b
-
-### All changes:
-
-* Images: Trigger `controller` v1.10.3 build. (#11648)
-* Tests: Bump `test-runner` to v20240717-1fe74b5f. (#11646)
-* Images: Re-run `test-runner` build. (#11643)
-* Images: Trigger `test-runner` build. (#11639)
-* Images: Bump `NGINX_BASE` to v0.0.10. (#11637)
-* Images: Trigger NGINX build. (#11631)
-* bump testing runner (#11626)
-* remove modsecurity coreruleset test files from nginx image (#11619)
-* unskip the ocsp tests and update images to fix cfssl bug (#11615)
-* Fix indent in YAML for example pod (#11609)
-* Images: Bump `test-runner`. (#11604)
-* Images: Bump `NGINX_BASE` to v0.0.9. (#11601)
-* revert module upgrade (#11595)
-* README: Fix support matrix. (#11593)
-* Mage: Stop mutating release notes. (#11582)
-* Images: Bump `kube-webhook-certgen`. (#11583)
-
-### Dependency updates:
-
-* Bump github.com/prometheus/common from 0.54.0 to 0.55.0 (#11622)
-* Bump the all group with 5 updates (#11613)
-* Bump golang.org/x/crypto from 0.24.0 to 0.25.0 (#11579)
-* Bump google.golang.org/grpc from 1.64.0 to 1.65.0 (#11577)
-* Bump the all group with 4 updates (#11574)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.10.2...controller-v1.10.3
diff --git a/changelog/controller-1.10.4.md b/changelog/controller-1.10.4.md
deleted file mode 100644
index 9a4e8025b..000000000
--- a/changelog/controller-1.10.4.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# Changelog
-
-### controller-v1.10.4
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.10.4@sha256:505b9048c02dde3d6c8667bf0b52aba7b36adf7b03da34c47d5fa312d2d4c6fc
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.10.4@sha256:bf71acf6e71830a4470e2183e3bc93c4f006b954f8a05fb434242ef0f8a24858
-
-### All changes:
-
-* Chart: Bump Kube Webhook CertGen & OpenTelemetry. (#11811)
-* Images: Trigger controller build. (#11808)
-* Tests & Docs: Bump images. (#11804)
-* Images: Trigger failed builds. (#11801)
-* Images: Trigger other builds. (#11797)
-* Controller: Fix panic in alternative backend merging. (#11793)
-* Tests: Bump `e2e-test-runner` to v20240812-3f0129aa. (#11791)
-* Images: Trigger `test-runner` build. (#11786)
-* Images: Bump `NGINX_BASE` to v0.0.12. (#11783)
-* Images: Trigger NGINX build. (#11780)
-* Cloud Build: Add missing config, remove unused ones. (#11776)
-* Generate correct output on NumCPU() when using cgroups2 (#11775)
-* Cloud Build: Tweak timeouts. (#11762)
-* Cloud Build: Fix substitutions. (#11759)
-* Cloud Build: Some chores. (#11756)
-* Go: Bump to v1.22.6. (#11748)
-* Images: Bump `NGINX_BASE` to v0.0.11. (#11744)
-* Images: Trigger NGINX build. (#11736)
-* docs: update OpenSSL Roadmap link (#11734)
-* Go: Bump to v1.22.5. (#11731)
-* Docs: Fix typo in AWS LB Controller reference (#11724)
-* Perform some cleaning operations on line breaks. (#11722)
-* Missing anchors in regular expression. (#11718)
-* Docs: Fix `from-to-www` redirect description. (#11715)
-* Chart: Remove `isControllerTagValid`. (#11714)
-* Tests: Bump `e2e-test-runner` to v20240729-04899b27. (#11704)
-* Docs: Clarify `from-to-www` redirect direction. (#11692)
-* added real-client-ip faq (#11665)
-* Docs: Format NGINX configuration table. (#11660)
-
-### Dependency updates:
-
-* Bump github.com/onsi/ginkgo/v2 from 2.19.1 to 2.20.0 (#11772)
-* Bump the all group with 2 updates (#11770)
-* Bump golang.org/x/crypto from 0.25.0 to 0.26.0 (#11768)
-* Bump the all group with 3 updates (#11729)
-* Bump github.com/onsi/ginkgo/v2 from 2.19.0 to 2.19.1 in the all group (#11700)
-* Bump the all group with 2 updates (#11697)
-* Bump the all group with 4 updates (#11676)
-* Bump the all group with 2 updates (#11674)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.10.3...controller-v1.10.4
diff --git a/changelog/controller-1.10.5.md b/changelog/controller-1.10.5.md
deleted file mode 100644
index 82be0a608..000000000
--- a/changelog/controller-1.10.5.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# Changelog
-
-### controller-v1.10.5
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.10.5@sha256:c84d11b1f7bd14ebbf49918a7f0dc01b31c0c6e757e0129520ea93453096315c
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.10.5@sha256:030a43bdd5f0212a7e135cc4da76b15a6706ef65a6824eb4cc401f87a81c2987
-
-### All changes:
-
-* Images: Trigger controller build. (#12133)
-* Tests & Docs: Bump `e2e-test-echo` to v1.0.1. (#12146)
-* Images: Trigger `e2e-test-echo` build. (#12142)
-* Images: Drop `s390x`. (#12139)
-* Images: Build `s390x` controller. (#12128)
-* Chart: Bump Kube Webhook CertGen. (#12122)
-* Tests & Docs: Bump images. (#12120)
-* Cloud Build: Bump `gcb-docker-gcloud` to v20240718-5ef92b5c36. (#12116)
-* Images: Trigger other builds. (#12111)
-* Tests: Bump `e2e-test-runner` to v20241004-114a6abb. (#12104)
-* Images: Trigger `test-runner` build. (#12101)
-* Docs: Add a multi-tenant warning. (#12098)
-* Go: Bump to v1.22.8. (#12093)
-* Images: Bump `NGINX_BASE` to v0.1.0. (#12079)
-* Images: Trigger NGINX build. (#12077)
-* Images: Remove NGINX v1.21. (#12057)
-* GitHub: Improve Dependabot. (#12037)
-* Chart: Improve CI. (#12029)
-* Chart: Extend image tests. (#12026)
-* Docs: Add health check annotations for AWS. (#12021)
-* Docs: Convert `opentelemetry.md` from CRLF to LF. (#12007)
-* Chart: Test `controller.minAvailable` & `controller.maxUnavailable`. (#12001)
-* Chart: Align default backend `PodDisruptionBudget`. (#11998)
-* Metrics: Fix namespace in `nginx_ingress_controller_ssl_expire_time_seconds`. (#11985)
-* Chart: Improve default backend service account. (#11973)
-* Go: Bump to v1.22.7. (#11969)
-* Images: Bump OpenTelemetry C++ Contrib. (#11950)
-* Docs: Add note about `--watch-namespace`. (#11948)
-* Images: Use latest Alpine 3.20 everywhere. (#11945)
-* Fix minor typos (#11940)
-* Chart: Implement `controller.admissionWebhooks.service.servicePort`. (#11933)
-* Tests: Bump `e2e-test-runner` to v20240829-2c421762. (#11920)
-* Images: Trigger `test-runner` build. (#11918)
-* Chart: Add tests for `PrometheusRule` & `ServiceMonitor`. (#11888)
-* Annotations: Allow commas in URLs. (#11886)
-* CI: Grant checks write permissions to E2E Test Report. (#11884)
-* Update maxmind post link about geolite2 license changes (#11880)
-* Go: Sync `go.work.sum`. (#11876)
-* Replace deprecated queue method (#11858)
-* Auto-generate annotation docs (#11835)
-
-### Dependency updates:
-
-* Bump the actions group with 3 updates (#12150)
-* Bump golang.org/x/crypto from 0.27.0 to 0.28.0 (#12108)
-* Bump the actions group with 3 updates (#12096)
-* Bump sigs.k8s.io/mdtoc from 1.1.0 to 1.4.0 (#12088)
-* Bump github.com/prometheus/common from 0.59.1 to 0.60.0 (#12086)
-* Bump google.golang.org/grpc from 1.67.0 to 1.67.1 in the go group across 1 directory (#12084)
-* Bump k8s.io/cli-runtime from 0.30.0 to 0.31.1 (#12082)
-* Bump github/codeql-action from 3.26.9 to 3.26.10 in the actions group (#12054)
-* Bump the go group across 1 directory with 3 updates (#12052)
-* Bump k8s.io/kube-aggregator from 0.29.3 to 0.31.1 in /images/kube-webhook-certgen/rootfs (#12048)
-* Bump k8s.io/apimachinery from 0.23.1 to 0.31.1 in /images/ext-auth-example-authsvc/rootfs (#12044)
-* Bump github.com/prometheus/client_golang from 1.11.1 to 1.20.4 in /images/custom-error-pages/rootfs (#12045)
-* Bump the all group with 2 updates (#12035)
-* Bump github/codeql-action from 3.26.7 to 3.26.8 in the all group (#12015)
-* Bump google.golang.org/grpc from 1.66.2 to 1.67.0 (#12013)
-* Bump github.com/prometheus/client_golang from 1.20.3 to 1.20.4 in the all group (#12011)
-* Bump the all group with 2 updates (#11979)
-* Bump github/codeql-action from 3.26.6 to 3.26.7 in the all group (#11978)
-* Bump github.com/prometheus/common from 0.57.0 to 0.59.1 (#11960)
-* Bump golang.org/x/crypto from 0.26.0 to 0.27.0 (#11959)
-* Bump github.com/prometheus/client_golang from 1.20.2 to 1.20.3 in the all group (#11956)
-* Bump github.com/opencontainers/runc from 1.1.13 to 1.1.14 (#11929)
-* Bump the all group with 2 updates (#11924)
-* Bump github.com/onsi/ginkgo/v2 from 2.20.1 to 2.20.2 in the all group (#11912)
-* Bump google.golang.org/grpc from 1.65.0 to 1.66.0 (#11907)
-* Bump github.com/prometheus/common from 0.55.0 to 0.57.0 (#11906)
-* Bump github/codeql-action from 3.26.5 to 3.26.6 in the all group (#11905)
-* Bump the all group with 2 updates (#11870)
-* Bump github/codeql-action from 3.26.2 to 3.26.5 in the all group (#11869)
-* Bump github.com/prometheus/client_golang from 1.19.1 to 1.20.1 (#11848)
-* Bump sigs.k8s.io/controller-runtime from 0.18.4 to 0.19.0 (#11847)
-* Bump dario.cat/mergo from 1.0.0 to 1.0.1 in the all group (#11846)
-* Bump k8s.io/component-base from 0.30.3 to 0.31.0 (#11841)
-* Bump github/codeql-action from 3.26.0 to 3.26.2 in the all group (#11833)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.10.4...controller-v1.10.5
diff --git a/changelog/controller-1.10.6.md b/changelog/controller-1.10.6.md
deleted file mode 100644
index 695e418d8..000000000
--- a/changelog/controller-1.10.6.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# Changelog
-
-### controller-v1.10.6
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.10.6@sha256:b6fbd102255edb3ba8e5421feebe14fd3e94cf53d199af9e40687f536152189c
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.10.6@sha256:44ceedafc0e04a75521b5d472c1b6b5cc08afb8038b5bbfd79c21d066ccf300e
-
-### All changes:
-
-* Images: Trigger controller build. (#12611)
-* Chart: Bump Kube Webhook CertGen. (#12608)
-* Tests & Docs: Bump images. (#12605)
-* Images: Trigger other builds (2/2). (#12598)
-* Images: Trigger other builds (1/2). (#12597)
-* Tests: Bump `e2e-test-runner` to v20241224-68ed4e7b. (#12592)
-* Images: Trigger `test-runner` build. (#12586)
-* Images: Bump `NGINX_BASE` to v0.2.0. (#12584)
-* Images: Trigger NGINX build. (#12578)
-* Go: Clean `go.work.sum`. (#12575)
-* Repository: Update owners. (#12570)
-* Images: Bump `gcb-docker-gcloud` to v20241217-ff46a068cd. (#12563)
-* CI: Update KIND images. (#12559)
-* Images: Bump Alpine to v3.21. (#12530)
-* Docs: Add guide on how to set a Maintenance Page. (#12527)
-* rikatz is stepping down (#12518)
-* rikatz is stepping down (#12497)
-* Go: Bump to v1.23.4. (#12485)
-* Plugin: Bump `goreleaser` to v2. (#12442)
-* GitHub: Fix `exec` in issue template. (#12389)
-* CI: Update KIND images. (#12368)
-* Images: Bump `gcb-docker-gcloud` to v20241110-72bb0b1665. (#12341)
-* Go: Bump to v1.23.3. (#12339)
-* Auth TLS: Add `_` to redirect RegEx. (#12328)
-* Auth TLS: Improve redirect RegEx. (#12321)
-* Tests: Bump `e2e-test-runner` to v20241104-02a3933e. (#12314)
-* Images: Trigger `test-runner` build. (#12307)
-* Config: Fix panic on invalid `lua-shared-dict`. (#12282)
-* Docs: fix limit-rate-after references (#12280)
-* Chart: Rework ServiceMonitor. (#12268)
-* Chart: Add ServiceAccount tests. (#12266)
-* CI: Fix chart testing. (#12260)
-* [fix] fix nginx temp configs cleanup (#12224)
-* Chart: Suggest `matchLabelKeys` in Topology Spread Constraints. (#12204)
-* Docs: Add Pod Security Admission. (#12198)
-* Docs: Clarify external & service port in TCP/UDP services explanation. (#12194)
-
-### Dependency updates:
-
-* Bump k8s.io/apiextensions-apiserver from 0.31.3 to 0.32.0 (#12565)
-* Bump github.com/onsi/ginkgo/v2 from 2.22.0 to 2.22.1 (#12557)
-* Bump k8s.io/code-generator from 0.31.3 to 0.32.0 (#12552)
-* Bump k8s.io/cli-runtime from 0.31.3 to 0.32.0 (#12549)
-* Bump k8s.io/apiserver from 0.31.3 to 0.32.0 (#12546)
-* Bump the actions group with 2 updates (#12543)
-* Bump google.golang.org/grpc from 1.68.1 to 1.69.2 (#12540)
-* Bump k8s.io/client-go from 0.31.3 to 0.32.0 (#12514)
-* Bump github.com/opencontainers/runc from 1.2.2 to 1.2.3 in the go group across 1 directory (#12511)
-* Bump the actions group with 3 updates (#12508)
-* Bump k8s.io/kube-aggregator from 0.31.3 to 0.32.0 in /images/kube-webhook-certgen/rootfs (#12504)
-* Bump k8s.io/apimachinery from 0.31.3 to 0.32.0 in /images/ext-auth-example-authsvc/rootfs (#12501)
-* Bump golang.org/x/crypto from 0.30.0 to 0.31.0 (#12478)
-* Bump golang.org/x/crypto from 0.21.0 to 0.31.0 in /magefiles (#12473)
-* Bump github.com/prometheus/common from 0.60.1 to 0.61.0 (#12466)
-* Bump github/codeql-action from 3.27.5 to 3.27.6 in the actions group (#12463)
-* Bump the go group across 1 directory with 2 updates (#12459)
-* Bump github.com/onsi/ginkgo/v2 from 2.21.0 to 2.22.0 (#12425)
-* Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#12416)
-* Bump the go group across 3 directories with 10 updates (#12414)
-* Bump the actions group with 3 updates (#12410)
-* Bump github.com/opencontainers/runc from 1.2.1 to 1.2.2 in the go group across 1 directory (#12382)
-* Bump github/codeql-action from 3.27.1 to 3.27.4 in the actions group (#12375)
-* Bump golangci-lint on actions and disable deprecated linters (#12363)
-* Bump google.golang.org/grpc from 1.67.1 to 1.68.0 (#12356)
-* Bump the actions group with 3 updates (#12353)
-* Bump golang.org/x/crypto from 0.28.0 to 0.29.0 (#12351)
-* Bump github.com/fsnotify/fsnotify from 1.7.0 to 1.8.0 (#12297)
-* Bump github.com/opencontainers/runc from 1.2.0 to 1.2.1 in the go group across 1 directory (#12294)
-* Bump github.com/onsi/ginkgo/v2 from 2.20.2 to 2.21.0 (#12290)
-* Bump actions/dependency-review-action from 4.3.5 to 4.4.0 in the actions group (#12275)
-* Bump the go group across 3 directories with 11 updates (#12246)
-* Bump github.com/opencontainers/runc from 1.1.15 to 1.2.0 (#12241)
-* Bump the actions group with 5 updates (#12243)
-* Bump github.com/ncabatoff/process-exporter from 0.8.3 to 0.8.4 in the go group across 1 directory (#12219)
-* Bump aquasecurity/trivy-action from 0.27.0 to 0.28.0 in the actions group (#12215)
-* Bump github/codeql-action from 3.26.12 to 3.26.13 in the actions group (#12191)
-* Bump the go group across 2 directories with 1 update (#12189)
-* Bump the actions group with 2 updates (#12185)
-* Bump github.com/opencontainers/runc from 1.1.14 to 1.1.15 in the go group across 1 directory (#12184)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.10.5...controller-v1.10.6
diff --git a/changelog/controller-1.11.0.md b/changelog/controller-1.11.0.md
deleted file mode 100644
index d462f9574..000000000
--- a/changelog/controller-1.11.0.md
+++ /dev/null
@@ -1,164 +0,0 @@
-# Changelog
-
-### controller-v1.11.0
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.11.0@sha256:a886e56d532d1388c77c8340261149d974370edca1093af4c97a96fb1467cb39
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.11.0@sha256:f16dfed1c94d216b65e5dcb7508ab46148641a99649c5a700749db6f01a7039e
-
-### All changes:
-
-* update test runner to latest build (#11558)
-* add k8s 1.30 to ci build (#11554)
-* update test runner go base to 3.20 (#11552)
-* tag new test runner image with new nginx base 0.0.8 (#11551)
-* bump NGINX_BASE to v0.0.8 (#11544)
-* add ssl patches to nginx-1.25 image for coroutines to work in lua client hello and cert ssl blocks (#11535)
-* trigger build for NGINX-1.25 v0.0.8 (#11539)
-* bump alpine version to 3.20 to custom-error-pages (#11538)
-* fix: Ensure changes in MatchCN annotation are detected (#11529)
-* Docs: Add information about HTTP/3 support. (#11513)
-* Docs: Specify `ingressClass` for multi-controller setup. (#11493)
-* Docs: Improve default certificate usage. (#11504)
-* Upgrade OWASP_MODSECURITY_CRS_VERSION 3.3.5 to 4.4.0 and update docs (#11511)
-* docs: Update Ingress-NGINX v1.10.1 compatibility with Kubernetes v1.30 (#11495)
-* Update getting-started.md with new prerequisites (#11486)
-* [feature] bump nginx to 1.25.5 and add http3 module (#11470)
-* Fix boolean configuration (#11483)
-* Chores: Align security contacts & chart maintainers to actual owners. (#11465)
-* CI: Bump forgotten Ginkgo versions. (#11467)
-* Tests: Replace deprecated `grpc.Dial` by `grpc.NewClient`. (#11462)
-* Owners: Promote Gacko to admin. (#11463)
-* Chart: Make pod affinity templatable. (#11453)
-* fixed fastcgi userguide (#11454)
-* Remove unnecessary space character (#11434)
-* upgrade to alpine 3.20 (#11428)
-* fix for docs issue 11432 (#11433)
-* Update index.md (#11437)
-* update golang to 1.22.4 (#11427)
-* Chart: Fix `IngressClass` annotations. (#11416)
-* Chart: Make admission webhook patch job RBAC configurable. (#11376)
-* Merge pull request #11277 from strongjz/chart-1.10.1 (#11415)
-* Chart: Remove `controller.enableWorkerSerialReloads`. (#11400)
-* Adapt dashboards for Grafana 11 compatibility (#11399)
-* Rename variable to fix typo (#11395)
-* Fix helm install on cloud provider admonition block (#11394)
-* edited helm-install tips (#11393)
-* added info for aws helm install (#11390)
-* added multiplecontrollers-howto to faq (#11389)
-* removed tlsv1 & tlsv1.1 (#11343)
-* feat: Add grpc timeouts annotations (#11258)
-* sfix position of options (#11379)
-* add workflow to helm release and update ct for branch (#11378)
-* Accept user defined annotations in IngressClass (#11362)
-* Docs: Remove opentracing and zipkin from docs (#11361)
-* Allow configuring nginx worker reload behaviour, to prevent multiple concurrent worker reloads which can lead to high resource usage and OOMKill (#10884)
-* chore(deps): group update k8s.io packages to v0.30.0 (#11344)
-* Fix function name in comment (#11296)
-* fix path in file changed detected message (#11271)
-* chore: fix function names in comment (#11280)
-* fix: update kube version requirement to 1.21 (#11275)
-* release helm chart from release branch (#11276)
-* update k8s version to latest kind release (#11240)
-* feat: add annotation to allow to add custom response headers (#9742)
-* remove _ssl_expire_time_seconds metric by identifier (#9706)
-* update post submit helm ci and clean up (#11220)
-* Chart: Add unit tests for default backend & topology spread constraints. (#11218)
-* sort default backend hpa metrics (#11215)
-* updated certgen image shatag (#11214)
-* feature(default_backend): topologySpreadConstraints on default backend (#11197)
-* bumped certgeimage tag (#11212)
-* changed testrunner image sha (#11207)
-* updated baseimage & deleted a useless file (#11208)
-* Chart: Make `controller.config` templatable. (#11181)
-* chunking related faq update (#11196)
-* bump ginkgo to 2-17-1 in testrunner (#11202)
-* Owners: Promote Gacko to `ingress-nginx-maintainers` & `ingress-nginx-reviewers`. (#11165)
-* Fix-semver (#11193)
-* refactor helm ci tests part I (#11178)
-* fixes brotli build issue (#10484)
-* bump ginkgo to v2.17.1 (#11177)
-* Proposal: e2e tests for regex patterns (#11174)
-* Controller: Make Leader Election TTL configurable. (#11142)
-* Chores: Remove recently added whitespaces. (#11156)
-* Add GRPC Buffer Size to the Configmap (#11155)
-* fix geoip2 configuration docs (#11150)
-* feature(geoip2_autoreload): Enable GeoIP2 auto_reload config (#11079)
-* Chart: Add IngressClass aliases. (#11109)
-* Fix typos in OTel doc (#11081)
-* Chart: Render `controller.ingressClassResource.parameters` natively. (#11108)
-* Fix admission controller logging of `admissionTime` and `testedConfigurationSize` (#11089)
-* Chart: Align HPA & KEDA conditions. (#11110)
-* Chart: Add Gacko to maintainers. Again. (#11107)
-* Chart: Improve IngressClass documentation. (#11104)
-* Chart: Deploy `PodDisruptionBudget` with KEDA. (#11032)
-* Undo #11062 since it breaks the nginx config (#11082)
-* [mTLS] Fix acme verification when mTLS and Client CN verification is enabled (#11062)
-* golangci-lint update, ci cleanup, group dependabot updates (#11071)
-* bump golang (#11070)
-* feature(leader_election): flag to disable leader election feature on controller (#11064)
-* docs: update the 404 link to FAQ (#11069)
-* Update README.md (#11065)
-* quotes around numbers fort ports definitions (#11052)
-
-### Dependency updates:
-
-* Bump the all group with 2 updates (#11523)
-* Bump k8s.io/klog/v2 from 2.130.0 to 2.130.1 in the all group (#11499)
-* Bump aquasecurity/trivy-action from 0.22.0 to 0.23.0 in the all group (#11497)
-* Bump k8s.io/klog/v2 from 2.120.1 to 2.130.0 (#11475)
-* Bump the all group with 3 updates (#11474)
-* Bump the all group with 2 updates (#11476)
-* Bump golang.org/x/crypto from 0.23.0 to 0.24.0 (#11442)
-* Bump the all group with 3 updates (#11443)
-* Bump sigs.k8s.io/controller-runtime in the all group (#11440)
-* Bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0 (#11444)
-* Bump github.com/prometheus/common from 0.53.0 to 0.54.0 (#11441)
-* Bump the all group with 2 updates (#11419)
-* Bump github.com/onsi/ginkgo/v2 from 2.17.2 to 2.19.0 (#11418)
-* Bump google.golang.org/grpc from 1.63.2 to 1.64.0 (#11417)
-* Bump the all group across 1 directory with 3 updates (#11384)
-* Bump the all group across 1 directory with 6 updates (#11383)
-* Bump golang.org/x/crypto from 0.22.0 to 0.23.0 (#11357)
-* Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1 (#11355)
-* Bump the all group with 3 updates (#11348)
-* Bump Kubernetes version on images (#11346)
-* Bump sigs.k8s.io/controller-runtime from 0.17.3 to 0.18.1 (#11345)
-* Bump golangci/golangci-lint-action from 4.0.0 to 5.0.0 (#11328)
-* Bump the all group with 4 updates (#11327)
-* Bump k8s.io/component-base from 0.29.3 to 0.30.0 (#11291)
-* Bump github.com/prometheus/common from 0.52.3 to 0.53.0 (#11290)
-* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#11282)
-* Bump golang.org/x/net in /images/kube-webhook-certgen/rootfs (#11283)
-* Bump the all group with 2 updates (#11261)
-* Bump azure/setup-helm from 3.5 to 4 (#11263)
-* Bump actions/add-to-project from 1.0.0 to 1.0.1 in the all group (#11262)
-* Bump google.golang.org/grpc from 1.63.0 to 1.63.2 (#11237)
-* Bump google.golang.org/grpc from 1.62.1 to 1.63.0 (#11228)
-* Bump github.com/prometheus/common from 0.51.1 to 0.52.2 (#11227)
-* Bump golang.org/x/crypto from 0.21.0 to 0.22.0 (#11229)
-* Bump github.com/prometheus/client_model in the all group (#11226)
-* Bump the all group with 3 updates (#11225)
-* Bump the all group with 2 updates (#11183)
-* Bump actions/add-to-project from 0.6.1 to 1.0.0 (#11184)
-* Bump the all group with 3 updates (#11157)
-* Bump github.com/prometheus/common from 0.50.0 to 0.51.1 (#11159)
-* Bump the all group with 4 updates (#11133)
-* Bump the all group with 1 update (#11134)
-* Bump google.golang.org/protobuf in /images/custom-error-pages/rootfs (#11119)
-* Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /magefiles (#11121)
-* Bump google.golang.org/protobuf in /images/kube-webhook-certgen/rootfs (#11120)
-* Bump github.com/onsi/ginkgo/v2 from 2.15.0 to 2.16.0 (#11076)
-* Bump the all group with 1 update (#11073)
-* Bump the all group with 1 update (#11072)
-* Bump github.com/prometheus/common from 0.49.0 to 0.50.0 (#11075)
-* Bump actions/download-artifact from 4.1.2 to 4.1.4 (#11059)
-* Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#11055)
-* Bump docker/setup-buildx-action from 3.0.0 to 3.1.0 (#11057)
-* Bump github.com/prometheus/common from 0.48.0 to 0.49.0 (#11056)
-* Bump github/codeql-action from 3.24.5 to 3.24.6 (#11060)
-* Bump aquasecurity/trivy-action from 0.17.0 to 0.18.0 (#11058)
-* Bump dorny/paths-filter from 3.0.1 to 3.0.2 (#11061)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.10.2...controller-v1.11.0
diff --git a/changelog/controller-1.11.1.md b/changelog/controller-1.11.1.md
deleted file mode 100644
index a93e02e40..000000000
--- a/changelog/controller-1.11.1.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# Changelog
-
-### controller-v1.11.1
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.11.1@sha256:e6439a12b52076965928e83b7b56aae6731231677b01e81818bce7fa5c60161a
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.11.1@sha256:7cabe4bd7558bfdf5b707976d7be56fd15ffece735d7c90fc238b6eda290fd8d
-
-### All changes:
-
-* Tests: Bump `test-runner` to v20240717-1fe74b5f. (#11647)
-* Images: Re-run `test-runner` build. (#11644)
-* Images: Trigger `test-runner` build. (#11640)
-* Images: Bump `NGINX_BASE` to v0.0.10. (#11638)
-* Images: Trigger NGINX build. (#11632)
-* bump testing runner (#11627)
-* remove modsecurity coreruleset test files from nginx image (#11620)
-* unskip the ocsp tests and update images to fix cfssl bug (#11616)
-* Fix indent in YAML for example pod (#11610)
-* Images: Bump `test-runner`. (#11605)
-* Images: Bump `NGINX_BASE` to v0.0.9. (#11602)
-* revert module upgrade (#11597)
-* Release: Apply changes from `main`. (#11589)
-* Mage: Stop mutating release notes. (#11581)
-* Images: Bump `kube-webhook-certgen`. (#11584)
-* update test runner to latest build (#11558)
-* add k8s 1.30 to ci build (#11554)
-* update test runner go base to 3.20 (#11552)
-* tag new test runner image with new nginx base 0.0.8 (#11551)
-* bump NGINX_BASE to v0.0.8 (#11544)
-* add ssl patches to nginx-1.25 image for coroutines to work in lua client hello and cert ssl blocks (#11535)
-* trigger build for NGINX-1.25 v0.0.8 (#11539)
-* bump alpine version to 3.20 to custom-error-pages (#11538)
-* fix: Ensure changes in MatchCN annotation are detected (#11529)
-
-### Dependency updates:
-
-* Bump github.com/prometheus/common from 0.54.0 to 0.55.0 (#11621)
-* Bump the all group with 5 updates (#11614)
-* Bump golang.org/x/crypto from 0.24.0 to 0.25.0 (#11580)
-* Bump google.golang.org/grpc from 1.64.0 to 1.65.0 (#11576)
-* Bump the all group with 4 updates (#11575)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.11.0...controller-v1.11.1
diff --git a/changelog/controller-1.11.2.md b/changelog/controller-1.11.2.md
deleted file mode 100644
index 0979af15d..000000000
--- a/changelog/controller-1.11.2.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# Changelog
-
-### controller-v1.11.2
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.11.2@sha256:d5f8217feeac4887cb1ed21f27c2674e58be06bd8f5184cacea2a69abaf78dce
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.11.2@sha256:21b55a2f0213a18b91612a8c0850167e00a8e34391fd595139a708f9c047e7a8
-
-### All changes:
-
-* Chart: Bump Kube Webhook CertGen & OpenTelemetry. (#11812)
-* Images: Trigger controller build. (#11807)
-* Tests & Docs: Bump images. (#11805)
-* Images: Trigger failed builds. (#11802)
-* Images: Trigger other builds. (#11798)
-* Controller: Fix panic in alternative backend merging. (#11794)
-* Tests: Bump `e2e-test-runner` to v20240812-3f0129aa. (#11792)
-* Images: Trigger `test-runner` build. (#11787)
-* Images: Bump `NGINX_BASE` to v0.0.12. (#11784)
-* Images: Trigger NGINX build. (#11781)
-* Cloud Build: Add missing config, remove unused ones. (#11777)
-* Generate correct output on NumCPU() when using cgroups2 (#11778)
-* Cloud Build: Tweak timeouts. (#11763)
-* Cloud Build: Fix substitutions. (#11760)
-* Cloud Build: Some chores. (#11757)
-* Go: Bump to v1.22.6. (#11749)
-* Images: Bump `NGINX_BASE` to v0.0.11. (#11743)
-* Images: Trigger NGINX build. (#11737)
-* docs: update OpenSSL Roadmap link (#11733)
-* Go: Bump to v1.22.5. (#11732)
-* Docs: Fix typo in AWS LB Controller reference (#11725)
-* Perform some cleaning operations on line breaks. (#11721)
-* Missing anchors in regular expression. (#11719)
-* Docs: Fix `from-to-www` redirect description. (#11716)
-* Chart: Remove `isControllerTagValid`. (#11713)
-* Tests: Bump `e2e-test-runner` to v20240729-04899b27. (#11705)
-* Docs: Clarify `from-to-www` redirect direction. (#11693)
-* added real-client-ip faq (#11664)
-* Docs: Format NGINX configuration table. (#11662)
-* Docs: Update version in `deploy/index.md`. (#11652)
-
-### Dependency updates:
-
-* Bump github.com/onsi/ginkgo/v2 from 2.19.1 to 2.20.0 (#11773)
-* Bump the all group with 2 updates (#11771)
-* Bump golang.org/x/crypto from 0.25.0 to 0.26.0 (#11769)
-* Bump the all group with 3 updates (#11728)
-* Bump github.com/onsi/ginkgo/v2 from 2.19.0 to 2.19.1 in the all group (#11701)
-* Bump the all group with 2 updates (#11698)
-* Bump the all group with 4 updates (#11677)
-* Bump the all group with 2 updates (#11675)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.11.1...controller-v1.11.2
diff --git a/changelog/controller-1.11.3.md b/changelog/controller-1.11.3.md
deleted file mode 100644
index f5c373015..000000000
--- a/changelog/controller-1.11.3.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# Changelog
-
-### controller-v1.11.3
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.11.3@sha256:d56f135b6462cfc476447cfe564b83a45e8bb7da2774963b00d12161112270b7
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.11.3@sha256:22701f0fc0f2dd209ef782f4e281bfe2d8cccd50ededa00aec88e0cdbe7edd14
-
-### All changes:
-
-* Images: Trigger controller build. (#12134)
-* Tests & Docs: Bump `e2e-test-echo` to v1.0.1. (#12145)
-* Images: Trigger `e2e-test-echo` build. (#12141)
-* Images: Drop `s390x`. (#12138)
-* Images: Build `s390x` controller. (#12127)
-* Chart: Bump Kube Webhook CertGen. (#12123)
-* Tests & Docs: Bump images. (#12121)
-* Cloud Build: Bump `gcb-docker-gcloud` to v20240718-5ef92b5c36. (#12117)
-* Images: Trigger other builds. (#12112)
-* Tests: Bump `e2e-test-runner` to v20241004-114a6abb. (#12105)
-* Images: Trigger `test-runner` build. (#12102)
-* Docs: Add a multi-tenant warning. (#12099)
-* Go: Bump to v1.22.8. (#12094)
-* Images: Bump `NGINX_BASE` to v0.1.0. (#12080)
-* Images: Trigger NGINX build. (#12076)
-* Images: Remove NGINX v1.21. (#12058)
-* GitHub: Improve Dependabot. (#12038)
-* Chart: Improve CI. (#12030)
-* Chart: Extend image tests. (#12027)
-* Docs: Add health check annotations for AWS. (#12020)
-* Docs: Convert `opentelemetry.md` from CRLF to LF. (#12006)
-* Chart: Test `controller.minAvailable` & `controller.maxUnavailable`. (#12002)
-* Chart: Align default backend `PodDisruptionBudget`. (#11999)
-* Metrics: Fix namespace in `nginx_ingress_controller_ssl_expire_time_seconds`. (#11986)
-* Chart: Improve default backend service account. (#11974)
-* Go: Bump to v1.22.7. (#11970)
-* Images: Bump OpenTelemetry C++ Contrib. (#11951)
-* Docs: Add note about `--watch-namespace`. (#11949)
-* Images: Use latest Alpine 3.20 everywhere. (#11946)
-* Fix minor typos (#11941)
-* Chart: Implement `controller.admissionWebhooks.service.servicePort`. (#11934)
-* Tests: Bump `e2e-test-runner` to v20240829-2c421762. (#11921)
-* Images: Trigger `test-runner` build. (#11917)
-* Chart: Add tests for `PrometheusRule` & `ServiceMonitor`. (#11889)
-* Annotations: Allow commas in URLs. (#11887)
-* CI: Grant checks write permissions to E2E Test Report. (#11885)
-* Chart: Use generic values for `ConfigMap` test. (#11879)
-* Update maxmind post link about geolite2 license changes (#11881)
-* Go: Sync `go.work.sum`. (#11875)
-* Replace deprecated queue method (#11859)
-* Auto-generate annotation docs (#11831)
-
-### Dependency updates:
-
-* Bump the actions group with 3 updates (#12149)
-* Bump golang.org/x/crypto from 0.27.0 to 0.28.0 (#12109)
-* Bump the actions group with 3 updates (#12097)
-* Bump sigs.k8s.io/mdtoc from 1.1.0 to 1.4.0 (#12089)
-* Bump github.com/prometheus/common from 0.59.1 to 0.60.0 (#12087)
-* Bump google.golang.org/grpc from 1.67.0 to 1.67.1 in the go group across 1 directory (#12085)
-* Bump k8s.io/cli-runtime from 0.30.0 to 0.31.1 (#12083)
-* Bump github/codeql-action from 3.26.9 to 3.26.10 in the actions group (#12055)
-* Bump the go group across 1 directory with 3 updates (#12053)
-* Bump k8s.io/kube-aggregator from 0.29.3 to 0.31.1 in /images/kube-webhook-certgen/rootfs (#12049)
-* Bump k8s.io/apimachinery from 0.23.1 to 0.31.1 in /images/ext-auth-example-authsvc/rootfs (#12047)
-* Bump github.com/prometheus/client_golang from 1.11.1 to 1.20.4 in /images/custom-error-pages/rootfs (#12046)
-* Bump the all group with 2 updates (#12036)
-* Bump github/codeql-action from 3.26.7 to 3.26.8 in the all group (#12016)
-* Bump google.golang.org/grpc from 1.66.2 to 1.67.0 (#12014)
-* Bump github.com/prometheus/client_golang from 1.20.3 to 1.20.4 in the all group (#12012)
-* Bump the all group with 2 updates (#11981)
-* Bump github/codeql-action from 3.26.6 to 3.26.7 in the all group (#11980)
-* Bump github.com/prometheus/common from 0.57.0 to 0.59.1 (#11961)
-* Bump golang.org/x/crypto from 0.26.0 to 0.27.0 (#11958)
-* Bump github.com/prometheus/client_golang from 1.20.2 to 1.20.3 in the all group (#11957)
-* Bump github.com/opencontainers/runc from 1.1.13 to 1.1.14 (#11930)
-* Bump the all group with 2 updates (#11925)
-* Bump github.com/onsi/ginkgo/v2 from 2.20.1 to 2.20.2 in the all group (#11913)
-* Bump google.golang.org/grpc from 1.65.0 to 1.66.0 (#11910)
-* Bump github.com/prometheus/common from 0.55.0 to 0.57.0 (#11909)
-* Bump github/codeql-action from 3.26.5 to 3.26.6 in the all group (#11908)
-* Bump the all group with 2 updates (#11871)
-* Bump github/codeql-action from 3.26.2 to 3.26.5 in the all group (#11868)
-* Bump github.com/prometheus/client_golang from 1.19.1 to 1.20.1 (#11840)
-* Bump sigs.k8s.io/controller-runtime from 0.18.4 to 0.19.0 (#11839)
-* Bump dario.cat/mergo from 1.0.0 to 1.0.1 in the all group (#11837)
-* Bump k8s.io/component-base from 0.30.3 to 0.31.0 (#11836)
-* Bump github/codeql-action from 3.26.0 to 3.26.2 in the all group (#11834)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.11.2...controller-v1.11.3
diff --git a/changelog/controller-1.11.4.md b/changelog/controller-1.11.4.md
deleted file mode 100644
index a0870d060..000000000
--- a/changelog/controller-1.11.4.md
+++ /dev/null
@@ -1,94 +0,0 @@
-# Changelog
-
-### controller-v1.11.4
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.11.4@sha256:981a97d78bee3109c0b149946c07989f8f1478a9265031d2d23dea839ba05b52
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.11.4@sha256:f29d0f9e7a9ef4947eda59ed0c09ec13380b13639d1518cf1ab8ec09c3e22ef8
-
-### All changes:
-
-* Images: Trigger controller build. (#12610)
-* Chart: Bump Kube Webhook CertGen. (#12607)
-* Tests & Docs: Bump images. (#12604)
-* Images: Trigger other builds (2/2). (#12600)
-* Images: Trigger other builds (1/2). (#12596)
-* Tests: Bump `e2e-test-runner` to v20241224-68ed4e7b. (#12591)
-* Images: Trigger `test-runner` build. (#12588)
-* Images: Bump `NGINX_BASE` to v0.2.0. (#12583)
-* Images: Trigger NGINX build. (#12577)
-* Go: Clean `go.work.sum`. (#12574)
-* Repository: Update owners. (#12569)
-* Images: Bump `gcb-docker-gcloud` to v20241217-ff46a068cd. (#12562)
-* CI: Update KIND images. (#12558)
-* Images: Bump Alpine to v3.21. (#12529)
-* Docs: Add guide on how to set a Maintenance Page. (#12526)
-* rikatz is stepping down (#12517)
-* rikatz is stepping down (#12495)
-* Go: Bump to v1.23.4. (#12484)
-* Plugin: Bump `goreleaser` to v2. (#12441)
-* GitHub: Fix `exec` in issue template. (#12388)
-* CI: Update KIND images. (#12365)
-* Images: Bump `gcb-docker-gcloud` to v20241110-72bb0b1665. (#12343)
-* Go: Bump to v1.23.3. (#12338)
-* Auth TLS: Add `_` to redirect RegEx. (#12327)
-* Auth TLS: Improve redirect RegEx. (#12322)
-* Update custom headers annotation documentation (#12319)
-* Tests: Bump `e2e-test-runner` to v20241104-02a3933e. (#12313)
-* Images: Trigger `test-runner` build. (#12306)
-* Config: Fix panic on invalid `lua-shared-dict`. (#12284)
-* Docs: fix limit-rate-after references (#12279)
-* Chart: Rework ServiceMonitor. (#12270)
-* Chart: Add ServiceAccount tests. (#12264)
-* CI: Fix chart testing. (#12259)
-* [fix] fix nginx temp configs cleanup (#12223)
-* Chart: Suggest `matchLabelKeys` in Topology Spread Constraints. (#12203)
-* Docs: Add Pod Security Admission. (#12197)
-* Docs: Clarify external & service port in TCP/UDP services explanation. (#12193)
-* Docs: Goodbye, v1.10. (#12159)
-
-### Dependency updates:
-
-* Bump k8s.io/apiextensions-apiserver from 0.31.3 to 0.32.0 (#12567)
-* Bump github.com/onsi/ginkgo/v2 from 2.22.0 to 2.22.1 (#12556)
-* Bump k8s.io/code-generator from 0.31.3 to 0.32.0 (#12551)
-* Bump k8s.io/cli-runtime from 0.31.3 to 0.32.0 (#12548)
-* Bump k8s.io/apiserver from 0.31.3 to 0.32.0 (#12545)
-* Bump the actions group with 2 updates (#12542)
-* Bump google.golang.org/grpc from 1.68.1 to 1.69.2 (#12539)
-* Bump k8s.io/client-go from 0.31.3 to 0.32.0 (#12513)
-* Bump github.com/opencontainers/runc from 1.2.2 to 1.2.3 in the go group across 1 directory (#12510)
-* Bump the actions group with 3 updates (#12507)
-* Bump k8s.io/kube-aggregator from 0.31.3 to 0.32.0 in /images/kube-webhook-certgen/rootfs (#12503)
-* Bump k8s.io/apimachinery from 0.31.3 to 0.32.0 in /images/ext-auth-example-authsvc/rootfs (#12500)
-* Bump golang.org/x/crypto from 0.30.0 to 0.31.0 (#12477)
-* Bump golang.org/x/crypto from 0.21.0 to 0.31.0 in /magefiles (#12475)
-* Bump github.com/prometheus/common from 0.60.1 to 0.61.0 (#12465)
-* Bump github/codeql-action from 3.27.5 to 3.27.6 in the actions group (#12462)
-* Bump the go group across 1 directory with 2 updates (#12458)
-* Bump github.com/onsi/ginkgo/v2 from 2.21.0 to 2.22.0 (#12427)
-* Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#12417)
-* Bump the go group across 3 directories with 10 updates (#12415)
-* Bump the actions group with 3 updates (#12411)
-* Bump github.com/opencontainers/runc from 1.2.1 to 1.2.2 in the go group across 1 directory (#12381)
-* Bump github/codeql-action from 3.27.1 to 3.27.4 in the actions group (#12374)
-* Bump golangci-lint on actions and disable deprecated linters (#12362)
-* Bump google.golang.org/grpc from 1.67.1 to 1.68.0 (#12355)
-* Bump the actions group with 3 updates (#12352)
-* Bump golang.org/x/crypto from 0.28.0 to 0.29.0 (#12350)
-* Bump github.com/fsnotify/fsnotify from 1.7.0 to 1.8.0 (#12298)
-* Bump github.com/opencontainers/runc from 1.2.0 to 1.2.1 in the go group across 1 directory (#12295)
-* Bump github.com/onsi/ginkgo/v2 from 2.20.2 to 2.21.0 (#12289)
-* Bump actions/dependency-review-action from 4.3.5 to 4.4.0 in the actions group (#12274)
-* Bump the go group across 3 directories with 11 updates (#12245)
-* Bump github.com/opencontainers/runc from 1.1.15 to 1.2.0 (#12239)
-* Bump the actions group with 5 updates (#12240)
-* Bump github.com/ncabatoff/process-exporter from 0.8.3 to 0.8.4 in the go group across 1 directory (#12220)
-* Bump aquasecurity/trivy-action from 0.27.0 to 0.28.0 in the actions group (#12216)
-* Bump github/codeql-action from 3.26.12 to 3.26.13 in the actions group (#12190)
-* Bump the go group across 2 directories with 1 update (#12187)
-* Bump the actions group with 2 updates (#12181)
-* Bump github.com/opencontainers/runc from 1.1.14 to 1.1.15 in the go group across 1 directory (#12179)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.11.3...controller-v1.11.4
diff --git a/changelog/controller-1.12.0-beta.0.md b/changelog/controller-1.12.0-beta.0.md
deleted file mode 100644
index 5f2fa9d74..000000000
--- a/changelog/controller-1.12.0-beta.0.md
+++ /dev/null
@@ -1,216 +0,0 @@
-# Changelog
-
-### controller-v1.12.0-beta.0
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.12.0-beta.0@sha256:9724476b928967173d501040631b23ba07f47073999e80e34b120e8db5f234d5
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.12.0-beta.0@sha256:6e2f8f52e1f2571ff65bc4fc4826d5282d5def5835ec4ab433dcb8e659b2fbac
-
-### All changes:
-
-* Images: Trigger controller build. (#12154)
-* ⚠️ Metrics: Disable by default. (#12153) ⚠️
-
- This changes the default of the following CLI arguments:
-
- * `--enable-metrics` gets disabled by default.
-
-* Tests & Docs: Bump `e2e-test-echo` to v1.0.1. (#12147)
-* Images: Trigger `e2e-test-echo` build. (#12140)
-* ⚠️ Images: Drop `s390x`. (#12137) ⚠️
-
- Support for the `s390x` architecture has already been removed from the controller image. This also removes it from the NGINX base image and CI relevant images.
-
-* Images: Build `s390x` controller. (#12126)
-* Chart: Bump Kube Webhook CertGen. (#12119)
-* Tests & Docs: Bump images. (#12118)
-* Cloud Build: Bump `gcb-docker-gcloud` to v20240718-5ef92b5c36. (#12113)
-* Images: Trigger other builds. (#12110)
-* Tests: Bump `e2e-test-runner` to v20241004-114a6abb. (#12103)
-* Images: Trigger `test-runner` build. (#12100)
-* Docs: Add a multi-tenant warning. (#12091)
-* Go: Bump to v1.22.8. (#12069)
-* Images: Bump `NGINX_BASE` to v1.0.0. (#12066)
-* Images: Trigger NGINX build. (#12063)
-* Images: Remove NGINX v1.21. (#12031)
-* Chart: Add `controller.metrics.service.enabled`. (#12056)
-* GitHub: Improve Dependabot. (#12033)
-* Chart: Add `global.image.registry`. (#12028)
-* ⚠️ Images: Remove OpenTelemetry. (#12024) ⚠️
-
- OpenTelemetry is still supported, but since the module is built into the controller image since v1.10, we hereby remove the init container and image which were used to install it upon controller startup.
-
-* Chart: Improve CI. (#12003)
-* Chart: Extend image tests. (#12025)
-* Chart: Add `controller.progressDeadlineSeconds`. (#12017)
-* Docs: Add health check annotations for AWS. (#12018)
-* Docs: Convert `opentelemetry.md` from CRLF to LF. (#12005)
-* Chart: Implement `unhealthyPodEvictionPolicy`. (#11992)
-* Chart: Add `defaultBackend.maxUnavailable`. (#11995)
-* Chart: Test `controller.minAvailable` & `controller.maxUnavailable`. (#12000)
-* Chart: Align default backend `PodDisruptionBudget`. (#11993)
-* Metrics: Fix namespace in `nginx_ingress_controller_ssl_expire_time_seconds`. (#10274)
-* ⚠️ Chart: Remove Pod Security Policy. (#11971) ⚠️
-
- This removes Pod Security Policies and related resources from the chart.
-
-* Chart: Improve default backend service account. (#11972)
-* Go: Bump to v1.22.7. (#11943)
-* NGINX: Remove inline Lua from template. (#11806)
-* Images: Bump OpenTelemetry C++ Contrib. (#11629)
-* Docs: Add note about `--watch-namespace`. (#11947)
-* Images: Use latest Alpine 3.20 everywhere. (#11944)
-* Fix minor typos (#11935)
-* Chart: Implement `controller.admissionWebhooks.service.servicePort`. (#11931)
-* Allow any protocol for cors origins (#11153)
-* Tests: Bump `e2e-test-runner` to v20240829-2c421762. (#11919)
-* Images: Trigger `test-runner` build. (#11916)
-* Chart: Add `controller.metrics.prometheusRule.annotations`. (#11849)
-* Chart: Add tests for `PrometheusRule` & `ServiceMonitor`. (#11883)
-* Annotations: Allow commas in URLs. (#11882)
-* CI: Grant checks write permissions to E2E Test Report. (#11862)
-* Chart: Use generic values for `ConfigMap` test. (#11877)
-* Security: Follow-up on recent changes. (#11874)
-* Lua: Remove plugins from `.luacheckrc` & E2E docs. (#11872)
-* Dashboard: Remove `ingress_upstream_latency_seconds`. (#11878)
-* Metrics: Add `--metrics-per-undefined-host` argument. (#11818)
-* Update maxmind post link about geolite2 license changes (#11861)
-* ⚠️ Remove global-rate-limit feature (#11851) ⚠️
-
- This removes the following configuration options:
-
- * `global-rate-limit-memcached-host`
- * `global-rate-limit-memcached-port`
- * `global-rate-limit-memcached-connect-timeout`
- * `global-rate-limit-memcached-max-idle-timeout`
- * `global-rate-limit-memcached-pool-size`
- * `global-rate-limit-status-code`
-
- It also removes the following annotations:
-
- * `global-rate-limit`
- * `global-rate-limit-window`
- * `global-rate-limit-key`
- * `global-rate-limit-ignored-cidrs`
-
-* Revert "docs: Add deployment for AWS NLB Proxy." (#11857)
-* Add custom code handling for temporal redirect (#10651)
-* Add native histogram support for histogram metrics (#9971)
-* Replace deprecated queue method (#11853)
-* ⚠️ Enable security features by default (#11819) ⚠️
-
- This changes the default of the following CLI arguments:
-
- * `--enable-annotation-validation` gets enabled by default.
-
- It also changes the default of the following configuration options:
-
- * `allow-cross-namespace-resources` gets disabled by default.
- * `annotations-risk-level` gets lowered to "High" by default.
- * `strict-validate-path-type` gets enabled by default.
-
-* docs: Add deployment for AWS NLB Proxy. (#9565)
-* ⚠️ Remove 3rd party lua plugin support (#11821) ⚠️
-
- This removes the following configuration options:
-
- * `plugins`
-
- It also removes support for user provided Lua plugins in the `/etc/nginx/lua/plugins` directory.
-
-* Auto-generate annotation docs (#11820)
-* ⚠️ Metrics: Remove `ingress_upstream_latency_seconds`. (#11795) ⚠️
-
- This metric has already been deprecated and is now getting removed.
-
-* Release controller v1.11.2/v1.10.4 & chart v4.11.2/v4.10.4. (#11816)
-* Chart: Bump Kube Webhook CertGen & OpenTelemetry. (#11809)
-* Tests & Docs: Bump images. (#11803)
-* Images: Trigger failed builds. (#11800)
-* Images: Trigger other builds. (#11796)
-* Controller: Fix panic in alternative backend merging. (#11789)
-* Tests: Bump `e2e-test-runner` to v20240812-3f0129aa. (#11788)
-* Images: Trigger `test-runner` build. (#11785)
-* Images: Bump `NGINX_BASE` to v0.0.12. (#11782)
-* Images: Trigger NGINX build. (#11779)
-* Cloud Build: Add missing config, remove unused ones. (#11774)
-* Cloud Build: Tweak timeouts. (#11761)
-* Cloud Build: Fix substitutions. (#11758)
-* Cloud Build: Some chores. (#11633)
-* Go: Bump to v1.22.6. (#11747)
-* Images: Bump `NGINX_BASE` to v0.0.11. (#11741)
-* Images: Trigger NGINX build. (#11735)
-* docs: update OpenSSL Roadmap link (#11730)
-* Go: Bump to v1.22.5. (#11634)
-* Docs: Fix typo in AWS LB Controller reference (#11723)
-* Perform some cleaning operations on line breaks. (#11720)
-* Missing anchors in regular expression. (#11717)
-* Docs: Fix `from-to-www` redirect description. (#11712)
-* Chart: Remove `isControllerTagValid`. (#11710)
-* Tests: Bump `e2e-test-runner` to v20240729-04899b27. (#11702)
-* Chart: Explicitly set `runAsGroup`. (#11679)
-* Docs: Clarify `from-to-www` redirect direction. (#11682)
-* added real-client-ip faq (#11663)
-* Docs: Format NGINX configuration table. (#11659)
-* Release controller v1.11.1/v1.10.3 & chart v4.11.1/v4.10.3. (#11654)
-* Tests: Bump `test-runner` to v20240717-1fe74b5f. (#11645)
-* Images: Trigger `test-runner` build. (#11636)
-* Images: Bump `NGINX_BASE` to v0.0.10. (#11635)
-* remove modsecurity coreruleset test files from nginx image (#11617)
-* unskip the ocsp tests and update images to fix cfssl bug (#11606)
-* Fix indent in YAML for example pod (#11598)
-* Images: Bump `test-runner`. (#11600)
-* Images: Bump `NGINX_BASE` to v0.0.9. (#11599)
-* revert module upgrade (#11594)
-* README: Fix support matrix. (#11586)
-* Repository: Add changelogs from `release-v1.10`. (#11587)
-
-### Dependency updates:
-
-* Bump the actions group with 3 updates (#12152)
-* Bump golang.org/x/crypto from 0.27.0 to 0.28.0 (#12107)
-* Bump the actions group with 3 updates (#12092)
-* Bump sigs.k8s.io/mdtoc from 1.1.0 to 1.4.0 (#12062)
-* Bump github.com/prometheus/common from 0.59.1 to 0.60.0 (#12060)
-* Bump google.golang.org/grpc from 1.67.0 to 1.67.1 in the go group across 1 directory (#12059)
-* Bump k8s.io/cli-runtime from 0.30.0 to 0.31.1 (#12061)
-* Bump github/codeql-action from 3.26.9 to 3.26.10 in the actions group (#12051)
-* Bump the go group across 1 directory with 3 updates (#12050)
-* Bump k8s.io/kube-aggregator from 0.29.3 to 0.31.1 in /images/kube-webhook-certgen/rootfs (#12043)
-* Bump k8s.io/apimachinery from 0.23.1 to 0.31.1 in /images/ext-auth-example-authsvc/rootfs (#12041)
-* Bump github.com/prometheus/client_golang from 1.11.1 to 1.20.4 in /images/custom-error-pages/rootfs (#12040)
-* Bump the all group with 2 updates (#12032)
-* Bump github/codeql-action from 3.26.7 to 3.26.8 in the all group (#12010)
-* Bump google.golang.org/grpc from 1.66.2 to 1.67.0 (#12009)
-* Bump github.com/prometheus/client_golang from 1.20.3 to 1.20.4 in the all group (#12008)
-* Bump the all group with 2 updates (#11977)
-* Bump github/codeql-action from 3.26.6 to 3.26.7 in the all group (#11976)
-* Bump github.com/prometheus/common from 0.57.0 to 0.59.1 (#11954)
-* Bump golang.org/x/crypto from 0.26.0 to 0.27.0 (#11955)
-* Bump github.com/prometheus/client_golang from 1.20.2 to 1.20.3 in the all group (#11953)
-* Bump github.com/opencontainers/runc from 1.1.13 to 1.1.14 (#11928)
-* Bump the all group with 2 updates (#11922)
-* Bump github.com/onsi/ginkgo/v2 from 2.20.1 to 2.20.2 in the all group (#11901)
-* Bump google.golang.org/grpc from 1.65.0 to 1.66.0 (#11902)
-* Bump github.com/prometheus/common from 0.55.0 to 0.57.0 (#11903)
-* Bump github/codeql-action from 3.26.5 to 3.26.6 in the all group (#11904)
-* Bump the all group with 2 updates (#11865)
-* Bump github/codeql-action from 3.26.2 to 3.26.5 in the all group (#11867)
-* Bump github.com/prometheus/client_golang from 1.19.1 to 1.20.1 (#11832)
-* Bump sigs.k8s.io/controller-runtime from 0.18.4 to 0.19.0 (#11823)
-* Bump dario.cat/mergo from 1.0.0 to 1.0.1 in the all group (#11822)
-* Bump k8s.io/component-base from 0.30.3 to 0.31.0 (#11825)
-* Bump github/codeql-action from 3.26.0 to 3.26.2 in the all group (#11826)
-* Bump github.com/onsi/ginkgo/v2 from 2.19.1 to 2.20.0 (#11766)
-* Bump the all group with 2 updates (#11767)
-* Bump golang.org/x/crypto from 0.25.0 to 0.26.0 (#11765)
-* Bump the all group with 3 updates (#11727)
-* Bump github.com/onsi/ginkgo/v2 from 2.19.0 to 2.19.1 in the all group (#11696)
-* Bump the all group with 2 updates (#11695)
-* Bump the all group with 4 updates (#11673)
-* Bump the all group with 2 updates (#11672)
-* Bump github.com/prometheus/common from 0.54.0 to 0.55.0 (#11522)
-* Bump the all group with 5 updates (#11611)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.11.0...controller-v1.12.0-beta.0
diff --git a/changelog/controller-1.12.0.md b/changelog/controller-1.12.0.md
deleted file mode 100644
index dc7155546..000000000
--- a/changelog/controller-1.12.0.md
+++ /dev/null
@@ -1,294 +0,0 @@
-# Changelog
-
-### controller-v1.12.0
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.12.0@sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.12.0@sha256:87c88e1c38a6c8d4483c8f70b69e2cca49853bb3ec3124b9b1be648edf139af3
-
-### All changes:
-
-* Images: Trigger controller build. (#12609)
-* Chart: Bump Kube Webhook CertGen. (#12606)
-* Tests & Docs: Bump images. (#12603)
-* Images: Trigger other builds (2/2). (#12599)
-* Images: Trigger other builds (1/2). (#12595)
-* Tests: Bump `e2e-test-runner` to v20241224-68ed4e7b. (#12590)
-* Images: Trigger `test-runner` build. (#12587)
-* Images: Bump `NGINX_BASE` to v1.1.0. (#12582)
-* Images: Trigger NGINX build. (#12579)
-* Go: Clean `go.work.sum`. (#12573)
-* Repository: Update owners. (#12568)
-* Images: Bump `gcb-docker-gcloud` to v20241217-ff46a068cd. (#12561)
-* CI: Update KIND images. (#12560)
-* Images: Bump Alpine to v3.21. (#12528)
-* Docs: Add guide on how to set a Maintenance Page. (#12525)
-* rikatz is stepping down (#12516)
-* rikatz is stepping down (#12494)
-* Go: Bump to v1.23.4. (#12483)
-* Plugin: Bump `goreleaser` to v2. (#12440)
-* GitHub: Fix `exec` in issue template. (#12387)
-* CI: Update KIND images. (#12367)
-* Images: Bump `gcb-docker-gcloud` to v20241110-72bb0b1665. (#12342)
-* Go: Bump to v1.23.3. (#12337)
-* Auth TLS: Add `_` to redirect RegEx. (#12326)
-* Auth TLS: Improve redirect RegEx. (#12323)
-* Update custom headers annotation documentation (#12318)
-* Tests: Bump `e2e-test-runner` to v20241104-02a3933e. (#12312)
-* Docs: Add CPU usage note for `--metrics-per-undefined-host`. (#12310)
-* Images: Trigger `test-runner` build. (#12308)
-* Config: Fix panic on invalid `lua-shared-dict`. (#12283)
-* Docs: fix limit-rate-after references (#12278)
-* Chart: Rework ServiceMonitor. (#12269)
-* Chart: Add ServiceAccount tests. (#12263)
-* CI: Fix chart testing. (#12258)
-* [fix] fix nginx temp configs cleanup (#12225)
-* Chart: Suggest `matchLabelKeys` in Topology Spread Constraints. (#12202)
-* Docs: Add Pod Security Admission. (#12195)
-* Docs: Clarify external & service port in TCP/UDP services explanation. (#12192)
-* Images: Trigger controller build. (#12154)
-* ⚠️ Metrics: Disable by default. (#12153) ⚠️
-
- This changes the default of the following CLI arguments:
-
- * `--enable-metrics` gets disabled by default.
-
-* Tests & Docs: Bump `e2e-test-echo` to v1.0.1. (#12147)
-* Images: Trigger `e2e-test-echo` build. (#12140)
-* ⚠️ Images: Drop `s390x`. (#12137) ⚠️
-
- Support for the `s390x` architecture has already been removed from the controller image. This also removes it from the NGINX base image and CI relevant images.
-
-* Images: Build `s390x` controller. (#12126)
-* Chart: Bump Kube Webhook CertGen. (#12119)
-* Tests & Docs: Bump images. (#12118)
-* Cloud Build: Bump `gcb-docker-gcloud` to v20240718-5ef92b5c36. (#12113)
-* Images: Trigger other builds. (#12110)
-* Tests: Bump `e2e-test-runner` to v20241004-114a6abb. (#12103)
-* Images: Trigger `test-runner` build. (#12100)
-* Docs: Add a multi-tenant warning. (#12091)
-* Go: Bump to v1.22.8. (#12069)
-* Images: Bump `NGINX_BASE` to v1.0.0. (#12066)
-* Images: Trigger NGINX build. (#12063)
-* Images: Remove NGINX v1.21. (#12031)
-* Chart: Add `controller.metrics.service.enabled`. (#12056)
-* GitHub: Improve Dependabot. (#12033)
-* Chart: Add `global.image.registry`. (#12028)
-* ⚠️ Images: Remove OpenTelemetry. (#12024) ⚠️
-
- OpenTelemetry is still supported, but since the module is built into the controller image since v1.10, we hereby remove the init container and image which were used to install it upon controller startup.
-
-* Chart: Improve CI. (#12003)
-* Chart: Extend image tests. (#12025)
-* Chart: Add `controller.progressDeadlineSeconds`. (#12017)
-* Docs: Add health check annotations for AWS. (#12018)
-* Docs: Convert `opentelemetry.md` from CRLF to LF. (#12005)
-* Chart: Implement `unhealthyPodEvictionPolicy`. (#11992)
-* Chart: Add `defaultBackend.maxUnavailable`. (#11995)
-* Chart: Test `controller.minAvailable` & `controller.maxUnavailable`. (#12000)
-* Chart: Align default backend `PodDisruptionBudget`. (#11993)
-* Metrics: Fix namespace in `nginx_ingress_controller_ssl_expire_time_seconds`. (#10274)
-* ⚠️ Chart: Remove Pod Security Policy. (#11971) ⚠️
-
- This removes Pod Security Policies and related resources from the chart.
-
-* Chart: Improve default backend service account. (#11972)
-* Go: Bump to v1.22.7. (#11943)
-* NGINX: Remove inline Lua from template. (#11806)
-* Images: Bump OpenTelemetry C++ Contrib. (#11629)
-* Docs: Add note about `--watch-namespace`. (#11947)
-* Images: Use latest Alpine 3.20 everywhere. (#11944)
-* Fix minor typos (#11935)
-* Chart: Implement `controller.admissionWebhooks.service.servicePort`. (#11931)
-* Allow any protocol for cors origins (#11153)
-* Tests: Bump `e2e-test-runner` to v20240829-2c421762. (#11919)
-* Images: Trigger `test-runner` build. (#11916)
-* Chart: Add `controller.metrics.prometheusRule.annotations`. (#11849)
-* Chart: Add tests for `PrometheusRule` & `ServiceMonitor`. (#11883)
-* Annotations: Allow commas in URLs. (#11882)
-* CI: Grant checks write permissions to E2E Test Report. (#11862)
-* Chart: Use generic values for `ConfigMap` test. (#11877)
-* Security: Follow-up on recent changes. (#11874)
-* Lua: Remove plugins from `.luacheckrc` & E2E docs. (#11872)
-* Dashboard: Remove `ingress_upstream_latency_seconds`. (#11878)
-* Metrics: Add `--metrics-per-undefined-host` argument. (#11818)
-* Update maxmind post link about geolite2 license changes (#11861)
-* ⚠️ Remove global-rate-limit feature (#11851) ⚠️
-
- This removes the following configuration options:
-
- * `global-rate-limit-memcached-host`
- * `global-rate-limit-memcached-port`
- * `global-rate-limit-memcached-connect-timeout`
- * `global-rate-limit-memcached-max-idle-timeout`
- * `global-rate-limit-memcached-pool-size`
- * `global-rate-limit-status-code`
-
- It also removes the following annotations:
-
- * `global-rate-limit`
- * `global-rate-limit-window`
- * `global-rate-limit-key`
- * `global-rate-limit-ignored-cidrs`
-
-* Revert "docs: Add deployment for AWS NLB Proxy." (#11857)
-* Add custom code handling for temporal redirect (#10651)
-* Add native histogram support for histogram metrics (#9971)
-* Replace deprecated queue method (#11853)
-* ⚠️ Enable security features by default (#11819) ⚠️
-
- This changes the default of the following CLI arguments:
-
- * `--enable-annotation-validation` gets enabled by default.
-
- It also changes the default of the following configuration options:
-
- * `allow-cross-namespace-resources` gets disabled by default.
- * `annotations-risk-level` gets lowered to "High" by default.
- * `strict-validate-path-type` gets enabled by default.
-
-* docs: Add deployment for AWS NLB Proxy. (#9565)
-* ⚠️ Remove 3rd party lua plugin support (#11821) ⚠️
-
- This removes the following configuration options:
-
- * `plugins`
-
- It also removes support for user provided Lua plugins in the `/etc/nginx/lua/plugins` directory.
-
-* Auto-generate annotation docs (#11820)
-* ⚠️ Metrics: Remove `ingress_upstream_latency_seconds`. (#11795) ⚠️
-
- This metric has already been deprecated and is now getting removed.
-
-* Release controller v1.11.2/v1.10.4 & chart v4.11.2/v4.10.4. (#11816)
-* Chart: Bump Kube Webhook CertGen & OpenTelemetry. (#11809)
-* Tests & Docs: Bump images. (#11803)
-* Images: Trigger failed builds. (#11800)
-* Images: Trigger other builds. (#11796)
-* Controller: Fix panic in alternative backend merging. (#11789)
-* Tests: Bump `e2e-test-runner` to v20240812-3f0129aa. (#11788)
-* Images: Trigger `test-runner` build. (#11785)
-* Images: Bump `NGINX_BASE` to v0.0.12. (#11782)
-* Images: Trigger NGINX build. (#11779)
-* Cloud Build: Add missing config, remove unused ones. (#11774)
-* Cloud Build: Tweak timeouts. (#11761)
-* Cloud Build: Fix substitutions. (#11758)
-* Cloud Build: Some chores. (#11633)
-* Go: Bump to v1.22.6. (#11747)
-* Images: Bump `NGINX_BASE` to v0.0.11. (#11741)
-* Images: Trigger NGINX build. (#11735)
-* docs: update OpenSSL Roadmap link (#11730)
-* Go: Bump to v1.22.5. (#11634)
-* Docs: Fix typo in AWS LB Controller reference (#11723)
-* Perform some cleaning operations on line breaks. (#11720)
-* Missing anchors in regular expression. (#11717)
-* Docs: Fix `from-to-www` redirect description. (#11712)
-* Chart: Remove `isControllerTagValid`. (#11710)
-* Tests: Bump `e2e-test-runner` to v20240729-04899b27. (#11702)
-* Chart: Explicitly set `runAsGroup`. (#11679)
-* Docs: Clarify `from-to-www` redirect direction. (#11682)
-* added real-client-ip faq (#11663)
-* Docs: Format NGINX configuration table. (#11659)
-* Release controller v1.11.1/v1.10.3 & chart v4.11.1/v4.10.3. (#11654)
-* Tests: Bump `test-runner` to v20240717-1fe74b5f. (#11645)
-* Images: Trigger `test-runner` build. (#11636)
-* Images: Bump `NGINX_BASE` to v0.0.10. (#11635)
-* remove modsecurity coreruleset test files from nginx image (#11617)
-* unskip the ocsp tests and update images to fix cfssl bug (#11606)
-* Fix indent in YAML for example pod (#11598)
-* Images: Bump `test-runner`. (#11600)
-* Images: Bump `NGINX_BASE` to v0.0.9. (#11599)
-* revert module upgrade (#11594)
-* README: Fix support matrix. (#11586)
-* Repository: Add changelogs from `release-v1.10`. (#11587)
-
-### Dependency updates:
-
-* Bump k8s.io/apiextensions-apiserver from 0.31.3 to 0.32.0 (#12566)
-* Bump github.com/onsi/ginkgo/v2 from 2.22.0 to 2.22.1 (#12555)
-* Bump k8s.io/code-generator from 0.31.3 to 0.32.0 (#12550)
-* Bump k8s.io/cli-runtime from 0.31.3 to 0.32.0 (#12547)
-* Bump k8s.io/apiserver from 0.31.3 to 0.32.0 (#12544)
-* Bump the actions group with 2 updates (#12541)
-* Bump google.golang.org/grpc from 1.68.1 to 1.69.2 (#12538)
-* Bump k8s.io/client-go from 0.31.3 to 0.32.0 (#12512)
-* Bump github.com/opencontainers/runc from 1.2.2 to 1.2.3 in the go group across 1 directory (#12509)
-* Bump the actions group with 3 updates (#12506)
-* Bump k8s.io/kube-aggregator from 0.31.3 to 0.32.0 in /images/kube-webhook-certgen/rootfs (#12505)
-* Bump k8s.io/apimachinery from 0.31.3 to 0.32.0 in /images/ext-auth-example-authsvc/rootfs (#12502)
-* Bump golang.org/x/crypto from 0.30.0 to 0.31.0 (#12476)
-* Bump golang.org/x/crypto from 0.21.0 to 0.31.0 in /magefiles (#12472)
-* Bump github.com/prometheus/common from 0.60.1 to 0.61.0 (#12464)
-* Bump github/codeql-action from 3.27.5 to 3.27.6 in the actions group (#12461)
-* Bump the go group across 1 directory with 2 updates (#12460)
-* Bump github.com/onsi/ginkgo/v2 from 2.21.0 to 2.22.0 (#12426)
-* Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#12418)
-* Bump the go group across 3 directories with 10 updates (#12413)
-* Bump the actions group with 3 updates (#12412)
-* Bump github.com/opencontainers/runc from 1.2.1 to 1.2.2 in the go group across 1 directory (#12380)
-* Bump github/codeql-action from 3.27.1 to 3.27.4 in the actions group (#12373)
-* Bump golangci-lint on actions and disable deprecated linters (#12361)
-* Bump google.golang.org/grpc from 1.67.1 to 1.68.0 (#12357)
-* Bump the actions group with 3 updates (#12354)
-* Bump golang.org/x/crypto from 0.28.0 to 0.29.0 (#12349)
-* Bump github.com/fsnotify/fsnotify from 1.7.0 to 1.8.0 (#12299)
-* Bump github.com/opencontainers/runc from 1.2.0 to 1.2.1 in the go group across 1 directory (#12296)
-* Bump github.com/onsi/ginkgo/v2 from 2.20.2 to 2.21.0 (#12288)
-* Bump actions/dependency-review-action from 4.3.5 to 4.4.0 in the actions group (#12273)
-* Bump the go group across 3 directories with 11 updates (#12244)
-* Bump github.com/opencontainers/runc from 1.1.15 to 1.2.0 (#12242)
-* Bump the actions group with 5 updates (#12236)
-* Bump github.com/ncabatoff/process-exporter from 0.8.3 to 0.8.4 in the go group across 1 directory (#12218)
-* Bump aquasecurity/trivy-action from 0.27.0 to 0.28.0 in the actions group (#12217)
-* Bump github/codeql-action from 3.26.12 to 3.26.13 in the actions group (#12188)
-* Bump the go group across 2 directories with 1 update (#12186)
-* Bump the actions group with 2 updates (#12180)
-* Bump github.com/opencontainers/runc from 1.1.14 to 1.1.15 in the go group across 1 directory (#12178)
-* Bump the actions group with 3 updates (#12152)
-* Bump golang.org/x/crypto from 0.27.0 to 0.28.0 (#12107)
-* Bump the actions group with 3 updates (#12092)
-* Bump sigs.k8s.io/mdtoc from 1.1.0 to 1.4.0 (#12062)
-* Bump github.com/prometheus/common from 0.59.1 to 0.60.0 (#12060)
-* Bump google.golang.org/grpc from 1.67.0 to 1.67.1 in the go group across 1 directory (#12059)
-* Bump k8s.io/cli-runtime from 0.30.0 to 0.31.1 (#12061)
-* Bump github/codeql-action from 3.26.9 to 3.26.10 in the actions group (#12051)
-* Bump the go group across 1 directory with 3 updates (#12050)
-* Bump k8s.io/kube-aggregator from 0.29.3 to 0.31.1 in /images/kube-webhook-certgen/rootfs (#12043)
-* Bump k8s.io/apimachinery from 0.23.1 to 0.31.1 in /images/ext-auth-example-authsvc/rootfs (#12041)
-* Bump github.com/prometheus/client_golang from 1.11.1 to 1.20.4 in /images/custom-error-pages/rootfs (#12040)
-* Bump the all group with 2 updates (#12032)
-* Bump github/codeql-action from 3.26.7 to 3.26.8 in the all group (#12010)
-* Bump google.golang.org/grpc from 1.66.2 to 1.67.0 (#12009)
-* Bump github.com/prometheus/client_golang from 1.20.3 to 1.20.4 in the all group (#12008)
-* Bump the all group with 2 updates (#11977)
-* Bump github/codeql-action from 3.26.6 to 3.26.7 in the all group (#11976)
-* Bump github.com/prometheus/common from 0.57.0 to 0.59.1 (#11954)
-* Bump golang.org/x/crypto from 0.26.0 to 0.27.0 (#11955)
-* Bump github.com/prometheus/client_golang from 1.20.2 to 1.20.3 in the all group (#11953)
-* Bump github.com/opencontainers/runc from 1.1.13 to 1.1.14 (#11928)
-* Bump the all group with 2 updates (#11922)
-* Bump github.com/onsi/ginkgo/v2 from 2.20.1 to 2.20.2 in the all group (#11901)
-* Bump google.golang.org/grpc from 1.65.0 to 1.66.0 (#11902)
-* Bump github.com/prometheus/common from 0.55.0 to 0.57.0 (#11903)
-* Bump github/codeql-action from 3.26.5 to 3.26.6 in the all group (#11904)
-* Bump the all group with 2 updates (#11865)
-* Bump github/codeql-action from 3.26.2 to 3.26.5 in the all group (#11867)
-* Bump github.com/prometheus/client_golang from 1.19.1 to 1.20.1 (#11832)
-* Bump sigs.k8s.io/controller-runtime from 0.18.4 to 0.19.0 (#11823)
-* Bump dario.cat/mergo from 1.0.0 to 1.0.1 in the all group (#11822)
-* Bump k8s.io/component-base from 0.30.3 to 0.31.0 (#11825)
-* Bump github/codeql-action from 3.26.0 to 3.26.2 in the all group (#11826)
-* Bump github.com/onsi/ginkgo/v2 from 2.19.1 to 2.20.0 (#11766)
-* Bump the all group with 2 updates (#11767)
-* Bump golang.org/x/crypto from 0.25.0 to 0.26.0 (#11765)
-* Bump the all group with 3 updates (#11727)
-* Bump github.com/onsi/ginkgo/v2 from 2.19.0 to 2.19.1 in the all group (#11696)
-* Bump the all group with 2 updates (#11695)
-* Bump the all group with 4 updates (#11673)
-* Bump the all group with 2 updates (#11672)
-* Bump github.com/prometheus/common from 0.54.0 to 0.55.0 (#11522)
-* Bump the all group with 5 updates (#11611)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.11.0...controller-v1.12.0
diff --git a/changelog/controller-1.6.4.md b/changelog/controller-1.6.4.md
deleted file mode 100644
index 15b3f671a..000000000
--- a/changelog/controller-1.6.4.md
+++ /dev/null
@@ -1,138 +0,0 @@
-# Changelog
-
-### 1.6.4
-
-Images:
-
-* registry.k8s.io/controller:controller-v1.6.4@sha256:15be4666c53052484dd2992efacf2f50ea77a78ae8aa21ccd91af6baaa7ea22f
-* registry.k8s.io/controller-chroot:controller-v1.6.4@sha256:0de01e2c316c3ca7847ca13b32d077af7910d07f21a4a82f81061839764f8f81
-
-### All changes:
-
-* remove tests and regex path checks (#9626)
-* Fix incorrect annotation name in upstream hashing configuration (#9617)
-* Release docs for Controller v1.6.3 and Helm v4.5.0 (#9614)
-* Revert Implement pathType validation (#9511) (#9607)
-* update history and allow to pass a target test (#9605)
-* Allow to pass a target test (#9542)
-* Replace deprecated command with environment file (#9581)
-* build 1.6.2 to fix (#9569)
-* add lint on chart before release (#9570)
-* tcpproxy: increase buffer size to 16K (#9548)
-* Move and spell-check Kubernetes 1.22 migration FAQ (#9544)
-* Add CORS template check inside location for externalAuth.SignURL (#8814)
-* fix(grafana-dashboard): remove hardcoded namespace references (#9523)
-* Replace deprecated command with environment file (#9581)
-* add lint on chart before release (#9570)
-* Switch logic on path type validation and setting it to false (#9543)
-* tcpproxy: increase buffer size to 16K (#9548)
-* Move and spell-check Kubernetes 1.22 migration FAQ (#9544)
-* Add CORS template check inside location for externalAuth.SignURL (#8814)
-* fix(grafana-dashboard): remove hardcoded namespace references (#9523)
-* Align default value for keepalive_request with NGINX default (#9518)
-* feat(configmap): expose gzip-disable (#9505)
-* Values: Add missing `controller.metrics.service.labels`. (#9501)
-* Add docs about orphan_ingress metric (#9514)
-* Add new prometheus metric for orphaned ingress (#8230)
-* Sanitise request metrics in monitoring docs (#9384)
-* Change default value of enable-brotli (#9500)
-* feat: support topology aware hints (#9165)
-* Remove 1.5.2 from readme (#9498)
-* Remove nonexistent load flag from docker build commands (#9122)
-* added option to disable sync event creation (#8528)
-* Add buildResolvers to the stream module (#9184)
-* fix: disable auth access logs (#9049)
-* Adding ipdenylist annotation (#8795)
-* Add update updateStrategy and minReadySeconds for defaultBackend (#8506)
-* Fix indentation on serviceAccount annotation (#9129)
-* Update monitoring.md (#9269)
-* add github actions stale bot (#9439)
-* Admission Webhooks/Job: Add `NetworkPolicy`. (#9218)
-* update OpenTelemetry image (#9491)
-* bump OpenTelemetry (#9489)
-* Optional podman support (#9294)
-* fix change images (#9463)
-* move tests to gh actions (#9461)
-* Automated Release Controller 1.5.2 (#9455)
-* Add sslpassthrough tests (#9457)
-* updated the link in RELEASE.md file (#9456)
-* restart 1.5.2 release process (#9450)
-* Update command line arguments documentation (#9224)
-* start release 1.5.2 (#9445)
-* upgrade nginx base image (#9436)
-* test the new e2e test images (#9444)
-* avoid builds and tests for non-code changes (#9392)
-* CI updates (#9440)
-* HPA: Add `controller.autoscaling.annotations` to `values.yaml`. (#9253)
-* update the nginx run container for alpine:3.17.0 (#9430)
-* cleanup: remove ioutil for new go version (#9427)
-* start upgrade to golang 1.19.4 and alpine 3.17.0 (#9417)
-* ci: remove setup-helm step (#9404)
-* ci: remove setup-kind step (#9401)
-* Add reporter for all tests (#9395)
-* added action for issues to project (#9386)
-* doc: update NEW_CONTRIBUTOR.md (#9381)
-* feat(helm): Optionally use cert-manager instead admission patch (#9279)
-* integrated junit-reports with ghactions (#9361)
-* [user-guide configmap] fix doc for global-auth-snippet (#9372)
-* update OpenTelemetry image (#9308)
-* fix: missing CORS headers when auth fails (#9251)
-* Fix styling in canary annotation docs. (#9259)
-* resolved ginkgo deprecation message (#9365)
-* Enable profiler-address to be configured (#9311)
-* ModSecurity dependencies update to avoid Memory Leaks (#9330)
-* fix(hpa): deprecated api version, bump to v2 (#9348)
-* fix(typo): pluralize provider (#9346)
-* removed deprecation message for ingressClass annotation (#9357)
-* added ginkgo junit reports (#9350)
-* Fix typos found by codespell (#9353)
-* bumped ginkgo to v2.5.1 in testrunner (#9340)
-* create nsswitch-conf if missing (#9339)
-* remove the configmap related permissions (#9310)
-* remove hardcoded datasource from grafana dashboard (#9284)
-* update gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b to 3.0.0 (#9277)
-* added SAN to cert create command (#9295)
-* Missing controller.ingressClass (#9304)
-* OpenTelemetry static linking (#9286)
-* Fixed indentation in commented-out autoscaling (#9225)
-* run helm release on main only and when the chart/value changes only (#9290)
-* fix broken annotation yaml (#9243)
-* PDB: Add `maxUnavailable`. (#9278)
-* add containerSecurityContext to extraModules init containers (kubernetes#9016) (#9242)
-
-### Dependency updates:
-
-* Bump google.golang.org/grpc from 1.52.0 to 1.52.3 (#9555)
-* Bump k8s.io/klog/v2 from 2.80.1 to 2.90.0 (#9553)
-* Bump sigs.k8s.io/controller-runtime from 0.13.1 to 0.14.2 (#9552)
-* Bump google.golang.org/grpc from 1.51.0 to 1.52.0 (#9512)
-* Bump `client-go` to remove dependence on go-autorest dependency (#9488)
-* Bump google.golang.org/grpc from 1.52.0 to 1.52.3 (#9555)
-* Bump k8s.io/klog/v2 from 2.80.1 to 2.90.0 (#9553)
-* Bump sigs.k8s.io/controller-runtime from 0.13.1 to 0.14.2 (#9552)
-* Bump google.golang.org/grpc from 1.51.0 to 1.52.0 (#9512)
-* Bump `client-go` to remove dependence on go-autorest dependency (#9488)
-* Bump golang.org/x/crypto from 0.4.0 to 0.5.0 (#9494)
-* Bump golang.org/x/crypto from 0.3.0 to 0.4.0 (#9397)
-* Bump github.com/onsi/ginkgo/v2 from 2.6.0 to 2.6.1 (#9432)
-* Bump github.com/onsi/ginkgo/v2 from 2.6.0 to 2.6.1 (#9421)
-* Bump github/codeql-action from 2.1.36 to 2.1.37 (#9423)
-* Bump actions/checkout from 3.1.0 to 3.2.0 (#9425)
-* Bump goreleaser/goreleaser-action from 3.2.0 to 4.1.0 (#9426)
-* Bump actions/dependency-review-action from 3.0.1 to 3.0.2 (#9424)
-* Bump ossf/scorecard-action from 2.0.6 to 2.1.0 (#9422)
-* Bump github.com/prometheus/common from 0.37.0 to 0.39.0 (#9416)
-* Bump github.com/onsi/ginkgo/v2 from 2.5.1 to 2.6.0 (#9408)
-* Bump github.com/onsi/ginkgo/v2 from 2.5.1 to 2.6.0 (#9398)
-* Bump github/codeql-action from 2.1.35 to 2.1.36 (#9400)
-* Bump actions/setup-go from 3.3.1 to 3.4.0 (#9370)
-* Bump github/codeql-action from 2.1.31 to 2.1.35 (#9369)
-* Bump google.golang.org/grpc from 1.50.1 to 1.51.0 (#9316)
-* Bump github.com/prometheus/client_golang from 1.13.1 to 1.14.0 (#9298)
-* Bump actions/dependency-review-action from 3.0.0 to 3.0.1 (#9319)
-* Bump golang.org/x/crypto from 0.1.0 to 0.3.0 (#9318)
-* Bump github.com/onsi/ginkgo/v2 from 2.4.0 to 2.5.1 (#9317)
-* Bump actions/dependency-review-action from 2.5.1 to 3.0.0 (#9301)
-* Bump k8s.io/component-base from 0.25.3 to 0.25.4 (#9300)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-controller-v1.5.1...controller-controller-v1.6.4
diff --git a/changelog/controller-1.7.0.md b/changelog/controller-1.7.0.md
deleted file mode 100644
index 97f0ebf22..000000000
--- a/changelog/controller-1.7.0.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# Changelog
-
-### 1.7.0
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.7.0@sha256:7612338342a1e7b8090bef78f2a04fffcadd548ccaabe8a47bf7758ff549a5f7
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.7.0@sha256:e84ef3b44c8efeefd8b0aa08770a886bfea1f04c53b61b4ba9a7204e9f1a7edc
-
-### All changes:
-
-* kick off 1.7.0 build (#9775)
-* Update exposing-tcp-udp-services.md (#9777)
-* feat: OpenTelemetry module integration (#9062)
-* drop k8s 1.23 support (#9772)
-* Fix canary-weight-total annotation ignored in rule backends (#9729)
-* fix: controller psp's volume config (#9740)
-* Fix several Helm YAML issues with extraModules and extraInitContainers (#9709)
-* docs(helm): fix value key in readme for enabling certManager (#9640)
-* updated digest and sha for e2e-test-echo (#9760)
-* updated digest and sha for e2e-test-fastcgi-helloserver (#9759)
-* updated digest and sha for opentelemetry (#9758)
-* updated digest and sha for e2e-test-cfssl (#9757)
-* updated kube-webhook-certgen digest and tags (#9756)
-* updated nginx-error digest and tags (#9755)
-* added upgrade ginkgo documentation for contributors (#9753)
-* changes Makefile of echo folder to trigger code-build (#9754)
-* Chart: Drop `controller.headers`, rework DH param secret. (#9659)
-* updated NGINX_BASE image with latest tag (#9747)
-* Deployment/DaemonSet: Label pods using `ingress-nginx.labels`. (#9732)
-* bumped ginkgo to v2.9.0 (#9722)
-* HPA: autoscaling/v2beta1 deprecated, bump apiVersion to v2 for defaultBackend (#9731)
-* update to golang 1.20 (#9690)
-* Indent values.yaml using 2 instead of 4 spaces (#9656)
-* fix some comments (#9688)
-* migrate mitchellh/hashstructure to v2 (#9651)
-* changed v1.6.3 to v1.6.4 on deploy docs (#9647)
-* controller: Don't panic when ready condition in a endpointslice is missing (#9550)
-* Rework Ginkgo usage (#9522)
-* code clean for fsnotify (#9571)
-* Optimize the document for readability (#9551)
-* sets.String is deprecated: use generic Set instead. new ways: s1 := Set[string]{} s2 := New[string]() (#9589)
-* Adjust the import package order and use http library variables (#9587)
-* Optimize the judgment mode to remove redundant transformations (#9588)
-* Fix rewrite example (#9633)
-* remove tests and regex path checks (#9626)
-* Fix incorrect annotation name in upstream hashing configuration (#9617)
-* Release docs for Controller v1.6.3 and Helm v4.5.0 (#9614)
-
-### Dependency updates:
-
-* Bump aquasecurity/trivy-action from 0.8.0 to 0.9.2 (#9767)
-* Bump k8s.io/component-base from 0.26.2 to 0.26.3 (#9764)
-* Bump actions/dependency-review-action from 3.0.3 to 3.0.4 (#9766)
-* Bump actions/add-to-project from 0.4.0 to 0.4.1 (#9765)
-* Bump actions/dependency-review-action from 3.0.2 to 3.0.3 (#9727)
-* Bump github.com/prometheus/common from 0.41.0 to 0.42.0 (#9724)
-* Bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#9723)
-* Bump actions/download-artifact from 3.0.1 to 3.0.2 (#9721)
-* Bump goreleaser/goreleaser-action from 4.1.0 to 4.2.0 (#9718)
-* Bump actions/upload-artifact from 3.1.1 to 3.1.2 (#9717)
-* Bump docker/setup-buildx-action from 2.2.1 to 2.5.0 (#9719)
-* Bump helm/chart-releaser-action from 1.4.1 to 1.5.0 (#9720)
-* Bump github.com/onsi/ginkgo/v2 from 2.6.1 to 2.9.0 (#9695)
-* Bump k8s.io/klog/v2 from 2.90.0 to 2.90.1 (#9694)
-* Bump golang.org/x/crypto in /magefiles (#9691)
-* Bump k8s.io/component-base from 0.26.1 to 0.26.2 (#9696)
-* Bump github.com/prometheus/common from 0.40.0 to 0.41.0 (#9698)
-* Bump sigs.k8s.io/controller-runtime from 0.14.2 to 0.14.5 (#9697)
-* Bump golang.org/x/net in /magefiles (#9692)
-* Bump golang.org/x/sys in /images/custom-error-pages/rootfs (#9671)
-* Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#9675)
-* Bump github.com/prometheus/common from 0.39.0 to 0.40.0 (#9653)
-* Bump golang.org/x/net from 0.6.0 to 0.7.0 (#9646)
-* Bump golang.org/x/net in /images/kube-webhook-certgen/rootfs (#9645)
-* Bump google.golang.org/grpc from 1.52.3 to 1.53.0 (#9610)
-* Bump github.com/prometheus/client_golang (#9630)
-* Bump golang.org/x/crypto from 0.5.0 to 0.6.0 (#9609)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-controller-v1.6.3...controller-controller-v1.7.0
diff --git a/changelog/controller-1.7.1.md b/changelog/controller-1.7.1.md
deleted file mode 100644
index a7a5c4bbf..000000000
--- a/changelog/controller-1.7.1.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# Changelog
-
-### 1.7.1
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.7.1@sha256:7244b95ea47bddcb8267c1e625fb163fc183ef55448855e3ac52a7b260a60407
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.7.1@sha256:e35d5ab487861b9d419c570e3530589229224a0762c7b4d2e2222434abb8d988
-
-### All changes:
-
-* Update TAG - 1.7.1 (#9922)
-* Update dependabot to watch docker images (#9600)
-* [helm] Support custom port configuration for internal service (#9846)
-* Add support for --container flag (#9703)
-* Fix typo in OpenTelemetry (#9903)
-* ensure make lua-test runs locally (#9902)
-* update k8s.io dependencies to v0.26.4 (#9893)
-* Adding resource type to default HPA configuration to resolve issues with Terraform helm chart usage (#9803)
-* I have not been able to fulfill my maintainer responsibilities for a while already, making it official now. (#9883)
-* Update k8s versions (#9879)
-* README: Update `external-dns` link. (#9866)
-* Fastcgi configmap should be on the same namespace of ingress (#9863)
-* Deprecate and remove influxdb feature (#9861)
-* Remove deprecated annotation secure-upstream (#9862)
-* Exclude socket metrics (#9770)
-* Chart: Improve `README.md`. (#9831)
-* update all container tags with date and sha, upgrade all containers (#9834)
-* updated NGINX_BASE image in project (#9829)
-* ISO 8601 date format (#9682)
-* Values: Fix indention of commented values. (#9812)
-* The Ingress-Nginx project recently released version 1.7.0 of the controller, but the deployment documentation still referenced version 1.6.4. This commit updates the documentation to reference the latest version, ensuring that users have access to the most up-to-date information. Fixes#9787 (#9788)
-
-### Dependency updates:
-
-* Bump github.com/opencontainers/runc from 1.1.6 to 1.1.7 (#9912)
-* Bump github.com/prometheus/client_golang from 1.14.0 to 1.15.0 (#9868)
-* Bump aquasecurity/trivy-action from 0.9.2 to 0.10.0 (#9888)
-* Bump github.com/opencontainers/runc from 1.1.5 to 1.1.6 (#9867)
-* Bump actions/checkout from 3.5.0 to 3.5.2 (#9870)
-* Bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#9838)
-* Bump github.com/spf13/cobra from 1.6.1 to 1.7.0 (#9839)
-* Bump actions/add-to-project from 0.4.1 to 0.5.0 (#9840)
-* Bump actions/checkout from 3.4.0 to 3.5.0 (#9798)
-* Bump ossf/scorecard-action from 2.1.2 to 2.1.3 (#9823)
-* Bump github.com/opencontainers/runc from 1.1.4 to 1.1.5 (#9806)
-* Bump actions/stale from 7.0.0 to 8.0.0 (#9799)
-* Bump rajatjindal/krew-release-bot from 0.0.43 to 0.0.46 (#9797)
-* Bump actions/setup-go from 3.5.0 to 4.0.0 (#9796)
-* Bump github.com/imdario/mergo from 0.3.13 to 0.3.15 (#9795)
-* Bump google.golang.org/grpc from 1.53.0 to 1.54.0 (#9794)
-* Bump sigs.k8s.io/controller-runtime from 0.14.5 to 0.14.6 (#9822)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-controller-v1.7.0...controller-controller-v1.7.1
diff --git a/changelog/controller-1.8.0.md b/changelog/controller-1.8.0.md
deleted file mode 100644
index f335777d6..000000000
--- a/changelog/controller-1.8.0.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# Changelog
-
-### 1.8.0
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.8.0@sha256:744ae2afd433a395eeb13dc03d3313facba92e96ad71d9feaafc85925493fee3
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.8.0@sha256:a45e41cd2b7670adf829759878f512d4208d0aec1869dae593a0fecd09a5e49e
-
-### Important changes:
-
-* Validate path types (#9967)
-* images: upgrade to Alpine 3.18 (#9997)
-* Update documentation to reflect project name; Ingress-Nginx Controller
-
-For improving security, our 1.8.0 release includes a [new, **optional** validation ](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#strict-validate-path-type) that limits the characters accepted on ".spec paths.path" when pathType=Exact or athType=Prefix, to alphanumeric characters only.
-
-More information can be found on our [Google doc](https://docs.google.com/document/d/1HPvaEwHRuMSkXYkVIJ-w7IpijKdHfNynm_4N2Akt0CQ/edit?usp=sharing), our new [ingress-nginx-dev mailing list](https://groups.google.com/a/kubernetes.io/g/ingress-nginx-dev/c/ebbBMo-zX-w) or in our [docs](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#strict-validate-path-type)
-
-### Community Updates
-
-We are now posting updates and release to our twitter handle, [@IngressNginx](https://twitter.com/IngressNGINX) and
-on our new [ingress-nginx-dev mailing list](https://groups.google.com/a/kubernetes.io/g/ingress-nginx-dev/c/ebbBMo-zX-w)
-
-### All changes:
-
-* Add legacy to OpenTelemetry migration doc (#10011)
-* changed tagsha to recent builds (#10001)
-* change to alpine318 baseimage (#10000)
-* images: upgrade to Alpine 3.18 (#9997)
-* openssl CVE fix (#9996)
-* PodDisruptionBudget spec logic update (#9904)
-* Admission warning (#9975)
-* Add OPA examples on pathType restrictions (#9992)
-* updated testrunner image tag+sha (#9987)
-* bumped ginkgo to v2.9.5 (#9985)
-* helm: Fix opentelemetry module installation for daemonset (#9792)
-* OpenTelemetry default config (#9978)
-* Correct annotations in monitoring docs (#9976)
-* fix: avoid builds and tests for changes to markdown (#9962)
-* Validate path types (#9967)
-* HPA: Use capabilities & align manifests. (#9521)
-* Use dl.k8s.io instead of hardcoded GCS URIs (#9946)
-* add option for annotations in PodDisruptionBudget (#9843)
-* chore: update httpbin to httpbun (#9919)
-* image_update (#9942)
-* Add geoname id value into $geoip2_*_geoname_id variables (#9527)
-* Update annotations.md (#9933)
-* Update charts/* to keep project name display aligned (#9931)
-* Keep project name display aligned (#9920)
-
-### Dependencies updates:
-* Bump github.com/imdario/mergo from 0.3.15 to 0.3.16 (#10008)
-* Bump github.com/prometheus/common from 0.43.0 to 0.44.0 (#10007)
-* Bump k8s.io/klog/v2 from 2.90.1 to 2.100.1 (#9913)
-* Bump github.com/onsi/ginkgo/v2 from 2.9.0 to 2.9.5 (#9980)
-* Bump golang.org/x/crypto from 0.8.0 to 0.9.0 (#9982)
-* Bump actions/setup-go from 4.0.0 to 4.0.1 (#9984)
-* Bump securego/gosec from 2.15.0 to 2.16.0 (#9983)
-* Bump github.com/prometheus/common from 0.42.0 to 0.43.0 (#9981)
-* Bump github.com/prometheus/client_model from 0.3.0 to 0.4.0 (#9937)
-* Bump google.golang.org/grpc from 1.54.0 to 1.55.0 (#9936)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-controller-v1.7.1...controller-controller-v1.8.0
diff --git a/changelog/controller-1.8.1.md b/changelog/controller-1.8.1.md
deleted file mode 100644
index 16d4a8409..000000000
--- a/changelog/controller-1.8.1.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Changelog
-
-### 1.8.1
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.8.1@sha256:e5c4824e7375fcf2a393e1c03c293b69759af37a9ca6abdb91b13d78a93da8bd
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.8.1@sha256:e0d4121e3c5e39de9122e55e331a32d5ebf8d4d257227cb93ab54a1b912a7627
-
-### All changes:
-
-* netlify: Only trigger preview when there are changes in docs. (#10144)
-* changed to updated baseimage and reverted tag (#10143)
-* Fix loadBalancerClass value (#10139)
-* Added a doc line to the missing helm value service.internal.loadBalancerIP (#9406)
-* Set grpc :authority header from request header (#8912)
-* bump pinned golang to 1.20.5 (#10127)
-* update test runner (#10125)
-* chore: remove echo from snippet tests (#10110)
-* Update typo in docs for lb scheme (#10117)
-* golang 1.20.5 bump (#10120)
-* feat(helm): Add loadBalancerClass (#9562)
-* chore: remove echo friom canary tests (#10089)
-* fix: obsolete warnings (#10029)
-* docs: change Dockefile url ref main (#10087)
-* Revert "Remove fastcgi feature" (#10081)
-* docs: add netlify configuration (#10073)
-* add distroless otel init (#10035)
-* chore: move httpbun to be part of framework (#9955)
-* Remove fastcgi feature (#9864)
-* Fix mirror-target values without path separator and port (#9889)
-* Adding feature to upgrade Oracle Cloud Infrastructure's Flexible Load Balancer and adjusting Health Check that were critical in the previous configuration (#9961)
-* add support for keda fallback settings (#9993)
-* unnecessary use of fmt.Sprint (S1039) (#10049)
-* chore: pkg imported more than once (#10048)
-* tracing: upgrade to dd-opentracing-cpp v1.3.7 (#10031)
-* fix: add canary to sidebar in examples (#10068)
-* docs: add lua testing documentation (#10060)
-* docs: canary weighted deployments example (#10067)
-* Update Internal Load Balancer docs (#10062)
-* fix broken kubernetes.io/user-guide/ docs links (#10055)
-* docs: Updated the content of deploy/rbac.md (#10054)
-* ensured hpa mem spec before cpu spec (#10043)
-* Fix typo in controller_test (#10034)
-* chore(dep): upgrade github.com/emicklei/go-restful/v3 to 3.10 (#10028)
-* Upgrade to Golang 1.20.4 (#10016)
-* perf: avoid unnecessary byte/string conversion (#10012)
-* added note on dns for localtesting (#10021)
-* added helmshowvalues example (#10019)
-* release controller 1.8.0 and chart 4.7.0 (#10017)
-
-### Dependency updates:
-
-* Bump ossf/scorecard-action from 2.1.3 to 2.2.0 (#10133)
-* Bump google.golang.org/grpc from 1.56.0 to 1.56.1 (#10134)
-* Bump github.com/prometheus/client_golang from 1.15.1 to 1.16.0 (#10106)
-* Bump golang.org/x/crypto from 0.9.0 to 0.10.0 (#10105)
-* Bump google.golang.org/grpc from 1.55.0 to 1.56.0 (#10103)
-* Bump goreleaser/goreleaser-action from 4.2.0 to 4.3.0 (#10101)
-* Bump docker/setup-buildx-action from 2.6.0 to 2.7.0 (#10102)
-* Bump actions/checkout from 3.5.2 to 3.5.3 (#10076)
-* Bump docker/setup-qemu-action from 2.1.0 to 2.2.0 (#10075)
-* Bump aquasecurity/trivy-action from 0.10.0 to 0.11.2 (#10078)
-* Bump docker/setup-buildx-action from 2.5.0 to 2.6.0 (#10077)
-* Bump actions/dependency-review-action from 3.0.4 to 3.0.6 (#10042)
-* Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#10041)
-* Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (#10005)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-controller-v1.8.0...controller-controller-v1.8.1
diff --git a/changelog/controller-1.8.2.md b/changelog/controller-1.8.2.md
deleted file mode 100644
index 0c20decc9..000000000
--- a/changelog/controller-1.8.2.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Changelog
-
-### 1.8.2
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.8.2@sha256:74834d3d25b336b62cabeb8bf7f1d788706e2cf1cfd64022de4137ade8881ff2
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.8.2@sha256:1317a563219f755a6094d990057c78e5c4dcea5e31f4ce1db8641e732a7d6133
-
-### All changes:
-
-* Release v1.8.2 and Update Go to v1.21.1 (#10379)
-* Making auth access logs optional (#10380)
-* [release-1.8] Disable Modsecurity from internal processing which affects large ingresses (#10375)
-* promote distroless otel init image (#10270)
-* [release-1.8] Update images tags after adding git data in gcloud (#10233)
-* [release-1.8] Golang 1.20.6 for test runner (#10231)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-controller-v1.8.1...controller-controller-v1.8.2
diff --git a/changelog/controller-1.9.0-beta.0.md b/changelog/controller-1.9.0-beta.0.md
deleted file mode 100644
index 5ca5cfeeb..000000000
--- a/changelog/controller-1.9.0-beta.0.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# Changelog
-
-### 1.9.0-beta.0
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.9.0-beta.0@sha256:531377e4cc9dc62af40d742402222603259673f5a755a64d74122f256dfad8f9
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.9.0-beta.0@sha256:60b4c95349ce2a81a3b2a76423ee483b847b89d3fa8cb148468434f606f3fa0c
-
-### All changes:
-
-* Rework mage (#10418)
-* Start release of v1.9.0 beta0 (#10407)
-* Update k8s versions on CI (#10406)
-* Add a flag to enable or disable aio_write (#10394)
-* Update external-articles.md - advanced setup with GKE/Cloud Armor/IAP (#10372)
-* Fix e2e test suite doc (#10396)
-* Disable user snippets per default (#10393)
-* Deployment/DaemonSet: Fix templating & value. (#10240)
-* Fix deferInLoop error (#10387)
-* Remove gofmt (#10385)
-* Deployment/DaemonSet: Template `topologySpreadConstraints`. (#10259)
-* release notes 1.8.2 (#10389)
-* fix: remove curl on base container #9716 (#10306)
-* Fix http default backend test (#10382)
-* Add golangci github action and replace the deprecated golint (#10187)
-* BUGFIX incorrect indentation (#10254)
-* Upgrade OpenTelemetry to v1.11.0 and gRPC to v1.57.0 (#10352)
-* fix: path with special characters warning #10281 #10308 (#10330)
-* Fix golangci-lint errors (#10196)
-* chore(build): Fix Run make dev-env syntax error (#10294)
-* Add firewall configuration to quick start documentation (#10357)
-* Making auth access logs optional (#10335)
-* Fix “dev-env” Makefile target to work with kubectl 1.28+ (#10350)
-* fix: update action file to auto release plugin #10197 (#10321)
-* Use gzip instead of pigz in CI (#10348)
-* Disable Modsecurity from internal processing which affects large ingresses (#10316)
-* fix: add /etc/mime.types #10309 (#10310)
-* Remove curl dependencies in e2e tests #9716 (#10296)
-* docs: swap explanation to match example (#10220)
-* ci(helm): fix Helm Chart release action 422 error (#10237)
-* helm: Use .Release.Namespace as default for ServiceMonitor namespace (#10249)
-* Updated index.md - Fix typos (#10256)
-* Handle request_id variable correctly in auth requests (#9219)
-* test kind updates (#10272)
-* promote distroless otel init image (#10257)
-* [helm] configure allow to configure hostAliases (#10180)
-* Add rolling update strategy to each static deployment file (#10129)
-* Implement annotation validation (#9673)
-* Golang 1.20.6 for test runner (#10230)
-* [helm] pass service annotations through helm tpl engine (#10084)
-* Ignore deployment template's replicas if KEDA is enabled (#9534)
-* chore: bump OpenResty to v1.21.4.2 (#10219)
-* Scanning port 10247 lead to tcp connection 502 error (#9815)
-* revise Datadog trace sampling configuration (#10151)
-* Clarify TCP/UDP service docs (#10146)
-* Exposed continent data as variable in the case of Maxmind city files (#10157)
-* Cleanup errcheck code (#10166)
-* Fix golang-ci linter errors (#10128)
-* Deprecate and remove AJP support (#10158)
-* release notes 1.8.1 (#10161)
-
-### Dependency updates:
-
-* Bump github.com/onsi/ginkgo/v2 from 2.9.5 to 2.12.0 (#10355)
-* Bump golang.org/x/crypto from 0.12.0 to 0.13.0 (#10399)
-* Bump actions/setup-go from 4.0.1 to 4.1.0 (#10403)
-* Bump goreleaser/goreleaser-action from 4.4.0 to 4.6.0 (#10402)
-* Bump actions/upload-artifact from 3.1.2 to 3.1.3 (#10404)
-* Bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 (#10400)
-* Bump google.golang.org/grpc from 1.57.0 to 1.58.0 (#10398)
-* Bump actions/dependency-review-action from 3.0.8 to 3.1.0 (#10401)
-* Bump github.com/cyphar/filepath-securejoin from 0.2.3 to 0.2.4 (#10373)
-* Bump github.com/cyphar/filepath-securejoin in /magefiles (#10374)
-* Bump Go version to 1.21.1 (#10377)
-* Bump Go version to 1.21.1 on testrunner (#10378)
-* Bump aquasecurity/trivy-action from 0.11.2 to 0.12.0 (#10365)
-* Bump docker/setup-buildx-action from 2.9.1 to 2.10.0 (#10353)
-* Bump actions/checkout from 3.5.3 to 3.6.0 (#10354)
-* Bump actions/dependency-review-action from 3.0.6 to 3.0.8 (#10333)
-* Bump actions/setup-go from 4.0.1 to 4.1.0 (#10313)
-* Bump securego/gosec from 2.16.0 to 2.17.0 (#10332)
-* Bump goreleaser/goreleaser-action from 4.3.0 to 4.4.0 (#10314)
-* Bump github.com/opencontainers/runc from 1.1.8 to 1.1.9 (#10298)
-* Bump k8s.io/component-base from 0.26.4 to 0.27.4 (Replace Topology Aware Hints with Topology Aware Routing) (#10282)
-* Bump google.golang.org/grpc from 1.56.2 to 1.57.0 (#10258)
-* Bump golang.org/x/crypto from 0.11.0 to 0.12.0 (#10280)
-* Bump github.com/opencontainers/runc from 1.1.7 to 1.1.8 (#10244)
-* Bump google.golang.org/grpc from 1.56.1 to 1.56.2 (#10193)
-* Bump docker/setup-buildx-action from 2.9.0 to 2.9.1 (#10207)
-* Bump golang.org/x/crypto from 0.10.0 to 0.11.0 (#10192)
-* Bump docker/setup-buildx-action from 2.8.0 to 2.9.0 (#10191)
-* Bump docker/setup-buildx-action from 2.7.0 to 2.8.0 (#10165)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-release-1.8...controller-controller-v1.9.0-beta.0
diff --git a/changelog/controller-1.9.0.md b/changelog/controller-1.9.0.md
deleted file mode 100644
index d6b000acc..000000000
--- a/changelog/controller-1.9.0.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# Changelog
-
-### 1.9.0
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.9.0@sha256:c15d1a617858d90fb8f8a2dd60b0676f2bb85c54e3ed11511794b86ec30c8c60
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.9.0@sha256:d9fa7a136de2104fb2ecfcf1666978bfab927f4a125b75c0fb471e6104366ab5
-
-### All changes:
-
-* Rework mage (#10418)
-* Start release of v1.9.0 beta0 (#10407)
-* Update k8s versions on CI (#10406)
-* Add a flag to enable or disable aio_write (#10394)
-* Update external-articles.md - advanced setup with GKE/Cloud Armor/IAP (#10372)
-* Fix e2e test suite doc (#10396)
-* Disable user snippets per default (#10393)
-* Deployment/DaemonSet: Fix templating & value. (#10240)
-* Fix deferInLoop error (#10387)
-* Remove gofmt (#10385)
-* Deployment/DaemonSet: Template `topologySpreadConstraints`. (#10259)
-* release notes 1.8.2 (#10389)
-* fix: remove curl on base container #9716 (#10306)
-* Fix http default backend test (#10382)
-* Add golangci github action and replace the deprecated golint (#10187)
-* BUGFIX incorrect indentation (#10254)
-* Upgrade OpenTelemetry to v1.11.0 and gRPC to v1.57.0 (#10352)
-* fix: path with special characters warning #10281 #10308 (#10330)
-* Fix golangci-lint errors (#10196)
-* chore(build): Fix Run make dev-env syntax error (#10294)
-* Add firewall configuration to quick start documentation (#10357)
-* Making auth access logs optional (#10335)
-* Fix “dev-env” Makefile target to work with kubectl 1.28+ (#10350)
-* fix: update action file to auto release plugin #10197 (#10321)
-* Use gzip instead of pigz in CI (#10348)
-* Disable Modsecurity from internal processing which affects large ingresses (#10316)
-* fix: add /etc/mime.types #10309 (#10310)
-* Remove curl dependencies in e2e tests #9716 (#10296)
-* docs: swap explanation to match example (#10220)
-* ci(helm): fix Helm Chart release action 422 error (#10237)
-* helm: Use .Release.Namespace as default for ServiceMonitor namespace (#10249)
-* Updated index.md - Fix typos (#10256)
-* Handle request_id variable correctly in auth requests (#9219)
-* test kind updates (#10272)
-* promote distroless otel init image (#10257)
-* [helm] configure allow to configure hostAliases (#10180)
-* Add rolling update strategy to each static deployment file (#10129)
-* Implement annotation validation (#9673)
-* Golang 1.20.6 for test runner (#10230)
-* [helm] pass service annotations through helm tpl engine (#10084)
-* Ignore deployment template's replicas if KEDA is enabled (#9534)
-* chore: bump OpenResty to v1.21.4.2 (#10219)
-* Scanning port 10247 lead to tcp connection 502 error (#9815)
-* revise Datadog trace sampling configuration (#10151)
-* Clarify TCP/UDP service docs (#10146)
-* Exposed continent data as variable in the case of Maxmind city files (#10157)
-* Cleanup errcheck code (#10166)
-* Fix golang-ci linter errors (#10128)
-* Deprecate and remove AJP support (#10158)
-* release notes 1.8.1 (#10161)
-
-### Dependency updates:
-
-* Bump github.com/onsi/ginkgo/v2 from 2.9.5 to 2.12.0 (#10355)
-* Bump golang.org/x/crypto from 0.12.0 to 0.13.0 (#10399)
-* Bump actions/setup-go from 4.0.1 to 4.1.0 (#10403)
-* Bump goreleaser/goreleaser-action from 4.4.0 to 4.6.0 (#10402)
-* Bump actions/upload-artifact from 3.1.2 to 3.1.3 (#10404)
-* Bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 (#10400)
-* Bump google.golang.org/grpc from 1.57.0 to 1.58.0 (#10398)
-* Bump actions/dependency-review-action from 3.0.8 to 3.1.0 (#10401)
-* Bump github.com/cyphar/filepath-securejoin from 0.2.3 to 0.2.4 (#10373)
-* Bump github.com/cyphar/filepath-securejoin in /magefiles (#10374)
-* Bump Go version to 1.21.1 (#10377)
-* Bump Go version to 1.21.1 on testrunner (#10378)
-* Bump aquasecurity/trivy-action from 0.11.2 to 0.12.0 (#10365)
-* Bump docker/setup-buildx-action from 2.9.1 to 2.10.0 (#10353)
-* Bump actions/checkout from 3.5.3 to 3.6.0 (#10354)
-* Bump actions/dependency-review-action from 3.0.6 to 3.0.8 (#10333)
-* Bump actions/setup-go from 4.0.1 to 4.1.0 (#10313)
-* Bump securego/gosec from 2.16.0 to 2.17.0 (#10332)
-* Bump goreleaser/goreleaser-action from 4.3.0 to 4.4.0 (#10314)
-* Bump github.com/opencontainers/runc from 1.1.8 to 1.1.9 (#10298)
-* Bump k8s.io/component-base from 0.26.4 to 0.27.4 (Replace Topology Aware Hints with Topology Aware Routing) (#10282)
-* Bump google.golang.org/grpc from 1.56.2 to 1.57.0 (#10258)
-* Bump golang.org/x/crypto from 0.11.0 to 0.12.0 (#10280)
-* Bump github.com/opencontainers/runc from 1.1.7 to 1.1.8 (#10244)
-* Bump google.golang.org/grpc from 1.56.1 to 1.56.2 (#10193)
-* Bump docker/setup-buildx-action from 2.9.0 to 2.9.1 (#10207)
-* Bump golang.org/x/crypto from 0.10.0 to 0.11.0 (#10192)
-* Bump docker/setup-buildx-action from 2.8.0 to 2.9.0 (#10191)
-* Bump docker/setup-buildx-action from 2.7.0 to 2.8.0 (#10165)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-release-1.8...controller-controller-v1.9.0
diff --git a/changelog/controller-1.9.1.md b/changelog/controller-1.9.1.md
deleted file mode 100644
index b05c88eae..000000000
--- a/changelog/controller-1.9.1.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Changelog
-
-### 1.9.1
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.9.1@sha256:605a737877de78969493a4b1213b21de4ee425d2926906857b98050f57a95b25
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.9.1@sha256:2ac744ef08850ee86ad7162451a6879f47c1a41c6a757f6b6f913c52103b8836
-
-### All changes:
-
-* upgrade owasp modsecurity core rule set to v3.3.5 (#10437)
-* Start v1.9.1 release (#10463)
-* Accept backend protocol on any case (#10461)
-* Chart: Rework network policies. (#10438)
-
-### Dependency updates:
-
-* Bump google.golang.org/grpc from 1.58.0 to 1.58.1 (#10436)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-controller-v1.9.0...controller-controller-v1.9.1
diff --git a/changelog/controller-1.9.3.md b/changelog/controller-1.9.3.md
deleted file mode 100644
index 59ba545d9..000000000
--- a/changelog/controller-1.9.3.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# Changelog
-
-### 1.9.3
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.9.3@sha256:8fd21d59428507671ce0fb47f818b1d859c92d2ad07bb7c947268d433030ba98
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.9.3@sha256:df4931fd6859fbf1a71e785f02a44b2f9a16f010ae852c442e9bb779cbefdc86
-
-### All changes:
-
-* update nginx base, httpbun, e2e, helm webhook cert gen (#10506)
-* added warning for configuration-snippets usage (#10492)
-* Remove legacy GeoIP from controller (#10495)
-* add upstream patch for CVE-2023-44487 (#10494)
-* Revert "Remove curl from nginx base image (#10477)" (#10479)
-* update error and otel to have all the arch we support (#10476)
-* Remove curl from nginx base image (#10477)
-
-### Dependency updates:
-
-* Bump x/net (#10514)
-* Bump curl and Go version (#10503)
-* Bump google.golang.org/grpc from 1.58.2 to 1.58.3 (#10496)
-* Bump github.com/prometheus/client_model (#10486)
-* Bump ossf/scorecard-action from 2.2.0 to 2.3.0 (#10487)
-* Bump golang.org/x/crypto from 0.13.0 to 0.14.0 (#10485)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-controller-v1.9.1...controller-controller-v1.9.3
diff --git a/changelog/controller-1.9.4.md b/changelog/controller-1.9.4.md
deleted file mode 100644
index 69c6ad2e3..000000000
--- a/changelog/controller-1.9.4.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Changelog
-
-### 1.9.4
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.9.4@sha256:5b161f051d017e55d358435f295f5e9a297e66158f136321d9b04520ec6c48a3
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.9.4@sha256:5976b1067cfbca8a21d0ba53d71f83543a73316a61ea7f7e436d6cf84ddf9b26
-
-### All changes:
-
-* Cherry pick fcgi fix and release v1.9.4 (#10544)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-controller-v1.9.3...controller-controller-v1.9.4
diff --git a/changelog/controller-1.9.5.md b/changelog/controller-1.9.5.md
deleted file mode 100644
index 51b23ba64..000000000
--- a/changelog/controller-1.9.5.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Changelog
-
-### controller-v1.9.5
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.9.5@sha256:b3aba22b1da80e7acfc52b115cae1d4c687172cbf2b742d5b502419c25ff340e
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.9.5@sha256:9a8d7b25a846a6461cd044b9aea9cf6cad972bcf2e64d9fd246c0279979aad2d
-
-### All changes:
-
-* update nginx build (#10781)
-* update images from golang upgrade (#10762)
-* fix: remove tcpproxy copy error handling (#10715)
-* Ignore fake certificate for NGINXCertificateExpiry (#10694)
-* Comment NGINXCertificateExpiry alert label matcher (#10692)
-* chart: allow setting allocateLoadBalancerNodePorts (#10693)
-* [release-1.9] feat(helm): add documentation about metric args (#10695)
-* chore(dep): change lua-resty-cookie's repo (#10691)
-* annotation validation - extended URLWithNginxVariableRegex from alphaNumericChars to extendedAlphaNumeric (#10656)
-* fix: adjust unfulfillable validation check for session-cookie-samesite annotation (#10604)
-* fix: Validate x-forwarded-prefix annotation with RegexPathWithCapture (#10603)
-* Increase HSTS max-age to default to one year (#10580)
-* [release-1.9] update nginx base, httpbun, e2e, helm webhook cert gen (#10507)
-* [release-1.9] add upstream patch for CVE-2023-44487 (#10499)
-* fix brotli build issues (#10468)
-* upgrade owasp modsecurity core rule set to v3.3.5 (#10437)
-* Accept backend protocol on any case (#10461)
-* Chart: Rework network policies. (#10438)
-* Rework mage (#10418)
-
-### Dependency updates:
-
-* Bump x/net (#10517)
-* Bump google.golang.org/grpc from 1.58.0 to 1.58.1 (#10436)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.9.4...controller-v1.9.5
diff --git a/changelog/controller-1.9.6.md b/changelog/controller-1.9.6.md
deleted file mode 100644
index ccc382644..000000000
--- a/changelog/controller-1.9.6.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Changelog
-
-### controller-v1.9.6
-
-Images:
-
-* registry.k8s.io/ingress-nginx/controller:v1.9.6@sha256:1405cc613bd95b2c6edd8b2a152510ae91c7e62aea4698500d23b2145960ab9c
-* registry.k8s.io/ingress-nginx/controller-chroot:v1.9.6@sha256:7eb46ff733429e0e46892903c7394aff149ac6d284d92b3946f3baf7ff26a096
-
-### All changes:
-
-* update web hook cert gen to latest release v20231226-1a7112e06
-* annotation validation: validate regex in common name annotation (#10880)
-* change MODSECURITY_VERSION_LIB to 3.0.11 (#10879)
-* Include SECLEVEL and STRENGTH as part of ssl-cipher list validation (#10871)
-
-### Dependency updates:
-
-* Bump github.com/opencontainers/runc from 1.1.10 to 1.1.11 (#10878)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/controller-v1.9.5...controller-v1.9.6
diff --git a/changelog/controller.md.gotmpl b/changelog/controller.md.gotmpl
deleted file mode 100644
index 0d7ad5588..000000000
--- a/changelog/controller.md.gotmpl
+++ /dev/null
@@ -1,22 +0,0 @@
-# Changelog
-
-### {{ .NewControllerVersion }}
-{{ with .ControllerImages }}
-Images:
-{{ range . }}
-* {{ .Registry }}/{{ .Name }}:{{ .Tag}}@{{ .Digest }}
-{{- end }}
-{{ end }}
-{{- with .Updates }}
-### All changes:
-{{ range . }}
-* {{ . }}
-{{- end }}
-{{ end }}
-{{- with .DepUpdates }}
-### Dependency updates:
-{{ range . }}
-* {{ . }}
-{{- end }}
-{{ end }}
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/{{ .PreviousControllerVersion }}...{{ .NewControllerVersion }}
diff --git a/charts/ingress-nginx/.helmignore b/charts/ingress-nginx/.helmignore
index 109b40811..50af03172 100644
--- a/charts/ingress-nginx/.helmignore
+++ b/charts/ingress-nginx/.helmignore
@@ -20,4 +20,3 @@
.idea/
*.tmproj
.vscode/
-__snapshot__
diff --git a/charts/ingress-nginx/CHANGELOG.md b/charts/ingress-nginx/CHANGELOG.md
new file mode 100644
index 000000000..1711f4aa8
--- /dev/null
+++ b/charts/ingress-nginx/CHANGELOG.md
@@ -0,0 +1,242 @@
+# Changelog
+
+This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
+
+### 3.32.0
+
+- [7117] https://github.com/kubernetes/ingress-nginx/pull/7117 Add annotations for HPA
+
+### 3.31.0
+
+- [7137] https://github.com/kubernetes/ingress-nginx/pull/7137 Add support for custom probes
+
+### 3.30.0
+
+- [#7092](https://github.com/kubernetes/ingress-nginx/pull/7092) Removes the possibility of using localhost in ExternalNames as endpoints
+
+### 3.29.0
+
+- [X] [#6945](https://github.com/kubernetes/ingress-nginx/pull/7020) Add option to specify job label for ServiceMonitor
+
+### 3.28.0
+
+- [ ] [#6900](https://github.com/kubernetes/ingress-nginx/pull/6900) Support existing PSPs
+
+### 3.27.0
+
+- Update ingress-nginx v0.45.0
+
+### 3.26.0
+
+- [X] [#6979](https://github.com/kubernetes/ingress-nginx/pull/6979) Changed servicePort value for metrics
+
+### 3.25.0
+
+- [X] [#6957](https://github.com/kubernetes/ingress-nginx/pull/6957) Add ability to specify automountServiceAccountToken
+
+### 3.24.0
+
+- [X] [#6908](https://github.com/kubernetes/ingress-nginx/pull/6908) Add volumes to default-backend deployment
+
+### 3.23.0
+
+- Update ingress-nginx v0.44.0
+
+### 3.22.0
+
+- [X] [#6802](https://github.com/kubernetes/ingress-nginx/pull/6802) Add value for configuring a custom Diffie-Hellman parameters file
+- [X] [#6815](https://github.com/kubernetes/ingress-nginx/pull/6815) Allow use of numeric namespaces in helm chart
+
+### 3.21.0
+
+- [X] [#6783](https://github.com/kubernetes/ingress-nginx/pull/6783) Add custom annotations to ScaledObject
+- [X] [#6761](https://github.com/kubernetes/ingress-nginx/pull/6761) Adding quotes in the serviceAccount name in Helm values
+- [X] [#6767](https://github.com/kubernetes/ingress-nginx/pull/6767) Remove ClusterRole when scope option is enabled
+- [X] [#6785](https://github.com/kubernetes/ingress-nginx/pull/6785) Update kube-webhook-certgen image to v1.5.1
+
+### 3.20.1
+
+- Do not create KEDA in case of DaemonSets.
+- Fix KEDA v2 definition
+
+### 3.20.0
+
+- [X] [#6730](https://github.com/kubernetes/ingress-nginx/pull/6730) Do not create HPA for defaultBackend if not enabled.
+
+### 3.19.0
+
+- Update ingress-nginx v0.43.0
+
+### 3.18.0
+
+- [X] [#6688](https://github.com/kubernetes/ingress-nginx/pull/6688) Allow volume-type emptyDir in controller podsecuritypolicy
+- [X] [#6691](https://github.com/kubernetes/ingress-nginx/pull/6691) Improve parsing of helm parameters
+
+### 3.17.0
+
+- Update ingress-nginx v0.42.0
+
+### 3.16.1
+
+- Fix chart-releaser action
+
+### 3.16.0
+
+- [X] [#6646](https://github.com/kubernetes/ingress-nginx/pull/6646) Added LoadBalancerIP value for internal service
+
+### 3.15.1
+
+- Fix chart-releaser action
+
+### 3.15.0
+
+- [X] [#6586](https://github.com/kubernetes/ingress-nginx/pull/6586) Fix 'maxmindLicenseKey' location in values.yaml
+
+### 3.14.0
+
+- [X] [#6469](https://github.com/kubernetes/ingress-nginx/pull/6469) Allow custom service names for controller and backend
+
+### 3.13.0
+
+- [X] [#6544](https://github.com/kubernetes/ingress-nginx/pull/6544) Fix default backend HPA name variable
+
+### 3.12.0
+
+- [X] [#6514](https://github.com/kubernetes/ingress-nginx/pull/6514) Remove helm2 support and update docs
+
+### 3.11.1
+
+- [X] [#6505](https://github.com/kubernetes/ingress-nginx/pull/6505) Reorder HPA resource list to work with GitOps tooling
+
+### 3.11.0
+
+- Support Keda Autoscaling
+
+### 3.10.1
+
+- Fix regression introduced in 0.41.0 with external authentication
+
+### 3.10.0
+
+- Fix routing regression introduced in 0.41.0 with PathType Exact
+
+### 3.9.0
+
+- [X] [#6423](https://github.com/kubernetes/ingress-nginx/pull/6423) Add Default backend HPA autoscaling
+
+### 3.8.0
+
+- [X] [#6395](https://github.com/kubernetes/ingress-nginx/pull/6395) Update jettech/kube-webhook-certgen image
+- [X] [#6377](https://github.com/kubernetes/ingress-nginx/pull/6377) Added loadBalancerSourceRanges for internal lbs
+- [X] [#6356](https://github.com/kubernetes/ingress-nginx/pull/6356) Add securitycontext settings on defaultbackend
+- [X] [#6401](https://github.com/kubernetes/ingress-nginx/pull/6401) Fix controller service annotations
+- [X] [#6403](https://github.com/kubernetes/ingress-nginx/pull/6403) Initial helm chart changelog
+
+### 3.7.1
+
+- [X] [#6326](https://github.com/kubernetes/ingress-nginx/pull/6326) Fix liveness and readiness probe path in daemonset chart
+
+### 3.7.0
+
+- [X] [#6316](https://github.com/kubernetes/ingress-nginx/pull/6316) Numerals in podAnnotations in quotes [#6315](https://github.com/kubernetes/ingress-nginx/issues/6315)
+
+### 3.6.0
+
+- [X] [#6305](https://github.com/kubernetes/ingress-nginx/pull/6305) Add default linux nodeSelector
+
+### 3.5.1
+
+- [X] [#6299](https://github.com/kubernetes/ingress-nginx/pull/6299) Fix helm chart release
+
+### 3.5.0
+
+- [X] [#6260](https://github.com/kubernetes/ingress-nginx/pull/6260) Allow Helm Chart to customize admission webhook's annotations, timeoutSeconds, namespaceSelector, objectSelector and cert files locations
+
+### 3.4.0
+
+- [X] [#6268](https://github.com/kubernetes/ingress-nginx/pull/6268) Update to 0.40.2 in helm chart #6288
+
+### 3.3.1
+
+- [X] [#6259](https://github.com/kubernetes/ingress-nginx/pull/6259) Release helm chart
+- [X] [#6258](https://github.com/kubernetes/ingress-nginx/pull/6258) Fix chart markdown link
+- [X] [#6253](https://github.com/kubernetes/ingress-nginx/pull/6253) Release v0.40.0
+
+### 3.3.1
+
+- [X] [#6233](https://github.com/kubernetes/ingress-nginx/pull/6233) Add admission controller e2e test
+
+### 3.3.0
+
+- [X] [#6203](https://github.com/kubernetes/ingress-nginx/pull/6203) Refactor parsing of key values
+- [X] [#6162](https://github.com/kubernetes/ingress-nginx/pull/6162) Add helm chart options to expose metrics service as NodePort
+- [X] [#6180](https://github.com/kubernetes/ingress-nginx/pull/6180) Fix helm chart admissionReviewVersions regression
+- [X] [#6169](https://github.com/kubernetes/ingress-nginx/pull/6169) Fix Typo in example prometheus rules
+
+### 3.0.0
+
+- [X] [#6167](https://github.com/kubernetes/ingress-nginx/pull/6167) Update chart requirements
+
+### 2.16.0
+
+- [X] [#6154](https://github.com/kubernetes/ingress-nginx/pull/6154) add `topologySpreadConstraint` to controller
+
+### 2.15.0
+
+- [X] [#6087](https://github.com/kubernetes/ingress-nginx/pull/6087) Adding parameter for externalTrafficPolicy in internal controller service spec
+
+### 2.14.0
+
+- [X] [#6104](https://github.com/kubernetes/ingress-nginx/pull/6104) Misc fixes for nginx-ingress chart for better keel and prometheus-operator integration
+
+### 2.13.0
+
+- [X] [#6093](https://github.com/kubernetes/ingress-nginx/pull/6093) Release v0.35.0
+
+### 2.13.0
+
+- [X] [#6093](https://github.com/kubernetes/ingress-nginx/pull/6093) Release v0.35.0
+- [X] [#6080](https://github.com/kubernetes/ingress-nginx/pull/6080) Switch images to k8s.gcr.io after Vanity Domain Flip
+
+### 2.12.1
+
+- [X] [#6075](https://github.com/kubernetes/ingress-nginx/pull/6075) Sync helm chart affinity examples
+
+### 2.12.0
+
+- [X] [#6039](https://github.com/kubernetes/ingress-nginx/pull/6039) Add configurable serviceMonitor metricRelabelling and targetLabels
+- [X] [#6044](https://github.com/kubernetes/ingress-nginx/pull/6044) Fix YAML linting
+
+### 2.11.3
+
+- [X] [#6038](https://github.com/kubernetes/ingress-nginx/pull/6038) Bump chart version PATCH
+
+### 2.11.2
+
+- [X] [#5951](https://github.com/kubernetes/ingress-nginx/pull/5951) Bump chart patch version
+
+### 2.11.1
+
+- [X] [#5900](https://github.com/kubernetes/ingress-nginx/pull/5900) Release helm chart for v0.34.1
+
+### 2.11.0
+
+- [X] [#5879](https://github.com/kubernetes/ingress-nginx/pull/5879) Update helm chart for v0.34.0
+- [X] [#5671](https://github.com/kubernetes/ingress-nginx/pull/5671) Make liveness probe more fault tolerant than readiness probe
+
+### 2.10.0
+
+- [X] [#5843](https://github.com/kubernetes/ingress-nginx/pull/5843) Update jettech/kube-webhook-certgen image
+
+### 2.9.1
+
+- [X] [#5823](https://github.com/kubernetes/ingress-nginx/pull/5823) Add quoting to sysctls because numeric values need to be presented as strings (#5823)
+
+### 2.9.0
+
+- [X] [#5795](https://github.com/kubernetes/ingress-nginx/pull/5795) Use fully qualified images to avoid cri-o issues
+
+
+### TODO
+
+Keep building the changelog using *git log charts* checking the tag
diff --git a/charts/ingress-nginx/Chart.yaml b/charts/ingress-nginx/Chart.yaml
index 11000f43d..6cecb04ab 100644
--- a/charts/ingress-nginx/Chart.yaml
+++ b/charts/ingress-nginx/Chart.yaml
@@ -1,24 +1,24 @@
-annotations:
- artifacthub.io/changes: |
- - 'CI: Fix chart testing. (#12258)'
- - Update Ingress-Nginx version controller-v1.12.0
- artifacthub.io/prerelease: "false"
apiVersion: v2
-appVersion: 1.12.0
-description: Ingress controller for Kubernetes using NGINX as a reverse proxy and
- load balancer
+name: ingress-nginx
+# When the version is modified, make sure the artifacthub.io/changes list is updated
+# Also update CHANGELOG.md
+version: 3.33.0
+appVersion: 0.47.0
home: https://github.com/kubernetes/ingress-nginx
+description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Nginx_logo.svg/500px-Nginx_logo.svg.png
keywords:
-- ingress
-- nginx
-kubeVersion: '>=1.21.0-0'
-maintainers:
-- name: cpanato
-- name: Gacko
-- name: strongjz
-- name: tao12345666333
-name: ingress-nginx
+ - ingress
+ - nginx
sources:
-- https://github.com/kubernetes/ingress-nginx
-version: 4.12.0
+ - https://github.com/kubernetes/ingress-nginx
+type: application
+maintainers:
+ - name: ChiefAlexander
+engine: gotpl
+kubeVersion: ">=1.16.0-0"
+annotations:
+ # List of changes for the release in artifacthub.io
+ # https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx?modal=changelog
+ artifacthub.io/changes: |
+ - Update nginx to v1.20.1
diff --git a/charts/ingress-nginx/OWNERS b/charts/ingress-nginx/OWNERS
index 428474f63..7aadb8dc2 100644
--- a/charts/ingress-nginx/OWNERS
+++ b/charts/ingress-nginx/OWNERS
@@ -1,4 +1,5 @@
-# See the OWNERS docs: https://www.kubernetes.dev/docs/guide/owners
+approvers:
+ - ChiefAlexander
-labels:
-- area/helm
+reviewers:
+ - ChiefAlexander
diff --git a/charts/ingress-nginx/README.md b/charts/ingress-nginx/README.md
index 7d8c1e74f..53657e56f 100644
--- a/charts/ingress-nginx/README.md
+++ b/charts/ingress-nginx/README.md
@@ -2,15 +2,13 @@
[ingress-nginx](https://github.com/kubernetes/ingress-nginx) Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
- 
-
-To use, add `ingressClassName: nginx` spec field or the `kubernetes.io/ingress.class: nginx` annotation to your Ingress resources.
+To use, add the `kubernetes.io/ingress.class: nginx` annotation to your Ingress resources.
This chart bootstraps an ingress-nginx deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
-## Requirements
+## Prerequisites
-Kubernetes: `>=1.21.0-0`
+- Kubernetes v1.16+
## Get Repo Info
@@ -51,6 +49,10 @@ helm upgrade [RELEASE_NAME] [CHART] --install
_See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._
+### Upgrading With Zero Downtime in Production
+
+By default the ingress-nginx controller has service interruptions whenever it's pods are restarted or redeployed. In order to fix that, see the excellent blog post by Lindsay Landry from Codecademy: [Kubernetes: Nginx and Zero Downtime in Production](https://medium.com/codecademy-engineering/kubernetes-nginx-and-zero-downtime-in-production-2c910c6a5ed8).
+
### Migrating from stable/nginx-ingress
There are two main ways to migrate a release from `stable/nginx-ingress` to `ingress-nginx/ingress-nginx` chart:
@@ -61,6 +63,7 @@ There are two main ways to migrate a release from `stable/nginx-ingress` to `ing
1. Redirect your DNS traffic from the old controller to the new controller
1. Log traffic from both controllers during this changeover
1. [Uninstall](#uninstall-chart) the old controller once traffic has fully drained from it
+ 1. For details on all of these steps see [Upgrading With Zero Downtime in Production](#upgrading-with-zero-downtime-in-production)
Note that there are some different and upgraded configurations between the two charts, described by Rimas Mocevicius from JFrog in the "Upgrading to ingress-nginx Helm chart" section of [Migrating from Helm chart nginx-ingress to ingress-nginx](https://rimusz.net/migrating-to-ingress-nginx). As the `ingress-nginx/ingress-nginx` chart continues to update, you will want to check current differences by running [helm configuration](#configuration) commands on both charts.
@@ -79,22 +82,21 @@ else it would make it impossible to evacuate a node. See [gh issue #7127](https:
### Prometheus Metrics
-The Ingress-Nginx Controller can export Prometheus metrics, by setting `controller.metrics.enabled` to `true`.
+The Nginx ingress controller can export Prometheus metrics, by setting `controller.metrics.enabled` to `true`.
-You can add Prometheus annotations to the metrics service using `controller.metrics.service.annotations`.
-Alternatively, if you use the Prometheus Operator, you can enable ServiceMonitor creation using `controller.metrics.serviceMonitor.enabled`. And set `controller.metrics.serviceMonitor.additionalLabels.release="prometheus"`. "release=prometheus" should match the label configured in the prometheus servicemonitor ( see `kubectl get servicemonitor prometheus-kube-prom-prometheus -oyaml -n prometheus`)
+You can add Prometheus annotations to the metrics service using `controller.metrics.service.annotations`. Alternatively, if you use the Prometheus Operator, you can enable ServiceMonitor creation using `controller.metrics.serviceMonitor.enabled`.
### ingress-nginx nginx\_status page/stats server
-Previous versions of this chart had a `controller.stats.*` configuration block, which is now obsolete due to the following changes in Ingress-Nginx Controller:
+Previous versions of this chart had a `controller.stats.*` configuration block, which is now obsolete due to the following changes in nginx ingress controller:
-- In [0.16.1](https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md#0161), the vts (virtual host traffic status) dashboard was removed
-- In [0.23.0](https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md#0230), the status page at port 18080 is now a unix socket webserver only available at localhost.
- You can use `curl --unix-socket /tmp/nginx-status-server.sock http://localhost/nginx_status` inside the controller container to access it locally, or use the snippet from [nginx-ingress changelog](https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md#0230) to re-enable the http server
+- In [0.16.1](https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md#0161), the vts (virtual host traffic status) dashboard was removed
+- In [0.23.0](https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md#0230), the status page at port 18080 is now a unix socket webserver only available at localhost.
+ You can use `curl --unix-socket /tmp/nginx-status-server.sock http://localhost/nginx_status` inside the controller container to access it locally, or use the snippet from [nginx-ingress changelog](https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md#0230) to re-enable the http server
### ExternalDNS Service Configuration
-Add an [ExternalDNS](https://github.com/kubernetes-sigs/external-dns) annotation to the LoadBalancer service:
+Add an [ExternalDNS](https://github.com/kubernetes-incubator/external-dns) annotation to the LoadBalancer service:
```yaml
controller:
@@ -105,7 +107,7 @@ controller:
### AWS L7 ELB with SSL Termination
-Annotate the controller as shown in the [nginx-ingress l7 patch](https://github.com/kubernetes/ingress-nginx/blob/ab3a789caae65eec4ad6e3b46b19750b481b6bce/deploy/aws/l7/service-l7.yaml):
+Annotate the controller as shown in the [nginx-ingress l7 patch](https://github.com/kubernetes/ingress-nginx/blob/master/deploy/aws/l7/service-l7.yaml):
```yaml
controller:
@@ -120,6 +122,19 @@ controller:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: '3600'
```
+### AWS route53-mapper
+
+To configure the LoadBalancer service with the [route53-mapper addon](https://github.com/kubernetes/kops/tree/master/addons/route53-mapper), add the `domainName` annotation and `dns` label:
+
+```yaml
+controller:
+ service:
+ labels:
+ dns: "route53"
+ annotations:
+ domainName: "kubernetes-example.com"
+```
+
### Additional Internal Load Balancer
This setup is useful when you need both external and internal load balancers but don't want to have multiple ingress controllers and multiple ingress objects per application.
@@ -143,10 +158,8 @@ controller:
internal:
enabled: true
annotations:
- # Create internal NLB
- service.beta.kubernetes.io/aws-load-balancer-scheme: "internal"
- # Create internal ELB(Deprecated)
- # service.beta.kubernetes.io/aws-load-balancer-internal: "true"
+ # Create internal ELB
+ service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
# Any other annotation can be declared here.
```
@@ -158,13 +171,13 @@ controller:
internal:
enabled: true
annotations:
- # Create internal LB. More information: https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing
+ # Create internal LB. More informations: https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing
# For GKE versions 1.17 and later
networking.gke.io/load-balancer-type: "Internal"
# For earlier versions
# cloud.google.com/load-balancer-type: "Internal"
-
- # Any other annotation can be declared here.
+
+ # Any other annotation can be declared here.
```
Example for Azure:
@@ -189,34 +202,17 @@ controller:
# Any other annotation can be declared here.
```
-The load balancer annotations of more cloud service providers can be found: [Internal load balancer](https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer).
-
An use case for this scenario is having a split-view DNS setup where the public zone CNAME records point to the external balancer URL while the private zone CNAME records point to the internal balancer URL. This way, you only need one ingress kubernetes object.
Optionally you can set `controller.service.loadBalancerIP` if you need a static IP for the resulting `LoadBalancer`.
### Ingress Admission Webhooks
-With nginx-ingress-controller version 0.25+, the Ingress-Nginx Controller pod exposes an endpoint that will integrate with the `validatingwebhookconfiguration` Kubernetes feature to prevent bad ingress from being added to the cluster.
+With nginx-ingress-controller version 0.25+, the nginx ingress controller pod exposes an endpoint that will integrate with the `validatingwebhookconfiguration` Kubernetes feature to prevent bad ingress from being added to the cluster.
**This feature is enabled by default since 0.31.0.**
With nginx-ingress-controller in 0.25.* work only with kubernetes 1.14+, 0.26 fix [this issue](https://github.com/kubernetes/ingress-nginx/pull/4521)
-#### How the Chart Configures the Hooks
-A validating and configuration requires the endpoint to which the request is sent to use TLS. It is possible to set up custom certificates to do this, but in most cases, a self-signed certificate is enough. The setup of this component requires some more complex orchestration when using helm. The steps are created to be idempotent and to allow turning the feature on and off without running into helm quirks.
-
-1. A pre-install hook provisions a certificate into the same namespace using a format compatible with provisioning using end user certificates. If the certificate already exists, the hook exits.
-2. The Ingress-Nginx Controller pod is configured to use a TLS proxy container, which will load that certificate.
-3. Validating and Mutating webhook configurations are created in the cluster.
-4. A post-install hook reads the CA from the secret created by step 1 and patches the Validating and Mutating webhook configurations. This process will allow a custom CA provisioned by some other process to also be patched into the webhook configurations. The chosen failure policy is also patched into the webhook configurations
-
-#### Alternatives
-It should be possible to use [cert-manager/cert-manager](https://github.com/cert-manager/cert-manager) if a more complete solution is required.
-
-You can enable automatic self-signed TLS certificate provisioning via cert-manager by setting the `controller.admissionWebhooks.certManager.enabled` value to true.
-
-Please ensure that cert-manager is correctly installed and configured.
-
### Helm Error When Upgrading: spec.clusterIP: Invalid value: ""
If you are upgrading this chart from a version between 0.31.0 and 1.2.2 then you may get an error like this:
@@ -228,349 +224,3 @@ Error: UPGRADE FAILED: Service "?????-controller" is invalid: spec.clusterIP: In
Detail of how and why are in [this issue](https://github.com/helm/charts/pull/13646) but to resolve this you can set `xxxx.service.omitClusterIP` to `true` where `xxxx` is the service referenced in the error.
As of version `1.26.0` of this chart, by simply not providing any clusterIP value, `invalid: spec.clusterIP: Invalid value: "": field is immutable` will no longer occur since `clusterIP: ""` will not be rendered.
-
-### Pod Security Admission
-
-You can use Pod Security Admission by applying labels to the `ingress-nginx` namespace as instructed by the [documentation](https://kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-namespace-labels).
-
-Example:
-
-```yaml
-apiVersion: v1
-kind: Namespace
-metadata:
- name: ingress-nginx
- labels:
- kubernetes.io/metadata.name: ingress-nginx
- name: ingress-nginx
- pod-security.kubernetes.io/enforce: restricted
- pod-security.kubernetes.io/enforce-version: v1.31
-```
-
-## Values
-
-| Key | Type | Default | Description |
-|-----|------|---------|-------------|
-| commonLabels | object | `{}` | |
-| controller.addHeaders | object | `{}` | Will add custom headers before sending response traffic to the client according to: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#add-headers |
-| controller.admissionWebhooks.annotations | object | `{}` | |
-| controller.admissionWebhooks.certManager.admissionCert.duration | string | `""` | |
-| controller.admissionWebhooks.certManager.enabled | bool | `false` | |
-| controller.admissionWebhooks.certManager.rootCert.duration | string | `""` | |
-| controller.admissionWebhooks.certificate | string | `"/usr/local/certificates/cert"` | |
-| controller.admissionWebhooks.createSecretJob.name | string | `"create"` | |
-| controller.admissionWebhooks.createSecretJob.resources | object | `{}` | |
-| controller.admissionWebhooks.createSecretJob.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532,"seccompProfile":{"type":"RuntimeDefault"}}` | Security context for secret creation containers |
-| controller.admissionWebhooks.enabled | bool | `true` | |
-| controller.admissionWebhooks.extraEnvs | list | `[]` | Additional environment variables to set |
-| controller.admissionWebhooks.failurePolicy | string | `"Fail"` | Admission Webhook failure policy to use |
-| controller.admissionWebhooks.key | string | `"/usr/local/certificates/key"` | |
-| controller.admissionWebhooks.labels | object | `{}` | Labels to be added to admission webhooks |
-| controller.admissionWebhooks.name | string | `"admission"` | |
-| controller.admissionWebhooks.namespaceSelector | object | `{}` | |
-| controller.admissionWebhooks.objectSelector | object | `{}` | |
-| controller.admissionWebhooks.patch.enabled | bool | `true` | |
-| controller.admissionWebhooks.patch.image.digest | string | `"sha256:0de05718b59dc33b57ddfb4d8ad5f637cefd13eafdec0e1579d782b3483c27c3"` | |
-| controller.admissionWebhooks.patch.image.image | string | `"ingress-nginx/kube-webhook-certgen"` | |
-| controller.admissionWebhooks.patch.image.pullPolicy | string | `"IfNotPresent"` | |
-| controller.admissionWebhooks.patch.image.tag | string | `"v1.5.1"` | |
-| controller.admissionWebhooks.patch.labels | object | `{}` | Labels to be added to patch job resources |
-| controller.admissionWebhooks.patch.networkPolicy.enabled | bool | `false` | Enable 'networkPolicy' or not |
-| controller.admissionWebhooks.patch.nodeSelector."kubernetes.io/os" | string | `"linux"` | |
-| controller.admissionWebhooks.patch.podAnnotations | object | `{}` | |
-| controller.admissionWebhooks.patch.priorityClassName | string | `""` | Provide a priority class name to the webhook patching job # |
-| controller.admissionWebhooks.patch.rbac | object | `{"create":true}` | Admission webhook patch job RBAC |
-| controller.admissionWebhooks.patch.rbac.create | bool | `true` | Create RBAC or not |
-| controller.admissionWebhooks.patch.securityContext | object | `{}` | Security context for secret creation & webhook patch pods |
-| controller.admissionWebhooks.patch.serviceAccount | object | `{"automountServiceAccountToken":true,"create":true,"name":""}` | Admission webhook patch job service account |
-| controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken | bool | `true` | Auto-mount service account token or not |
-| controller.admissionWebhooks.patch.serviceAccount.create | bool | `true` | Create a service account or not |
-| controller.admissionWebhooks.patch.serviceAccount.name | string | `""` | Custom service account name |
-| controller.admissionWebhooks.patch.tolerations | list | `[]` | |
-| controller.admissionWebhooks.patchWebhookJob.name | string | `"patch"` | |
-| controller.admissionWebhooks.patchWebhookJob.resources | object | `{}` | |
-| controller.admissionWebhooks.patchWebhookJob.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532,"seccompProfile":{"type":"RuntimeDefault"}}` | Security context for webhook patch containers |
-| controller.admissionWebhooks.port | int | `8443` | |
-| controller.admissionWebhooks.service.annotations | object | `{}` | |
-| controller.admissionWebhooks.service.externalIPs | list | `[]` | |
-| controller.admissionWebhooks.service.loadBalancerSourceRanges | list | `[]` | |
-| controller.admissionWebhooks.service.servicePort | int | `443` | |
-| controller.admissionWebhooks.service.type | string | `"ClusterIP"` | |
-| controller.affinity | object | `{}` | Affinity and anti-affinity rules for server scheduling to nodes # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity # |
-| controller.allowSnippetAnnotations | bool | `false` | This configuration defines if Ingress Controller should allow users to set their own *-snippet annotations, otherwise this is forbidden / dropped when users add those annotations. Global snippets in ConfigMap are still respected |
-| controller.annotations | object | `{}` | Annotations to be added to the controller Deployment or DaemonSet # |
-| controller.autoscaling.annotations | object | `{}` | |
-| controller.autoscaling.behavior | object | `{}` | |
-| controller.autoscaling.enabled | bool | `false` | |
-| controller.autoscaling.maxReplicas | int | `11` | |
-| controller.autoscaling.minReplicas | int | `1` | |
-| controller.autoscaling.targetCPUUtilizationPercentage | int | `50` | |
-| controller.autoscaling.targetMemoryUtilizationPercentage | int | `50` | |
-| controller.autoscalingTemplate | list | `[]` | |
-| controller.config | object | `{}` | Global configuration passed to the ConfigMap consumed by the controller. Values may contain Helm templates. Ref.: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/ |
-| controller.configAnnotations | object | `{}` | Annotations to be added to the controller config configuration configmap. |
-| controller.configMapNamespace | string | `""` | Allows customization of the configmap / nginx-configmap namespace; defaults to $(POD_NAMESPACE) |
-| controller.containerName | string | `"controller"` | Configures the controller container name |
-| controller.containerPort | object | `{"http":80,"https":443}` | Configures the ports that the nginx-controller listens on |
-| controller.containerSecurityContext | object | `{}` | Security context for controller containers |
-| controller.customTemplate.configMapKey | string | `""` | |
-| controller.customTemplate.configMapName | string | `""` | |
-| controller.disableLeaderElection | bool | `false` | This configuration disable Nginx Controller Leader Election |
-| controller.dnsConfig | object | `{}` | Optionally customize the pod dnsConfig. |
-| controller.dnsPolicy | string | `"ClusterFirst"` | Optionally change this to ClusterFirstWithHostNet in case you have 'hostNetwork: true'. By default, while using host network, name resolution uses the host's DNS. If you wish nginx-controller to keep resolving names inside the k8s network, use ClusterFirstWithHostNet. |
-| controller.electionID | string | `""` | Election ID to use for status update, by default it uses the controller name combined with a suffix of 'leader' |
-| controller.electionTTL | string | `""` | Duration a leader election is valid before it's getting re-elected, e.g. `15s`, `10m` or `1h`. (Default: 30s) |
-| controller.enableAnnotationValidations | bool | `true` | |
-| controller.enableMimalloc | bool | `true` | Enable mimalloc as a drop-in replacement for malloc. # ref: https://github.com/microsoft/mimalloc # |
-| controller.enableTopologyAwareRouting | bool | `false` | This configuration enables Topology Aware Routing feature, used together with service annotation service.kubernetes.io/topology-mode="auto" Defaults to false |
-| controller.extraArgs | object | `{}` | Additional command line arguments to pass to Ingress-Nginx Controller E.g. to specify the default SSL certificate you can use |
-| controller.extraContainers | list | `[]` | Additional containers to be added to the controller pod. See https://github.com/lemonldap-ng-controller/lemonldap-ng-controller as example. |
-| controller.extraEnvs | list | `[]` | Additional environment variables to set |
-| controller.extraInitContainers | list | `[]` | Containers, which are run before the app containers are started. |
-| controller.extraModules | list | `[]` | Modules, which are mounted into the core nginx image. |
-| controller.extraVolumeMounts | list | `[]` | Additional volumeMounts to the controller main container. |
-| controller.extraVolumes | list | `[]` | Additional volumes to the controller pod. |
-| controller.healthCheckHost | string | `""` | Address to bind the health check endpoint. It is better to set this option to the internal node address if the Ingress-Nginx Controller is running in the `hostNetwork: true` mode. |
-| controller.healthCheckPath | string | `"/healthz"` | Path of the health check endpoint. All requests received on the port defined by the healthz-port parameter are forwarded internally to this path. |
-| controller.hostAliases | list | `[]` | Optionally customize the pod hostAliases. |
-| controller.hostNetwork | bool | `false` | Required for use with CNI based kubernetes installations (such as ones set up by kubeadm), since CNI and hostport don't mix yet. Can be deprecated once https://github.com/kubernetes/kubernetes/issues/23920 is merged |
-| controller.hostPort.enabled | bool | `false` | Enable 'hostPort' or not |
-| controller.hostPort.ports.http | int | `80` | 'hostPort' http port |
-| controller.hostPort.ports.https | int | `443` | 'hostPort' https port |
-| controller.hostname | object | `{}` | Optionally customize the pod hostname. |
-| controller.image.allowPrivilegeEscalation | bool | `false` | |
-| controller.image.chroot | bool | `false` | |
-| controller.image.digest | string | `"sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa"` | |
-| controller.image.digestChroot | string | `"sha256:87c88e1c38a6c8d4483c8f70b69e2cca49853bb3ec3124b9b1be648edf139af3"` | |
-| controller.image.image | string | `"ingress-nginx/controller"` | |
-| controller.image.pullPolicy | string | `"IfNotPresent"` | |
-| controller.image.readOnlyRootFilesystem | bool | `false` | |
-| controller.image.runAsGroup | int | `82` | This value must not be changed using the official image. uid=101(www-data) gid=82(www-data) groups=82(www-data) |
-| controller.image.runAsNonRoot | bool | `true` | |
-| controller.image.runAsUser | int | `101` | This value must not be changed using the official image. uid=101(www-data) gid=82(www-data) groups=82(www-data) |
-| controller.image.seccompProfile.type | string | `"RuntimeDefault"` | |
-| controller.image.tag | string | `"v1.12.0"` | |
-| controller.ingressClass | string | `"nginx"` | For backwards compatibility with ingress.class annotation, use ingressClass. Algorithm is as follows, first ingressClassName is considered, if not present, controller looks for ingress.class annotation |
-| controller.ingressClassByName | bool | `false` | Process IngressClass per name (additionally as per spec.controller). |
-| controller.ingressClassResource | object | `{"aliases":[],"annotations":{},"controllerValue":"k8s.io/ingress-nginx","default":false,"enabled":true,"name":"nginx","parameters":{}}` | This section refers to the creation of the IngressClass resource. IngressClasses are immutable and cannot be changed after creation. We do not support namespaced IngressClasses, yet, so a ClusterRole and a ClusterRoleBinding is required. |
-| controller.ingressClassResource.aliases | list | `[]` | Aliases of this IngressClass. Creates copies with identical settings but the respective alias as name. Useful for development environments with only one Ingress Controller but production-like Ingress resources. `default` gets enabled on the original IngressClass only. |
-| controller.ingressClassResource.annotations | object | `{}` | Annotations to be added to the IngressClass resource. |
-| controller.ingressClassResource.controllerValue | string | `"k8s.io/ingress-nginx"` | Controller of the IngressClass. An Ingress Controller looks for IngressClasses it should reconcile by this value. This value is also being set as the `--controller-class` argument of this Ingress Controller. Ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class |
-| controller.ingressClassResource.default | bool | `false` | If true, Ingresses without `ingressClassName` get assigned to this IngressClass on creation. Ingress creation gets rejected if there are multiple default IngressClasses. Ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class |
-| controller.ingressClassResource.enabled | bool | `true` | Create the IngressClass or not |
-| controller.ingressClassResource.name | string | `"nginx"` | Name of the IngressClass |
-| controller.ingressClassResource.parameters | object | `{}` | A link to a custom resource containing additional configuration for the controller. This is optional if the controller consuming this IngressClass does not require additional parameters. Ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class |
-| controller.keda.apiVersion | string | `"keda.sh/v1alpha1"` | |
-| controller.keda.behavior | object | `{}` | |
-| controller.keda.cooldownPeriod | int | `300` | |
-| controller.keda.enabled | bool | `false` | |
-| controller.keda.maxReplicas | int | `11` | |
-| controller.keda.minReplicas | int | `1` | |
-| controller.keda.pollingInterval | int | `30` | |
-| controller.keda.restoreToOriginalReplicaCount | bool | `false` | |
-| controller.keda.scaledObject.annotations | object | `{}` | |
-| controller.keda.triggers | list | `[]` | |
-| controller.kind | string | `"Deployment"` | Use a `DaemonSet` or `Deployment` |
-| controller.labels | object | `{}` | Labels to be added to the controller Deployment or DaemonSet and other resources that do not have option to specify labels # |
-| controller.lifecycle | object | `{"preStop":{"exec":{"command":["/wait-shutdown"]}}}` | Improve connection draining when ingress controller pod is deleted using a lifecycle hook: With this new hook, we increased the default terminationGracePeriodSeconds from 30 seconds to 300, allowing the draining of connections up to five minutes. If the active connections end before that, the pod will terminate gracefully at that time. To effectively take advantage of this feature, the Configmap feature worker-shutdown-timeout new value is 240s instead of 10s. # |
-| controller.livenessProbe.failureThreshold | int | `5` | |
-| controller.livenessProbe.httpGet.path | string | `"/healthz"` | |
-| controller.livenessProbe.httpGet.port | int | `10254` | |
-| controller.livenessProbe.httpGet.scheme | string | `"HTTP"` | |
-| controller.livenessProbe.initialDelaySeconds | int | `10` | |
-| controller.livenessProbe.periodSeconds | int | `10` | |
-| controller.livenessProbe.successThreshold | int | `1` | |
-| controller.livenessProbe.timeoutSeconds | int | `1` | |
-| controller.maxmindLicenseKey | string | `""` | Maxmind license key to download GeoLite2 Databases. # https://blog.maxmind.com/2019/12/significant-changes-to-accessing-and-using-geolite2-databases/ |
-| controller.metrics.enabled | bool | `false` | |
-| controller.metrics.port | int | `10254` | |
-| controller.metrics.portName | string | `"metrics"` | |
-| controller.metrics.prometheusRule.additionalLabels | object | `{}` | |
-| controller.metrics.prometheusRule.annotations | object | `{}` | Annotations to be added to the PrometheusRule. |
-| controller.metrics.prometheusRule.enabled | bool | `false` | |
-| controller.metrics.prometheusRule.rules | list | `[]` | |
-| controller.metrics.service.annotations | object | `{}` | |
-| controller.metrics.service.enabled | bool | `true` | Enable the metrics service or not. |
-| controller.metrics.service.externalIPs | list | `[]` | List of IP addresses at which the stats-exporter service is available # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips # |
-| controller.metrics.service.labels | object | `{}` | Labels to be added to the metrics service resource |
-| controller.metrics.service.loadBalancerSourceRanges | list | `[]` | |
-| controller.metrics.service.servicePort | int | `10254` | |
-| controller.metrics.service.type | string | `"ClusterIP"` | |
-| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | |
-| controller.metrics.serviceMonitor.annotations | object | `{}` | Annotations to be added to the ServiceMonitor. |
-| controller.metrics.serviceMonitor.enabled | bool | `false` | |
-| controller.metrics.serviceMonitor.labelLimit | int | `0` | Per-scrape limit on number of labels that will be accepted for a sample. |
-| controller.metrics.serviceMonitor.labelNameLengthLimit | int | `0` | Per-scrape limit on length of labels name that will be accepted for a sample. |
-| controller.metrics.serviceMonitor.labelValueLengthLimit | int | `0` | Per-scrape limit on length of labels value that will be accepted for a sample. |
-| controller.metrics.serviceMonitor.metricRelabelings | list | `[]` | |
-| controller.metrics.serviceMonitor.namespace | string | `""` | |
-| controller.metrics.serviceMonitor.namespaceSelector | object | `{}` | |
-| controller.metrics.serviceMonitor.relabelings | list | `[]` | |
-| controller.metrics.serviceMonitor.sampleLimit | int | `0` | Defines a per-scrape limit on the number of scraped samples that will be accepted. |
-| controller.metrics.serviceMonitor.scrapeInterval | string | `"30s"` | |
-| controller.metrics.serviceMonitor.targetLabels | list | `[]` | |
-| controller.metrics.serviceMonitor.targetLimit | int | `0` | Defines a limit on the number of scraped targets that will be accepted. |
-| controller.minAvailable | int | `1` | Minimum available pods set in PodDisruptionBudget. Define either 'minAvailable' or 'maxUnavailable', never both. |
-| controller.minReadySeconds | int | `0` | `minReadySeconds` to avoid killing pods before we are ready # |
-| controller.name | string | `"controller"` | |
-| controller.networkPolicy.enabled | bool | `false` | Enable 'networkPolicy' or not |
-| controller.nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node labels for controller pod assignment # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ # |
-| controller.podAnnotations | object | `{}` | Annotations to be added to controller pods # |
-| controller.podLabels | object | `{}` | Labels to add to the pod container metadata |
-| controller.podSecurityContext | object | `{}` | Security context for controller pods |
-| controller.priorityClassName | string | `""` | |
-| controller.progressDeadlineSeconds | int | `0` | Specifies the number of seconds you want to wait for the controller deployment to progress before the system reports back that it has failed. Ref.: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#progress-deadline-seconds |
-| controller.proxySetHeaders | object | `{}` | Will add custom headers before sending traffic to backends according to https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/custom-headers |
-| controller.publishService | object | `{"enabled":true,"pathOverride":""}` | Allows customization of the source of the IP address or FQDN to report in the ingress status field. By default, it reads the information provided by the service. If disable, the status field reports the IP address of the node or nodes where an ingress controller pod is running. |
-| controller.publishService.enabled | bool | `true` | Enable 'publishService' or not |
-| controller.publishService.pathOverride | string | `""` | Allows overriding of the publish service to bind to Must be / |
-| controller.readinessProbe.failureThreshold | int | `3` | |
-| controller.readinessProbe.httpGet.path | string | `"/healthz"` | |
-| controller.readinessProbe.httpGet.port | int | `10254` | |
-| controller.readinessProbe.httpGet.scheme | string | `"HTTP"` | |
-| controller.readinessProbe.initialDelaySeconds | int | `10` | |
-| controller.readinessProbe.periodSeconds | int | `10` | |
-| controller.readinessProbe.successThreshold | int | `1` | |
-| controller.readinessProbe.timeoutSeconds | int | `1` | |
-| controller.replicaCount | int | `1` | |
-| controller.reportNodeInternalIp | bool | `false` | Bare-metal considerations via the host network https://kubernetes.github.io/ingress-nginx/deploy/baremetal/#via-the-host-network Ingress status was blank because there is no Service exposing the Ingress-Nginx Controller in a configuration using the host network, the default --publish-service flag used in standard cloud setups does not apply |
-| controller.resources.requests.cpu | string | `"100m"` | |
-| controller.resources.requests.memory | string | `"90Mi"` | |
-| controller.scope.enabled | bool | `false` | Enable 'scope' or not |
-| controller.scope.namespace | string | `""` | Namespace to limit the controller to; defaults to $(POD_NAMESPACE) |
-| controller.scope.namespaceSelector | string | `""` | When scope.enabled == false, instead of watching all namespaces, we watching namespaces whose labels only match with namespaceSelector. Format like foo=bar. Defaults to empty, means watching all namespaces. |
-| controller.service.annotations | object | `{}` | Annotations to be added to the external controller service. See `controller.service.internal.annotations` for annotations to be added to the internal controller service. |
-| controller.service.appProtocol | bool | `true` | Declare the app protocol of the external HTTP and HTTPS listeners or not. Supersedes provider-specific annotations for declaring the backend protocol. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#application-protocol |
-| controller.service.clusterIP | string | `""` | Pre-defined cluster internal IP address of the external controller service. Take care of collisions with existing services. This value is immutable. Set once, it can not be changed without deleting and re-creating the service. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address |
-| controller.service.clusterIPs | list | `[]` | Pre-defined cluster internal IP addresses of the external controller service. Take care of collisions with existing services. This value is immutable. Set once, it can not be changed without deleting and re-creating the service. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address |
-| controller.service.enableHttp | bool | `true` | Enable the HTTP listener on both controller services or not. |
-| controller.service.enableHttps | bool | `true` | Enable the HTTPS listener on both controller services or not. |
-| controller.service.enabled | bool | `true` | Enable controller services or not. This does not influence the creation of either the admission webhook or the metrics service. |
-| controller.service.external.enabled | bool | `true` | Enable the external controller service or not. Useful for internal-only deployments. |
-| controller.service.external.labels | object | `{}` | Labels to be added to the external controller service. |
-| controller.service.externalIPs | list | `[]` | List of node IP addresses at which the external controller service is available. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips |
-| controller.service.externalTrafficPolicy | string | `""` | External traffic policy of the external controller service. Set to "Local" to preserve source IP on providers supporting it. Ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip |
-| controller.service.internal.annotations | object | `{}` | Annotations to be added to the internal controller service. Mandatory for the internal controller service to be created. Varies with the cloud service. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer |
-| controller.service.internal.appProtocol | bool | `true` | Declare the app protocol of the internal HTTP and HTTPS listeners or not. Supersedes provider-specific annotations for declaring the backend protocol. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#application-protocol |
-| controller.service.internal.clusterIP | string | `""` | Pre-defined cluster internal IP address of the internal controller service. Take care of collisions with existing services. This value is immutable. Set once, it can not be changed without deleting and re-creating the service. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address |
-| controller.service.internal.clusterIPs | list | `[]` | Pre-defined cluster internal IP addresses of the internal controller service. Take care of collisions with existing services. This value is immutable. Set once, it can not be changed without deleting and re-creating the service. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address |
-| controller.service.internal.enabled | bool | `false` | Enable the internal controller service or not. Remember to configure `controller.service.internal.annotations` when enabling this. |
-| controller.service.internal.externalIPs | list | `[]` | List of node IP addresses at which the internal controller service is available. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips |
-| controller.service.internal.externalTrafficPolicy | string | `""` | External traffic policy of the internal controller service. Set to "Local" to preserve source IP on providers supporting it. Ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip |
-| controller.service.internal.ipFamilies | list | `["IPv4"]` | List of IP families (e.g. IPv4, IPv6) assigned to the internal controller service. This field is usually assigned automatically based on cluster configuration and the `ipFamilyPolicy` field. Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services |
-| controller.service.internal.ipFamilyPolicy | string | `"SingleStack"` | Represents the dual-stack capabilities of the internal controller service. Possible values are SingleStack, PreferDualStack or RequireDualStack. Fields `ipFamilies` and `clusterIP` depend on the value of this field. Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services |
-| controller.service.internal.labels | object | `{}` | Labels to be added to the internal controller service. |
-| controller.service.internal.loadBalancerClass | string | `""` | Load balancer class of the internal controller service. Used by cloud providers to select a load balancer implementation other than the cloud provider default. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class |
-| controller.service.internal.loadBalancerIP | string | `""` | Deprecated: Pre-defined IP address of the internal controller service. Used by cloud providers to connect the resulting load balancer service to a pre-existing static IP. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer |
-| controller.service.internal.loadBalancerSourceRanges | list | `[]` | Restrict access to the internal controller service. Values must be CIDRs. Allows any source address by default. |
-| controller.service.internal.nodePorts.http | string | `""` | Node port allocated for the internal HTTP listener. If left empty, the service controller allocates one from the configured node port range. |
-| controller.service.internal.nodePorts.https | string | `""` | Node port allocated for the internal HTTPS listener. If left empty, the service controller allocates one from the configured node port range. |
-| controller.service.internal.nodePorts.tcp | object | `{}` | Node port mapping for internal TCP listeners. If left empty, the service controller allocates them from the configured node port range. Example: tcp: 8080: 30080 |
-| controller.service.internal.nodePorts.udp | object | `{}` | Node port mapping for internal UDP listeners. If left empty, the service controller allocates them from the configured node port range. Example: udp: 53: 30053 |
-| controller.service.internal.ports | object | `{}` | |
-| controller.service.internal.sessionAffinity | string | `""` | Session affinity of the internal controller service. Must be either "None" or "ClientIP" if set. Defaults to "None". Ref: https://kubernetes.io/docs/reference/networking/virtual-ips/#session-affinity |
-| controller.service.internal.targetPorts | object | `{}` | |
-| controller.service.internal.trafficDistribution | string | `""` | Traffic distribution policy of the internal controller service. Set to "PreferClose" to route traffic to endpoints that are topologically closer to the client. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution |
-| controller.service.internal.type | string | `""` | Type of the internal controller service. Defaults to the value of `controller.service.type`. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types |
-| controller.service.ipFamilies | list | `["IPv4"]` | List of IP families (e.g. IPv4, IPv6) assigned to the external controller service. This field is usually assigned automatically based on cluster configuration and the `ipFamilyPolicy` field. Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services |
-| controller.service.ipFamilyPolicy | string | `"SingleStack"` | Represents the dual-stack capabilities of the external controller service. Possible values are SingleStack, PreferDualStack or RequireDualStack. Fields `ipFamilies` and `clusterIP` depend on the value of this field. Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services |
-| controller.service.labels | object | `{}` | Labels to be added to both controller services. |
-| controller.service.loadBalancerClass | string | `""` | Load balancer class of the external controller service. Used by cloud providers to select a load balancer implementation other than the cloud provider default. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class |
-| controller.service.loadBalancerIP | string | `""` | Deprecated: Pre-defined IP address of the external controller service. Used by cloud providers to connect the resulting load balancer service to a pre-existing static IP. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer |
-| controller.service.loadBalancerSourceRanges | list | `[]` | Restrict access to the external controller service. Values must be CIDRs. Allows any source address by default. |
-| controller.service.nodePorts.http | string | `""` | Node port allocated for the external HTTP listener. If left empty, the service controller allocates one from the configured node port range. |
-| controller.service.nodePorts.https | string | `""` | Node port allocated for the external HTTPS listener. If left empty, the service controller allocates one from the configured node port range. |
-| controller.service.nodePorts.tcp | object | `{}` | Node port mapping for external TCP listeners. If left empty, the service controller allocates them from the configured node port range. Example: tcp: 8080: 30080 |
-| controller.service.nodePorts.udp | object | `{}` | Node port mapping for external UDP listeners. If left empty, the service controller allocates them from the configured node port range. Example: udp: 53: 30053 |
-| controller.service.ports.http | int | `80` | Port the external HTTP listener is published with. |
-| controller.service.ports.https | int | `443` | Port the external HTTPS listener is published with. |
-| controller.service.sessionAffinity | string | `""` | Session affinity of the external controller service. Must be either "None" or "ClientIP" if set. Defaults to "None". Ref: https://kubernetes.io/docs/reference/networking/virtual-ips/#session-affinity |
-| controller.service.targetPorts.http | string | `"http"` | Port of the ingress controller the external HTTP listener is mapped to. |
-| controller.service.targetPorts.https | string | `"https"` | Port of the ingress controller the external HTTPS listener is mapped to. |
-| controller.service.trafficDistribution | string | `""` | Traffic distribution policy of the external controller service. Set to "PreferClose" to route traffic to endpoints that are topologically closer to the client. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution |
-| controller.service.type | string | `"LoadBalancer"` | Type of the external controller service. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types |
-| controller.shareProcessNamespace | bool | `false` | |
-| controller.sysctls | object | `{}` | sysctls for controller pods # Ref: https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ |
-| controller.tcp.annotations | object | `{}` | Annotations to be added to the tcp config configmap |
-| controller.tcp.configMapNamespace | string | `""` | Allows customization of the tcp-services-configmap; defaults to $(POD_NAMESPACE) |
-| controller.terminationGracePeriodSeconds | int | `300` | `terminationGracePeriodSeconds` to avoid killing pods before we are ready # wait up to five minutes for the drain of connections # |
-| controller.tolerations | list | `[]` | Node tolerations for server scheduling to nodes with taints # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # |
-| controller.topologySpreadConstraints | list | `[]` | Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in. # Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ # |
-| controller.udp.annotations | object | `{}` | Annotations to be added to the udp config configmap |
-| controller.udp.configMapNamespace | string | `""` | Allows customization of the udp-services-configmap; defaults to $(POD_NAMESPACE) |
-| controller.unhealthyPodEvictionPolicy | string | `""` | Eviction policy for unhealthy pods guarded by PodDisruptionBudget. Ref: https://kubernetes.io/blog/2023/01/06/unhealthy-pod-eviction-policy-for-pdbs/ |
-| controller.updateStrategy | object | `{}` | The update strategy to apply to the Deployment or DaemonSet # |
-| controller.watchIngressWithoutClass | bool | `false` | Process Ingress objects without ingressClass annotation/ingressClassName field Overrides value for --watch-ingress-without-class flag of the controller binary Defaults to false |
-| defaultBackend.affinity | object | `{}` | Affinity and anti-affinity rules for server scheduling to nodes # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity |
-| defaultBackend.autoscaling.annotations | object | `{}` | |
-| defaultBackend.autoscaling.enabled | bool | `false` | |
-| defaultBackend.autoscaling.maxReplicas | int | `2` | |
-| defaultBackend.autoscaling.minReplicas | int | `1` | |
-| defaultBackend.autoscaling.targetCPUUtilizationPercentage | int | `50` | |
-| defaultBackend.autoscaling.targetMemoryUtilizationPercentage | int | `50` | |
-| defaultBackend.containerSecurityContext | object | `{}` | Security context for default backend containers |
-| defaultBackend.enabled | bool | `false` | |
-| defaultBackend.extraArgs | object | `{}` | |
-| defaultBackend.extraConfigMaps | list | `[]` | |
-| defaultBackend.extraEnvs | list | `[]` | Additional environment variables to set for defaultBackend pods |
-| defaultBackend.extraVolumeMounts | list | `[]` | |
-| defaultBackend.extraVolumes | list | `[]` | |
-| defaultBackend.image.allowPrivilegeEscalation | bool | `false` | |
-| defaultBackend.image.image | string | `"defaultbackend-amd64"` | |
-| defaultBackend.image.pullPolicy | string | `"IfNotPresent"` | |
-| defaultBackend.image.readOnlyRootFilesystem | bool | `true` | |
-| defaultBackend.image.runAsGroup | int | `65534` | |
-| defaultBackend.image.runAsNonRoot | bool | `true` | |
-| defaultBackend.image.runAsUser | int | `65534` | |
-| defaultBackend.image.seccompProfile.type | string | `"RuntimeDefault"` | |
-| defaultBackend.image.tag | string | `"1.5"` | |
-| defaultBackend.labels | object | `{}` | Labels to be added to the default backend resources |
-| defaultBackend.livenessProbe.failureThreshold | int | `3` | |
-| defaultBackend.livenessProbe.initialDelaySeconds | int | `30` | |
-| defaultBackend.livenessProbe.periodSeconds | int | `10` | |
-| defaultBackend.livenessProbe.successThreshold | int | `1` | |
-| defaultBackend.livenessProbe.timeoutSeconds | int | `5` | |
-| defaultBackend.minAvailable | int | `1` | Minimum available pods set in PodDisruptionBudget. Define either 'minAvailable' or 'maxUnavailable', never both. |
-| defaultBackend.minReadySeconds | int | `0` | `minReadySeconds` to avoid killing pods before we are ready # |
-| defaultBackend.name | string | `"defaultbackend"` | |
-| defaultBackend.networkPolicy.enabled | bool | `false` | Enable 'networkPolicy' or not |
-| defaultBackend.nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node labels for default backend pod assignment # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ # |
-| defaultBackend.podAnnotations | object | `{}` | Annotations to be added to default backend pods # |
-| defaultBackend.podLabels | object | `{}` | Labels to add to the pod container metadata |
-| defaultBackend.podSecurityContext | object | `{}` | Security context for default backend pods |
-| defaultBackend.port | int | `8080` | |
-| defaultBackend.priorityClassName | string | `""` | |
-| defaultBackend.readinessProbe.failureThreshold | int | `6` | |
-| defaultBackend.readinessProbe.initialDelaySeconds | int | `0` | |
-| defaultBackend.readinessProbe.periodSeconds | int | `5` | |
-| defaultBackend.readinessProbe.successThreshold | int | `1` | |
-| defaultBackend.readinessProbe.timeoutSeconds | int | `5` | |
-| defaultBackend.replicaCount | int | `1` | |
-| defaultBackend.resources | object | `{}` | |
-| defaultBackend.service.annotations | object | `{}` | |
-| defaultBackend.service.clusterIPs | list | `[]` | Pre-defined cluster internal IP addresses of the default backend service. Take care of collisions with existing services. This value is immutable. Set once, it can not be changed without deleting and re-creating the service. Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address |
-| defaultBackend.service.externalIPs | list | `[]` | List of IP addresses at which the default backend service is available # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips # |
-| defaultBackend.service.loadBalancerSourceRanges | list | `[]` | |
-| defaultBackend.service.servicePort | int | `80` | |
-| defaultBackend.service.type | string | `"ClusterIP"` | |
-| defaultBackend.serviceAccount.automountServiceAccountToken | bool | `true` | |
-| defaultBackend.serviceAccount.create | bool | `true` | |
-| defaultBackend.serviceAccount.name | string | `""` | |
-| defaultBackend.tolerations | list | `[]` | Node tolerations for server scheduling to nodes with taints # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # |
-| defaultBackend.topologySpreadConstraints | list | `[]` | Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in. Ref.: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ |
-| defaultBackend.unhealthyPodEvictionPolicy | string | `""` | Eviction policy for unhealthy pods guarded by PodDisruptionBudget. Ref: https://kubernetes.io/blog/2023/01/06/unhealthy-pod-eviction-policy-for-pdbs/ |
-| defaultBackend.updateStrategy | object | `{}` | The update strategy to apply to the Deployment or DaemonSet # |
-| dhParam | string | `""` | A base64-encoded Diffie-Hellman parameter. This can be generated with: `openssl dhparam 4096 2> /dev/null | base64` # Ref: https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/ssl-dh-param |
-| global.image.registry | string | `"registry.k8s.io"` | Registry host to pull images from. |
-| imagePullSecrets | list | `[]` | Optional array of imagePullSecrets containing private registry credentials # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ |
-| namespaceOverride | string | `""` | Override the deployment namespace; defaults to .Release.Namespace |
-| portNamePrefix | string | `""` | Prefix for TCP and UDP ports names in ingress controller service # Some cloud providers, like Yandex Cloud may have a requirements for a port name regex to support cloud load balancer integration |
-| rbac.create | bool | `true` | |
-| rbac.scope | bool | `false` | |
-| revisionHistoryLimit | int | `10` | Rollback limit # |
-| serviceAccount.annotations | object | `{}` | Annotations for the controller service account |
-| serviceAccount.automountServiceAccountToken | bool | `true` | |
-| serviceAccount.create | bool | `true` | |
-| serviceAccount.name | string | `""` | |
-| tcp | object | `{}` | TCP service key-value pairs # Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md # |
-| udp | object | `{}` | UDP service key-value pairs # Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md # |
diff --git a/charts/ingress-nginx/README.md.gotmpl b/charts/ingress-nginx/README.md.gotmpl
deleted file mode 100644
index 3cb9d5651..000000000
--- a/charts/ingress-nginx/README.md.gotmpl
+++ /dev/null
@@ -1,247 +0,0 @@
-{{ template "chart.header" . }}
-[ingress-nginx](https://github.com/kubernetes/ingress-nginx) Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
-
-{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}
-
-To use, add `ingressClassName: nginx` spec field or the `kubernetes.io/ingress.class: nginx` annotation to your Ingress resources.
-
-This chart bootstraps an ingress-nginx deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
-
-{{ template "chart.requirementsSection" . }}
-
-## Get Repo Info
-
-```console
-helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
-helm repo update
-```
-
-## Install Chart
-
-**Important:** only helm3 is supported
-
-```console
-helm install [RELEASE_NAME] ingress-nginx/ingress-nginx
-```
-
-The command deploys ingress-nginx on the Kubernetes cluster in the default configuration.
-
-_See [configuration](#configuration) below._
-
-_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._
-
-## Uninstall Chart
-
-```console
-helm uninstall [RELEASE_NAME]
-```
-
-This removes all the Kubernetes components associated with the chart and deletes the release.
-
-_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._
-
-## Upgrading Chart
-
-```console
-helm upgrade [RELEASE_NAME] [CHART] --install
-```
-
-_See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._
-
-### Migrating from stable/nginx-ingress
-
-There are two main ways to migrate a release from `stable/nginx-ingress` to `ingress-nginx/ingress-nginx` chart:
-
-1. For Nginx Ingress controllers used for non-critical services, the easiest method is to [uninstall](#uninstall-chart) the old release and [install](#install-chart) the new one
-1. For critical services in production that require zero-downtime, you will want to:
- 1. [Install](#install-chart) a second Ingress controller
- 1. Redirect your DNS traffic from the old controller to the new controller
- 1. Log traffic from both controllers during this changeover
- 1. [Uninstall](#uninstall-chart) the old controller once traffic has fully drained from it
-
-Note that there are some different and upgraded configurations between the two charts, described by Rimas Mocevicius from JFrog in the "Upgrading to ingress-nginx Helm chart" section of [Migrating from Helm chart nginx-ingress to ingress-nginx](https://rimusz.net/migrating-to-ingress-nginx). As the `ingress-nginx/ingress-nginx` chart continues to update, you will want to check current differences by running [helm configuration](#configuration) commands on both charts.
-
-## Configuration
-
-See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments, visit the chart's [values.yaml](./values.yaml), or run these configuration commands:
-
-```console
-helm show values ingress-nginx/ingress-nginx
-```
-
-### PodDisruptionBudget
-
-Note that the PodDisruptionBudget resource will only be defined if the replicaCount is greater than one,
-else it would make it impossible to evacuate a node. See [gh issue #7127](https://github.com/helm/charts/issues/7127) for more info.
-
-### Prometheus Metrics
-
-The Ingress-Nginx Controller can export Prometheus metrics, by setting `controller.metrics.enabled` to `true`.
-
-You can add Prometheus annotations to the metrics service using `controller.metrics.service.annotations`.
-Alternatively, if you use the Prometheus Operator, you can enable ServiceMonitor creation using `controller.metrics.serviceMonitor.enabled`. And set `controller.metrics.serviceMonitor.additionalLabels.release="prometheus"`. "release=prometheus" should match the label configured in the prometheus servicemonitor ( see `kubectl get servicemonitor prometheus-kube-prom-prometheus -oyaml -n prometheus`)
-
-### ingress-nginx nginx\_status page/stats server
-
-Previous versions of this chart had a `controller.stats.*` configuration block, which is now obsolete due to the following changes in Ingress-Nginx Controller:
-
-- In [0.16.1](https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md#0161), the vts (virtual host traffic status) dashboard was removed
-- In [0.23.0](https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md#0230), the status page at port 18080 is now a unix socket webserver only available at localhost.
- You can use `curl --unix-socket /tmp/nginx-status-server.sock http://localhost/nginx_status` inside the controller container to access it locally, or use the snippet from [nginx-ingress changelog](https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md#0230) to re-enable the http server
-
-### ExternalDNS Service Configuration
-
-Add an [ExternalDNS](https://github.com/kubernetes-sigs/external-dns) annotation to the LoadBalancer service:
-
-```yaml
-controller:
- service:
- annotations:
- external-dns.alpha.kubernetes.io/hostname: kubernetes-example.com.
-```
-
-### AWS L7 ELB with SSL Termination
-
-Annotate the controller as shown in the [nginx-ingress l7 patch](https://github.com/kubernetes/ingress-nginx/blob/ab3a789caae65eec4ad6e3b46b19750b481b6bce/deploy/aws/l7/service-l7.yaml):
-
-```yaml
-controller:
- service:
- targetPorts:
- http: http
- https: http
- annotations:
- service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:XX-XXXX-X:XXXXXXXXX:certificate/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX
- service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
- service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "https"
- service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: '3600'
-```
-
-### Additional Internal Load Balancer
-
-This setup is useful when you need both external and internal load balancers but don't want to have multiple ingress controllers and multiple ingress objects per application.
-
-By default, the ingress object will point to the external load balancer address, but if correctly configured, you can make use of the internal one if the URL you are looking up resolves to the internal load balancer's URL.
-
-You'll need to set both the following values:
-
-`controller.service.internal.enabled`
-`controller.service.internal.annotations`
-
-If one of them is missing the internal load balancer will not be deployed. Example you may have `controller.service.internal.enabled=true` but no annotations set, in this case no action will be taken.
-
-`controller.service.internal.annotations` varies with the cloud service you're using.
-
-Example for AWS:
-
-```yaml
-controller:
- service:
- internal:
- enabled: true
- annotations:
- # Create internal NLB
- service.beta.kubernetes.io/aws-load-balancer-scheme: "internal"
- # Create internal ELB(Deprecated)
- # service.beta.kubernetes.io/aws-load-balancer-internal: "true"
- # Any other annotation can be declared here.
-```
-
-Example for GCE:
-
-```yaml
-controller:
- service:
- internal:
- enabled: true
- annotations:
- # Create internal LB. More information: https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing
- # For GKE versions 1.17 and later
- networking.gke.io/load-balancer-type: "Internal"
- # For earlier versions
- # cloud.google.com/load-balancer-type: "Internal"
-
- # Any other annotation can be declared here.
-```
-
-Example for Azure:
-
-```yaml
-controller:
- service:
- annotations:
- # Create internal LB
- service.beta.kubernetes.io/azure-load-balancer-internal: "true"
- # Any other annotation can be declared here.
-```
-
-Example for Oracle Cloud Infrastructure:
-
-```yaml
-controller:
- service:
- annotations:
- # Create internal LB
- service.beta.kubernetes.io/oci-load-balancer-internal: "true"
- # Any other annotation can be declared here.
-```
-
-The load balancer annotations of more cloud service providers can be found: [Internal load balancer](https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer).
-
-An use case for this scenario is having a split-view DNS setup where the public zone CNAME records point to the external balancer URL while the private zone CNAME records point to the internal balancer URL. This way, you only need one ingress kubernetes object.
-
-Optionally you can set `controller.service.loadBalancerIP` if you need a static IP for the resulting `LoadBalancer`.
-
-### Ingress Admission Webhooks
-
-With nginx-ingress-controller version 0.25+, the Ingress-Nginx Controller pod exposes an endpoint that will integrate with the `validatingwebhookconfiguration` Kubernetes feature to prevent bad ingress from being added to the cluster.
-**This feature is enabled by default since 0.31.0.**
-
-With nginx-ingress-controller in 0.25.* work only with kubernetes 1.14+, 0.26 fix [this issue](https://github.com/kubernetes/ingress-nginx/pull/4521)
-
-#### How the Chart Configures the Hooks
-A validating and configuration requires the endpoint to which the request is sent to use TLS. It is possible to set up custom certificates to do this, but in most cases, a self-signed certificate is enough. The setup of this component requires some more complex orchestration when using helm. The steps are created to be idempotent and to allow turning the feature on and off without running into helm quirks.
-
-1. A pre-install hook provisions a certificate into the same namespace using a format compatible with provisioning using end user certificates. If the certificate already exists, the hook exits.
-2. The Ingress-Nginx Controller pod is configured to use a TLS proxy container, which will load that certificate.
-3. Validating and Mutating webhook configurations are created in the cluster.
-4. A post-install hook reads the CA from the secret created by step 1 and patches the Validating and Mutating webhook configurations. This process will allow a custom CA provisioned by some other process to also be patched into the webhook configurations. The chosen failure policy is also patched into the webhook configurations
-
-#### Alternatives
-It should be possible to use [cert-manager/cert-manager](https://github.com/cert-manager/cert-manager) if a more complete solution is required.
-
-You can enable automatic self-signed TLS certificate provisioning via cert-manager by setting the `controller.admissionWebhooks.certManager.enabled` value to true.
-
-Please ensure that cert-manager is correctly installed and configured.
-
-### Helm Error When Upgrading: spec.clusterIP: Invalid value: ""
-
-If you are upgrading this chart from a version between 0.31.0 and 1.2.2 then you may get an error like this:
-
-```console
-Error: UPGRADE FAILED: Service "?????-controller" is invalid: spec.clusterIP: Invalid value: "": field is immutable
-```
-
-Detail of how and why are in [this issue](https://github.com/helm/charts/pull/13646) but to resolve this you can set `xxxx.service.omitClusterIP` to `true` where `xxxx` is the service referenced in the error.
-
-As of version `1.26.0` of this chart, by simply not providing any clusterIP value, `invalid: spec.clusterIP: Invalid value: "": field is immutable` will no longer occur since `clusterIP: ""` will not be rendered.
-
-### Pod Security Admission
-
-You can use Pod Security Admission by applying labels to the `ingress-nginx` namespace as instructed by the [documentation](https://kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-namespace-labels).
-
-Example:
-
-```yaml
-apiVersion: v1
-kind: Namespace
-metadata:
- name: ingress-nginx
- labels:
- kubernetes.io/metadata.name: ingress-nginx
- name: ingress-nginx
- pod-security.kubernetes.io/enforce: restricted
- pod-security.kubernetes.io/enforce-version: v1.31
-```
-
-{{ template "chart.valuesSection" . }}
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.10.0.md b/charts/ingress-nginx/changelog/helm-chart-2.10.0.md
deleted file mode 100644
index b42d6c28b..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.10.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.10.0
-
-* [#5843](https://github.com/kubernetes/ingress-nginx/pull/5843) Update jettech/kube-webhook-certgen image
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.9.1...ingress-nginx-2.10.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.11.0.md b/charts/ingress-nginx/changelog/helm-chart-2.11.0.md
deleted file mode 100644
index e549b3867..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.11.0.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.11.0
-
-* [#5879](https://github.com/kubernetes/ingress-nginx/pull/5879) Update helm chart for v0.34.0
-* [#5671](https://github.com/kubernetes/ingress-nginx/pull/5671) Make liveness probe more fault tolerant than readiness probe
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.10.0...ingress-nginx-2.11.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.11.1.md b/charts/ingress-nginx/changelog/helm-chart-2.11.1.md
deleted file mode 100644
index d910d3bf4..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.11.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.11.1
-
-* [#5900](https://github.com/kubernetes/ingress-nginx/pull/5900) Release helm chart for v0.34.1
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.11.0...ingress-nginx-2.11.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.11.2.md b/charts/ingress-nginx/changelog/helm-chart-2.11.2.md
deleted file mode 100644
index 9f7821005..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.11.2.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.11.2
-
-* [#5951](https://github.com/kubernetes/ingress-nginx/pull/5951) Bump chart patch version
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.11.1...ingress-nginx-2.11.2
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.11.3.md b/charts/ingress-nginx/changelog/helm-chart-2.11.3.md
deleted file mode 100644
index 344769163..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.11.3.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.11.3
-
-* [#6038](https://github.com/kubernetes/ingress-nginx/pull/6038) Bump chart version PATCH
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.11.2...ingress-nginx-2.11.3
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.12.0.md b/charts/ingress-nginx/changelog/helm-chart-2.12.0.md
deleted file mode 100644
index 5cb3888aa..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.12.0.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.12.0
-
-* [#6039](https://github.com/kubernetes/ingress-nginx/pull/6039) Add configurable serviceMonitor metricRelabelling and targetLabels
-* [#6044](https://github.com/kubernetes/ingress-nginx/pull/6044) Fix YAML linting
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.11.3...ingress-nginx-2.12.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.12.1.md b/charts/ingress-nginx/changelog/helm-chart-2.12.1.md
deleted file mode 100644
index 94d121db5..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.12.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.12.1
-
-* [#6075](https://github.com/kubernetes/ingress-nginx/pull/6075) Sync helm chart affinity examples
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.12.0...ingress-nginx-2.12.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.13.0.md b/charts/ingress-nginx/changelog/helm-chart-2.13.0.md
deleted file mode 100644
index 01fe0b15d..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.13.0.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.13.0
-
-* [#6093](https://github.com/kubernetes/ingress-nginx/pull/6093) Release v0.35.0
-* [#6080](https://github.com/kubernetes/ingress-nginx/pull/6080) Switch images to k8s.gcr.io after Vanity Domain Flip
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.12.1...ingress-nginx-2.13.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.14.0.md b/charts/ingress-nginx/changelog/helm-chart-2.14.0.md
deleted file mode 100644
index 2fb7a5a76..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.14.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.14.0
-
-* [#6104](https://github.com/kubernetes/ingress-nginx/pull/6104) Misc fixes for nginx-ingress chart for better keel and prometheus-operator integration
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.13.0...ingress-nginx-2.14.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.15.0.md b/charts/ingress-nginx/changelog/helm-chart-2.15.0.md
deleted file mode 100644
index 543a55927..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.15.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.15.0
-
-* [#6087](https://github.com/kubernetes/ingress-nginx/pull/6087) Adding parameter for externalTrafficPolicy in internal controller service spec
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.14.0...ingress-nginx-2.15.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.16.0.md b/charts/ingress-nginx/changelog/helm-chart-2.16.0.md
deleted file mode 100644
index 996f4489e..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.16.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.16.0
-
-* [#6154](https://github.com/kubernetes/ingress-nginx/pull/6154) add `topologySpreadConstraint` to controller
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.15.0...ingress-nginx-2.16.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.9.0.md b/charts/ingress-nginx/changelog/helm-chart-2.9.0.md
deleted file mode 100644
index 11c5f5fed..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.9.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.9.0
-
-* [#5795](https://github.com/kubernetes/ingress-nginx/pull/5795) Use fully qualified images to avoid cri-o issues
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-TODO...ingress-nginx-2.9.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-2.9.1.md b/charts/ingress-nginx/changelog/helm-chart-2.9.1.md
deleted file mode 100644
index 7d4314d9c..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-2.9.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 2.9.1
-
-* [#5823](https://github.com/kubernetes/ingress-nginx/pull/5823) Add quoting to sysctls because numeric values need to be presented as strings (#5823)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.9.0...ingress-nginx-2.9.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.0.0.md b/charts/ingress-nginx/changelog/helm-chart-3.0.0.md
deleted file mode 100644
index a7d50ee3a..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.0.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.0.0
-
-* [#6167](https://github.com/kubernetes/ingress-nginx/pull/6167) Update chart requirements
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-2.16.0...ingress-nginx-3.0.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.10.0.md b/charts/ingress-nginx/changelog/helm-chart-3.10.0.md
deleted file mode 100644
index 3369bed03..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.10.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.10.0
-
-* Fix routing regression introduced in 0.41.0 with PathType Exact
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.9.0...ingress-nginx-3.10.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.10.1.md b/charts/ingress-nginx/changelog/helm-chart-3.10.1.md
deleted file mode 100644
index 6ff682e52..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.10.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.10.1
-
-* Fix regression introduced in 0.41.0 with external authentication
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.10.0...ingress-nginx-3.10.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.11.0.md b/charts/ingress-nginx/changelog/helm-chart-3.11.0.md
deleted file mode 100644
index 69ba5506b..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.11.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.11.0
-
-* Support Keda Autoscaling
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.10.1...ingress-nginx-3.11.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.11.1.md b/charts/ingress-nginx/changelog/helm-chart-3.11.1.md
deleted file mode 100644
index 4e81f4b41..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.11.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.11.1
-
-* [#6505](https://github.com/kubernetes/ingress-nginx/pull/6505) Reorder HPA resource list to work with GitOps tooling
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.11.0...ingress-nginx-3.11.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.12.0.md b/charts/ingress-nginx/changelog/helm-chart-3.12.0.md
deleted file mode 100644
index 41b9744de..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.12.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.12.0
-
-* [#6514](https://github.com/kubernetes/ingress-nginx/pull/6514) Remove helm2 support and update docs
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.11.1...ingress-nginx-3.12.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.13.0.md b/charts/ingress-nginx/changelog/helm-chart-3.13.0.md
deleted file mode 100644
index 0855a7913..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.13.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.13.0
-
-* [#6544](https://github.com/kubernetes/ingress-nginx/pull/6544) Fix default backend HPA name variable
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.12.0...ingress-nginx-3.13.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.14.0.md b/charts/ingress-nginx/changelog/helm-chart-3.14.0.md
deleted file mode 100644
index e07880bf4..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.14.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.14.0
-
-* [#6469](https://github.com/kubernetes/ingress-nginx/pull/6469) Allow custom service names for controller and backend
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.13.0...ingress-nginx-3.14.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.15.0.md b/charts/ingress-nginx/changelog/helm-chart-3.15.0.md
deleted file mode 100644
index 3053a3548..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.15.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.15.0
-
-* [#6586](https://github.com/kubernetes/ingress-nginx/pull/6586) Fix 'maxmindLicenseKey' location in values.yaml
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.14.0...ingress-nginx-3.15.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.15.1.md b/charts/ingress-nginx/changelog/helm-chart-3.15.1.md
deleted file mode 100644
index f11ee0a76..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.15.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.15.1
-
-* Fix chart-releaser action
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.15.0...ingress-nginx-3.15.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.16.0.md b/charts/ingress-nginx/changelog/helm-chart-3.16.0.md
deleted file mode 100644
index fba30b171..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.16.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.16.0
-
-* [#6646](https://github.com/kubernetes/ingress-nginx/pull/6646) Added LoadBalancerIP value for internal service
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.15.1...helm-chart-3.16.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.16.1.md b/charts/ingress-nginx/changelog/helm-chart-3.16.1.md
deleted file mode 100644
index 650d1b8fa..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.16.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.16.1
-
-* Fix chart-releaser action
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.16.0...helm-chart-3.16.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.17.0.md b/charts/ingress-nginx/changelog/helm-chart-3.17.0.md
deleted file mode 100644
index 175c7a264..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.17.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.17.0
-
-* Update ingress-nginx v0.42.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.16.1...helm-chart-3.17.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.18.0.md b/charts/ingress-nginx/changelog/helm-chart-3.18.0.md
deleted file mode 100644
index 31b815e4e..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.18.0.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.18.0
-
-* [#6688](https://github.com/kubernetes/ingress-nginx/pull/6688) Allow volume-type emptyDir in controller podsecuritypolicy
-* [#6691](https://github.com/kubernetes/ingress-nginx/pull/6691) Improve parsing of helm parameters
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.17.0...helm-chart-3.18.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.19.0.md b/charts/ingress-nginx/changelog/helm-chart-3.19.0.md
deleted file mode 100644
index 0970bf02c..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.19.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.19.0
-
-* Update ingress-nginx v0.43.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.18.0...helm-chart-3.19.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.20.0.md b/charts/ingress-nginx/changelog/helm-chart-3.20.0.md
deleted file mode 100644
index 4b81ae42f..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.20.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.20.0
-
-* [#6730](https://github.com/kubernetes/ingress-nginx/pull/6730) Do not create HPA for defaultBackend if not enabled.
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.19.0...helm-chart-3.20.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.20.1.md b/charts/ingress-nginx/changelog/helm-chart-3.20.1.md
deleted file mode 100644
index 952bf2bd3..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.20.1.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.20.1
-
-* Do not create KEDA in case of DaemonSets.
-* Fix KEDA v2 definition
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.20.0...helm-chart-3.20.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.21.0.md b/charts/ingress-nginx/changelog/helm-chart-3.21.0.md
deleted file mode 100644
index 25edbefd9..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.21.0.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.21.0
-
-* [#6783](https://github.com/kubernetes/ingress-nginx/pull/6783) Add custom annotations to ScaledObject
-* [#6761](https://github.com/kubernetes/ingress-nginx/pull/6761) Adding quotes in the serviceAccount name in Helm values
-* [#6767](https://github.com/kubernetes/ingress-nginx/pull/6767) Remove ClusterRole when scope option is enabled
-* [#6785](https://github.com/kubernetes/ingress-nginx/pull/6785) Update kube-webhook-certgen image to v1.5.1
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.20.1...helm-chart-3.21.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.22.0.md b/charts/ingress-nginx/changelog/helm-chart-3.22.0.md
deleted file mode 100644
index 147d66421..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.22.0.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.22.0
-
-* [#6802](https://github.com/kubernetes/ingress-nginx/pull/6802) Add value for configuring a custom Diffie-Hellman parameters file
-* [#6815](https://github.com/kubernetes/ingress-nginx/pull/6815) Allow use of numeric namespaces in helm chart
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.21.0...helm-chart-3.22.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.23.0.md b/charts/ingress-nginx/changelog/helm-chart-3.23.0.md
deleted file mode 100644
index 5dcb50fa8..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.23.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.23.0
-
-* Update ingress-nginx v0.44.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.22.0...helm-chart-3.23.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.24.0.md b/charts/ingress-nginx/changelog/helm-chart-3.24.0.md
deleted file mode 100644
index d7db808b1..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.24.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.24.0
-
-* [#6908](https://github.com/kubernetes/ingress-nginx/pull/6908) Add volumes to default-backend deployment
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.23.0...helm-chart-3.24.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.25.0.md b/charts/ingress-nginx/changelog/helm-chart-3.25.0.md
deleted file mode 100644
index f9679a124..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.25.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.25.0
-
-* [#6957](https://github.com/kubernetes/ingress-nginx/pull/6957) Add ability to specify automountServiceAccountToken
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.24.0...helm-chart-3.25.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.26.0.md b/charts/ingress-nginx/changelog/helm-chart-3.26.0.md
deleted file mode 100644
index 0c3a1df68..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.26.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.26.0
-
-* [#6979](https://github.com/kubernetes/ingress-nginx/pull/6979) Changed servicePort value for metrics
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.25.0...helm-chart-3.26.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.27.0.md b/charts/ingress-nginx/changelog/helm-chart-3.27.0.md
deleted file mode 100644
index 8113d7b9b..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.27.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.27.0
-
-* Update ingress-nginx v0.45.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.26.0...helm-chart-3.27.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.28.0.md b/charts/ingress-nginx/changelog/helm-chart-3.28.0.md
deleted file mode 100644
index eee0ccbec..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.28.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.28.0
-
-* [#6900](https://github.com/kubernetes/ingress-nginx/pull/6900) Support existing PSPs
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.27.0...helm-chart-3.28.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.29.0.md b/charts/ingress-nginx/changelog/helm-chart-3.29.0.md
deleted file mode 100644
index f0fabdce1..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.29.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.29.0
-
-* [#6945](https://github.com/kubernetes/ingress-nginx/pull/7020) Add option to specify job label for ServiceMonitor
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.28.0...helm-chart-3.29.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.3.0.md b/charts/ingress-nginx/changelog/helm-chart-3.3.0.md
deleted file mode 100644
index 09fab3756..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.3.0.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.3.0
-
-* [#6203](https://github.com/kubernetes/ingress-nginx/pull/6203) Refactor parsing of key values
-* [#6162](https://github.com/kubernetes/ingress-nginx/pull/6162) Add helm chart options to expose metrics service as NodePort
-* [#6180](https://github.com/kubernetes/ingress-nginx/pull/6180) Fix helm chart admissionReviewVersions regression
-* [#6169](https://github.com/kubernetes/ingress-nginx/pull/6169) Fix Typo in example prometheus rules
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.0.0...ingress-nginx-3.3.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.3.1.md b/charts/ingress-nginx/changelog/helm-chart-3.3.1.md
deleted file mode 100644
index 81f44fdbd..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.3.1.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.3.1
-
-* [#6259](https://github.com/kubernetes/ingress-nginx/pull/6259) Release helm chart
-* [#6258](https://github.com/kubernetes/ingress-nginx/pull/6258) Fix chart markdown link
-* [#6253](https://github.com/kubernetes/ingress-nginx/pull/6253) Release v0.40.0
-* [#6233](https://github.com/kubernetes/ingress-nginx/pull/6233) Add admission controller e2e test
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.3.0...ingress-nginx-3.3.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.30.0.md b/charts/ingress-nginx/changelog/helm-chart-3.30.0.md
deleted file mode 100644
index 77ad6b41b..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.30.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.30.0
-
-* [#7092](https://github.com/kubernetes/ingress-nginx/pull/7092) Removes the possibility of using localhost in ExternalNames as endpoints
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.29.0...helm-chart-3.30.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.31.0.md b/charts/ingress-nginx/changelog/helm-chart-3.31.0.md
deleted file mode 100644
index bc07fed76..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.31.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.31.0
-
-* [7137] https://github.com/kubernetes/ingress-nginx/pull/7137 Add support for custom probes
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.30.0...helm-chart-3.31.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.32.0.md b/charts/ingress-nginx/changelog/helm-chart-3.32.0.md
deleted file mode 100644
index 68f7ed6b2..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.32.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.32.0
-
-* [7117] https://github.com/kubernetes/ingress-nginx/pull/7117 Add annotations for HPA
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.31.0...helm-chart-3.32.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.33.0.md b/charts/ingress-nginx/changelog/helm-chart-3.33.0.md
deleted file mode 100644
index b56c5fc1e..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.33.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.33.0
-
-* [7164] https://github.com/kubernetes/ingress-nginx/pull/7164 Update nginx to v1.20.1
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.32.0...helm-chart-3.33.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.34.0.md b/charts/ingress-nginx/changelog/helm-chart-3.34.0.md
deleted file mode 100644
index a28cd0282..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.34.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.34.0
-
-* [7256] https://github.com/kubernetes/ingress-nginx/pull/7256 Add namespace field in the namespace scoped resource templates
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.33.0...helm-chart-3.34.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.4.0.md b/charts/ingress-nginx/changelog/helm-chart-3.4.0.md
deleted file mode 100644
index 3b4ca9353..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.4.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.4.0
-
-* [#6268](https://github.com/kubernetes/ingress-nginx/pull/6268) Update to 0.40.2 in helm chart #6288
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.3.1...ingress-nginx-3.4.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.5.0.md b/charts/ingress-nginx/changelog/helm-chart-3.5.0.md
deleted file mode 100644
index 44991b3bb..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.5.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.5.0
-
-* [#6260](https://github.com/kubernetes/ingress-nginx/pull/6260) Allow Helm Chart to customize admission webhook's annotations, timeoutSeconds, namespaceSelector, objectSelector and cert files locations
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.4.0...ingress-nginx-3.5.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.5.1.md b/charts/ingress-nginx/changelog/helm-chart-3.5.1.md
deleted file mode 100644
index 740f00c45..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.5.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.5.1
-
-* [#6299](https://github.com/kubernetes/ingress-nginx/pull/6299) Fix helm chart release
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.5.0...ingress-nginx-3.5.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.6.0.md b/charts/ingress-nginx/changelog/helm-chart-3.6.0.md
deleted file mode 100644
index 4af7f11a1..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.6.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.6.0
-
-* [#6305](https://github.com/kubernetes/ingress-nginx/pull/6305) Add default linux nodeSelector
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.5.1...ingress-nginx-3.6.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.7.0.md b/charts/ingress-nginx/changelog/helm-chart-3.7.0.md
deleted file mode 100644
index a6b12994b..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.7.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.7.0
-
-* [#6316](https://github.com/kubernetes/ingress-nginx/pull/6316) Numerals in podAnnotations in quotes [#6315](https://github.com/kubernetes/ingress-nginx/issues/6315)
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.6.0...ingress-nginx-3.7.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.7.1.md b/charts/ingress-nginx/changelog/helm-chart-3.7.1.md
deleted file mode 100644
index 6ba12df91..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.7.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.7.1
-
-* [#6326](https://github.com/kubernetes/ingress-nginx/pull/6326) Fix liveness and readiness probe path in daemonset chart
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.7.0...ingress-nginx-3.7.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.8.0.md b/charts/ingress-nginx/changelog/helm-chart-3.8.0.md
deleted file mode 100644
index 8df250a98..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.8.0.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.8.0
-
-* [#6395](https://github.com/kubernetes/ingress-nginx/pull/6395) Update jettech/kube-webhook-certgen image
-* [#6377](https://github.com/kubernetes/ingress-nginx/pull/6377) Added loadBalancerSourceRanges for internal lbs
-* [#6356](https://github.com/kubernetes/ingress-nginx/pull/6356) Add securitycontext settings on defaultbackend
-* [#6401](https://github.com/kubernetes/ingress-nginx/pull/6401) Fix controller service annotations
-* [#6403](https://github.com/kubernetes/ingress-nginx/pull/6403) Initial helm chart changelog
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.7.1...ingress-nginx-3.8.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-3.9.0.md b/charts/ingress-nginx/changelog/helm-chart-3.9.0.md
deleted file mode 100644
index e8c9def51..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-3.9.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 3.9.0
-
-* [#6423](https://github.com/kubernetes/ingress-nginx/pull/6423) Add Default backend HPA autoscaling
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/ingress-nginx-3.8.0...ingress-nginx-3.9.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.1.md b/charts/ingress-nginx/changelog/helm-chart-4.0.1.md
deleted file mode 100644
index 7a187b350..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.1
-
-* [7535] https://github.com/kubernetes/ingress-nginx/pull/7535 Release v1.0.0 ingress-nginx
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-3.34.0...helm-chart-4.0.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.10.md b/charts/ingress-nginx/changelog/helm-chart-4.0.10.md
deleted file mode 100644
index c5d651670..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.10.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.10
-
-* [7964] https://github.com/kubernetes/ingress-nginx/pull/7964 Update controller version to v1.1.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.9...helm-chart-4.0.10
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.11.md b/charts/ingress-nginx/changelog/helm-chart-4.0.11.md
deleted file mode 100644
index 554182355..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.11.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.11
-
-* [7873] https://github.com/kubernetes/ingress-nginx/pull/7873 Makes the [appProtocol](https://kubernetes.io/docs/concepts/services-networking/_print/#application-protocol) field optional.
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.10...helm-chart-4.0.11
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.12.md b/charts/ingress-nginx/changelog/helm-chart-4.0.12.md
deleted file mode 100644
index 320f6f546..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.12.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.12
-
-* [7978] https://github.com/kubernetes/ingress-nginx/pull/7979 Support custom annotations in admissions Jobs
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.11...helm-chart-4.0.12
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.13.md b/charts/ingress-nginx/changelog/helm-chart-4.0.13.md
deleted file mode 100644
index edd922814..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.13.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.13
-
-* [8008] https://github.com/kubernetes/ingress-nginx/pull/8008 Add relabelings in controller-servicemonitor.yaml
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.12...helm-chart-4.0.13
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.14.md b/charts/ingress-nginx/changelog/helm-chart-4.0.14.md
deleted file mode 100644
index e92701039..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.14.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.14
-
-* [8061] https://github.com/kubernetes/ingress-nginx/pull/8061 Using helm-docs to populate values table in README.md
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.13...helm-chart-4.0.14
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.15.md b/charts/ingress-nginx/changelog/helm-chart-4.0.15.md
deleted file mode 100644
index d3d14a98d..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.15.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.15
-
-* [8120] https://github.com/kubernetes/ingress-nginx/pull/8120 Update go in runner and release v1.1.1
-* [8119] https://github.com/kubernetes/ingress-nginx/pull/8119 Update to go v1.17.6
-* [8118] https://github.com/kubernetes/ingress-nginx/pull/8118 Remove deprecated libraries, update other libs
-* [8117] https://github.com/kubernetes/ingress-nginx/pull/8117 Fix codegen errors
-* [8115] https://github.com/kubernetes/ingress-nginx/pull/8115 chart/ghaction: set the correct permission to have access to push a release
-* [8098] https://github.com/kubernetes/ingress-nginx/pull/8098 generating SHA for CA only certs in backend_ssl.go + comparison of P…
-* [8088] https://github.com/kubernetes/ingress-nginx/pull/8088 Fix Edit this page link to use main branch
-* [8072] https://github.com/kubernetes/ingress-nginx/pull/8072 Expose GeoIP2 Continent code as variable
-* [8061] https://github.com/kubernetes/ingress-nginx/pull/8061 docs(charts): using helm-docs for chart
-* [8058] https://github.com/kubernetes/ingress-nginx/pull/8058 Bump github.com/spf13/cobra from 1.2.1 to 1.3.0
-* [8054] https://github.com/kubernetes/ingress-nginx/pull/8054 Bump google.golang.org/grpc from 1.41.0 to 1.43.0
-* [8051] https://github.com/kubernetes/ingress-nginx/pull/8051 align bug report with feature request regarding kind documentation
-* [8046] https://github.com/kubernetes/ingress-nginx/pull/8046 Report expired certificates (#8045)
-* [8044] https://github.com/kubernetes/ingress-nginx/pull/8044 remove G109 check till gosec resolves issues
-* [8042] https://github.com/kubernetes/ingress-nginx/pull/8042 docs_multiple_instances_one_cluster_ticket_7543
-* [8041] https://github.com/kubernetes/ingress-nginx/pull/8041 docs: fix typo'd executable name
-* [8035] https://github.com/kubernetes/ingress-nginx/pull/8035 Comment busy owners
-* [8029] https://github.com/kubernetes/ingress-nginx/pull/8029 Add stream-snippet as a ConfigMap and Annotation option
-* [8023] https://github.com/kubernetes/ingress-nginx/pull/8023 fix nginx compilation flags
-* [8021] https://github.com/kubernetes/ingress-nginx/pull/8021 Disable default modsecurity_rules_file if modsecurity-snippet is specified
-* [8019] https://github.com/kubernetes/ingress-nginx/pull/8019 Revise main documentation page
-* [8018] https://github.com/kubernetes/ingress-nginx/pull/8018 Preserve order of plugin invocation
-* [8015] https://github.com/kubernetes/ingress-nginx/pull/8015 Add newline indenting to admission webhook annotations
-* [8014] https://github.com/kubernetes/ingress-nginx/pull/8014 Add link to example error page manifest in docs
-* [8009] https://github.com/kubernetes/ingress-nginx/pull/8009 Fix spelling in documentation and top-level files
-* [8008] https://github.com/kubernetes/ingress-nginx/pull/8008 Add relabelings in controller-servicemonitor.yaml
-* [8003] https://github.com/kubernetes/ingress-nginx/pull/8003 Minor improvements (formatting, consistency) in install guide
-* [8001] https://github.com/kubernetes/ingress-nginx/pull/8001 fix: go-grpc Dockerfile
-* [7999] https://github.com/kubernetes/ingress-nginx/pull/7999 images: use k8s-staging-test-infra/gcb-docker-gcloud
-* [7996] https://github.com/kubernetes/ingress-nginx/pull/7996 doc: improvement
-* [7983] https://github.com/kubernetes/ingress-nginx/pull/7983 Fix a couple of misspellings in the annotations documentation.
-* [7979] https://github.com/kubernetes/ingress-nginx/pull/7979 allow set annotations for admission Jobs
-* [7977] https://github.com/kubernetes/ingress-nginx/pull/7977 Add ssl_reject_handshake to default server
-* [7975] https://github.com/kubernetes/ingress-nginx/pull/7975 add legacy version update v0.50.0 to main changelog
-* [7972] https://github.com/kubernetes/ingress-nginx/pull/7972 updated service upstream definition
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.14...helm-chart-4.0.15
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.18.md b/charts/ingress-nginx/changelog/helm-chart-4.0.18.md
deleted file mode 100644
index 30a8f75c1..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.18.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.18
-
-* [8291](https://github.com/kubernetes/ingress-nginx/pull/8291) remove git tag env from cloud build
-* [8286](https://github.com/kubernetes/ingress-nginx/pull/8286) Fix OpenTelemetry sidecar image build
-* [8277](https://github.com/kubernetes/ingress-nginx/pull/8277) Add OpenSSF Best practices badge
-* [8273](https://github.com/kubernetes/ingress-nginx/pull/8273) Issue#8241
-* [8267](https://github.com/kubernetes/ingress-nginx/pull/8267) Add fsGroup value to admission-webhooks/job-patch charts
-* [8262](https://github.com/kubernetes/ingress-nginx/pull/8262) Updated confusing error
-* [8256](https://github.com/kubernetes/ingress-nginx/pull/8256) fix: deny locations with invalid auth-url annotation
-* [8253](https://github.com/kubernetes/ingress-nginx/pull/8253) Add a certificate info metric
-* [8236](https://github.com/kubernetes/ingress-nginx/pull/8236) webhook: remove useless code.
-* [8227](https://github.com/kubernetes/ingress-nginx/pull/8227) Update libraries in webhook image
-* [8225](https://github.com/kubernetes/ingress-nginx/pull/8225) fix inconsistent-label-cardinality for prometheus metrics: nginx_ingress_controller_requests
-* [8221](https://github.com/kubernetes/ingress-nginx/pull/8221) Do not validate ingresses with unknown ingress class in admission webhook endpoint
-* [8210](https://github.com/kubernetes/ingress-nginx/pull/8210) Bump github.com/prometheus/client_golang from 1.11.0 to 1.12.1
-* [8209](https://github.com/kubernetes/ingress-nginx/pull/8209) Bump google.golang.org/grpc from 1.43.0 to 1.44.0
-* [8204](https://github.com/kubernetes/ingress-nginx/pull/8204) Add Artifact Hub lint
-* [8203](https://github.com/kubernetes/ingress-nginx/pull/8203) Fix Indentation of example and link to cert-manager tutorial
-* [8201](https://github.com/kubernetes/ingress-nginx/pull/8201) feat(metrics): add path and method labels to requests countera
-* [8199](https://github.com/kubernetes/ingress-nginx/pull/8199) use functional options to reduce number of methods creating an EchoDeployment
-* [8196](https://github.com/kubernetes/ingress-nginx/pull/8196) docs: fix inconsistent controller annotation
-* [8191](https://github.com/kubernetes/ingress-nginx/pull/8191) Using Go install for misspell
-* [8186](https://github.com/kubernetes/ingress-nginx/pull/8186) prometheus+grafana using servicemonitor
-* [8185](https://github.com/kubernetes/ingress-nginx/pull/8185) Append elements on match, instead of removing for cors-annotations
-* [8179](https://github.com/kubernetes/ingress-nginx/pull/8179) Bump github.com/opencontainers/runc from 1.0.3 to 1.1.0
-* [8173](https://github.com/kubernetes/ingress-nginx/pull/8173) Adding annotations to the controller service account
-* [8163](https://github.com/kubernetes/ingress-nginx/pull/8163) Update the $req_id placeholder description
-* [8162](https://github.com/kubernetes/ingress-nginx/pull/8162) Versioned static manifests
-* [8159](https://github.com/kubernetes/ingress-nginx/pull/8159) Adding some geoip variables and default values
-* [8155](https://github.com/kubernetes/ingress-nginx/pull/8155) #7271 feat: avoid-pdb-creation-when-default-backend-disabled-and-replicas-gt-1
-* [8151](https://github.com/kubernetes/ingress-nginx/pull/8151) Automatically generate helm docs
-* [8143](https://github.com/kubernetes/ingress-nginx/pull/8143) Allow to configure delay before controller exits
-* [8136](https://github.com/kubernetes/ingress-nginx/pull/8136) add ingressClass option to helm chart - back compatibility with ingress.class annotations
-* [8126](https://github.com/kubernetes/ingress-nginx/pull/8126) Example for JWT
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.15...helm-chart-4.0.18
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.2.md b/charts/ingress-nginx/changelog/helm-chart-4.0.2.md
deleted file mode 100644
index 9dbd003a9..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.2.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.2
-
-* [7681] https://github.com/kubernetes/ingress-nginx/pull/7681 Release v1.0.1 of ingress-nginx
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.1...helm-chart-4.0.2
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.3.md b/charts/ingress-nginx/changelog/helm-chart-4.0.3.md
deleted file mode 100644
index 09b89f66c..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.3.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.3
-
-* [7707] https://github.com/kubernetes/ingress-nginx/pull/7707 Release v1.0.2 of ingress-nginx
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.2...helm-chart-4.0.3
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.5.md b/charts/ingress-nginx/changelog/helm-chart-4.0.5.md
deleted file mode 100644
index be67704ba..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.5.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.5
-
-* [7740] https://github.com/kubernetes/ingress-nginx/pull/7740 Release v1.0.3 of ingress-nginx
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.3...helm-chart-4.0.5
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.6.md b/charts/ingress-nginx/changelog/helm-chart-4.0.6.md
deleted file mode 100644
index 25276e2be..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.6.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.6
-
-* [7804] https://github.com/kubernetes/ingress-nginx/pull/7804 Release v1.0.4 of ingress-nginx
-* [7651] https://github.com/kubernetes/ingress-nginx/pull/7651 Support ipFamilyPolicy and ipFamilies fields in Helm Chart
-* [7798] https://github.com/kubernetes/ingress-nginx/pull/7798 Exoscale: use HTTP Healthcheck mode
-* [7793] https://github.com/kubernetes/ingress-nginx/pull/7793 Update kube-webhook-certgen to v1.1.1
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.5...helm-chart-4.0.6
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.7.md b/charts/ingress-nginx/changelog/helm-chart-4.0.7.md
deleted file mode 100644
index 50fd9227c..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.7.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.7
-
-* [7923] https://github.com/kubernetes/ingress-nginx/pull/7923 Release v1.0.5 of ingress-nginx
-* [7806] https://github.com/kubernetes/ingress-nginx/pull/7806 Choice option for internal/external loadbalancer type service
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.6...helm-chart-4.0.7
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.0.9.md b/charts/ingress-nginx/changelog/helm-chart-4.0.9.md
deleted file mode 100644
index f2f725c93..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.0.9.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.0.9
-
-* [6992] https://github.com/kubernetes/ingress-nginx/pull/6992 Add ability to specify labels for all resources
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.7...helm-chart-4.0.9
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.1.0.md b/charts/ingress-nginx/changelog/helm-chart-4.1.0.md
deleted file mode 100644
index 24aaf49ae..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.1.0.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.1.0
-
-* [8481](https://github.com/kubernetes/ingress-nginx/pull/8481) Fix log creation in chroot script
-* [8479](https://github.com/kubernetes/ingress-nginx/pull/8479) changed nginx base img tag to img built with alpine3.14.6
-* [8478](https://github.com/kubernetes/ingress-nginx/pull/8478) update base images and protobuf gomod
-* [8468](https://github.com/kubernetes/ingress-nginx/pull/8468) Fallback to ngx.var.scheme for redirectScheme with use-forward-headers when X-Forwarded-Proto is empty
-* [8456](https://github.com/kubernetes/ingress-nginx/pull/8456) Implement object deep inspector
-* [8455](https://github.com/kubernetes/ingress-nginx/pull/8455) Update dependencies
-* [8454](https://github.com/kubernetes/ingress-nginx/pull/8454) Update index.md
-* [8447](https://github.com/kubernetes/ingress-nginx/pull/8447) typo fixing
-* [8446](https://github.com/kubernetes/ingress-nginx/pull/8446) Fix suggested annotation-value-word-blocklist
-* [8444](https://github.com/kubernetes/ingress-nginx/pull/8444) replace deprecated topology key in example with current one
-* [8443](https://github.com/kubernetes/ingress-nginx/pull/8443) Add dependency review enforcement
-* [8434](https://github.com/kubernetes/ingress-nginx/pull/8434) added new auth-tls-match-cn annotation
-* [8426](https://github.com/kubernetes/ingress-nginx/pull/8426) Bump github.com/prometheus/common from 0.32.1 to 0.33.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.0.18...helm-chart-4.1.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.1.2.md b/charts/ingress-nginx/changelog/helm-chart-4.1.2.md
deleted file mode 100644
index 20618557f..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.1.2.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.1.2
-
-* [8587](https://github.com/kubernetes/ingress-nginx/pull/8587) Add CAP_SYS_CHROOT to DS/PSP when needed
-* [8458](https://github.com/kubernetes/ingress-nginx/pull/8458) Add portNamePrefix Helm chart parameter
-* [8522](https://github.com/kubernetes/ingress-nginx/pull/8522) Add documentation for controller.service.loadBalancerIP in Helm chart
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.1.0...helm-chart-4.1.2
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.10.0.md b/charts/ingress-nginx/changelog/helm-chart-4.10.0.md
deleted file mode 100644
index a1f1847ec..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.10.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.10.0
-
-* - "Update Ingress-Nginx version controller-v1.10.0"
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.9.1...helm-chart-4.10.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.10.1.md b/charts/ingress-nginx/changelog/helm-chart-4.10.1.md
deleted file mode 100644
index 3a28de00c..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.10.1.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.10.1
-
-* - "update post submit helm ci and clean up (#11221)"
-* - "refactor helm ci tests part I (#11188)"
-* - "Update Ingress-Nginx version controller-v1.10.1"
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.10.0...helm-chart-4.10.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.10.2.md b/charts/ingress-nginx/changelog/helm-chart-4.10.2.md
deleted file mode 100644
index 399bd98d6..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.10.2.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.10.2
-
-* Chores: Align security contacts & chart maintainers to actual owners. (#11480)
-* Fix helm install on cloud provider admonition block (#11412)
-* edited helm-install tips (#11411)
-* added info for aws helm install (#11410)
-* add workflow to helm release and update ct for branch (#11317)
-* Merge pull request #11277 from strongjz/chart-1.10.1 (#11314)
-* release helm chart from release branch (#11278)
-* update post submit helm ci and clean up (#11221)
-* refactor helm ci tests part I (#11188)
-* Update Ingress-Nginx version controller-v1.10.2
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.10.1...helm-chart-4.10.2
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.10.3.md b/charts/ingress-nginx/changelog/helm-chart-4.10.3.md
deleted file mode 100644
index 3f77d405b..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.10.3.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.10.3
-
-* Update Ingress-Nginx version controller-v1.10.3
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.10.2...helm-chart-4.10.3
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.10.4.md b/charts/ingress-nginx/changelog/helm-chart-4.10.4.md
deleted file mode 100644
index 661d3c9bb..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.10.4.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.10.4
-
-* Update Ingress-Nginx version controller-v1.10.4
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.10.3...helm-chart-4.10.4
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.10.5.md b/charts/ingress-nginx/changelog/helm-chart-4.10.5.md
deleted file mode 100644
index 72c72c720..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.10.5.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.10.5
-
-* Update Ingress-Nginx version controller-v1.10.5
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.10.4...helm-chart-4.10.5
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.10.6.md b/charts/ingress-nginx/changelog/helm-chart-4.10.6.md
deleted file mode 100644
index c26c8817b..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.10.6.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.10.6
-
-* CI: Fix chart testing. (#12260)
-* Update Ingress-Nginx version controller-v1.10.6
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.10.5...helm-chart-4.10.6
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.11.0.md b/charts/ingress-nginx/changelog/helm-chart-4.11.0.md
deleted file mode 100644
index 64108c04e..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.11.0.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.11.0
-
-* Chores: Align security contacts & chart maintainers to actual owners. (#11465)
-* Merge pull request #11277 from strongjz/chart-1.10.1 (#11415)
-* Fix helm install on cloud provider admonition block (#11394)
-* edited helm-install tips (#11393)
-* added info for aws helm install (#11390)
-* add workflow to helm release and update ct for branch (#11378)
-* release helm chart from release branch (#11276)
-* update post submit helm ci and clean up (#11220)
-* refactor helm ci tests part I (#11178)
-* Update Ingress-Nginx version controller-v1.11.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.10.2...helm-chart-4.11.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.11.1.md b/charts/ingress-nginx/changelog/helm-chart-4.11.1.md
deleted file mode 100644
index 281513e5f..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.11.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.11.1
-
-* Update Ingress-Nginx version controller-v1.11.1
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.11.0...helm-chart-4.11.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.11.2.md b/charts/ingress-nginx/changelog/helm-chart-4.11.2.md
deleted file mode 100644
index c7645a5b6..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.11.2.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.11.2
-
-* Update Ingress-Nginx version controller-v1.11.2
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.11.1...helm-chart-4.11.2
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.11.3.md b/charts/ingress-nginx/changelog/helm-chart-4.11.3.md
deleted file mode 100644
index 18ec6ba82..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.11.3.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.11.3
-
-* Update Ingress-Nginx version controller-v1.11.3
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.11.2...helm-chart-4.11.3
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.11.4.md b/charts/ingress-nginx/changelog/helm-chart-4.11.4.md
deleted file mode 100644
index 003c787d3..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.11.4.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.11.4
-
-* CI: Fix chart testing. (#12259)
-* Update Ingress-Nginx version controller-v1.11.4
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.11.3...helm-chart-4.11.4
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.12.0-beta.0.md b/charts/ingress-nginx/changelog/helm-chart-4.12.0-beta.0.md
deleted file mode 100644
index fa980f1fb..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.12.0-beta.0.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.12.0-beta.0
-
-* Update Ingress-Nginx version controller-v1.12.0-beta.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.11.0...helm-chart-4.12.0-beta.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.12.0.md b/charts/ingress-nginx/changelog/helm-chart-4.12.0.md
deleted file mode 100644
index f8f36d499..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.12.0.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.12.0
-
-* CI: Fix chart testing. (#12258)
-* Update Ingress-Nginx version controller-v1.12.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.11.0...helm-chart-4.12.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.2.0.md b/charts/ingress-nginx/changelog/helm-chart-4.2.0.md
deleted file mode 100644
index 2074a0953..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.2.0.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.2.0
-
-* Support for Kubernetes v1.19.0 was removed
-* [8810](https://github.com/kubernetes/ingress-nginx/pull/8810) Prepare for v1.3.0
-* [8808](https://github.com/kubernetes/ingress-nginx/pull/8808) revert arch var name
-* [8805](https://github.com/kubernetes/ingress-nginx/pull/8805) Bump k8s.io/klog/v2 from 2.60.1 to 2.70.1
-* [8803](https://github.com/kubernetes/ingress-nginx/pull/8803) Update to nginx base with alpine v3.16
-* [8802](https://github.com/kubernetes/ingress-nginx/pull/8802) chore: start v1.3.0 release process
-* [8798](https://github.com/kubernetes/ingress-nginx/pull/8798) Add v1.24.0 to test matrix
-* [8796](https://github.com/kubernetes/ingress-nginx/pull/8796) fix: add MAC_OS variable for static-check
-* [8793](https://github.com/kubernetes/ingress-nginx/pull/8793) changed to alpine-v3.16
-* [8781](https://github.com/kubernetes/ingress-nginx/pull/8781) Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
-* [8778](https://github.com/kubernetes/ingress-nginx/pull/8778) chore: remove stable.txt from release process
-* [8775](https://github.com/kubernetes/ingress-nginx/pull/8775) Remove stable
-* [8773](https://github.com/kubernetes/ingress-nginx/pull/8773) Bump github/codeql-action from 2.1.14 to 2.1.15
-* [8772](https://github.com/kubernetes/ingress-nginx/pull/8772) Bump ossf/scorecard-action from 1.1.1 to 1.1.2
-* [8771](https://github.com/kubernetes/ingress-nginx/pull/8771) fix bullet md format
-* [8770](https://github.com/kubernetes/ingress-nginx/pull/8770) Add condition for monitoring.coreos.com/v1 API
-* [8769](https://github.com/kubernetes/ingress-nginx/pull/8769) Fix typos and add links to developer guide
-* [8767](https://github.com/kubernetes/ingress-nginx/pull/8767) change v1.2.0 to v1.2.1 in deploy doc URLs
-* [8765](https://github.com/kubernetes/ingress-nginx/pull/8765) Bump github/codeql-action from 1.0.26 to 2.1.14
-* [8752](https://github.com/kubernetes/ingress-nginx/pull/8752) Bump github.com/spf13/cobra from 1.4.0 to 1.5.0
-* [8751](https://github.com/kubernetes/ingress-nginx/pull/8751) Bump github.com/stretchr/testify from 1.7.2 to 1.7.5
-* [8750](https://github.com/kubernetes/ingress-nginx/pull/8750) added announcement
-* [8740](https://github.com/kubernetes/ingress-nginx/pull/8740) change sha e2etestrunner and echoserver
-* [8738](https://github.com/kubernetes/ingress-nginx/pull/8738) Update docs to make it easier for noobs to follow step by step
-* [8737](https://github.com/kubernetes/ingress-nginx/pull/8737) updated baseimage sha
-* [8736](https://github.com/kubernetes/ingress-nginx/pull/8736) set ld-musl-path
-* [8733](https://github.com/kubernetes/ingress-nginx/pull/8733) feat: migrate leaderelection lock to leases
-* [8726](https://github.com/kubernetes/ingress-nginx/pull/8726) prometheus metric: upstream_latency_seconds
-* [8720](https://github.com/kubernetes/ingress-nginx/pull/8720) Ci pin deps
-* [8719](https://github.com/kubernetes/ingress-nginx/pull/8719) Working OpenTelemetry sidecar (base nginx image)
-* [8714](https://github.com/kubernetes/ingress-nginx/pull/8714) Create Openssf scorecard
-* [8708](https://github.com/kubernetes/ingress-nginx/pull/8708) Bump github.com/prometheus/common from 0.34.0 to 0.35.0
-* [8703](https://github.com/kubernetes/ingress-nginx/pull/8703) Bump actions/dependency-review-action from 1 to 2
-* [8701](https://github.com/kubernetes/ingress-nginx/pull/8701) Fix several typos
-* [8699](https://github.com/kubernetes/ingress-nginx/pull/8699) fix the gosec test and a make target for it
-* [8698](https://github.com/kubernetes/ingress-nginx/pull/8698) Bump actions/upload-artifact from 2.3.1 to 3.1.0
-* [8697](https://github.com/kubernetes/ingress-nginx/pull/8697) Bump actions/setup-go from 2.2.0 to 3.2.0
-* [8695](https://github.com/kubernetes/ingress-nginx/pull/8695) Bump actions/download-artifact from 2 to 3
-* [8694](https://github.com/kubernetes/ingress-nginx/pull/8694) Bump crazy-max/ghaction-docker-buildx from 1.6.2 to 3.3.1
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.1.2...helm-chart-4.2.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.2.1.md b/charts/ingress-nginx/changelog/helm-chart-4.2.1.md
deleted file mode 100644
index 7965bb1c2..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.2.1.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.2.1
-
-* The sha of kube-webhook-certgen image & the opentelemetry image, in values file, was changed to new images built on alpine-v3.16.1
-* [8896](https://github.com/kubernetes/ingress-nginx/pull/8896) updated to new images built today
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.2.0...helm-chart-4.2.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.3.0.md b/charts/ingress-nginx/changelog/helm-chart-4.3.0.md
deleted file mode 100644
index f9dca22d9..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.3.0.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.3.0
-
-* Support for Kubernetes v.1.25.0 was added and support for endpoint slices
-* Support for Kubernetes v1.20.0 and v1.21.0 was removed
-* [8890](https://github.com/kubernetes/ingress-nginx/pull/8890) migrate to endpointslices
-* [9059](https://github.com/kubernetes/ingress-nginx/pull/9059) kubewebhookcertgen sha change after go1191
-* [9046](https://github.com/kubernetes/ingress-nginx/pull/9046) Parameterize metrics port name
-* [9104](https://github.com/kubernetes/ingress-nginx/pull/9104) Fix yaml formatting error with multiple annotations
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.2.1...helm-chart-4.3.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.4.0.md b/charts/ingress-nginx/changelog/helm-chart-4.4.0.md
deleted file mode 100644
index 20f9e2336..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.4.0.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.4.0
-
-* Adding support for disabling liveness and readiness probes to the Helm chart by @njegosrailic in https://github.com/kubernetes/ingress-nginx/pull/9238
-* add:(admission-webhooks) ability to set securityContext by @ybelMekk in https://github.com/kubernetes/ingress-nginx/pull/9186
-* #7652 - Updated Helm chart to use the fullname for the electionID if not specified. by @FutureMatt in https://github.com/kubernetes/ingress-nginx/pull/9133
-* Rename controller-wehbooks-networkpolicy.yaml. by @Gacko in https://github.com/kubernetes/ingress-nginx/pull/9123
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.3.0...helm-chart-4.4.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.5.2.md b/charts/ingress-nginx/changelog/helm-chart-4.5.2.md
deleted file mode 100644
index b6d8a3b0c..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.5.2.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.5.2
-
-* add lint on chart before release (#9570)
-* ci: remove setup-helm step (#9404)
-* feat(helm): Optionally use cert-manager instead admission patch (#9279)
-* run helm release on main only and when the chart/value changes only (#9290)
-* Update Ingress-Nginx version controller-v1.6.4
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.4.3...helm-chart-4.5.2
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.6.0.md b/charts/ingress-nginx/changelog/helm-chart-4.6.0.md
deleted file mode 100644
index 469aaba8c..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.6.0.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.5.3
-
-* docs(helm): fix value key in readme for enabling certManager (#9640)
-* Upgrade alpine 3.17.2
-* Upgrade golang 1.20
-* Drop testing/support for Kubernetes 1.23
-* docs(helm): fix value key in readme for enabling certManager (#9640)
-* Update Ingress-Nginx version controller-v1.7.0
-* feat: OpenTelemetry module integration (#9062)
-* canary-weight-total annotation ignored in rule backends (#9729)
-* fix controller psp's volume config (#9740)
-* Fix several Helm YAML issues with extraModules and extraInitContainers (#9709)
-* Chart: Drop `controller.headers`, rework DH param secret. (#9659)
-* Deployment/DaemonSet: Label pods using `ingress-nginx.labels`. (#9732)
-* HPA: autoscaling/v2beta1 deprecated, bump apiVersion to v2 for defaultBackend (#9731)
-* Fix incorrect annotation name in upstream hashing configuration (#9617)
-
-* Update Ingress-Nginx version controller-v1.7.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.5.2...helm-chart-4.6.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.6.1.md b/charts/ingress-nginx/changelog/helm-chart-4.6.1.md
deleted file mode 100644
index 57d99b8db..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.6.1.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.6.1
-
-* [helm] Support custom port configuration for internal service (#9846)
-* Adding resource type to default HPA configuration to resolve issues with Terraform helm chart usage (#9803)
-* Update Ingress-Nginx version controller-v1.7.1
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.6.0...helm-chart-4.6.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.7.0.md b/charts/ingress-nginx/changelog/helm-chart-4.7.0.md
deleted file mode 100644
index 9d5407053..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.7.0.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.7.0
-
-* helm: Fix opentelemetry module installation for daemonset (#9792)
-* Update charts/* to keep project name display aligned (#9931)
-* HPA: Use capabilities & align manifests. (#9521)
-* PodDisruptionBudget spec logic update (#9904)
-* add option for annotations in PodDisruptionBudget (#9843)
-* Update Ingress-Nginx version controller-v1.8.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.6.1...helm-chart-4.7.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.7.1.md b/charts/ingress-nginx/changelog/helm-chart-4.7.1.md
deleted file mode 100644
index 4d69a7117..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.7.1.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.7.1
-
-* Added a doc line to the missing helm value service.internal.loadBalancerIP (#9406)
-* feat(helm): Add loadBalancerClass (#9562)
-* added helmshowvalues example (#10019)
-* Update Ingress-Nginx version controller-v1.8.1
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.7.0...helm-chart-4.7.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.7.2.md b/charts/ingress-nginx/changelog/helm-chart-4.7.2.md
deleted file mode 100644
index 57b17b982..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.7.2.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.7.2
-
-* Update Ingress-Nginx version controller-v1.8.2
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.7.1...helm-chart-4.7.2
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.8.0-beta.0.md b/charts/ingress-nginx/changelog/helm-chart-4.8.0-beta.0.md
deleted file mode 100644
index 9072a75b4..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.8.0-beta.0.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.8.0-beta.0
-
-* ci(helm): fix Helm Chart release action 422 error (#10237)
-* helm: Use .Release.Namespace as default for ServiceMonitor namespace (#10249)
-* [helm] configure allow to configure hostAliases (#10180)
-* [helm] pass service annotations through helm tpl engine (#10084)
-* Update Ingress-Nginx version controller-v1.9.0-beta.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.7.2...helm-chart-4.8.0-beta.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.8.0.md b/charts/ingress-nginx/changelog/helm-chart-4.8.0.md
deleted file mode 100644
index af8f1241f..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.8.0.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.8.0
-
-* ci(helm): fix Helm Chart release action 422 error (#10237)
-* helm: Use .Release.Namespace as default for ServiceMonitor namespace (#10249)
-* [helm] configure allow to configure hostAliases (#10180)
-* [helm] pass service annotations through helm tpl engine (#10084)
-* Update Ingress-Nginx version controller-v1.9.0
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.7.2...helm-chart-4.8.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.8.1.md b/charts/ingress-nginx/changelog/helm-chart-4.8.1.md
deleted file mode 100644
index 53a4493de..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.8.1.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.8.1
-
-* Update Ingress-Nginx version controller-v1.9.1
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.8.0...helm-chart-4.8.1
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.8.2.md b/charts/ingress-nginx/changelog/helm-chart-4.8.2.md
deleted file mode 100644
index 9957c1a85..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.8.2.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.8.2
-
-* update nginx base, httpbun, e2e, helm webhook cert gen (#10506)
-* Update Ingress-Nginx version controller-v1.9.3
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.8.1...helm-chart-4.8.2
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.8.3.md b/charts/ingress-nginx/changelog/helm-chart-4.8.3.md
deleted file mode 100644
index b8d4d56b3..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.8.3.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.8.3
-
-* Update Ingress-Nginx version controller-v1.9.4
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.8.2...helm-chart-4.8.3
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.9.0.md b/charts/ingress-nginx/changelog/helm-chart-4.9.0.md
deleted file mode 100644
index 5c7729866..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.9.0.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.9.0
-
-* - "Add controller.metrics.serviceMonitor.annotations in Helm chart"
-* - "fix(labels): use complete labels variable on default-backend deployment"
-* - "chart: allow setting allocateLoadBalancerNodePorts (#10693)"
-* - "[release-1.9] feat(helm): add documentation about metric args (#10695)"
-* - "Update Ingress-Nginx version controller-v1.9.5"
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.8.3...helm-chart-4.9.0
diff --git a/charts/ingress-nginx/changelog/helm-chart-4.9.1.md b/charts/ingress-nginx/changelog/helm-chart-4.9.1.md
deleted file mode 100644
index c6120e736..000000000
--- a/charts/ingress-nginx/changelog/helm-chart-4.9.1.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### 4.9.1
-
-* - "update web hook cert gen to latest release v20231226-1a7112e06"
-* - "Update Ingress-Nginx version controller-v1.9.6"
-
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-4.9.0...helm-chart-4.9.1
diff --git a/charts/ingress-nginx/changelog/helm-chart.md.gotmpl b/charts/ingress-nginx/changelog/helm-chart.md.gotmpl
deleted file mode 100644
index ef5add55d..000000000
--- a/charts/ingress-nginx/changelog/helm-chart.md.gotmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-# Changelog
-
-This file documents all notable changes to [ingress-nginx](https://github.com/kubernetes/ingress-nginx) Helm Chart. The release numbering uses [semantic versioning](http://semver.org).
-
-### {{ .NewHelmChartVersion }}
-{{ with .HelmUpdates }}
-{{- range . }}
-* {{ . }}
-{{- end }}
-{{ end }}
-**Full Changelog**: https://github.com/kubernetes/ingress-nginx/compare/helm-chart-{{ .PreviousHelmChartVersion }}...helm-chart-{{ .NewHelmChartVersion }}
diff --git a/charts/ingress-nginx/ci/admission-webhooks-cert-manager-values.yaml b/charts/ingress-nginx/ci/admission-webhooks-cert-manager-values.yaml
deleted file mode 100644
index 7eafd0c5b..000000000
--- a/charts/ingress-nginx/ci/admission-webhooks-cert-manager-values.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- admissionWebhooks:
- certManager:
- enabled: true
diff --git a/charts/ingress-nginx/ci/controller-configmap-addheaders-values.yaml b/charts/ingress-nginx/ci/controller-configmap-addheaders-values.yaml
deleted file mode 100644
index 460a610ba..000000000
--- a/charts/ingress-nginx/ci/controller-configmap-addheaders-values.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- addHeaders:
- X-Frame-Options: deny
diff --git a/charts/ingress-nginx/ci/controller-configmap-proxyheaders-values.yaml b/charts/ingress-nginx/ci/controller-configmap-proxyheaders-values.yaml
deleted file mode 100644
index e23a13c0c..000000000
--- a/charts/ingress-nginx/ci/controller-configmap-proxyheaders-values.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- proxySetHeaders:
- X-Forwarded-Proto: https
diff --git a/charts/ingress-nginx/ci/controller-configmap-values.yaml b/charts/ingress-nginx/ci/controller-configmap-values.yaml
deleted file mode 100644
index a7029895c..000000000
--- a/charts/ingress-nginx/ci/controller-configmap-values.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- config:
- use-proxy-protocol: "true"
diff --git a/charts/ingress-nginx/ci/controller-daemonset-metrics-values.yaml b/charts/ingress-nginx/ci/controller-daemonset-metrics-values.yaml
deleted file mode 100644
index 7a98580cd..000000000
--- a/charts/ingress-nginx/ci/controller-daemonset-metrics-values.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- kind: DaemonSet
-
- metrics:
- enabled: true
diff --git a/charts/ingress-nginx/ci/controller-daemonset-values.yaml b/charts/ingress-nginx/ci/controller-daemonset-values.yaml
deleted file mode 100644
index d34025c80..000000000
--- a/charts/ingress-nginx/ci/controller-daemonset-values.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- kind: DaemonSet
diff --git a/charts/ingress-nginx/ci/controller-deployment-metrics-values.yaml b/charts/ingress-nginx/ci/controller-deployment-metrics-values.yaml
deleted file mode 100644
index 9c95d347c..000000000
--- a/charts/ingress-nginx/ci/controller-deployment-metrics-values.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- kind: Deployment
-
- metrics:
- enabled: true
diff --git a/charts/ingress-nginx/ci/controller-deployment-values.yaml b/charts/ingress-nginx/ci/controller-deployment-values.yaml
deleted file mode 100644
index 1b092dc0c..000000000
--- a/charts/ingress-nginx/ci/controller-deployment-values.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- kind: Deployment
diff --git a/charts/ingress-nginx/ci/controller-hpa-values.yaml b/charts/ingress-nginx/ci/controller-hpa-values.yaml
deleted file mode 100644
index 54a0d2f75..000000000
--- a/charts/ingress-nginx/ci/controller-hpa-values.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- autoscaling:
- enabled: true
- behavior:
- scaleDown:
- stabilizationWindowSeconds: 300
- policies:
- - type: Pods
- value: 1
- periodSeconds: 180
diff --git a/charts/ingress-nginx/ci/controller-ingressclass-values.yaml b/charts/ingress-nginx/ci/controller-ingressclass-values.yaml
deleted file mode 100644
index c06429f97..000000000
--- a/charts/ingress-nginx/ci/controller-ingressclass-values.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- ingressClassResource:
- name: custom-nginx
- default: true
- controllerValue: k8s.io/custom-nginx
-
- watchIngressWithoutClass: true
diff --git a/charts/ingress-nginx/ci/controller-service-internal-values.yaml b/charts/ingress-nginx/ci/controller-service-internal-values.yaml
deleted file mode 100644
index 01635e339..000000000
--- a/charts/ingress-nginx/ci/controller-service-internal-values.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: ClusterIP
-
- internal:
- enabled: true
- labels:
- external-dns.alpha.kubernetes.io/hostname: internal.example.com
- annotations:
- service.beta.kubernetes.io/aws-load-balancer-internal: "true"
diff --git a/charts/ingress-nginx/ci/controller-service-values.yaml b/charts/ingress-nginx/ci/controller-service-values.yaml
deleted file mode 100644
index 4ba3debba..000000000
--- a/charts/ingress-nginx/ci/controller-service-values.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
- service:
- type: NodePort
-
- external:
- labels:
- external-dns.alpha.kubernetes.io/hostname: external.example.com
-
- nodePorts:
- tcp:
- 9000: 30090
- udp:
- 9001: 30091
-
-portNamePrefix: port
-
-tcp:
- 9000: default/test:8080
-
-udp:
- 9001: default/test:8080
diff --git a/charts/ingress-nginx/ci/daemonset-customconfig-values.yaml b/charts/ingress-nginx/ci/daemonset-customconfig-values.yaml
new file mode 100644
index 000000000..e12b53421
--- /dev/null
+++ b/charts/ingress-nginx/ci/daemonset-customconfig-values.yaml
@@ -0,0 +1,9 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
+
+ config:
+ use-proxy-protocol: "true"
diff --git a/charts/ingress-nginx/ci/daemonset-customnodeport-values.yaml b/charts/ingress-nginx/ci/daemonset-customnodeport-values.yaml
new file mode 100644
index 000000000..cfc545f69
--- /dev/null
+++ b/charts/ingress-nginx/ci/daemonset-customnodeport-values.yaml
@@ -0,0 +1,18 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+
+ service:
+ type: NodePort
+ nodePorts:
+ tcp:
+ 9000: 30090
+ udp:
+ 9001: 30091
+
+tcp:
+ 9000: "default/test:8080"
+
+udp:
+ 9001: "default/test:8080"
diff --git a/charts/ingress-nginx/ci/daemonset-headers-values.yaml b/charts/ingress-nginx/ci/daemonset-headers-values.yaml
new file mode 100644
index 000000000..ff82cd9c7
--- /dev/null
+++ b/charts/ingress-nginx/ci/daemonset-headers-values.yaml
@@ -0,0 +1,10 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ addHeaders:
+ X-Frame-Options: deny
+ proxySetHeaders:
+ X-Forwarded-Proto: https
+ service:
+ type: ClusterIP
diff --git a/charts/ingress-nginx/ci/daemonset-internal-lb-values.yaml b/charts/ingress-nginx/ci/daemonset-internal-lb-values.yaml
new file mode 100644
index 000000000..443e39d8b
--- /dev/null
+++ b/charts/ingress-nginx/ci/daemonset-internal-lb-values.yaml
@@ -0,0 +1,10 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
+ internal:
+ enabled: true
+ annotations:
+ service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
diff --git a/charts/ingress-nginx/ci/daemonset-nodeport-values.yaml b/charts/ingress-nginx/ci/daemonset-nodeport-values.yaml
new file mode 100644
index 000000000..6d6605f0e
--- /dev/null
+++ b/charts/ingress-nginx/ci/daemonset-nodeport-values.yaml
@@ -0,0 +1,6 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: NodePort
diff --git a/charts/ingress-nginx/ci/controller-daemonset-podannotations-values.yaml b/charts/ingress-nginx/ci/daemonset-podannotations-values.yaml
similarity index 68%
rename from charts/ingress-nginx/ci/controller-daemonset-podannotations-values.yaml
rename to charts/ingress-nginx/ci/daemonset-podannotations-values.yaml
index 405992ef3..04ac58dbd 100644
--- a/charts/ingress-nginx/ci/controller-daemonset-podannotations-values.yaml
+++ b/charts/ingress-nginx/ci/daemonset-podannotations-values.yaml
@@ -1,16 +1,13 @@
controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ metrics:
+ enabled: true
service:
type: ClusterIP
-
- kind: DaemonSet
-
podAnnotations:
- prometheus.io/scrape: "true"
+ prometheus.io/path: /metrics
prometheus.io/port: "10254"
prometheus.io/scheme: http
- prometheus.io/path: /metrics
+ prometheus.io/scrape: "true"
diff --git a/charts/ingress-nginx/ci/daemonset-tcp-udp-configMapNamespace-values.yaml b/charts/ingress-nginx/ci/daemonset-tcp-udp-configMapNamespace-values.yaml
new file mode 100644
index 000000000..afb5487c5
--- /dev/null
+++ b/charts/ingress-nginx/ci/daemonset-tcp-udp-configMapNamespace-values.yaml
@@ -0,0 +1,16 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
+ tcp:
+ configMapNamespace: default
+ udp:
+ configMapNamespace: default
+
+tcp:
+ 9000: "default/test:8080"
+
+udp:
+ 9001: "default/test:8080"
diff --git a/charts/ingress-nginx/ci/daemonset-tcp-udp-values.yaml b/charts/ingress-nginx/ci/daemonset-tcp-udp-values.yaml
new file mode 100644
index 000000000..7b4d7cbe7
--- /dev/null
+++ b/charts/ingress-nginx/ci/daemonset-tcp-udp-values.yaml
@@ -0,0 +1,12 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
+
+tcp:
+ 9000: "default/test:8080"
+
+udp:
+ 9001: "default/test:8080"
diff --git a/charts/ingress-nginx/ci/daemonset-tcp-values.yaml b/charts/ingress-nginx/ci/daemonset-tcp-values.yaml
new file mode 100644
index 000000000..a359a6a40
--- /dev/null
+++ b/charts/ingress-nginx/ci/daemonset-tcp-values.yaml
@@ -0,0 +1,10 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
+
+tcp:
+ 9000: "default/test:8080"
+ 9001: "default/test:8080"
diff --git a/charts/ingress-nginx/ci/deamonset-default-values.yaml b/charts/ingress-nginx/ci/deamonset-default-values.yaml
new file mode 100644
index 000000000..e63a7f5db
--- /dev/null
+++ b/charts/ingress-nginx/ci/deamonset-default-values.yaml
@@ -0,0 +1,6 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
diff --git a/charts/ingress-nginx/ci/deamonset-metrics-values.yaml b/charts/ingress-nginx/ci/deamonset-metrics-values.yaml
new file mode 100644
index 000000000..1e5190afc
--- /dev/null
+++ b/charts/ingress-nginx/ci/deamonset-metrics-values.yaml
@@ -0,0 +1,8 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ metrics:
+ enabled: true
+ service:
+ type: ClusterIP
diff --git a/charts/ingress-nginx/ci/deamonset-psp-values.yaml b/charts/ingress-nginx/ci/deamonset-psp-values.yaml
new file mode 100644
index 000000000..017b60a9c
--- /dev/null
+++ b/charts/ingress-nginx/ci/deamonset-psp-values.yaml
@@ -0,0 +1,9 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
+
+podSecurityPolicy:
+ enabled: true
diff --git a/charts/ingress-nginx/ci/deamonset-webhook-and-psp-values.yaml b/charts/ingress-nginx/ci/deamonset-webhook-and-psp-values.yaml
new file mode 100644
index 000000000..88aafc66f
--- /dev/null
+++ b/charts/ingress-nginx/ci/deamonset-webhook-and-psp-values.yaml
@@ -0,0 +1,9 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: true
+ service:
+ type: ClusterIP
+
+podSecurityPolicy:
+ enabled: true
diff --git a/charts/ingress-nginx/ci/deamonset-webhook-values.yaml b/charts/ingress-nginx/ci/deamonset-webhook-values.yaml
new file mode 100644
index 000000000..6e3b371da
--- /dev/null
+++ b/charts/ingress-nginx/ci/deamonset-webhook-values.yaml
@@ -0,0 +1,6 @@
+controller:
+ kind: DaemonSet
+ admissionWebhooks:
+ enabled: true
+ service:
+ type: ClusterIP
diff --git a/charts/ingress-nginx/ci/deployment-autoscaling-values.yaml b/charts/ingress-nginx/ci/deployment-autoscaling-values.yaml
new file mode 100644
index 000000000..5314cecb3
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-autoscaling-values.yaml
@@ -0,0 +1,7 @@
+controller:
+ autoscaling:
+ enabled: true
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
diff --git a/charts/ingress-nginx/ci/deployment-customconfig-values.yaml b/charts/ingress-nginx/ci/deployment-customconfig-values.yaml
new file mode 100644
index 000000000..f232531ac
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-customconfig-values.yaml
@@ -0,0 +1,7 @@
+controller:
+ config:
+ use-proxy-protocol: "true"
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
diff --git a/charts/ingress-nginx/ci/deployment-customnodeport-values.yaml b/charts/ingress-nginx/ci/deployment-customnodeport-values.yaml
new file mode 100644
index 000000000..9eda282b1
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-customnodeport-values.yaml
@@ -0,0 +1,16 @@
+controller:
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: NodePort
+ nodePorts:
+ tcp:
+ 9000: 30090
+ udp:
+ 9001: 30091
+
+tcp:
+ 9000: "default/test:8080"
+
+udp:
+ 9001: "default/test:8080"
diff --git a/charts/ingress-nginx/ci/deployment-default-values.yaml b/charts/ingress-nginx/ci/deployment-default-values.yaml
new file mode 100644
index 000000000..93a393c97
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-default-values.yaml
@@ -0,0 +1,4 @@
+# Left blank to test default values
+controller:
+ service:
+ type: ClusterIP
diff --git a/charts/ingress-nginx/ci/deployment-headers-values.yaml b/charts/ingress-nginx/ci/deployment-headers-values.yaml
new file mode 100644
index 000000000..665fd48d3
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-headers-values.yaml
@@ -0,0 +1,9 @@
+controller:
+ admissionWebhooks:
+ enabled: false
+ addHeaders:
+ X-Frame-Options: deny
+ proxySetHeaders:
+ X-Forwarded-Proto: https
+ service:
+ type: ClusterIP
diff --git a/charts/ingress-nginx/ci/deployment-internal-lb-values.yaml b/charts/ingress-nginx/ci/deployment-internal-lb-values.yaml
new file mode 100644
index 000000000..892f6de3f
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-internal-lb-values.yaml
@@ -0,0 +1,9 @@
+controller:
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
+ internal:
+ enabled: true
+ annotations:
+ service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
diff --git a/charts/ingress-nginx/ci/deployment-metrics-values.yaml b/charts/ingress-nginx/ci/deployment-metrics-values.yaml
new file mode 100644
index 000000000..887ed0f62
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-metrics-values.yaml
@@ -0,0 +1,7 @@
+controller:
+ admissionWebhooks:
+ enabled: false
+ metrics:
+ enabled: true
+ service:
+ type: ClusterIP
diff --git a/charts/ingress-nginx/ci/deployment-nodeport-values.yaml b/charts/ingress-nginx/ci/deployment-nodeport-values.yaml
new file mode 100644
index 000000000..84f1f7582
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-nodeport-values.yaml
@@ -0,0 +1,5 @@
+controller:
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: NodePort
diff --git a/charts/ingress-nginx/ci/controller-deployment-podannotations-values.yaml b/charts/ingress-nginx/ci/deployment-podannotations-values.yaml
similarity index 62%
rename from charts/ingress-nginx/ci/controller-deployment-podannotations-values.yaml
rename to charts/ingress-nginx/ci/deployment-podannotations-values.yaml
index cf1f2611e..b65a0910b 100644
--- a/charts/ingress-nginx/ci/controller-deployment-podannotations-values.yaml
+++ b/charts/ingress-nginx/ci/deployment-podannotations-values.yaml
@@ -1,16 +1,12 @@
controller:
- image:
- repository: ingress-controller/controller
- tag: 1.0.0-dev
- digest: null
-
+ admissionWebhooks:
+ enabled: false
+ metrics:
+ enabled: true
service:
type: ClusterIP
-
- kind: Deployment
-
podAnnotations:
- prometheus.io/scrape: "true"
+ prometheus.io/path: /metrics
prometheus.io/port: "10254"
prometheus.io/scheme: http
- prometheus.io/path: /metrics
+ prometheus.io/scrape: "true"
diff --git a/charts/ingress-nginx/ci/deployment-psp-values.yaml b/charts/ingress-nginx/ci/deployment-psp-values.yaml
new file mode 100644
index 000000000..e339c69c3
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-psp-values.yaml
@@ -0,0 +1,6 @@
+controller:
+ service:
+ type: ClusterIP
+
+podSecurityPolicy:
+ enabled: true
diff --git a/charts/ingress-nginx/ci/deployment-tcp-udp-configMapNamespace-values.yaml b/charts/ingress-nginx/ci/deployment-tcp-udp-configMapNamespace-values.yaml
new file mode 100644
index 000000000..141e06b68
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-tcp-udp-configMapNamespace-values.yaml
@@ -0,0 +1,15 @@
+controller:
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
+ tcp:
+ configMapNamespace: default
+ udp:
+ configMapNamespace: default
+
+tcp:
+ 9000: "default/test:8080"
+
+udp:
+ 9001: "default/test:8080"
diff --git a/charts/ingress-nginx/ci/deployment-tcp-udp-values.yaml b/charts/ingress-nginx/ci/deployment-tcp-udp-values.yaml
new file mode 100644
index 000000000..bc29abeba
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-tcp-udp-values.yaml
@@ -0,0 +1,11 @@
+controller:
+ admissionWebhooks:
+ enabled: false
+ service:
+ type: ClusterIP
+
+tcp:
+ 9000: "default/test:8080"
+
+udp:
+ 9001: "default/test:8080"
diff --git a/charts/ingress-nginx/ci/deployment-tcp-values.yaml b/charts/ingress-nginx/ci/deployment-tcp-values.yaml
new file mode 100644
index 000000000..b7f54c09f
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-tcp-values.yaml
@@ -0,0 +1,7 @@
+controller:
+ service:
+ type: ClusterIP
+
+tcp:
+ 9000: "default/test:8080"
+ 9001: "default/test:8080"
diff --git a/charts/ingress-nginx/ci/deployment-webhook-and-psp-values.yaml b/charts/ingress-nginx/ci/deployment-webhook-and-psp-values.yaml
new file mode 100644
index 000000000..a829c3614
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-webhook-and-psp-values.yaml
@@ -0,0 +1,8 @@
+controller:
+ admissionWebhooks:
+ enabled: true
+ service:
+ type: ClusterIP
+
+podSecurityPolicy:
+ enabled: true
diff --git a/charts/ingress-nginx/ci/deployment-webhook-values.yaml b/charts/ingress-nginx/ci/deployment-webhook-values.yaml
new file mode 100644
index 000000000..4f18a70b9
--- /dev/null
+++ b/charts/ingress-nginx/ci/deployment-webhook-values.yaml
@@ -0,0 +1,5 @@
+controller:
+ admissionWebhooks:
+ enabled: true
+ service:
+ type: ClusterIP
diff --git a/charts/ingress-nginx/templates/NOTES.txt b/charts/ingress-nginx/templates/NOTES.txt
index f4923007e..60fb2c1f6 100644
--- a/charts/ingress-nginx/templates/NOTES.txt
+++ b/charts/ingress-nginx/templates/NOTES.txt
@@ -6,59 +6,50 @@ Get the application URL by running these commands:
{{- if (not (empty .Values.controller.service.nodePorts.http)) }}
export HTTP_NODE_PORT={{ .Values.controller.service.nodePorts.http }}
{{- else }}
- export HTTP_NODE_PORT=$(kubectl get service --namespace {{ include "ingress-nginx.namespace" . }} {{ include "ingress-nginx.controller.fullname" . }} --output jsonpath="{.spec.ports[0].nodePort}")
+ export HTTP_NODE_PORT=$(kubectl --namespace {{ .Release.Namespace }} get services -o jsonpath="{.spec.ports[0].nodePort}" {{ include "ingress-nginx.controller.fullname" . }})
{{- end }}
{{- if (not (empty .Values.controller.service.nodePorts.https)) }}
export HTTPS_NODE_PORT={{ .Values.controller.service.nodePorts.https }}
{{- else }}
- export HTTPS_NODE_PORT=$(kubectl get service --namespace {{ include "ingress-nginx.namespace" . }} {{ include "ingress-nginx.controller.fullname" . }} --output jsonpath="{.spec.ports[1].nodePort}")
+ export HTTPS_NODE_PORT=$(kubectl --namespace {{ .Release.Namespace }} get services -o jsonpath="{.spec.ports[1].nodePort}" {{ include "ingress-nginx.controller.fullname" . }})
{{- end }}
- export NODE_IP="$(kubectl get nodes --output jsonpath="{.items[0].status.addresses[1].address}")"
+ export NODE_IP=$(kubectl --namespace {{ .Release.Namespace }} get nodes -o jsonpath="{.items[0].status.addresses[1].address}")
- echo "Visit http://${NODE_IP}:${HTTP_NODE_PORT} to access your application via HTTP."
- echo "Visit https://${NODE_IP}:${HTTPS_NODE_PORT} to access your application via HTTPS."
+ echo "Visit http://$NODE_IP:$HTTP_NODE_PORT to access your application via HTTP."
+ echo "Visit https://$NODE_IP:$HTTPS_NODE_PORT to access your application via HTTPS."
{{- else if contains "LoadBalancer" .Values.controller.service.type }}
-It may take a few minutes for the load balancer IP to be available.
-You can watch the status by running 'kubectl get service --namespace {{ include "ingress-nginx.namespace" . }} {{ include "ingress-nginx.controller.fullname" . }} --output wide --watch'
+It may take a few minutes for the LoadBalancer IP to be available.
+You can watch the status by running 'kubectl --namespace {{ .Release.Namespace }} get services -o wide -w {{ include "ingress-nginx.controller.fullname" . }}'
{{- else if contains "ClusterIP" .Values.controller.service.type }}
Get the application URL by running these commands:
- export POD_NAME="$(kubectl get pods --namespace {{ include "ingress-nginx.namespace" . }} --selector app.kubernetes.io/name={{ include "ingress-nginx.name" . }},app.kubernetes.io/instance={{ .Release.Name }},app.kubernetes.io/component=controller --output jsonpath="{.items[0].metadata.name}")"
- kubectl port-forward --namespace {{ include "ingress-nginx.namespace" . }} "${POD_NAME}" 8080:80
+ export POD_NAME=$(kubectl --namespace {{ .Release.Namespace }} get pods -o jsonpath="{.items[0].metadata.name}" -l "app={{ template "ingress-nginx.name" . }},component={{ .Values.controller.name }},release={{ .Release.Name }}")
+ kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80
echo "Visit http://127.0.0.1:8080 to access your application."
{{- end }}
An example Ingress that makes use of the controller:
-{{- $isV1 := semverCompare ">=1" .Chart.AppVersion}}
- apiVersion: networking.k8s.io/v1
+ apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
- name: example
- namespace: foo
- {{- if eq $isV1 false }}
annotations:
kubernetes.io/ingress.class: {{ .Values.controller.ingressClass }}
- {{- end }}
+ name: example
+ namespace: foo
spec:
- {{- if $isV1 }}
- ingressClassName: {{ .Values.controller.ingressClassResource.name }}
- {{- end }}
rules:
- host: www.example.com
http:
paths:
- - pathType: Prefix
- backend:
- service:
- name: exampleService
- port:
- number: 80
+ - backend:
+ serviceName: exampleService
+ servicePort: 80
path: /
# This section is only required if TLS is to be enabled for the Ingress
tls:
- - hosts:
- - www.example.com
- secretName: example-tls
+ - hosts:
+ - www.example.com
+ secretName: example-tls
If TLS is enabled for the Ingress, a Secret containing the certificate and key must also be provided:
@@ -71,3 +62,10 @@ If TLS is enabled for the Ingress, a Secret containing the certificate and key m
tls.crt:
tls.key:
type: kubernetes.io/tls
+
+{{- if .Values.controller.headers }}
+#################################################################################
+###### WARNING: `controller.headers` has been deprecated! #####
+###### It has been renamed to `controller.proxySetHeaders`. #####
+#################################################################################
+{{- end }}
diff --git a/charts/ingress-nginx/templates/_helpers.tpl b/charts/ingress-nginx/templates/_helpers.tpl
index 6cbda2d4d..b48bf4a4a 100644
--- a/charts/ingress-nginx/templates/_helpers.tpl
+++ b/charts/ingress-nginx/templates/_helpers.tpl
@@ -30,69 +30,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- end -}}
{{- end -}}
-{{/*
-Expand the namespace of the release.
-Allows overriding it for multi-namespace deployments in combined charts.
-*/}}
-{{- define "ingress-nginx.namespace" -}}
-{{- default .Release.Namespace .Values.namespaceOverride | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{/*
-Controller container security context.
-*/}}
-{{- define "ingress-nginx.controller.containerSecurityContext" -}}
-{{- if .Values.controller.containerSecurityContext -}}
-{{- toYaml .Values.controller.containerSecurityContext -}}
-{{- else -}}
-runAsNonRoot: {{ .Values.controller.image.runAsNonRoot }}
-runAsUser: {{ .Values.controller.image.runAsUser }}
-runAsGroup: {{ .Values.controller.image.runAsGroup }}
-allowPrivilegeEscalation: {{ or .Values.controller.image.allowPrivilegeEscalation .Values.controller.image.chroot }}
-{{- if .Values.controller.image.seccompProfile }}
-seccompProfile: {{ toYaml .Values.controller.image.seccompProfile | nindent 2 }}
-{{- end }}
-capabilities:
- drop:
- - ALL
- add:
- - NET_BIND_SERVICE
- {{- if .Values.controller.image.chroot }}
- {{- if .Values.controller.image.seccompProfile }}
- - SYS_ADMIN
- {{- end }}
- - SYS_CHROOT
- {{- end }}
-readOnlyRootFilesystem: {{ .Values.controller.image.readOnlyRootFilesystem }}
-{{- end -}}
-{{- end -}}
-
-{{/*
-Get specific image
-*/}}
-{{- define "ingress-nginx.image" -}}
-{{- if .chroot -}}
-{{- printf "%s-chroot" .image -}}
-{{- else -}}
-{{- printf "%s" .image -}}
-{{- end }}
-{{- end -}}
-
-{{/*
-Get specific image digest
-*/}}
-{{- define "ingress-nginx.imageDigest" -}}
-{{- if .chroot -}}
-{{- if .digestChroot -}}
-{{- printf "@%s" .digestChroot -}}
-{{- end }}
-{{- else -}}
-{{ if .digest -}}
-{{- printf "@%s" .digest -}}
-{{- end -}}
-{{- end -}}
-{{- end -}}
-
{{/*
Create a default fully qualified controller name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
@@ -101,16 +38,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- printf "%s-%s" (include "ingress-nginx.fullname" .) .Values.controller.name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
-{{/*
-Construct a unique electionID.
-Users can provide an override for an explicit electionID if they want via `.Values.controller.electionID`
-*/}}
-{{- define "ingress-nginx.controller.electionID" -}}
-{{- $defElectionID := printf "%s-leader" (include "ingress-nginx.fullname" .) -}}
-{{- $electionID := default $defElectionID .Values.controller.electionID -}}
-{{- print $electionID -}}
-{{- end -}}
-
{{/*
Construct the path for the publish-service.
@@ -118,6 +45,7 @@ By convention this will simply use the / to match th
service generated.
Users can provide an override for an explicit service they want bound via `.Values.controller.publishService.pathOverride`
+
*/}}
{{- define "ingress-nginx.controller.publishServicePath" -}}
{{- $defServiceName := printf "%s/%s" "$(POD_NAMESPACE)" (include "ingress-nginx.controller.fullname" .) -}}
@@ -125,6 +53,14 @@ Users can provide an override for an explicit service they want bound via `.Valu
{{- print $servicePath | trimSuffix "-" -}}
{{- end -}}
+{{/*
+Create a default fully qualified default backend name.
+We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
+*/}}
+{{- define "ingress-nginx.defaultBackend.fullname" -}}
+{{- printf "%s-%s" (include "ingress-nginx.fullname" .) .Values.defaultBackend.name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
{{/*
Common labels
*/}}
@@ -134,11 +70,7 @@ helm.sh/chart: {{ include "ingress-nginx.chart" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
-app.kubernetes.io/part-of: {{ template "ingress-nginx.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
-{{- if .Values.commonLabels}}
-{{ toYaml .Values.commonLabels }}
-{{- end }}
{{- end -}}
{{/*
@@ -161,50 +93,7 @@ Create the name of the controller service account to use
{{- end -}}
{{/*
-Create a default fully qualified admission webhook name.
-We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
-*/}}
-{{- define "ingress-nginx.admissionWebhooks.fullname" -}}
-{{- printf "%s-%s" (include "ingress-nginx.fullname" .) .Values.controller.admissionWebhooks.name | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{/*
-Create the name of the admission webhook patch job service account to use
-*/}}
-{{- define "ingress-nginx.admissionWebhooks.patch.serviceAccountName" -}}
-{{- if .Values.controller.admissionWebhooks.patch.serviceAccount.create -}}
- {{ default (include "ingress-nginx.admissionWebhooks.fullname" .) .Values.controller.admissionWebhooks.patch.serviceAccount.name }}
-{{- else -}}
- {{ default "default" .Values.controller.admissionWebhooks.patch.serviceAccount.name }}
-{{- end -}}
-{{- end -}}
-
-{{/*
-Create a default fully qualified admission webhook secret creation job name.
-We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
-*/}}
-{{- define "ingress-nginx.admissionWebhooks.createSecretJob.fullname" -}}
-{{- printf "%s-%s" (include "ingress-nginx.admissionWebhooks.fullname" .) .Values.controller.admissionWebhooks.createSecretJob.name | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{/*
-Create a default fully qualified admission webhook patch job name.
-We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
-*/}}
-{{- define "ingress-nginx.admissionWebhooks.patchWebhookJob.fullname" -}}
-{{- printf "%s-%s" (include "ingress-nginx.admissionWebhooks.fullname" .) .Values.controller.admissionWebhooks.patchWebhookJob.name | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{/*
-Create a default fully qualified default backend name.
-We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
-*/}}
-{{- define "ingress-nginx.defaultBackend.fullname" -}}
-{{- printf "%s-%s" (include "ingress-nginx.fullname" .) .Values.defaultBackend.name | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{/*
-Create the name of the default backend service account to use
+Create the name of the backend service account to use - only used when podsecuritypolicy is also enabled
*/}}
{{- define "ingress-nginx.defaultBackend.serviceAccountName" -}}
{{- if .Values.defaultBackend.serviceAccount.create -}}
@@ -215,49 +104,21 @@ Create the name of the default backend service account to use
{{- end -}}
{{/*
-Default backend container security context.
+Return the appropriate apiGroup for PodSecurityPolicy.
*/}}
-{{- define "ingress-nginx.defaultBackend.containerSecurityContext" -}}
-{{- if .Values.defaultBackend.containerSecurityContext -}}
-{{- toYaml .Values.defaultBackend.containerSecurityContext -}}
+{{- define "podSecurityPolicy.apiGroup" -}}
+{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
+{{- print "policy" -}}
{{- else -}}
-runAsNonRoot: {{ .Values.defaultBackend.image.runAsNonRoot }}
-runAsUser: {{ .Values.defaultBackend.image.runAsUser }}
-runAsGroup: {{ .Values.defaultBackend.image.runAsGroup }}
-allowPrivilegeEscalation: {{ .Values.defaultBackend.image.allowPrivilegeEscalation }}
-{{- if .Values.defaultBackend.image.seccompProfile }}
-seccompProfile: {{ toYaml .Values.defaultBackend.image.seccompProfile | nindent 2 }}
-{{- end }}
-capabilities:
- drop:
- - ALL
-readOnlyRootFilesystem: {{ .Values.defaultBackend.image.readOnlyRootFilesystem }}
+{{- print "extensions" -}}
{{- end -}}
{{- end -}}
{{/*
-Extra modules.
+Check the ingress controller version tag is at most three versions behind the last release
*/}}
-{{- define "extraModules" -}}
-- name: {{ .name }}
- {{- with .image }}
- image: {{ if .repository }}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{ end }}:{{ .tag }}{{ if .digest }}@{{ .digest }}{{ end }}
- command:
- {{- if .distroless }}
- - /init_module
- {{- else }}
- - sh
- - -c
- - /usr/local/bin/init_module.sh
- {{- end }}
- {{- end }}
- {{- if .containerSecurityContext }}
- securityContext: {{ toYaml .containerSecurityContext | nindent 4 }}
- {{- end }}
- {{- if .resources }}
- resources: {{ toYaml .resources | nindent 4 }}
- {{- end }}
- volumeMounts:
- - name: modules
- mountPath: /modules_mount
+{{- define "isControllerTagValid" -}}
+{{- if not (semverCompare ">=0.27.0-0" .Values.controller.image.tag) -}}
+{{- fail "Controller container image tag should be 0.27.0 or higher" -}}
+{{- end -}}
{{- end -}}
diff --git a/charts/ingress-nginx/templates/_params.tpl b/charts/ingress-nginx/templates/_params.tpl
deleted file mode 100644
index 0051dc9c0..000000000
--- a/charts/ingress-nginx/templates/_params.tpl
+++ /dev/null
@@ -1,77 +0,0 @@
-{{- define "ingress-nginx.params" -}}
-- /nginx-ingress-controller
-{{- if not .Values.controller.enableAnnotationValidations }}
-- --enable-annotation-validation=false
-{{- end }}
-{{- if .Values.defaultBackend.enabled }}
-- --default-backend-service=$(POD_NAMESPACE)/{{ include "ingress-nginx.defaultBackend.fullname" . }}
-{{- end }}
-{{- if and .Values.controller.publishService.enabled .Values.controller.service.enabled }}
-{{- if .Values.controller.service.external.enabled }}
-- --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}
-{{- else if .Values.controller.service.internal.enabled }}
-- --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}-internal
-{{- end }}
-{{- end }}
-- --election-id={{ include "ingress-nginx.controller.electionID" . }}
-- --controller-class={{ .Values.controller.ingressClassResource.controllerValue }}
-{{- if .Values.controller.ingressClass }}
-- --ingress-class={{ .Values.controller.ingressClass }}
-{{- end }}
-- --configmap={{ default "$(POD_NAMESPACE)" .Values.controller.configMapNamespace }}/{{ include "ingress-nginx.controller.fullname" . }}
-{{- if .Values.tcp }}
-- --tcp-services-configmap={{ default "$(POD_NAMESPACE)" .Values.controller.tcp.configMapNamespace }}/{{ include "ingress-nginx.fullname" . }}-tcp
-{{- end }}
-{{- if .Values.udp }}
-- --udp-services-configmap={{ default "$(POD_NAMESPACE)" .Values.controller.udp.configMapNamespace }}/{{ include "ingress-nginx.fullname" . }}-udp
-{{- end }}
-{{- if .Values.controller.scope.enabled }}
-- --watch-namespace={{ default "$(POD_NAMESPACE)" .Values.controller.scope.namespace }}
-{{- end }}
-{{- if and (not .Values.controller.scope.enabled) .Values.controller.scope.namespaceSelector }}
-- --watch-namespace-selector={{ .Values.controller.scope.namespaceSelector }}
-{{- end }}
-{{- if and .Values.controller.reportNodeInternalIp .Values.controller.hostNetwork }}
-- --report-node-internal-ip-address={{ .Values.controller.reportNodeInternalIp }}
-{{- end }}
-{{- if .Values.controller.admissionWebhooks.enabled }}
-- --validating-webhook=:{{ .Values.controller.admissionWebhooks.port }}
-- --validating-webhook-certificate={{ .Values.controller.admissionWebhooks.certificate }}
-- --validating-webhook-key={{ .Values.controller.admissionWebhooks.key }}
-{{- end }}
-{{- if .Values.controller.maxmindLicenseKey }}
-- --maxmind-license-key={{ .Values.controller.maxmindLicenseKey }}
-{{- end }}
-{{- if .Values.controller.healthCheckHost }}
-- --healthz-host={{ .Values.controller.healthCheckHost }}
-{{- end }}
-{{- if not (eq .Values.controller.healthCheckPath "/healthz") }}
-- --health-check-path={{ .Values.controller.healthCheckPath }}
-{{- end }}
-{{- if .Values.controller.ingressClassByName }}
-- --ingress-class-by-name=true
-{{- end }}
-{{- if .Values.controller.watchIngressWithoutClass }}
-- --watch-ingress-without-class=true
-{{- end }}
-{{- if .Values.controller.metrics.enabled }}
-- --enable-metrics={{ .Values.controller.metrics.enabled }}
-{{- end }}
-{{- if .Values.controller.enableTopologyAwareRouting }}
-- --enable-topology-aware-routing=true
-{{- end }}
-{{- if .Values.controller.disableLeaderElection }}
-- --disable-leader-election=true
-{{- end }}
-{{- if .Values.controller.electionTTL }}
-- --election-ttl={{ .Values.controller.electionTTL }}
-{{- end }}
-{{- range $key, $value := .Values.controller.extraArgs }}
-{{- /* Accept keys without values or with false as value */}}
-{{- if eq ($value | quote | len) 2 }}
-- --{{ $key }}
-{{- else }}
-- --{{ $key }}={{ $value }}
-{{- end }}
-{{- end }}
-{{- end -}}
diff --git a/charts/ingress-nginx/templates/admission-webhooks/cert-manager.yaml b/charts/ingress-nginx/templates/admission-webhooks/cert-manager.yaml
deleted file mode 100644
index db2946c3d..000000000
--- a/charts/ingress-nginx/templates/admission-webhooks/cert-manager.yaml
+++ /dev/null
@@ -1,63 +0,0 @@
-{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.certManager.enabled -}}
-{{- if not .Values.controller.admissionWebhooks.certManager.issuerRef -}}
-# Create a selfsigned Issuer, in order to create a root CA certificate for
-# signing webhook serving certificates
-apiVersion: cert-manager.io/v1
-kind: Issuer
-metadata:
- name: {{ include "ingress-nginx.fullname" . }}-self-signed-issuer
- namespace: {{ include "ingress-nginx.namespace" . }}
-spec:
- selfSigned: {}
----
-# Generate a CA Certificate used to sign certificates for the webhook
-apiVersion: cert-manager.io/v1
-kind: Certificate
-metadata:
- name: {{ include "ingress-nginx.fullname" . }}-root-cert
- namespace: {{ include "ingress-nginx.namespace" . }}
-spec:
- secretName: {{ include "ingress-nginx.fullname" . }}-root-cert
- duration: {{ .Values.controller.admissionWebhooks.certManager.rootCert.duration | default "43800h0m0s" | quote }}
- issuerRef:
- name: {{ include "ingress-nginx.fullname" . }}-self-signed-issuer
- commonName: "ca.webhook.ingress-nginx"
- isCA: true
- subject:
- organizations:
- - ingress-nginx
----
-# Create an Issuer that uses the above generated CA certificate to issue certs
-apiVersion: cert-manager.io/v1
-kind: Issuer
-metadata:
- name: {{ include "ingress-nginx.fullname" . }}-root-issuer
- namespace: {{ include "ingress-nginx.namespace" . }}
-spec:
- ca:
- secretName: {{ include "ingress-nginx.fullname" . }}-root-cert
-{{- end }}
----
-# generate a server certificate for the apiservices to use
-apiVersion: cert-manager.io/v1
-kind: Certificate
-metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
-spec:
- secretName: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
- duration: {{ .Values.controller.admissionWebhooks.certManager.admissionCert.duration | default "8760h0m0s" | quote }}
- issuerRef:
- {{- if .Values.controller.admissionWebhooks.certManager.issuerRef }}
- {{- toYaml .Values.controller.admissionWebhooks.certManager.issuerRef | nindent 4 }}
- {{- else }}
- name: {{ include "ingress-nginx.fullname" . }}-root-issuer
- {{- end }}
- dnsNames:
- - {{ include "ingress-nginx.controller.fullname" . }}-admission
- - {{ include "ingress-nginx.controller.fullname" . }}-admission.{{ include "ingress-nginx.namespace" . }}
- - {{ include "ingress-nginx.controller.fullname" . }}-admission.{{ include "ingress-nginx.namespace" . }}.svc
- subject:
- organizations:
- - ingress-nginx-admission
-{{- end -}}
diff --git a/charts/ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml b/charts/ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
index 54af7abb6..fd762f935 100644
--- a/charts/ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
+++ b/charts/ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
@@ -1,17 +1,14 @@
-{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled .Values.controller.admissionWebhooks.patch.rbac.create (not .Values.controller.admissionWebhooks.certManager.enabled) -}}
+{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission
annotations:
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.patch.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
rules:
- apiGroups:
- admissionregistration.k8s.io
@@ -20,4 +17,15 @@ rules:
verbs:
- get
- update
+{{- if .Values.podSecurityPolicy.enabled }}
+ - apiGroups: ['extensions']
+ resources: ['podsecuritypolicies']
+ verbs: ['use']
+ resourceNames:
+ {{- with .Values.controller.admissionWebhooks.existingPsp }}
+ - {{ . }}
+ {{- else }}
+ - {{ include "ingress-nginx.fullname" . }}-admission
+ {{- end }}
+{{- end }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml b/charts/ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
index b89388433..4990fb1c3 100644
--- a/charts/ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
+++ b/charts/ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
@@ -1,23 +1,20 @@
-{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled .Values.controller.admissionWebhooks.patch.rbac.create (not .Values.controller.admissionWebhooks.certManager.enabled) -}}
+{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission
annotations:
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.patch.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
- name: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission
subjects:
- kind: ServiceAccount
- name: {{ include "ingress-nginx.admissionWebhooks.patch.serviceAccountName" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission
+ namespace: {{ .Release.Namespace | quote }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml b/charts/ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
index bb31e60ba..e715c15e5 100644
--- a/charts/ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
+++ b/charts/ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
@@ -1,21 +1,14 @@
-{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled (not .Values.controller.admissionWebhooks.certManager.enabled) -}}
+{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled -}}
apiVersion: batch/v1
kind: Job
metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.createSecretJob.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission-create
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
- {{- with .Values.controller.admissionWebhooks.annotations }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.patch.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
spec:
{{- if .Capabilities.APIVersions.Has "batch/v1alpha1" }}
# Alpha feature since k8s 1.12
@@ -23,16 +16,13 @@ spec:
{{- end }}
template:
metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.createSecretJob.fullname" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission-create
{{- if .Values.controller.admissionWebhooks.patch.podAnnotations }}
annotations: {{ toYaml .Values.controller.admissionWebhooks.patch.podAnnotations | nindent 8 }}
{{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 8 }}
app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.patch.labels }}
- {{- toYaml . | nindent 8 }}
- {{- end }}
spec:
{{- if .Values.controller.admissionWebhooks.patch.priorityClassName }}
priorityClassName: {{ .Values.controller.admissionWebhooks.patch.priorityClassName }}
@@ -42,39 +32,29 @@ spec:
{{- end }}
containers:
- name: create
- {{- with (merge .Values.controller.admissionWebhooks.patch.image .Values.global.image) }}
- image: {{ if .repository }}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{ end }}:{{ .tag }}{{ if .digest }}@{{ .digest }}{{ end }}
+ {{- with .Values.controller.admissionWebhooks.patch.image }}
+ image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{- end -}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
{{- end }}
imagePullPolicy: {{ .Values.controller.admissionWebhooks.patch.image.pullPolicy }}
args:
- create
- --host={{ include "ingress-nginx.controller.fullname" . }}-admission,{{ include "ingress-nginx.controller.fullname" . }}-admission.$(POD_NAMESPACE).svc
- --namespace=$(POD_NAMESPACE)
- - --secret-name={{ include "ingress-nginx.admissionWebhooks.fullname" . }}
+ - --secret-name={{ include "ingress-nginx.fullname" . }}-admission
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- {{- if .Values.controller.admissionWebhooks.extraEnvs }}
- {{- toYaml .Values.controller.admissionWebhooks.extraEnvs | nindent 12 }}
- {{- end }}
- {{- if .Values.controller.admissionWebhooks.createSecretJob.securityContext }}
- securityContext: {{ toYaml .Values.controller.admissionWebhooks.createSecretJob.securityContext | nindent 12 }}
- {{- end }}
- {{- if .Values.controller.admissionWebhooks.createSecretJob.resources }}
- resources: {{ toYaml .Values.controller.admissionWebhooks.createSecretJob.resources | nindent 12 }}
- {{- end }}
restartPolicy: OnFailure
- serviceAccountName: {{ include "ingress-nginx.admissionWebhooks.patch.serviceAccountName" . }}
- automountServiceAccountToken: {{ .Values.controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken }}
+ serviceAccountName: {{ include "ingress-nginx.fullname" . }}-admission
{{- if .Values.controller.admissionWebhooks.patch.nodeSelector }}
nodeSelector: {{ toYaml .Values.controller.admissionWebhooks.patch.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.controller.admissionWebhooks.patch.tolerations }}
tolerations: {{ toYaml .Values.controller.admissionWebhooks.patch.tolerations | nindent 8 }}
{{- end }}
- {{- if .Values.controller.admissionWebhooks.patch.securityContext }}
- securityContext: {{ toYaml .Values.controller.admissionWebhooks.patch.securityContext | nindent 8 }}
- {{- end }}
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: {{ .Values.controller.admissionWebhooks.patch.runAsUser }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml b/charts/ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
index cf757c98b..b8585e2cf 100644
--- a/charts/ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
+++ b/charts/ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
@@ -1,21 +1,14 @@
-{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled (not .Values.controller.admissionWebhooks.certManager.enabled) -}}
+{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled -}}
apiVersion: batch/v1
kind: Job
metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.patchWebhookJob.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission-patch
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
- {{- with .Values.controller.admissionWebhooks.annotations }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.patch.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
spec:
{{- if .Capabilities.APIVersions.Has "batch/v1alpha1" }}
# Alpha feature since k8s 1.12
@@ -23,16 +16,13 @@ spec:
{{- end }}
template:
metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.patchWebhookJob.fullname" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission-patch
{{- if .Values.controller.admissionWebhooks.patch.podAnnotations }}
annotations: {{ toYaml .Values.controller.admissionWebhooks.patch.podAnnotations | nindent 8 }}
{{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 8 }}
app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.patch.labels }}
- {{- toYaml . | nindent 8 }}
- {{- end }}
spec:
{{- if .Values.controller.admissionWebhooks.patch.priorityClassName }}
priorityClassName: {{ .Values.controller.admissionWebhooks.patch.priorityClassName }}
@@ -42,41 +32,31 @@ spec:
{{- end }}
containers:
- name: patch
- {{- with (merge .Values.controller.admissionWebhooks.patch.image .Values.global.image) }}
- image: {{ if .repository }}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{ end }}:{{ .tag }}{{ if .digest }}@{{ .digest }}{{ end }}
+ {{- with .Values.controller.admissionWebhooks.patch.image }}
+ image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{- end -}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
{{- end }}
imagePullPolicy: {{ .Values.controller.admissionWebhooks.patch.image.pullPolicy }}
args:
- patch
- - --webhook-name={{ include "ingress-nginx.admissionWebhooks.fullname" . }}
+ - --webhook-name={{ include "ingress-nginx.fullname" . }}-admission
- --namespace=$(POD_NAMESPACE)
- --patch-mutating=false
- - --secret-name={{ include "ingress-nginx.admissionWebhooks.fullname" . }}
+ - --secret-name={{ include "ingress-nginx.fullname" . }}-admission
- --patch-failure-policy={{ .Values.controller.admissionWebhooks.failurePolicy }}
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- {{- if .Values.controller.admissionWebhooks.extraEnvs }}
- {{- toYaml .Values.controller.admissionWebhooks.extraEnvs | nindent 12 }}
- {{- end }}
- {{- if .Values.controller.admissionWebhooks.patchWebhookJob.securityContext }}
- securityContext: {{ toYaml .Values.controller.admissionWebhooks.patchWebhookJob.securityContext | nindent 12 }}
- {{- end }}
- {{- if .Values.controller.admissionWebhooks.patchWebhookJob.resources }}
- resources: {{ toYaml .Values.controller.admissionWebhooks.patchWebhookJob.resources | nindent 12 }}
- {{- end }}
restartPolicy: OnFailure
- serviceAccountName: {{ include "ingress-nginx.admissionWebhooks.patch.serviceAccountName" . }}
- automountServiceAccountToken: {{ .Values.controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken }}
+ serviceAccountName: {{ include "ingress-nginx.fullname" . }}-admission
{{- if .Values.controller.admissionWebhooks.patch.nodeSelector }}
nodeSelector: {{ toYaml .Values.controller.admissionWebhooks.patch.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.controller.admissionWebhooks.patch.tolerations }}
tolerations: {{ toYaml .Values.controller.admissionWebhooks.patch.tolerations | nindent 8 }}
{{- end }}
- {{- if .Values.controller.admissionWebhooks.patch.securityContext }}
- securityContext: {{ toYaml .Values.controller.admissionWebhooks.patch.securityContext | nindent 8 }}
- {{- end }}
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: {{ .Values.controller.admissionWebhooks.patch.runAsUser }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/admission-webhooks/job-patch/networkpolicy.yaml b/charts/ingress-nginx/templates/admission-webhooks/job-patch/networkpolicy.yaml
deleted file mode 100644
index a8f38df96..000000000
--- a/charts/ingress-nginx/templates/admission-webhooks/job-patch/networkpolicy.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled .Values.controller.admissionWebhooks.patch.networkPolicy.enabled (not .Values.controller.admissionWebhooks.certManager.enabled) -}}
-apiVersion: networking.k8s.io/v1
-kind: NetworkPolicy
-metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
- annotations:
- "helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
- "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
- labels:
- {{- include "ingress-nginx.labels" . | nindent 4 }}
- app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.patch.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
-spec:
- podSelector:
- matchLabels:
- {{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
- app.kubernetes.io/component: admission-webhook
- policyTypes:
- - Ingress
- - Egress
- egress:
- - {}
-{{- end }}
diff --git a/charts/ingress-nginx/templates/admission-webhooks/job-patch/psp.yaml b/charts/ingress-nginx/templates/admission-webhooks/job-patch/psp.yaml
new file mode 100644
index 000000000..d2c7de685
--- /dev/null
+++ b/charts/ingress-nginx/templates/admission-webhooks/job-patch/psp.yaml
@@ -0,0 +1,36 @@
+{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled .Values.podSecurityPolicy.enabled (empty .Values.controller.admissionWebhooks.existingPsp) -}}
+apiVersion: policy/v1beta1
+kind: PodSecurityPolicy
+metadata:
+ name: {{ include "ingress-nginx.fullname" . }}-admission
+ annotations:
+ "helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
+ "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
+ labels:
+ {{- include "ingress-nginx.labels" . | nindent 4 }}
+ app.kubernetes.io/component: admission-webhook
+spec:
+ allowPrivilegeEscalation: false
+ fsGroup:
+ ranges:
+ - max: 65535
+ min: 1
+ rule: MustRunAs
+ requiredDropCapabilities:
+ - ALL
+ runAsUser:
+ rule: MustRunAsNonRoot
+ seLinux:
+ rule: RunAsAny
+ supplementalGroups:
+ ranges:
+ - max: 65535
+ min: 1
+ rule: MustRunAs
+ volumes:
+ - configMap
+ - emptyDir
+ - projected
+ - secret
+ - downwardAPI
+{{- end }}
diff --git a/charts/ingress-nginx/templates/admission-webhooks/job-patch/role.yaml b/charts/ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
index c4b23aa08..fe1c2ee7f 100644
--- a/charts/ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
+++ b/charts/ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
@@ -1,18 +1,14 @@
-{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled .Values.controller.admissionWebhooks.patch.rbac.create (not .Values.controller.admissionWebhooks.certManager.enabled) -}}
+{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission
annotations:
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.patch.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
rules:
- apiGroups:
- ""
diff --git a/charts/ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml b/charts/ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
index 425e8d821..b4af7fbcf 100644
--- a/charts/ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
+++ b/charts/ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
@@ -1,24 +1,20 @@
-{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled .Values.controller.admissionWebhooks.patch.rbac.create (not .Values.controller.admissionWebhooks.certManager.enabled) -}}
+{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission
annotations:
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.patch.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
- name: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission
subjects:
- kind: ServiceAccount
- name: {{ include "ingress-nginx.admissionWebhooks.patch.serviceAccountName" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission
+ namespace: {{ .Release.Namespace | quote }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml b/charts/ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
index 52f94dcce..5dfdd345a 100644
--- a/charts/ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
+++ b/charts/ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
@@ -1,17 +1,12 @@
-{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled .Values.controller.admissionWebhooks.patch.serviceAccount.create (not .Values.controller.admissionWebhooks.certManager.enabled) -}}
+{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled -}}
apiVersion: v1
kind: ServiceAccount
metadata:
- name: {{ include "ingress-nginx.admissionWebhooks.patch.serviceAccountName" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission
annotations:
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.patch.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
-automountServiceAccountToken: {{ .Values.controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/admission-webhooks/validating-webhook.yaml b/charts/ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
index 0949cea75..2f3dd7784 100644
--- a/charts/ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
+++ b/charts/ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
@@ -4,21 +4,13 @@
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
- annotations:
- {{- if .Values.controller.admissionWebhooks.certManager.enabled }}
- certmanager.k8s.io/inject-ca-from: {{ printf "%s/%s" (include "ingress-nginx.namespace" .) (include "ingress-nginx.admissionWebhooks.fullname" .) | quote }}
- cert-manager.io/inject-ca-from: {{ printf "%s/%s" (include "ingress-nginx.namespace" .) (include "ingress-nginx.admissionWebhooks.fullname" .) | quote }}
- {{- end }}
{{- if .Values.controller.admissionWebhooks.annotations }}
- {{- toYaml .Values.controller.admissionWebhooks.annotations | nindent 4 }}
+ annotations: {{ toYaml .Values.controller.admissionWebhooks.annotations | nindent 4 }}
{{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: admission-webhook
- {{- with .Values.controller.admissionWebhooks.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- name: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
+ name: {{ include "ingress-nginx.fullname" . }}-admission
webhooks:
- name: validate.nginx.ingress.kubernetes.io
matchPolicy: Equivalent
@@ -26,7 +18,7 @@ webhooks:
- apiGroups:
- networking.k8s.io
apiVersions:
- - v1
+ - v1beta1
operations:
- CREATE
- UPDATE
@@ -36,12 +28,12 @@ webhooks:
sideEffects: None
admissionReviewVersions:
- v1
+ - v1beta1
clientConfig:
service:
+ namespace: {{ .Release.Namespace | quote }}
name: {{ include "ingress-nginx.controller.fullname" . }}-admission
- namespace: {{ include "ingress-nginx.namespace" . }}
- port: {{ .Values.controller.admissionWebhooks.service.servicePort }}
- path: /networking/v1/ingresses
+ path: /networking/v1beta1/ingresses
{{- if .Values.controller.admissionWebhooks.timeoutSeconds }}
timeoutSeconds: {{ .Values.controller.admissionWebhooks.timeoutSeconds }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/clusterrole.yaml b/charts/ingress-nginx/templates/clusterrole.yaml
index 51bc5002c..8ec5f49fa 100644
--- a/charts/ingress-nginx/templates/clusterrole.yaml
+++ b/charts/ingress-nginx/templates/clusterrole.yaml
@@ -1,18 +1,9 @@
-{{- if .Values.rbac.create }}
-
-{{- if and .Values.rbac.scope (not .Values.controller.scope.enabled) -}}
- {{ required "Invalid configuration: 'rbac.scope' should be equal to 'controller.scope.enabled' (true/false)." (index (dict) ".") }}
-{{- end }}
-
-{{- if not .Values.rbac.scope -}}
+{{- if and .Values.rbac.create (not .Values.rbac.scope) -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.fullname" . }}
rules:
- apiGroups:
@@ -23,16 +14,6 @@ rules:
- nodes
- pods
- secrets
-{{- if not .Values.controller.scope.enabled }}
- - namespaces
-{{- end}}
- verbs:
- - list
- - watch
- - apiGroups:
- - coordination.k8s.io
- resources:
- - leases
verbs:
- list
- watch
@@ -61,7 +42,8 @@ rules:
- list
- watch
- apiGroups:
- - networking.k8s.io
+ - extensions
+ - "networking.k8s.io" # k8s 1.14+
resources:
- ingresses
verbs:
@@ -76,27 +58,18 @@ rules:
- create
- patch
- apiGroups:
- - networking.k8s.io
+ - extensions
+ - "networking.k8s.io" # k8s 1.14+
resources:
- ingresses/status
verbs:
- update
- apiGroups:
- - networking.k8s.io
+ - "networking.k8s.io" # k8s 1.14+
resources:
- ingressclasses
verbs:
- get
- list
- watch
- - apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
-{{- end }}
-
{{- end }}
diff --git a/charts/ingress-nginx/templates/clusterrolebinding.yaml b/charts/ingress-nginx/templates/clusterrolebinding.yaml
index 8f91aac80..81be52b87 100644
--- a/charts/ingress-nginx/templates/clusterrolebinding.yaml
+++ b/charts/ingress-nginx/templates/clusterrolebinding.yaml
@@ -4,9 +4,6 @@ kind: ClusterRoleBinding
metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.fullname" . }}
roleRef:
apiGroup: rbac.authorization.k8s.io
@@ -15,5 +12,5 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ template "ingress-nginx.serviceAccountName" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ namespace: {{ .Release.Namespace | quote }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-configmap-addheaders.yaml b/charts/ingress-nginx/templates/controller-configmap-addheaders.yaml
index 4e4bd1310..c06458958 100644
--- a/charts/ingress-nginx/templates/controller-configmap-addheaders.yaml
+++ b/charts/ingress-nginx/templates/controller-configmap-addheaders.yaml
@@ -5,10 +5,6 @@ metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.fullname" . }}-custom-add-headers
- namespace: {{ include "ingress-nginx.namespace" . }}
data: {{ toYaml .Values.controller.addHeaders | nindent 2 }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-configmap-proxyheaders.yaml b/charts/ingress-nginx/templates/controller-configmap-proxyheaders.yaml
index 0a22600db..5a1b25229 100644
--- a/charts/ingress-nginx/templates/controller-configmap-proxyheaders.yaml
+++ b/charts/ingress-nginx/templates/controller-configmap-proxyheaders.yaml
@@ -1,14 +1,15 @@
-{{- if .Values.controller.proxySetHeaders -}}
+{{- if or .Values.controller.proxySetHeaders .Values.controller.headers -}}
apiVersion: v1
kind: ConfigMap
metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.fullname" . }}-custom-proxy-headers
- namespace: {{ include "ingress-nginx.namespace" . }}
-data: {{ toYaml .Values.controller.proxySetHeaders | nindent 2 }}
+data:
+{{- if .Values.controller.proxySetHeaders }}
+{{ toYaml .Values.controller.proxySetHeaders | indent 2 }}
+{{ else if and .Values.controller.headers (not .Values.controller.proxySetHeaders) }}
+{{ toYaml .Values.controller.headers | indent 2 }}
+{{- end }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-configmap-tcp.yaml b/charts/ingress-nginx/templates/controller-configmap-tcp.yaml
index 131a9ad51..bc972517c 100644
--- a/charts/ingress-nginx/templates/controller-configmap-tcp.yaml
+++ b/charts/ingress-nginx/templates/controller-configmap-tcp.yaml
@@ -5,13 +5,9 @@ metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
{{- if .Values.controller.tcp.annotations }}
annotations: {{ toYaml .Values.controller.tcp.annotations | nindent 4 }}
{{- end }}
name: {{ include "ingress-nginx.fullname" . }}-tcp
- namespace: {{ include "ingress-nginx.namespace" . }}
data: {{ tpl (toYaml .Values.tcp) . | nindent 2 }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-configmap-udp.yaml b/charts/ingress-nginx/templates/controller-configmap-udp.yaml
index 7137da9ad..a9dc388f1 100644
--- a/charts/ingress-nginx/templates/controller-configmap-udp.yaml
+++ b/charts/ingress-nginx/templates/controller-configmap-udp.yaml
@@ -5,13 +5,9 @@ metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
{{- if .Values.controller.udp.annotations }}
annotations: {{ toYaml .Values.controller.udp.annotations | nindent 4 }}
{{- end }}
name: {{ include "ingress-nginx.fullname" . }}-udp
- namespace: {{ include "ingress-nginx.namespace" . }}
data: {{ tpl (toYaml .Values.udp) . | nindent 2 }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-configmap.yaml b/charts/ingress-nginx/templates/controller-configmap.yaml
index b73cdc2d0..0706fa0eb 100644
--- a/charts/ingress-nginx/templates/controller-configmap.yaml
+++ b/charts/ingress-nginx/templates/controller-configmap.yaml
@@ -4,27 +4,21 @@ metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
{{- if .Values.controller.configAnnotations }}
annotations: {{ toYaml .Values.controller.configAnnotations | nindent 4 }}
{{- end }}
name: {{ include "ingress-nginx.controller.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
data:
-{{- if .Values.controller.allowSnippetAnnotations }}
- allow-snippet-annotations: "true"
-{{- end }}
{{- if .Values.controller.addHeaders }}
- add-headers: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.fullname" . }}-custom-add-headers
+ add-headers: {{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-custom-add-headers
{{- end }}
-{{- if .Values.controller.proxySetHeaders }}
- proxy-set-headers: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.fullname" . }}-custom-proxy-headers
+{{- if or .Values.controller.proxySetHeaders .Values.controller.headers }}
+ proxy-set-headers: {{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-custom-proxy-headers
{{- end }}
{{- if .Values.dhParam }}
- ssl-dh-param: {{ include "ingress-nginx.namespace" . }}/{{ include "ingress-nginx.controller.fullname" . }}
+ ssl-dh-param: {{ printf "%s/%s" .Release.Namespace (include "ingress-nginx.controller.fullname" .) }}
{{- end }}
{{- range $key, $value := .Values.controller.config }}
- {{- $key | nindent 2 }}: {{ tpl (toString $value) $ | quote }}
+ {{ $key | nindent 2 }}: {{ $value | quote }}
{{- end }}
+
diff --git a/charts/ingress-nginx/templates/controller-daemonset.yaml b/charts/ingress-nginx/templates/controller-daemonset.yaml
index 804ff56d9..991dc4f36 100644
--- a/charts/ingress-nginx/templates/controller-daemonset.yaml
+++ b/charts/ingress-nginx/templates/controller-daemonset.yaml
@@ -1,4 +1,5 @@
-{{- if eq .Values.controller.kind "DaemonSet" -}}
+{{- if or (eq .Values.controller.kind "DaemonSet") (eq .Values.controller.kind "Both") -}}
+{{- include "isControllerTagValid" . -}}
apiVersion: apps/v1
kind: DaemonSet
metadata:
@@ -9,7 +10,6 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "ingress-nginx.controller.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
{{- if .Values.controller.annotations }}
annotations: {{ toYaml .Values.controller.annotations | nindent 4 }}
{{- end }}
@@ -32,58 +32,97 @@ spec:
{{- end }}
{{- end }}
labels:
- {{- include "ingress-nginx.labels" . | nindent 8 }}
+ {{- include "ingress-nginx.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 8 }}
- {{- end }}
{{- if .Values.controller.podLabels }}
{{- toYaml .Values.controller.podLabels | nindent 8 }}
{{- end }}
spec:
{{- if .Values.controller.dnsConfig }}
dnsConfig: {{ toYaml .Values.controller.dnsConfig | nindent 8 }}
- {{- end }}
- {{- if .Values.controller.hostAliases }}
- hostAliases: {{ tpl (toYaml .Values.controller.hostAliases) $ | nindent 8 }}
- {{- end }}
- {{- if .Values.controller.hostname }}
- hostname: {{ toYaml .Values.controller.hostname | nindent 8 }}
{{- end }}
dnsPolicy: {{ .Values.controller.dnsPolicy }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.controller.priorityClassName }}
- priorityClassName: {{ .Values.controller.priorityClassName | quote }}
+ priorityClassName: {{ .Values.controller.priorityClassName }}
{{- end }}
{{- if or .Values.controller.podSecurityContext .Values.controller.sysctls }}
securityContext:
- {{- if .Values.controller.podSecurityContext }}
- {{- toYaml .Values.controller.podSecurityContext | nindent 8 }}
- {{- end }}
- {{- if .Values.controller.sysctls }}
- sysctls:
- {{- range $sysctl, $value := .Values.controller.sysctls }}
- - name: {{ $sysctl | quote }}
- value: {{ $value | quote }}
- {{- end }}
- {{- end }}
{{- end }}
- {{- if .Values.controller.shareProcessNamespace }}
- shareProcessNamespace: {{ .Values.controller.shareProcessNamespace }}
+ {{- if .Values.controller.podSecurityContext }}
+ {{- toYaml .Values.controller.podSecurityContext | nindent 8 }}
+ {{- end }}
+ {{- if .Values.controller.sysctls }}
+ sysctls:
+ {{- range $sysctl, $value := .Values.controller.sysctls }}
+ - name: {{ $sysctl | quote }}
+ value: {{ $value | quote }}
+ {{- end }}
{{- end }}
containers:
- name: {{ .Values.controller.containerName }}
- {{- with (merge .Values.controller.image .Values.global.image) }}
- image: {{ if .repository }}{{ .repository }}{{ else }}{{ .registry }}/{{ include "ingress-nginx.image" . }}{{ end }}:{{ .tag }}{{ include "ingress-nginx.imageDigest" . }}
+ {{- with .Values.controller.image }}
+ image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{- end -}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
{{- end }}
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
{{- if .Values.controller.lifecycle }}
lifecycle: {{ toYaml .Values.controller.lifecycle | nindent 12 }}
{{- end }}
- args: {{ include "ingress-nginx.params" . | nindent 12 }}
- securityContext: {{ include "ingress-nginx.controller.containerSecurityContext" . | nindent 12 }}
+ args:
+ - /nginx-ingress-controller
+ {{- if .Values.defaultBackend.enabled }}
+ - --default-backend-service={{ .Release.Namespace }}/{{ include "ingress-nginx.defaultBackend.fullname" . }}
+ {{- end }}
+ {{- if .Values.controller.publishService.enabled }}
+ - --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}
+ {{- end }}
+ - --election-id={{ .Values.controller.electionID }}
+ - --ingress-class={{ .Values.controller.ingressClass }}
+ - --configmap={{ .Release.Namespace }}/{{ include "ingress-nginx.controller.fullname" . }}
+ {{- if .Values.tcp }}
+ - --tcp-services-configmap={{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-tcp
+ {{- end }}
+ {{- if .Values.udp }}
+ - --udp-services-configmap={{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}-udp
+ {{- end }}
+ {{- if .Values.controller.scope.enabled }}
+ - --watch-namespace={{ default .Release.Namespace .Values.controller.scope.namespace }}
+ {{- end }}
+ {{- if and .Values.controller.reportNodeInternalIp .Values.controller.hostNetwork }}
+ - --report-node-internal-ip-address={{ .Values.controller.reportNodeInternalIp }}
+ {{- end }}
+ {{- if .Values.controller.admissionWebhooks.enabled }}
+ - --validating-webhook=:{{ .Values.controller.admissionWebhooks.port }}
+ - --validating-webhook-certificate={{ .Values.controller.admissionWebhooks.certificate }}
+ - --validating-webhook-key={{ .Values.controller.admissionWebhooks.key }}
+ {{- end }}
+ {{- if .Values.controller.maxmindMirror }}
+ - --maxmind-mirror={{ .Values.controller.maxmindMirror }}
+ {{- end}}
+ {{- if .Values.controller.maxmindLicenseKey }}
+ - --maxmind-license-key={{ .Values.controller.maxmindLicenseKey }}
+ {{- end }}
+ {{- if not (eq .Values.controller.healthCheckPath "/healthz") }}
+ - --health-check-path={{ .Values.controller.healthCheckPath }}
+ {{- end }}
+ {{- range $key, $value := .Values.controller.extraArgs }}
+ {{- /* Accept keys without values or with false as value */}}
+ {{- if eq ($value | quote | len) 2 }}
+ - --{{ $key }}
+ {{- else }}
+ - --{{ $key }}={{ $value }}
+ {{- end }}
+ {{- end }}
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ add:
+ - NET_BIND_SERVICE
+ runAsUser: {{ .Values.controller.image.runAsUser }}
+ allowPrivilegeEscalation: {{ .Values.controller.image.allowPrivilegeEscalation }}
env:
- name: POD_NAME
valueFrom:
@@ -103,12 +142,8 @@ spec:
{{- if .Values.controller.startupProbe }}
startupProbe: {{ toYaml .Values.controller.startupProbe | nindent 12 }}
{{- end }}
- {{- if .Values.controller.livenessProbe }}
livenessProbe: {{ toYaml .Values.controller.livenessProbe | nindent 12 }}
- {{- end }}
- {{- if .Values.controller.readinessProbe }}
readinessProbe: {{ toYaml .Values.controller.readinessProbe | nindent 12 }}
- {{- end }}
ports:
{{- range $key, $value := .Values.controller.containerPort }}
- name: {{ $key }}
@@ -119,7 +154,7 @@ spec:
{{- end }}
{{- end }}
{{- if .Values.controller.metrics.enabled }}
- - name: {{ .Values.controller.metrics.portName }}
+ - name: metrics
containerPort: {{ .Values.controller.metrics.port }}
protocol: TCP
{{- end }}
@@ -129,7 +164,7 @@ spec:
protocol: TCP
{{- end }}
{{- range $key, $value := .Values.tcp }}
- - name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
+ - name: {{ $key }}-tcp
containerPort: {{ $key }}
protocol: TCP
{{- if $.Values.controller.hostPort.enabled }}
@@ -137,23 +172,15 @@ spec:
{{- end }}
{{- end }}
{{- range $key, $value := .Values.udp }}
- - name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
+ - name: {{ $key }}-udp
containerPort: {{ $key }}
protocol: UDP
{{- if $.Values.controller.hostPort.enabled }}
hostPort: {{ $key }}
{{- end }}
{{- end }}
- {{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraModules) }}
+ {{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled) }}
volumeMounts:
- {{- if .Values.controller.extraModules }}
- - name: modules
- {{- if .Values.controller.image.chroot }}
- mountPath: /chroot/modules_mount
- {{- else }}
- mountPath: /modules_mount
- {{- end }}
- {{- end }}
{{- if .Values.controller.customTemplate.configMapName }}
- mountPath: /etc/nginx/template
name: nginx-template-volume
@@ -172,19 +199,10 @@ spec:
resources: {{ toYaml .Values.controller.resources | nindent 12 }}
{{- end }}
{{- if .Values.controller.extraContainers }}
- {{- toYaml .Values.controller.extraContainers | nindent 8 }}
- {{- end }}
- {{- if (or .Values.controller.extraInitContainers .Values.controller.extraModules) }}
- initContainers:
- {{- if .Values.controller.extraInitContainers }}
- {{- toYaml .Values.controller.extraInitContainers | nindent 8 }}
- {{- end }}
- {{- if .Values.controller.extraModules }}
- {{- range .Values.controller.extraModules }}
- {{- $containerSecurityContext := .containerSecurityContext | default $.Values.controller.containerSecurityContext }}
- {{- include "extraModules" (dict "name" .name "image" (merge .image $.Values.global.image) "containerSecurityContext" $containerSecurityContext "resources" .resources) | nindent 8 }}
- {{- end }}
+ {{ toYaml .Values.controller.extraContainers | nindent 8 }}
{{- end }}
+ {{- if .Values.controller.extraInitContainers }}
+ initContainers: {{ toYaml .Values.controller.extraInitContainers | nindent 8 }}
{{- end }}
{{- if .Values.controller.hostNetwork }}
hostNetwork: {{ .Values.controller.hostNetwork }}
@@ -196,20 +214,15 @@ spec:
tolerations: {{ toYaml .Values.controller.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.controller.affinity }}
- affinity: {{ tpl (toYaml .Values.controller.affinity) $ | nindent 8 }}
+ affinity: {{ toYaml .Values.controller.affinity | nindent 8 }}
{{- end }}
{{- if .Values.controller.topologySpreadConstraints }}
- topologySpreadConstraints: {{ tpl (toYaml .Values.controller.topologySpreadConstraints) $ | nindent 8 }}
+ topologySpreadConstraints: {{ toYaml .Values.controller.topologySpreadConstraints | nindent 8 }}
{{- end }}
serviceAccountName: {{ template "ingress-nginx.serviceAccountName" . }}
- automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
- {{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraVolumes .Values.controller.extraModules) }}
+ {{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraVolumes) }}
volumes:
- {{- if .Values.controller.extraModules }}
- - name: modules
- emptyDir: {}
- {{- end }}
{{- if .Values.controller.customTemplate.configMapName }}
- name: nginx-template-volume
configMap:
@@ -221,14 +234,7 @@ spec:
{{- if .Values.controller.admissionWebhooks.enabled }}
- name: webhook-cert
secret:
- secretName: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
- {{- if .Values.controller.admissionWebhooks.certManager.enabled }}
- items:
- - key: tls.crt
- path: cert
- - key: tls.key
- path: key
- {{- end }}
+ secretName: {{ include "ingress-nginx.fullname" . }}-admission
{{- end }}
{{- if .Values.controller.extraVolumes }}
{{ toYaml .Values.controller.extraVolumes | nindent 8 }}
diff --git a/charts/ingress-nginx/templates/controller-deployment.yaml b/charts/ingress-nginx/templates/controller-deployment.yaml
index da8ce97d3..fe3b56a73 100644
--- a/charts/ingress-nginx/templates/controller-deployment.yaml
+++ b/charts/ingress-nginx/templates/controller-deployment.yaml
@@ -1,4 +1,5 @@
-{{- if eq .Values.controller.kind "Deployment" -}}
+{{- if or (eq .Values.controller.kind "Deployment") (eq .Values.controller.kind "Both") -}}
+{{- include "isControllerTagValid" . -}}
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -9,7 +10,6 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "ingress-nginx.controller.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
{{- if .Values.controller.annotations }}
annotations: {{ toYaml .Values.controller.annotations | nindent 4 }}
{{- end }}
@@ -18,15 +18,13 @@ spec:
matchLabels:
{{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: controller
- {{- if eq .Values.controller.autoscaling.enabled .Values.controller.keda.enabled }}
+ {{- if not .Values.controller.autoscaling.enabled }}
replicas: {{ .Values.controller.replicaCount }}
{{- end }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
- {{- if .Values.controller.progressDeadlineSeconds }}
- progressDeadlineSeconds: {{ .Values.controller.progressDeadlineSeconds }}
- {{- end }}
{{- if .Values.controller.updateStrategy }}
- strategy: {{ toYaml .Values.controller.updateStrategy | nindent 4 }}
+ strategy:
+ {{ toYaml .Values.controller.updateStrategy | nindent 4 }}
{{- end }}
minReadySeconds: {{ .Values.controller.minReadySeconds }}
template:
@@ -38,58 +36,94 @@ spec:
{{- end }}
{{- end }}
labels:
- {{- include "ingress-nginx.labels" . | nindent 8 }}
+ {{- include "ingress-nginx.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 8 }}
- {{- end }}
{{- if .Values.controller.podLabels }}
{{- toYaml .Values.controller.podLabels | nindent 8 }}
{{- end }}
spec:
{{- if .Values.controller.dnsConfig }}
dnsConfig: {{ toYaml .Values.controller.dnsConfig | nindent 8 }}
- {{- end }}
- {{- if .Values.controller.hostAliases }}
- hostAliases: {{ tpl (toYaml .Values.controller.hostAliases) $ | nindent 8 }}
- {{- end }}
- {{- if .Values.controller.hostname }}
- hostname: {{ toYaml .Values.controller.hostname | nindent 8 }}
{{- end }}
dnsPolicy: {{ .Values.controller.dnsPolicy }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.controller.priorityClassName }}
- priorityClassName: {{ .Values.controller.priorityClassName | quote }}
+ priorityClassName: {{ .Values.controller.priorityClassName }}
{{- end }}
{{- if or .Values.controller.podSecurityContext .Values.controller.sysctls }}
securityContext:
- {{- if .Values.controller.podSecurityContext }}
- {{- toYaml .Values.controller.podSecurityContext | nindent 8 }}
- {{- end }}
- {{- if .Values.controller.sysctls }}
- sysctls:
- {{- range $sysctl, $value := .Values.controller.sysctls }}
- - name: {{ $sysctl | quote }}
- value: {{ $value | quote }}
- {{- end }}
- {{- end }}
{{- end }}
- {{- if .Values.controller.shareProcessNamespace }}
- shareProcessNamespace: {{ .Values.controller.shareProcessNamespace }}
+ {{- if .Values.controller.podSecurityContext }}
+ {{- toYaml .Values.controller.podSecurityContext | nindent 8 }}
+ {{- end }}
+ {{- if .Values.controller.sysctls }}
+ sysctls:
+ {{- range $sysctl, $value := .Values.controller.sysctls }}
+ - name: {{ $sysctl | quote }}
+ value: {{ $value | quote }}
+ {{- end }}
{{- end }}
containers:
- name: {{ .Values.controller.containerName }}
- {{- with (merge .Values.controller.image .Values.global.image) }}
- image: {{ if .repository }}{{ .repository }}{{ else }}{{ .registry }}/{{ include "ingress-nginx.image" . }}{{ end }}:{{ .tag }}{{ include "ingress-nginx.imageDigest" . }}
+ {{- with .Values.controller.image }}
+ image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{- end -}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
{{- end }}
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
{{- if .Values.controller.lifecycle }}
lifecycle: {{ toYaml .Values.controller.lifecycle | nindent 12 }}
{{- end }}
- args: {{ include "ingress-nginx.params" . | nindent 12 }}
- securityContext: {{ include "ingress-nginx.controller.containerSecurityContext" . | nindent 12 }}
+ args:
+ - /nginx-ingress-controller
+ {{- if .Values.defaultBackend.enabled }}
+ - --default-backend-service=$(POD_NAMESPACE)/{{ include "ingress-nginx.defaultBackend.fullname" . }}
+ {{- end }}
+ {{- if .Values.controller.publishService.enabled }}
+ - --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}
+ {{- end }}
+ - --election-id={{ .Values.controller.electionID }}
+ - --ingress-class={{ .Values.controller.ingressClass }}
+ - --configmap=$(POD_NAMESPACE)/{{ include "ingress-nginx.controller.fullname" . }}
+ {{- if .Values.tcp }}
+ - --tcp-services-configmap=$(POD_NAMESPACE)/{{ include "ingress-nginx.fullname" . }}-tcp
+ {{- end }}
+ {{- if .Values.udp }}
+ - --udp-services-configmap=$(POD_NAMESPACE)/{{ include "ingress-nginx.fullname" . }}-udp
+ {{- end }}
+ {{- if .Values.controller.scope.enabled }}
+ - --watch-namespace={{ default "$(POD_NAMESPACE)" .Values.controller.scope.namespace }}
+ {{- end }}
+ {{- if and .Values.controller.reportNodeInternalIp .Values.controller.hostNetwork }}
+ - --report-node-internal-ip-address={{ .Values.controller.reportNodeInternalIp }}
+ {{- end }}
+ {{- if .Values.controller.admissionWebhooks.enabled }}
+ - --validating-webhook=:{{ .Values.controller.admissionWebhooks.port }}
+ - --validating-webhook-certificate={{ .Values.controller.admissionWebhooks.certificate }}
+ - --validating-webhook-key={{ .Values.controller.admissionWebhooks.key }}
+ {{- end }}
+ {{- if .Values.controller.maxmindLicenseKey }}
+ - --maxmind-license-key={{ .Values.controller.maxmindLicenseKey }}
+ {{- end }}
+ {{- if not (eq .Values.controller.healthCheckPath "/healthz") }}
+ - --health-check-path={{ .Values.controller.healthCheckPath }}
+ {{- end }}
+ {{- range $key, $value := .Values.controller.extraArgs }}
+ {{- /* Accept keys without values or with false as value */}}
+ {{- if eq ($value | quote | len) 2 }}
+ - --{{ $key }}
+ {{- else }}
+ - --{{ $key }}={{ $value }}
+ {{- end }}
+ {{- end }}
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ add:
+ - NET_BIND_SERVICE
+ runAsUser: {{ .Values.controller.image.runAsUser }}
+ allowPrivilegeEscalation: {{ .Values.controller.image.allowPrivilegeEscalation }}
env:
- name: POD_NAME
valueFrom:
@@ -105,16 +139,12 @@ spec:
{{- end }}
{{- if .Values.controller.extraEnvs }}
{{- toYaml .Values.controller.extraEnvs | nindent 12 }}
- {{- end }}
+ {{- end }}
{{- if .Values.controller.startupProbe }}
startupProbe: {{ toYaml .Values.controller.startupProbe | nindent 12 }}
{{- end }}
- {{- if .Values.controller.livenessProbe }}
livenessProbe: {{ toYaml .Values.controller.livenessProbe | nindent 12 }}
- {{- end }}
- {{- if .Values.controller.readinessProbe }}
readinessProbe: {{ toYaml .Values.controller.readinessProbe | nindent 12 }}
- {{- end }}
ports:
{{- range $key, $value := .Values.controller.containerPort }}
- name: {{ $key }}
@@ -125,7 +155,7 @@ spec:
{{- end }}
{{- end }}
{{- if .Values.controller.metrics.enabled }}
- - name: {{ .Values.controller.metrics.portName }}
+ - name: metrics
containerPort: {{ .Values.controller.metrics.port }}
protocol: TCP
{{- end }}
@@ -135,7 +165,7 @@ spec:
protocol: TCP
{{- end }}
{{- range $key, $value := .Values.tcp }}
- - name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
+ - name: {{ $key }}-tcp
containerPort: {{ $key }}
protocol: TCP
{{- if $.Values.controller.hostPort.enabled }}
@@ -143,23 +173,15 @@ spec:
{{- end }}
{{- end }}
{{- range $key, $value := .Values.udp }}
- - name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
+ - name: {{ $key }}-udp
containerPort: {{ $key }}
protocol: UDP
{{- if $.Values.controller.hostPort.enabled }}
hostPort: {{ $key }}
{{- end }}
{{- end }}
- {{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraModules) }}
+ {{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled) }}
volumeMounts:
- {{- if .Values.controller.extraModules }}
- - name: modules
- {{- if .Values.controller.image.chroot }}
- mountPath: /chroot/modules_mount
- {{- else }}
- mountPath: /modules_mount
- {{- end }}
- {{- end }}
{{- if .Values.controller.customTemplate.configMapName }}
- mountPath: /etc/nginx/template
name: nginx-template-volume
@@ -178,19 +200,10 @@ spec:
resources: {{ toYaml .Values.controller.resources | nindent 12 }}
{{- end }}
{{- if .Values.controller.extraContainers }}
- {{- toYaml .Values.controller.extraContainers | nindent 8 }}
- {{- end }}
- {{- if (or .Values.controller.extraInitContainers .Values.controller.extraModules) }}
- initContainers:
- {{- if .Values.controller.extraInitContainers }}
- {{- toYaml .Values.controller.extraInitContainers | nindent 8 }}
- {{- end }}
- {{- if .Values.controller.extraModules }}
- {{- range .Values.controller.extraModules }}
- {{- $containerSecurityContext := .containerSecurityContext | default $.Values.controller.containerSecurityContext }}
- {{- include "extraModules" (dict "name" .name "image" (merge .image $.Values.global.image) "containerSecurityContext" $containerSecurityContext "resources" .resources) | nindent 8 }}
- {{- end }}
+ {{ toYaml .Values.controller.extraContainers | nindent 8 }}
{{- end }}
+ {{- if .Values.controller.extraInitContainers }}
+ initContainers: {{ toYaml .Values.controller.extraInitContainers | nindent 8 }}
{{- end }}
{{- if .Values.controller.hostNetwork }}
hostNetwork: {{ .Values.controller.hostNetwork }}
@@ -202,20 +215,15 @@ spec:
tolerations: {{ toYaml .Values.controller.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.controller.affinity }}
- affinity: {{ tpl (toYaml .Values.controller.affinity) $ | nindent 8 }}
+ affinity: {{ toYaml .Values.controller.affinity | nindent 8 }}
{{- end }}
{{- if .Values.controller.topologySpreadConstraints }}
- topologySpreadConstraints: {{ tpl (toYaml .Values.controller.topologySpreadConstraints) $ | nindent 8 }}
+ topologySpreadConstraints: {{ toYaml .Values.controller.topologySpreadConstraints | nindent 8 }}
{{- end }}
serviceAccountName: {{ template "ingress-nginx.serviceAccountName" . }}
- automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
- {{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraVolumes .Values.controller.extraModules) }}
+ {{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraVolumes) }}
volumes:
- {{- if .Values.controller.extraModules }}
- - name: modules
- emptyDir: {}
- {{- end }}
{{- if .Values.controller.customTemplate.configMapName }}
- name: nginx-template-volume
configMap:
@@ -227,17 +235,10 @@ spec:
{{- if .Values.controller.admissionWebhooks.enabled }}
- name: webhook-cert
secret:
- secretName: {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
- {{- if .Values.controller.admissionWebhooks.certManager.enabled }}
- items:
- - key: tls.crt
- path: cert
- - key: tls.key
- path: key
- {{- end }}
+ secretName: {{ include "ingress-nginx.fullname" . }}-admission
{{- end }}
{{- if .Values.controller.extraVolumes }}
{{ toYaml .Values.controller.extraVolumes | nindent 8 }}
{{- end }}
{{- end }}
-{{- end }}
+{{- end }}
\ No newline at end of file
diff --git a/charts/ingress-nginx/templates/controller-hpa.yaml b/charts/ingress-nginx/templates/controller-hpa.yaml
index ec9ad7380..9eab00ebb 100644
--- a/charts/ingress-nginx/templates/controller-hpa.yaml
+++ b/charts/ingress-nginx/templates/controller-hpa.yaml
@@ -1,18 +1,17 @@
-{{- if and (eq .Values.controller.kind "Deployment") .Values.controller.autoscaling.enabled (not .Values.controller.keda.enabled) -}}
-apiVersion: {{ ternary "autoscaling/v2" "autoscaling/v2beta2" (.Capabilities.APIVersions.Has "autoscaling/v2") }}
+{{- if and .Values.controller.autoscaling.enabled (or (eq .Values.controller.kind "Deployment") (eq .Values.controller.kind "Both")) -}}
+{{- if not .Values.controller.keda.enabled }}
+
+apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
+ annotations:
{{- with .Values.controller.autoscaling.annotations }}
- annotations: {{ toYaml . | nindent 4 }}
+ {{- toYaml . | trimSuffix "\n" | nindent 4 }}
{{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.controller.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
spec:
scaleTargetRef:
apiVersion: apps/v1
@@ -22,9 +21,9 @@ spec:
maxReplicas: {{ .Values.controller.autoscaling.maxReplicas }}
metrics:
{{- with .Values.controller.autoscaling.targetMemoryUtilizationPercentage }}
- - type: Resource
- resource:
- name: memory
+ - type: Resource
+ resource:
+ name: memory
target:
type: Utilization
averageUtilization: {{ . }}
@@ -38,10 +37,8 @@ spec:
averageUtilization: {{ . }}
{{- end }}
{{- with .Values.controller.autoscalingTemplate }}
- {{- toYaml . | nindent 2 }}
- {{- end }}
- {{- with .Values.controller.autoscaling.behavior }}
- behavior:
- {{- toYaml . | nindent 4 }}
+{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
+{{- end }}
+
diff --git a/charts/ingress-nginx/templates/controller-ingressclass-aliases.yaml b/charts/ingress-nginx/templates/controller-ingressclass-aliases.yaml
deleted file mode 100644
index ffe22310c..000000000
--- a/charts/ingress-nginx/templates/controller-ingressclass-aliases.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-{{- if .Values.controller.ingressClassResource.enabled -}}
-{{- range .Values.controller.ingressClassResource.aliases }}
----
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- {{- include "ingress-nginx.labels" $ | nindent 4 }}
- app.kubernetes.io/component: controller
- {{- with $.Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- name: {{ . }}
- {{- if $.Values.controller.ingressClassResource.annotations }}
- annotations: {{ toYaml $.Values.controller.ingressClassResource.annotations | nindent 4 }}
- {{- end }}
-spec:
- controller: {{ $.Values.controller.ingressClassResource.controllerValue }}
- {{- with $.Values.controller.ingressClassResource.parameters }}
- parameters: {{ toYaml . | nindent 4 }}
- {{- end }}
-{{- end }}
-{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-ingressclass.yaml b/charts/ingress-nginx/templates/controller-ingressclass.yaml
deleted file mode 100644
index 98479a529..000000000
--- a/charts/ingress-nginx/templates/controller-ingressclass.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-{{- if .Values.controller.ingressClassResource.enabled -}}
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- {{- include "ingress-nginx.labels" . | nindent 4 }}
- app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- name: {{ .Values.controller.ingressClassResource.name }}
- {{- if or .Values.controller.ingressClassResource.default .Values.controller.ingressClassResource.annotations }}
- annotations:
- {{- if .Values.controller.ingressClassResource.default }}
- ingressclass.kubernetes.io/is-default-class: "true"
- {{- end }}
- {{- if .Values.controller.ingressClassResource.annotations }}
- {{- toYaml .Values.controller.ingressClassResource.annotations | nindent 4 }}
- {{- end }}
- {{- end }}
-spec:
- controller: {{ .Values.controller.ingressClassResource.controllerValue }}
- {{- with .Values.controller.ingressClassResource.parameters }}
- parameters: {{ toYaml . | nindent 4 }}
- {{- end }}
-{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-keda.yaml b/charts/ingress-nginx/templates/controller-keda.yaml
index 24d30fa0a..c7eebf5c8 100644
--- a/charts/ingress-nginx/templates/controller-keda.yaml
+++ b/charts/ingress-nginx/templates/controller-keda.yaml
@@ -1,15 +1,13 @@
-{{- if and (eq .Values.controller.kind "Deployment") .Values.controller.keda.enabled (not .Values.controller.autoscaling.enabled) -}}
+{{- if and .Values.controller.keda.enabled (or (eq .Values.controller.kind "Deployment") (eq .Values.controller.kind "Both")) -}}
+# https://keda.sh/docs/
+
apiVersion: {{ .Values.controller.keda.apiVersion }}
kind: ScaledObject
metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.controller.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
{{- if .Values.controller.keda.scaledObject.annotations }}
annotations: {{ toYaml .Values.controller.keda.scaledObject.annotations | nindent 4 }}
{{- end }}
@@ -24,11 +22,6 @@ spec:
cooldownPeriod: {{ .Values.controller.keda.cooldownPeriod }}
minReplicaCount: {{ .Values.controller.keda.minReplicas }}
maxReplicaCount: {{ .Values.controller.keda.maxReplicas }}
-{{- with .Values.controller.keda.fallback }}
- fallback:
- failureThreshold: {{ .failureThreshold | default 3 }}
- replicas: {{ .replicas | default $.Values.controller.keda.maxReplicas }}
-{{- end }}
triggers:
{{- with .Values.controller.keda.triggers }}
{{ toYaml . | indent 2 }}
diff --git a/charts/ingress-nginx/templates/controller-networkpolicy.yaml b/charts/ingress-nginx/templates/controller-networkpolicy.yaml
deleted file mode 100644
index e68f9916d..000000000
--- a/charts/ingress-nginx/templates/controller-networkpolicy.yaml
+++ /dev/null
@@ -1,45 +0,0 @@
-{{- if .Values.controller.networkPolicy.enabled }}
-apiVersion: networking.k8s.io/v1
-kind: NetworkPolicy
-metadata:
- labels:
- {{- include "ingress-nginx.labels" . | nindent 4 }}
- app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- name: {{ include "ingress-nginx.controller.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
-spec:
- podSelector:
- matchLabels:
- {{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
- app.kubernetes.io/component: controller
- policyTypes:
- - Ingress
- - Egress
- ingress:
- - ports:
- {{- range $key, $value := .Values.controller.containerPort }}
- - protocol: TCP
- port: {{ $value }}
- {{- end }}
- {{- if .Values.controller.metrics.enabled }}
- - protocol: TCP
- port: {{ .Values.controller.metrics.port }}
- {{- end }}
- {{- if .Values.controller.admissionWebhooks.enabled }}
- - protocol: TCP
- port: {{ .Values.controller.admissionWebhooks.port }}
- {{- end }}
- {{- range $key, $value := .Values.tcp }}
- - protocol: TCP
- port: {{ $key }}
- {{- end }}
- {{- range $key, $value := .Values.udp }}
- - protocol: UDP
- port: {{ $key }}
- {{- end }}
- egress:
- - {}
-{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-poddisruptionbudget.yaml b/charts/ingress-nginx/templates/controller-poddisruptionbudget.yaml
index a1f5fbba2..369c12bdb 100644
--- a/charts/ingress-nginx/templates/controller-poddisruptionbudget.yaml
+++ b/charts/ingress-nginx/templates/controller-poddisruptionbudget.yaml
@@ -1,39 +1,15 @@
-# PDB is not supported for DaemonSets.
-# https://github.com/kubernetes/kubernetes/issues/108124
-{{- if eq .Values.controller.kind "Deployment" }}
-{{- $replicas := .Values.controller.replicaCount }}
-{{- if and .Values.controller.autoscaling.enabled (not .Values.controller.keda.enabled) }}
-{{- $replicas = .Values.controller.autoscaling.minReplicas }}
-{{- else if and .Values.controller.keda.enabled (not .Values.controller.autoscaling.enabled) }}
-{{- $replicas = .Values.controller.keda.minReplicas }}
-{{- end }}
-{{- if gt ($replicas | int) 1 }}
-apiVersion: {{ ternary "policy/v1" "policy/v1beta1" (semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version) }}
+{{- if or (and .Values.controller.autoscaling.enabled (gt (.Values.controller.autoscaling.minReplicas | int) 1)) (and (not .Values.controller.autoscaling.enabled) (gt (.Values.controller.replicaCount | int) 1)) }}
+apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.controller.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
- {{- if .Values.controller.annotations }}
- annotations: {{ toYaml .Values.controller.annotations | nindent 4 }}
- {{- end }}
spec:
selector:
matchLabels:
{{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: controller
- {{- if and .Values.controller.minAvailable (not (hasKey .Values.controller "maxUnavailable")) }}
minAvailable: {{ .Values.controller.minAvailable }}
- {{- else if .Values.controller.maxUnavailable }}
- maxUnavailable: {{ .Values.controller.maxUnavailable }}
- {{- end }}
- {{- if .Values.controller.unhealthyPodEvictionPolicy }}
- unhealthyPodEvictionPolicy: {{ .Values.controller.unhealthyPodEvictionPolicy }}
- {{- end }}
-{{- end }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-prometheusrule.yaml b/charts/ingress-nginx/templates/controller-prometheusrules.yaml
similarity index 78%
rename from charts/ingress-nginx/templates/controller-prometheusrule.yaml
rename to charts/ingress-nginx/templates/controller-prometheusrules.yaml
index 4a9357f71..ca5427523 100644
--- a/charts/ingress-nginx/templates/controller-prometheusrule.yaml
+++ b/charts/ingress-nginx/templates/controller-prometheusrules.yaml
@@ -4,9 +4,7 @@ kind: PrometheusRule
metadata:
name: {{ include "ingress-nginx.controller.fullname" . }}
{{- if .Values.controller.metrics.prometheusRule.namespace }}
- namespace: {{ .Values.controller.metrics.prometheusRule.namespace }}
-{{- else }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ namespace: {{ .Values.controller.metrics.prometheusRule.namespace | quote }}
{{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
@@ -14,9 +12,6 @@ metadata:
{{- if .Values.controller.metrics.prometheusRule.additionalLabels }}
{{- toYaml .Values.controller.metrics.prometheusRule.additionalLabels | nindent 4 }}
{{- end }}
- {{- if .Values.controller.metrics.prometheusRule.annotations }}
- annotations: {{ toYaml .Values.controller.metrics.prometheusRule.annotations | nindent 4 }}
- {{- end }}
spec:
{{- if .Values.controller.metrics.prometheusRule.rules }}
groups:
diff --git a/charts/ingress-nginx/templates/controller-psp.yaml b/charts/ingress-nginx/templates/controller-psp.yaml
new file mode 100644
index 000000000..bdb856310
--- /dev/null
+++ b/charts/ingress-nginx/templates/controller-psp.yaml
@@ -0,0 +1,86 @@
+{{- if and .Values.podSecurityPolicy.enabled (empty .Values.controller.existingPsp) -}}
+apiVersion: policy/v1beta1
+kind: PodSecurityPolicy
+metadata:
+ name: {{ include "ingress-nginx.fullname" . }}
+ labels:
+ {{- include "ingress-nginx.labels" . | nindent 4 }}
+ app.kubernetes.io/component: controller
+spec:
+ allowedCapabilities:
+ - NET_BIND_SERVICE
+{{- if .Values.controller.sysctls }}
+ allowedUnsafeSysctls:
+ {{- range $sysctl, $value := .Values.controller.sysctls }}
+ - {{ $sysctl }}
+ {{- end }}
+{{- end }}
+ privileged: false
+ allowPrivilegeEscalation: true
+ # Allow core volume types.
+ volumes:
+ - 'configMap'
+ - 'emptyDir'
+ #- 'projected'
+ - 'secret'
+ #- 'downwardAPI'
+{{- if .Values.controller.hostNetwork }}
+ hostNetwork: {{ .Values.controller.hostNetwork }}
+{{- end }}
+{{- if or .Values.controller.hostNetwork .Values.controller.hostPort.enabled }}
+ hostPorts:
+{{- if .Values.controller.hostNetwork }}
+{{- range $key, $value := .Values.controller.containerPort }}
+ # {{ $key }}
+ - min: {{ $value }}
+ max: {{ $value }}
+{{- end }}
+{{- else if .Values.controller.hostPort.enabled }}
+{{- range $key, $value := .Values.controller.hostPort.ports }}
+ # {{ $key }}
+ - min: {{ $value }}
+ max: {{ $value }}
+{{- end }}
+{{- end }}
+{{- if .Values.controller.metrics.enabled }}
+ # metrics
+ - min: {{ .Values.controller.metrics.port }}
+ max: {{ .Values.controller.metrics.port }}
+{{- end }}
+{{- if .Values.controller.admissionWebhooks.enabled }}
+ # admission webhooks
+ - min: {{ .Values.controller.admissionWebhooks.port }}
+ max: {{ .Values.controller.admissionWebhooks.port }}
+{{- end }}
+{{- range $key, $value := .Values.tcp }}
+ # {{ $key }}-tcp
+ - min: {{ $key }}
+ max: {{ $key }}
+{{- end }}
+{{- range $key, $value := .Values.udp }}
+ # {{ $key }}-udp
+ - min: {{ $key }}
+ max: {{ $key }}
+{{- end }}
+{{- end }}
+ hostIPC: false
+ hostPID: false
+ runAsUser:
+ # Require the container to run without root privileges.
+ rule: 'MustRunAsNonRoot'
+ supplementalGroups:
+ rule: 'MustRunAs'
+ ranges:
+ # Forbid adding the root group.
+ - min: 1
+ max: 65535
+ fsGroup:
+ rule: 'MustRunAs'
+ ranges:
+ # Forbid adding the root group.
+ - min: 1
+ max: 65535
+ readOnlyRootFilesystem: false
+ seLinux:
+ rule: 'RunAsAny'
+{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-role.yaml b/charts/ingress-nginx/templates/controller-role.yaml
index 127b368c4..52f830315 100644
--- a/charts/ingress-nginx/templates/controller-role.yaml
+++ b/charts/ingress-nginx/templates/controller-role.yaml
@@ -5,11 +5,7 @@ metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
rules:
- apiGroups:
- ""
@@ -37,24 +33,23 @@ rules:
- list
- watch
- apiGroups:
- - networking.k8s.io
+ - extensions
+ - "networking.k8s.io" # k8s 1.14+
resources:
- ingresses
verbs:
- get
- list
- watch
- # Omit Ingress status permissions if `--update-status` is disabled.
- {{- if ne (index .Values.controller.extraArgs "update-status") "false" }}
- apiGroups:
- - networking.k8s.io
+ - extensions
+ - "networking.k8s.io" # k8s 1.14+
resources:
- ingresses/status
verbs:
- update
- {{- end }}
- apiGroups:
- - networking.k8s.io
+ - "networking.k8s.io" # k8s 1.14+
resources:
- ingressclasses
verbs:
@@ -62,18 +57,18 @@ rules:
- list
- watch
- apiGroups:
- - coordination.k8s.io
+ - ""
resources:
- - leases
+ - configmaps
resourceNames:
- - {{ include "ingress-nginx.controller.electionID" . }}
+ - {{ .Values.controller.electionID }}-{{ .Values.controller.ingressClass }}
verbs:
- get
- update
- apiGroups:
- - coordination.k8s.io
+ - ""
resources:
- - leases
+ - configmaps
verbs:
- create
- apiGroups:
@@ -83,12 +78,14 @@ rules:
verbs:
- create
- patch
- - apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
+{{- if .Values.podSecurityPolicy.enabled }}
+ - apiGroups: [{{ template "podSecurityPolicy.apiGroup" . }}]
+ resources: ['podsecuritypolicies']
+ verbs: ['use']
+ {{- with .Values.controller.existingPsp }}
+ resourceNames: [{{ . }}]
+ {{- else }}
+ resourceNames: [{{ include "ingress-nginx.fullname" . }}]
+ {{- end }}
+{{- end }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-rolebinding.yaml b/charts/ingress-nginx/templates/controller-rolebinding.yaml
index 153430aa2..9ab3b461c 100644
--- a/charts/ingress-nginx/templates/controller-rolebinding.yaml
+++ b/charts/ingress-nginx/templates/controller-rolebinding.yaml
@@ -5,11 +5,7 @@ metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
@@ -17,5 +13,5 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ template "ingress-nginx.serviceAccountName" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ namespace: {{ .Release.Namespace | quote }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-secret.yaml b/charts/ingress-nginx/templates/controller-secret.yaml
deleted file mode 100644
index f20f53469..000000000
--- a/charts/ingress-nginx/templates/controller-secret.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-{{- if .Values.dhParam -}}
-apiVersion: v1
-kind: Secret
-metadata:
- labels:
- {{- include "ingress-nginx.labels" . | nindent 4 }}
- app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- name: {{ include "ingress-nginx.controller.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
-data:
- dhparam.pem: {{ .Values.dhParam }}
-{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-service-internal.yaml b/charts/ingress-nginx/templates/controller-service-internal.yaml
index 8d369526d..49b4ee1d6 100644
--- a/charts/ingress-nginx/templates/controller-service-internal.yaml
+++ b/charts/ingress-nginx/templates/controller-service-internal.yaml
@@ -1,10 +1,10 @@
-{{- if and .Values.controller.service.enabled .Values.controller.service.internal.enabled .Values.controller.service.internal.annotations -}}
+{{- if and .Values.controller.service.enabled .Values.controller.service.internal.enabled .Values.controller.service.internal.annotations}}
apiVersion: v1
kind: Service
metadata:
annotations:
{{- range $key, $value := .Values.controller.service.internal.annotations }}
- {{ $key }}: {{ tpl ($value | toString) $ | quote }}
+ {{ $key }}: {{ $value | quote }}
{{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
@@ -12,102 +12,36 @@ metadata:
{{- if .Values.controller.service.labels }}
{{- toYaml .Values.controller.service.labels | nindent 4 }}
{{- end }}
- {{- if .Values.controller.service.internal.labels }}
- {{- toYaml .Values.controller.service.internal.labels | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.controller.fullname" . }}-internal
- namespace: {{ include "ingress-nginx.namespace" . }}
spec:
- type: {{ .Values.controller.service.internal.type | default .Values.controller.service.type }}
-{{- if .Values.controller.service.internal.clusterIP }}
- clusterIP: {{ .Values.controller.service.internal.clusterIP }}
-{{- end }}
-{{- if .Values.controller.service.internal.clusterIPs }}
- clusterIPs: {{ toYaml .Values.controller.service.internal.clusterIPs | nindent 4 }}
-{{- end }}
-{{- if .Values.controller.service.internal.externalIPs }}
- externalIPs: {{ toYaml .Values.controller.service.internal.externalIPs | nindent 4 }}
-{{- end }}
+ type: "{{ .Values.controller.service.type }}"
{{- if .Values.controller.service.internal.loadBalancerIP }}
loadBalancerIP: {{ .Values.controller.service.internal.loadBalancerIP }}
{{- end }}
{{- if .Values.controller.service.internal.loadBalancerSourceRanges }}
loadBalancerSourceRanges: {{ toYaml .Values.controller.service.internal.loadBalancerSourceRanges | nindent 4 }}
{{- end }}
-{{- if .Values.controller.service.internal.loadBalancerClass }}
- loadBalancerClass: {{ .Values.controller.service.internal.loadBalancerClass }}
-{{- end }}
-{{- if hasKey .Values.controller.service.internal "allocateLoadBalancerNodePorts" }}
- allocateLoadBalancerNodePorts: {{ .Values.controller.service.internal.allocateLoadBalancerNodePorts }}
-{{- end }}
{{- if .Values.controller.service.internal.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.controller.service.internal.externalTrafficPolicy }}
-{{- end }}
-{{- if .Values.controller.service.internal.sessionAffinity }}
- sessionAffinity: {{ .Values.controller.service.internal.sessionAffinity }}
-{{- end }}
-{{- if .Values.controller.service.internal.healthCheckNodePort }}
- healthCheckNodePort: {{ .Values.controller.service.internal.healthCheckNodePort }}
-{{- end }}
-{{- if semverCompare ">=1.31.0-0" .Capabilities.KubeVersion.Version -}}
-{{- if .Values.controller.service.internal.trafficDistribution }}
- trafficDistribution: {{ .Values.controller.service.internal.trafficDistribution }}
-{{- end }}
-{{- end }}
-{{- if semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version -}}
-{{- if .Values.controller.service.internal.ipFamilyPolicy }}
- ipFamilyPolicy: {{ .Values.controller.service.internal.ipFamilyPolicy }}
-{{- end }}
-{{- if .Values.controller.service.internal.ipFamilies }}
- ipFamilies: {{ toYaml .Values.controller.service.internal.ipFamilies | nindent 4 }}
-{{- end }}
{{- end }}
ports:
{{- $setNodePorts := (or (eq .Values.controller.service.type "NodePort") (eq .Values.controller.service.type "LoadBalancer")) }}
{{- if .Values.controller.service.enableHttp }}
- name: http
- port: {{ .Values.controller.service.internal.ports.http | default .Values.controller.service.ports.http }}
+ port: {{ .Values.controller.service.ports.http }}
protocol: TCP
- targetPort: {{ .Values.controller.service.internal.targetPorts.http | default .Values.controller.service.targetPorts.http }}
- {{- if and (semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version) (.Values.controller.service.internal.appProtocol) }}
- appProtocol: http
- {{- end }}
- {{- if (and $setNodePorts (not (empty .Values.controller.service.internal.nodePorts.http))) }}
- nodePort: {{ .Values.controller.service.internal.nodePorts.http }}
+ targetPort: {{ .Values.controller.service.targetPorts.http }}
+ {{- if (and $setNodePorts (not (empty .Values.controller.service.nodePorts.http))) }}
+ nodePort: {{ .Values.controller.service.nodePorts.http }}
{{- end }}
{{- end }}
{{- if .Values.controller.service.enableHttps }}
- name: https
- port: {{ .Values.controller.service.internal.ports.https | default .Values.controller.service.ports.https }}
+ port: {{ .Values.controller.service.ports.https }}
protocol: TCP
- targetPort: {{ .Values.controller.service.internal.targetPorts.https | default .Values.controller.service.targetPorts.https }}
- {{- if and (semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version) (.Values.controller.service.internal.appProtocol) }}
- appProtocol: https
- {{- end }}
- {{- if (and $setNodePorts (not (empty .Values.controller.service.internal.nodePorts.https))) }}
- nodePort: {{ .Values.controller.service.internal.nodePorts.https }}
- {{- end }}
- {{- end }}
- {{- range $key, $value := .Values.tcp }}
- - name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
- port: {{ $key }}
- protocol: TCP
- targetPort: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
- {{- if $.Values.controller.service.internal.nodePorts.tcp }}
- {{- if index $.Values.controller.service.internal.nodePorts.tcp $key }}
- nodePort: {{ index $.Values.controller.service.internal.nodePorts.tcp $key }}
- {{- end }}
- {{- end }}
- {{- end }}
- {{- range $key, $value := .Values.udp }}
- - name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
- port: {{ $key }}
- protocol: UDP
- targetPort: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
- {{- if $.Values.controller.service.internal.nodePorts.udp }}
- {{- if index $.Values.controller.service.internal.nodePorts.udp $key }}
- nodePort: {{ index $.Values.controller.service.internal.nodePorts.udp $key }}
- {{- end }}
+ targetPort: {{ .Values.controller.service.targetPorts.https }}
+ {{- if (and $setNodePorts (not (empty .Values.controller.service.nodePorts.https))) }}
+ nodePort: {{ .Values.controller.service.nodePorts.https }}
{{- end }}
{{- end }}
selector:
diff --git a/charts/ingress-nginx/templates/controller-service-metrics.yaml b/charts/ingress-nginx/templates/controller-service-metrics.yaml
index 4b25a840e..b01f460af 100644
--- a/charts/ingress-nginx/templates/controller-service-metrics.yaml
+++ b/charts/ingress-nginx/templates/controller-service-metrics.yaml
@@ -1,4 +1,4 @@
-{{- if and .Values.controller.metrics.enabled .Values.controller.metrics.service.enabled -}}
+{{- if .Values.controller.metrics.enabled -}}
apiVersion: v1
kind: Service
metadata:
@@ -12,7 +12,6 @@ metadata:
{{- toYaml .Values.controller.metrics.service.labels | nindent 4 }}
{{- end }}
name: {{ include "ingress-nginx.controller.fullname" . }}-metrics
- namespace: {{ include "ingress-nginx.namespace" . }}
spec:
type: {{ .Values.controller.metrics.service.type }}
{{- if .Values.controller.metrics.service.clusterIP }}
@@ -31,10 +30,9 @@ spec:
externalTrafficPolicy: {{ .Values.controller.metrics.service.externalTrafficPolicy }}
{{- end }}
ports:
- - name: {{ .Values.controller.metrics.portName }}
+ - name: metrics
port: {{ .Values.controller.metrics.service.servicePort }}
- protocol: TCP
- targetPort: {{ .Values.controller.metrics.portName }}
+ targetPort: metrics
{{- $setNodePorts := (or (eq .Values.controller.metrics.service.type "NodePort") (eq .Values.controller.metrics.service.type "LoadBalancer")) }}
{{- if (and $setNodePorts (not (empty .Values.controller.metrics.service.nodePort))) }}
nodePort: {{ .Values.controller.metrics.service.nodePort }}
diff --git a/charts/ingress-nginx/templates/controller-service-webhook.yaml b/charts/ingress-nginx/templates/controller-service-webhook.yaml
index 67aac0d9a..7a4dd51db 100644
--- a/charts/ingress-nginx/templates/controller-service-webhook.yaml
+++ b/charts/ingress-nginx/templates/controller-service-webhook.yaml
@@ -8,11 +8,7 @@ metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.controller.fullname" . }}-admission
- namespace: {{ include "ingress-nginx.namespace" . }}
spec:
type: {{ .Values.controller.admissionWebhooks.service.type }}
{{- if .Values.controller.admissionWebhooks.service.clusterIP }}
@@ -29,11 +25,8 @@ spec:
{{- end }}
ports:
- name: https-webhook
- port: {{ .Values.controller.admissionWebhooks.service.servicePort }}
+ port: 443
targetPort: webhook
- {{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version }}
- appProtocol: https
- {{- end }}
selector:
{{- include "ingress-nginx.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: controller
diff --git a/charts/ingress-nginx/templates/controller-service.yaml b/charts/ingress-nginx/templates/controller-service.yaml
index 36d2e4884..9db734deb 100644
--- a/charts/ingress-nginx/templates/controller-service.yaml
+++ b/charts/ingress-nginx/templates/controller-service.yaml
@@ -1,10 +1,10 @@
-{{- if and .Values.controller.service.enabled .Values.controller.service.external.enabled -}}
+{{- if .Values.controller.service.enabled -}}
apiVersion: v1
kind: Service
metadata:
annotations:
{{- range $key, $value := .Values.controller.service.annotations }}
- {{ $key }}: {{ tpl ($value | toString) $ | quote }}
+ {{ $key }}: {{ $value | quote }}
{{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
@@ -12,19 +12,12 @@ metadata:
{{- if .Values.controller.service.labels }}
{{- toYaml .Values.controller.service.labels | nindent 4 }}
{{- end }}
- {{- if .Values.controller.service.external.labels }}
- {{- toYaml .Values.controller.service.external.labels | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.controller.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
spec:
type: {{ .Values.controller.service.type }}
{{- if .Values.controller.service.clusterIP }}
clusterIP: {{ .Values.controller.service.clusterIP }}
{{- end }}
-{{- if .Values.controller.service.clusterIPs }}
- clusterIPs: {{ toYaml .Values.controller.service.clusterIPs | nindent 4 }}
-{{- end }}
{{- if .Values.controller.service.externalIPs }}
externalIPs: {{ toYaml .Values.controller.service.externalIPs | nindent 4 }}
{{- end }}
@@ -34,12 +27,6 @@ spec:
{{- if .Values.controller.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges: {{ toYaml .Values.controller.service.loadBalancerSourceRanges | nindent 4 }}
{{- end }}
-{{- if .Values.controller.service.loadBalancerClass }}
- loadBalancerClass: {{ .Values.controller.service.loadBalancerClass }}
-{{- end }}
-{{- if hasKey .Values.controller.service "allocateLoadBalancerNodePorts" }}
- allocateLoadBalancerNodePorts: {{ .Values.controller.service.allocateLoadBalancerNodePorts }}
-{{- end }}
{{- if .Values.controller.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.controller.service.externalTrafficPolicy }}
{{- end }}
@@ -48,19 +35,6 @@ spec:
{{- end }}
{{- if .Values.controller.service.healthCheckNodePort }}
healthCheckNodePort: {{ .Values.controller.service.healthCheckNodePort }}
-{{- end }}
-{{- if semverCompare ">=1.31.0-0" .Capabilities.KubeVersion.Version -}}
-{{- if .Values.controller.service.trafficDistribution }}
- trafficDistribution: {{ .Values.controller.service.trafficDistribution }}
-{{- end }}
-{{- end }}
-{{- if semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version -}}
-{{- if .Values.controller.service.ipFamilyPolicy }}
- ipFamilyPolicy: {{ .Values.controller.service.ipFamilyPolicy }}
-{{- end }}
-{{- if .Values.controller.service.ipFamilies }}
- ipFamilies: {{ toYaml .Values.controller.service.ipFamilies | nindent 4 }}
-{{- end }}
{{- end }}
ports:
{{- $setNodePorts := (or (eq .Values.controller.service.type "NodePort") (eq .Values.controller.service.type "LoadBalancer")) }}
@@ -69,9 +43,6 @@ spec:
port: {{ .Values.controller.service.ports.http }}
protocol: TCP
targetPort: {{ .Values.controller.service.targetPorts.http }}
- {{- if and (semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version) (.Values.controller.service.appProtocol) }}
- appProtocol: http
- {{- end }}
{{- if (and $setNodePorts (not (empty .Values.controller.service.nodePorts.http))) }}
nodePort: {{ .Values.controller.service.nodePorts.http }}
{{- end }}
@@ -81,18 +52,15 @@ spec:
port: {{ .Values.controller.service.ports.https }}
protocol: TCP
targetPort: {{ .Values.controller.service.targetPorts.https }}
- {{- if and (semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version) (.Values.controller.service.appProtocol) }}
- appProtocol: https
- {{- end }}
{{- if (and $setNodePorts (not (empty .Values.controller.service.nodePorts.https))) }}
nodePort: {{ .Values.controller.service.nodePorts.https }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.tcp }}
- - name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
+ - name: {{ $key }}-tcp
port: {{ $key }}
protocol: TCP
- targetPort: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
+ targetPort: {{ $key }}-tcp
{{- if $.Values.controller.service.nodePorts.tcp }}
{{- if index $.Values.controller.service.nodePorts.tcp $key }}
nodePort: {{ index $.Values.controller.service.nodePorts.tcp $key }}
@@ -100,10 +68,10 @@ spec:
{{- end }}
{{- end }}
{{- range $key, $value := .Values.udp }}
- - name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
+ - name: {{ $key }}-udp
port: {{ $key }}
protocol: UDP
- targetPort: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
+ targetPort: {{ $key }}-udp
{{- if $.Values.controller.service.nodePorts.udp }}
{{- if index $.Values.controller.service.nodePorts.udp $key }}
nodePort: {{ index $.Values.controller.service.nodePorts.udp $key }}
diff --git a/charts/ingress-nginx/templates/controller-serviceaccount.yaml b/charts/ingress-nginx/templates/controller-serviceaccount.yaml
index df83de3d0..f4b1278f6 100644
--- a/charts/ingress-nginx/templates/controller-serviceaccount.yaml
+++ b/charts/ingress-nginx/templates/controller-serviceaccount.yaml
@@ -5,13 +5,6 @@ metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- with .Values.controller.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ template "ingress-nginx.serviceAccountName" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
- {{- if .Values.serviceAccount.annotations }}
- annotations: {{ toYaml .Values.serviceAccount.annotations | nindent 4 }}
- {{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/controller-servicemonitor.yaml b/charts/ingress-nginx/templates/controller-servicemonitor.yaml
index 85bb84186..066488a04 100644
--- a/charts/ingress-nginx/templates/controller-servicemonitor.yaml
+++ b/charts/ingress-nginx/templates/controller-servicemonitor.yaml
@@ -3,63 +3,43 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "ingress-nginx.controller.fullname" . }}
- {{- if .Values.controller.metrics.serviceMonitor.namespace }}
- namespace: {{ .Values.controller.metrics.serviceMonitor.namespace }}
- {{- else }}
- namespace: {{ include "ingress-nginx.namespace" . }}
- {{- end }}
+{{- if .Values.controller.metrics.serviceMonitor.namespace }}
+ namespace: {{ .Values.controller.metrics.serviceMonitor.namespace | quote }}
+{{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
- {{- if .Values.controller.metrics.serviceMonitor.additionalLabels }}
+ {{- if .Values.controller.metrics.serviceMonitor.additionalLabels }}
{{- toYaml .Values.controller.metrics.serviceMonitor.additionalLabels | nindent 4 }}
- {{- end }}
- {{- if .Values.controller.metrics.serviceMonitor.annotations }}
- annotations: {{ toYaml .Values.controller.metrics.serviceMonitor.annotations | nindent 4 }}
{{- end }}
spec:
- {{- if .Values.controller.metrics.serviceMonitor.namespaceSelector }}
+ endpoints:
+ - port: metrics
+ interval: {{ .Values.controller.metrics.serviceMonitor.scrapeInterval }}
+ {{- if .Values.controller.metrics.serviceMonitor.honorLabels }}
+ honorLabels: true
+ {{- end }}
+ {{- if .Values.controller.metrics.serviceMonitor.metricRelabelings }}
+ metricRelabelings: {{ toYaml .Values.controller.metrics.serviceMonitor.metricRelabelings | nindent 8 }}
+ {{- end }}
+{{- if .Values.controller.metrics.serviceMonitor.jobLabel }}
+ jobLabel: {{ .Values.controller.metrics.serviceMonitor.jobLabel | quote }}
+{{- end }}
+{{- if .Values.controller.metrics.serviceMonitor.namespaceSelector }}
namespaceSelector: {{ toYaml .Values.controller.metrics.serviceMonitor.namespaceSelector | nindent 4 }}
- {{- else }}
+{{ else }}
namespaceSelector:
matchNames:
- - {{ include "ingress-nginx.namespace" . }}
+ - {{ .Release.Namespace }}
+{{- end }}
+{{- if .Values.controller.metrics.serviceMonitor.targetLabels }}
+ targetLabels:
+ {{- range .Values.controller.metrics.serviceMonitor.targetLabels }}
+ - {{ . }}
{{- end }}
+{{- end }}
selector:
matchLabels:
{{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: controller
- endpoints:
- - port: {{ .Values.controller.metrics.portName }}
- interval: {{ .Values.controller.metrics.serviceMonitor.scrapeInterval }}
- {{- if .Values.controller.metrics.serviceMonitor.honorLabels }}
- honorLabels: true
- {{- end }}
- {{- if .Values.controller.metrics.serviceMonitor.relabelings }}
- relabelings: {{ toYaml .Values.controller.metrics.serviceMonitor.relabelings | nindent 4 }}
- {{- end }}
- {{- if .Values.controller.metrics.serviceMonitor.metricRelabelings }}
- metricRelabelings: {{ toYaml .Values.controller.metrics.serviceMonitor.metricRelabelings | nindent 4 }}
- {{- end }}
- {{- if .Values.controller.metrics.serviceMonitor.jobLabel }}
- jobLabel: {{ .Values.controller.metrics.serviceMonitor.jobLabel | quote }}
- {{- end }}
- {{- if .Values.controller.metrics.serviceMonitor.targetLabels }}
- targetLabels: {{ toYaml .Values.controller.metrics.serviceMonitor.targetLabels | nindent 2 }}
- {{- end }}
- {{- if .Values.controller.metrics.serviceMonitor.labelLimit }}
- labelLimit: {{ .Values.controller.metrics.serviceMonitor.labelLimit }}
- {{- end }}
- {{- if .Values.controller.metrics.serviceMonitor.labelNameLengthLimit }}
- labelNameLengthLimit: {{ .Values.controller.metrics.serviceMonitor.labelNameLengthLimit }}
- {{- end }}
- {{- if .Values.controller.metrics.serviceMonitor.labelValueLengthLimit }}
- labelValueLengthLimit: {{ .Values.controller.metrics.serviceMonitor.labelValueLengthLimit }}
- {{- end }}
- {{- if .Values.controller.metrics.serviceMonitor.sampleLimit }}
- sampleLimit: {{ .Values.controller.metrics.serviceMonitor.sampleLimit }}
- {{- end }}
- {{- if .Values.controller.metrics.serviceMonitor.targetLimit }}
- targetLimit: {{ .Values.controller.metrics.serviceMonitor.targetLimit }}
- {{- end }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/default-backend-deployment.yaml b/charts/ingress-nginx/templates/default-backend-deployment.yaml
index 4a17f7444..ff8a6d9a6 100644
--- a/charts/ingress-nginx/templates/default-backend-deployment.yaml
+++ b/charts/ingress-nginx/templates/default-backend-deployment.yaml
@@ -5,11 +5,7 @@ metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: default-backend
- {{- with .Values.defaultBackend.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.defaultBackend.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
spec:
selector:
matchLabels:
@@ -19,22 +15,14 @@ spec:
replicas: {{ .Values.defaultBackend.replicaCount }}
{{- end }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
- {{- if .Values.defaultBackend.updateStrategy }}
- strategy:
- {{ toYaml .Values.defaultBackend.updateStrategy | nindent 4 }}
- {{- end }}
- minReadySeconds: {{ .Values.defaultBackend.minReadySeconds }}
template:
metadata:
{{- if .Values.defaultBackend.podAnnotations }}
annotations: {{ toYaml .Values.defaultBackend.podAnnotations | nindent 8 }}
{{- end }}
labels:
- {{- include "ingress-nginx.labels" . | nindent 8 }}
+ {{- include "ingress-nginx.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: default-backend
- {{- with .Values.defaultBackend.labels }}
- {{- toYaml . | nindent 8 }}
- {{- end }}
{{- if .Values.defaultBackend.podLabels }}
{{- toYaml .Values.defaultBackend.podLabels | nindent 8 }}
{{- end }}
@@ -50,8 +38,8 @@ spec:
{{- end }}
containers:
- name: {{ template "ingress-nginx.name" . }}-default-backend
- {{- with (merge .Values.defaultBackend.image .Values.global.image) }}
- image: {{ if .repository }}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{ end }}:{{ .tag }}{{ if .digest }}@{{ .digest }}{{ end }}
+ {{- with .Values.defaultBackend.image }}
+ image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{- end -}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
{{- end }}
imagePullPolicy: {{ .Values.defaultBackend.image.pullPolicy }}
{{- if .Values.defaultBackend.extraArgs }}
@@ -65,7 +53,14 @@ spec:
{{- end }}
{{- end }}
{{- end }}
- securityContext: {{ include "ingress-nginx.defaultBackend.containerSecurityContext" . | nindent 12 }}
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ runAsUser: {{ .Values.defaultBackend.image.runAsUser }}
+ runAsNonRoot: {{ .Values.defaultBackend.image.runAsNonRoot }}
+ allowPrivilegeEscalation: {{ .Values.defaultBackend.image.allowPrivilegeEscalation }}
+ readOnlyRootFilesystem: {{ .Values.defaultBackend.image.readOnlyRootFilesystem}}
{{- if .Values.defaultBackend.extraEnvs }}
env: {{ toYaml .Values.defaultBackend.extraEnvs | nindent 12 }}
{{- end }}
@@ -102,16 +97,12 @@ spec:
{{- if .Values.defaultBackend.nodeSelector }}
nodeSelector: {{ toYaml .Values.defaultBackend.nodeSelector | nindent 8 }}
{{- end }}
- serviceAccountName: {{ include "ingress-nginx.defaultBackend.serviceAccountName" . }}
- automountServiceAccountToken: {{ .Values.defaultBackend.serviceAccount.automountServiceAccountToken }}
+ serviceAccountName: {{ template "ingress-nginx.defaultBackend.serviceAccountName" . }}
{{- if .Values.defaultBackend.tolerations }}
tolerations: {{ toYaml .Values.defaultBackend.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.defaultBackend.affinity }}
- affinity: {{ tpl (toYaml .Values.defaultBackend.affinity) $ | nindent 8 }}
- {{- end }}
- {{- if .Values.defaultBackend.topologySpreadConstraints }}
- topologySpreadConstraints: {{ tpl (toYaml .Values.defaultBackend.topologySpreadConstraints) $ | nindent 8 }}
+ affinity: {{ toYaml .Values.defaultBackend.affinity | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: 60
{{- if .Values.defaultBackend.extraVolumes }}
diff --git a/charts/ingress-nginx/templates/default-backend-extra-configmaps.yaml b/charts/ingress-nginx/templates/default-backend-extra-configmaps.yaml
deleted file mode 100644
index 9af56cf38..000000000
--- a/charts/ingress-nginx/templates/default-backend-extra-configmaps.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-{{- if .Values.defaultBackend.enabled }}
-{{- range .Values.defaultBackend.extraConfigMaps }}
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- labels:
- {{- include "ingress-nginx.labels" $ | nindent 4 }}
- app.kubernetes.io/component: default-backend
- {{- with $.Values.defaultBackend.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- {{- with .labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- name: {{ .name }}
- namespace: {{ include "ingress-nginx.namespace" $ }}
-data:
- {{- with .data }}
- {{- toYaml . | nindent 2 }}
- {{- end }}
-{{- end }}
-{{- end }}
diff --git a/charts/ingress-nginx/templates/default-backend-hpa.yaml b/charts/ingress-nginx/templates/default-backend-hpa.yaml
index 49bcdcfdc..a007d0315 100644
--- a/charts/ingress-nginx/templates/default-backend-hpa.yaml
+++ b/charts/ingress-nginx/templates/default-backend-hpa.yaml
@@ -1,40 +1,29 @@
{{- if and .Values.defaultBackend.enabled .Values.defaultBackend.autoscaling.enabled }}
-apiVersion: {{ ternary "autoscaling/v2" "autoscaling/v2beta2" (.Capabilities.APIVersions.Has "autoscaling/v2") }}
+apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
- {{- with .Values.defaultBackend.autoscaling.annotations }}
- annotations: {{ toYaml . | nindent 4 }}
- {{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: default-backend
- {{- with .Values.defaultBackend.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- name: {{ include "ingress-nginx.defaultBackend.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ name: {{ template "ingress-nginx.defaultBackend.fullname" . }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
- name: {{ include "ingress-nginx.defaultBackend.fullname" . }}
+ name: {{ template "ingress-nginx.defaultBackend.fullname" . }}
minReplicas: {{ .Values.defaultBackend.autoscaling.minReplicas }}
maxReplicas: {{ .Values.defaultBackend.autoscaling.maxReplicas }}
metrics:
- {{- with .Values.defaultBackend.autoscaling.targetMemoryUtilizationPercentage }}
- - type: Resource
- resource:
- name: memory
- target:
- type: Utilization
- averageUtilization: {{ . }}
- {{- end }}
- {{- with .Values.defaultBackend.autoscaling.targetCPUUtilizationPercentage }}
- - type: Resource
- resource:
- name: cpu
- target:
- type: Utilization
- averageUtilization: {{ . }}
- {{- end }}
+{{- with .Values.defaultBackend.autoscaling.targetCPUUtilizationPercentage }}
+ - type: Resource
+ resource:
+ name: cpu
+ targetAverageUtilization: {{ . }}
+{{- end }}
+{{- with .Values.defaultBackend.autoscaling.targetMemoryUtilizationPercentage }}
+ - type: Resource
+ resource:
+ name: memory
+ targetAverageUtilization: {{ . }}
+{{- end }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/default-backend-networkpolicy.yaml b/charts/ingress-nginx/templates/default-backend-networkpolicy.yaml
deleted file mode 100644
index 90b3c2ba0..000000000
--- a/charts/ingress-nginx/templates/default-backend-networkpolicy.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-{{- if and .Values.defaultBackend.enabled .Values.defaultBackend.networkPolicy.enabled }}
-apiVersion: networking.k8s.io/v1
-kind: NetworkPolicy
-metadata:
- labels:
- {{- include "ingress-nginx.labels" . | nindent 4 }}
- app.kubernetes.io/component: default-backend
- {{- with .Values.defaultBackend.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- name: {{ include "ingress-nginx.defaultBackend.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
-spec:
- podSelector:
- matchLabels:
- {{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
- app.kubernetes.io/component: default-backend
- policyTypes:
- - Ingress
- - Egress
- ingress:
- - ports:
- - protocol: TCP
- port: {{ .Values.defaultBackend.port }}
-{{- end }}
diff --git a/charts/ingress-nginx/templates/default-backend-poddisruptionbudget.yaml b/charts/ingress-nginx/templates/default-backend-poddisruptionbudget.yaml
index e399ea8a4..327d809b9 100644
--- a/charts/ingress-nginx/templates/default-backend-poddisruptionbudget.yaml
+++ b/charts/ingress-nginx/templates/default-backend-poddisruptionbudget.yaml
@@ -1,32 +1,15 @@
-{{- if .Values.defaultBackend.enabled -}}
-{{- $replicas := .Values.defaultBackend.replicaCount }}
-{{- if .Values.defaultBackend.autoscaling.enabled }}
-{{- $replicas = .Values.defaultBackend.autoscaling.minReplicas }}
-{{- end }}
-{{- if gt ($replicas | int) 1 }}
-apiVersion: {{ ternary "policy/v1" "policy/v1beta1" (semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version) }}
+{{- if or (gt (.Values.defaultBackend.replicaCount | int) 1) (gt (.Values.defaultBackend.autoscaling.minReplicas | int) 1) }}
+apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: default-backend
- {{- with .Values.defaultBackend.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.defaultBackend.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
spec:
selector:
matchLabels:
{{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: default-backend
- {{- if and .Values.defaultBackend.minAvailable (not (hasKey .Values.defaultBackend "maxUnavailable")) }}
minAvailable: {{ .Values.defaultBackend.minAvailable }}
- {{- else if .Values.defaultBackend.maxUnavailable }}
- maxUnavailable: {{ .Values.defaultBackend.maxUnavailable }}
- {{- end }}
- {{- if .Values.defaultBackend.unhealthyPodEvictionPolicy }}
- unhealthyPodEvictionPolicy: {{ .Values.defaultBackend.unhealthyPodEvictionPolicy }}
- {{- end }}
-{{- end }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/default-backend-psp.yaml b/charts/ingress-nginx/templates/default-backend-psp.yaml
new file mode 100644
index 000000000..716dbf16f
--- /dev/null
+++ b/charts/ingress-nginx/templates/default-backend-psp.yaml
@@ -0,0 +1,33 @@
+{{- if and .Values.podSecurityPolicy.enabled .Values.defaultBackend.enabled (empty .Values.defaultBackend.existingPsp) -}}
+apiVersion: policy/v1beta1
+kind: PodSecurityPolicy
+metadata:
+ name: {{ include "ingress-nginx.fullname" . }}-backend
+ labels:
+ {{- include "ingress-nginx.labels" . | nindent 4 }}
+ app.kubernetes.io/component: default-backend
+spec:
+ allowPrivilegeEscalation: false
+ fsGroup:
+ ranges:
+ - max: 65535
+ min: 1
+ rule: MustRunAs
+ requiredDropCapabilities:
+ - ALL
+ runAsUser:
+ rule: MustRunAsNonRoot
+ seLinux:
+ rule: RunAsAny
+ supplementalGroups:
+ ranges:
+ - max: 65535
+ min: 1
+ rule: MustRunAs
+ volumes:
+ - configMap
+ - emptyDir
+ - projected
+ - secret
+ - downwardAPI
+{{- end }}
diff --git a/charts/ingress-nginx/templates/default-backend-role.yaml b/charts/ingress-nginx/templates/default-backend-role.yaml
new file mode 100644
index 000000000..53b63b6bf
--- /dev/null
+++ b/charts/ingress-nginx/templates/default-backend-role.yaml
@@ -0,0 +1,18 @@
+{{- if and .Values.rbac.create .Values.podSecurityPolicy.enabled .Values.defaultBackend.enabled -}}
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ labels:
+ {{- include "ingress-nginx.labels" . | nindent 4 }}
+ app.kubernetes.io/component: default-backend
+ name: {{ include "ingress-nginx.fullname" . }}-backend
+rules:
+ - apiGroups: [{{ template "podSecurityPolicy.apiGroup" . }}]
+ resources: ['podsecuritypolicies']
+ verbs: ['use']
+ {{- with .Values.defaultBackend.existingPsp }}
+ resourceNames: [{{ . }}]
+ {{- else }}
+ resourceNames: [{{ include "ingress-nginx.fullname" . }}-backend]
+ {{- end }}
+{{- end }}
diff --git a/charts/ingress-nginx/templates/default-backend-rolebinding.yaml b/charts/ingress-nginx/templates/default-backend-rolebinding.yaml
new file mode 100644
index 000000000..03eac869f
--- /dev/null
+++ b/charts/ingress-nginx/templates/default-backend-rolebinding.yaml
@@ -0,0 +1,17 @@
+{{- if and .Values.rbac.create .Values.podSecurityPolicy.enabled .Values.defaultBackend.enabled -}}
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ labels:
+ {{- include "ingress-nginx.labels" . | nindent 4 }}
+ app.kubernetes.io/component: default-backend
+ name: {{ include "ingress-nginx.fullname" . }}-backend
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: {{ include "ingress-nginx.fullname" . }}-backend
+subjects:
+ - kind: ServiceAccount
+ name: {{ template "ingress-nginx.defaultBackend.serviceAccountName" . }}
+ namespace: {{ .Release.Namespace | quote }}
+{{- end }}
diff --git a/charts/ingress-nginx/templates/default-backend-service.yaml b/charts/ingress-nginx/templates/default-backend-service.yaml
index 5a836365b..e74714d92 100644
--- a/charts/ingress-nginx/templates/default-backend-service.yaml
+++ b/charts/ingress-nginx/templates/default-backend-service.yaml
@@ -8,19 +8,12 @@ metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: default-backend
- {{- with .Values.defaultBackend.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
name: {{ include "ingress-nginx.defaultBackend.fullname" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
spec:
type: {{ .Values.defaultBackend.service.type }}
{{- if .Values.defaultBackend.service.clusterIP }}
clusterIP: {{ .Values.defaultBackend.service.clusterIP }}
{{- end }}
-{{- if .Values.defaultBackend.service.clusterIPs }}
- clusterIPs: {{ toYaml .Values.defaultBackend.service.clusterIPs | nindent 4 }}
-{{- end }}
{{- if .Values.defaultBackend.service.externalIPs }}
externalIPs: {{ toYaml .Values.defaultBackend.service.externalIPs | nindent 4 }}
{{- end }}
@@ -35,9 +28,6 @@ spec:
port: {{ .Values.defaultBackend.service.servicePort }}
protocol: TCP
targetPort: http
- {{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version }}
- appProtocol: http
- {{- end }}
selector:
{{- include "ingress-nginx.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: default-backend
diff --git a/charts/ingress-nginx/templates/default-backend-serviceaccount.yaml b/charts/ingress-nginx/templates/default-backend-serviceaccount.yaml
index 6fd2d6234..a95826bda 100644
--- a/charts/ingress-nginx/templates/default-backend-serviceaccount.yaml
+++ b/charts/ingress-nginx/templates/default-backend-serviceaccount.yaml
@@ -1,14 +1,10 @@
-{{- if and .Values.defaultBackend.enabled .Values.defaultBackend.serviceAccount.create -}}
+{{- if and .Values.defaultBackend.enabled .Values.defaultBackend.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: default-backend
- {{- with .Values.defaultBackend.labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- name: {{ include "ingress-nginx.defaultBackend.serviceAccountName" . }}
- namespace: {{ include "ingress-nginx.namespace" . }}
+ name: {{ template "ingress-nginx.defaultBackend.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.defaultBackend.serviceAccount.automountServiceAccountToken }}
{{- end }}
diff --git a/charts/ingress-nginx/templates/dh-param-secret.yaml b/charts/ingress-nginx/templates/dh-param-secret.yaml
new file mode 100644
index 000000000..12e7a4f63
--- /dev/null
+++ b/charts/ingress-nginx/templates/dh-param-secret.yaml
@@ -0,0 +1,10 @@
+{{- with .Values.dhParam -}}
+apiVersion: v1
+kind: Secret
+metadata:
+ name: {{ include "ingress-nginx.controller.fullname" $ }}
+ labels:
+ {{- include "ingress-nginx.labels" $ | nindent 4 }}
+data:
+ dhparam.pem: {{ . }}
+{{- end }}
diff --git a/charts/ingress-nginx/tests/admission-webhooks/job-patch/clusterrole_test.yaml b/charts/ingress-nginx/tests/admission-webhooks/job-patch/clusterrole_test.yaml
deleted file mode 100644
index d7a8b8852..000000000
--- a/charts/ingress-nginx/tests/admission-webhooks/job-patch/clusterrole_test.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-suite: Admission Webhooks > Patch Job > ClusterRole
-templates:
- - admission-webhooks/job-patch/clusterrole.yaml
-
-tests:
- - it: should not create a ClusterRole if `controller.admissionWebhooks.patch.rbac.create` is false
- set:
- controller.admissionWebhooks.patch.rbac.create: false
- asserts:
- - hasDocuments:
- count: 0
diff --git a/charts/ingress-nginx/tests/admission-webhooks/job-patch/clusterrolebinding_test.yaml b/charts/ingress-nginx/tests/admission-webhooks/job-patch/clusterrolebinding_test.yaml
deleted file mode 100644
index d7c3266d2..000000000
--- a/charts/ingress-nginx/tests/admission-webhooks/job-patch/clusterrolebinding_test.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-suite: Admission Webhooks > Patch Job > ClusterRoleBinding
-templates:
- - admission-webhooks/job-patch/clusterrolebinding.yaml
-
-tests:
- - it: should not create a ClusterRoleBinding if `controller.admissionWebhooks.patch.rbac.create` is false
- set:
- controller.admissionWebhooks.patch.rbac.create: false
- asserts:
- - hasDocuments:
- count: 0
diff --git a/charts/ingress-nginx/tests/admission-webhooks/job-patch/job-createSecret_test.yaml b/charts/ingress-nginx/tests/admission-webhooks/job-patch/job-createSecret_test.yaml
deleted file mode 100644
index b5272553b..000000000
--- a/charts/ingress-nginx/tests/admission-webhooks/job-patch/job-createSecret_test.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-suite: Admission Webhooks > Patch Job > Create Secret Job
-templates:
- - admission-webhooks/job-patch/job-createSecret.yaml
-
-tests:
- - it: should create a Job with token auto-mounting disabled if `controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken` is false
- set:
- controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken: false
- asserts:
- - equal:
- path: spec.template.spec.automountServiceAccountToken
- value: false
diff --git a/charts/ingress-nginx/tests/admission-webhooks/job-patch/job-patchWebhook_test.yaml b/charts/ingress-nginx/tests/admission-webhooks/job-patch/job-patchWebhook_test.yaml
deleted file mode 100644
index ca4c6b4c2..000000000
--- a/charts/ingress-nginx/tests/admission-webhooks/job-patch/job-patchWebhook_test.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-suite: Admission Webhooks > Patch Job > Patch Webhook Job
-templates:
- - admission-webhooks/job-patch/job-patchWebhook.yaml
-
-tests:
- - it: should create a Job with token auto-mounting disabled if `controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken` is false
- set:
- controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken: false
- asserts:
- - equal:
- path: spec.template.spec.automountServiceAccountToken
- value: false
diff --git a/charts/ingress-nginx/tests/admission-webhooks/job-patch/role_test.yaml b/charts/ingress-nginx/tests/admission-webhooks/job-patch/role_test.yaml
deleted file mode 100644
index a236f3d7b..000000000
--- a/charts/ingress-nginx/tests/admission-webhooks/job-patch/role_test.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-suite: Admission Webhooks > Patch Job > Role
-templates:
- - admission-webhooks/job-patch/role.yaml
-
-tests:
- - it: should not create a Role if `controller.admissionWebhooks.patch.rbac.create` is false
- set:
- controller.admissionWebhooks.patch.rbac.create: false
- asserts:
- - hasDocuments:
- count: 0
diff --git a/charts/ingress-nginx/tests/admission-webhooks/job-patch/rolebinding_test.yaml b/charts/ingress-nginx/tests/admission-webhooks/job-patch/rolebinding_test.yaml
deleted file mode 100644
index 74abaa163..000000000
--- a/charts/ingress-nginx/tests/admission-webhooks/job-patch/rolebinding_test.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-suite: Admission Webhooks > Patch Job > RoleBinding
-templates:
- - admission-webhooks/job-patch/rolebinding.yaml
-
-tests:
- - it: should not create a RoleBinding if `controller.admissionWebhooks.patch.rbac.create` is false
- set:
- controller.admissionWebhooks.patch.rbac.create: false
- asserts:
- - hasDocuments:
- count: 0
diff --git a/charts/ingress-nginx/tests/admission-webhooks/job-patch/serviceaccount_test.yaml b/charts/ingress-nginx/tests/admission-webhooks/job-patch/serviceaccount_test.yaml
deleted file mode 100644
index f72bc4383..000000000
--- a/charts/ingress-nginx/tests/admission-webhooks/job-patch/serviceaccount_test.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-suite: Admission Webhooks > Patch Job > ServiceAccount
-templates:
- - admission-webhooks/job-patch/serviceaccount.yaml
-
-tests:
- - it: should not create a ServiceAccount if `controller.admissionWebhooks.patch.serviceAccount.create` is false
- set:
- controller.admissionWebhooks.patch.serviceAccount.create: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a ServiceAccount if `controller.admissionWebhooks.patch.serviceAccount.create` is true
- set:
- controller.admissionWebhooks.patch.serviceAccount.create: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ServiceAccount
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-admission
-
- - it: should create a ServiceAccount with specified name if `controller.admissionWebhooks.patch.serviceAccount.name` is set
- set:
- controller.admissionWebhooks.patch.serviceAccount.name: ingress-nginx-admission-test-sa
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ServiceAccount
- - equal:
- path: metadata.name
- value: ingress-nginx-admission-test-sa
-
- - it: should create a ServiceAccount with token auto-mounting disabled if `controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken` is false
- set:
- controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken: false
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ServiceAccount
- - equal:
- path: automountServiceAccountToken
- value: false
diff --git a/charts/ingress-nginx/tests/admission-webhooks/validating-webhook_test.yaml b/charts/ingress-nginx/tests/admission-webhooks/validating-webhook_test.yaml
deleted file mode 100644
index 47b6b6873..000000000
--- a/charts/ingress-nginx/tests/admission-webhooks/validating-webhook_test.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
-suite: Admission Webhooks > ValidatingWebhookConfiguration
-templates:
- - admission-webhooks/validating-webhook.yaml
-
-tests:
- - it: should not create a ValidatingWebhookConfiguration if `controller.admissionWebhooks.enabled` is false
- set:
- controller.admissionWebhooks.enabled: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a ValidatingWebhookConfiguration if `controller.admissionWebhooks.enabled` is true
- set:
- controller.admissionWebhooks.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ValidatingWebhookConfiguration
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-admission
-
- - it: should create a ValidatingWebhookConfiguration with a custom port if `controller.admissionWebhooks.service.servicePort` is set
- set:
- controller.admissionWebhooks.enabled: true
- controller.admissionWebhooks.service.servicePort: 9443
- asserts:
- - equal:
- path: webhooks[0].clientConfig.service.port
- value: 9443
diff --git a/charts/ingress-nginx/tests/controller-configmap-addheaders_test.yaml b/charts/ingress-nginx/tests/controller-configmap-addheaders_test.yaml
deleted file mode 100644
index e831d50c0..000000000
--- a/charts/ingress-nginx/tests/controller-configmap-addheaders_test.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-suite: Controller > ConfigMap > Add Headers
-templates:
- - controller-configmap-addheaders.yaml
-
-tests:
- - it: should not create a ConfigMap if `controller.addHeaders` is not set
- set:
- controller.addHeaders: null
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a ConfigMap if `controller.addHeaders` is set
- set:
- controller.addHeaders:
- X-Another-Custom-Header: Value
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ConfigMap
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-custom-add-headers
- - equal:
- path: data.X-Another-Custom-Header
- value: Value
diff --git a/charts/ingress-nginx/tests/controller-configmap-proxyheaders_test.yaml b/charts/ingress-nginx/tests/controller-configmap-proxyheaders_test.yaml
deleted file mode 100644
index 0634a3739..000000000
--- a/charts/ingress-nginx/tests/controller-configmap-proxyheaders_test.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-suite: Controller > ConfigMap > Proxy Headers
-templates:
- - controller-configmap-proxyheaders.yaml
-
-tests:
- - it: should not create a ConfigMap if `controller.proxySetHeaders` is not set
- set:
- controller.proxySetHeaders: null
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a ConfigMap if `controller.proxySetHeaders` is set
- set:
- controller.proxySetHeaders:
- X-Custom-Header: Value
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ConfigMap
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-custom-proxy-headers
- - equal:
- path: data.X-Custom-Header
- value: Value
diff --git a/charts/ingress-nginx/tests/controller-configmap_test.yaml b/charts/ingress-nginx/tests/controller-configmap_test.yaml
deleted file mode 100644
index 168b657d6..000000000
--- a/charts/ingress-nginx/tests/controller-configmap_test.yaml
+++ /dev/null
@@ -1,31 +0,0 @@
-suite: Controller > ConfigMap
-templates:
- - controller-configmap.yaml
-
-tests:
- - it: should create a ConfigMap
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ConfigMap
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should create a ConfigMap with templated values if `controller.config` contains templates
- set:
- controller.config:
- template: "test.{{ .Release.Namespace }}.svc.kubernetes.local"
- integer: 12345
- boolean: true
- asserts:
- - equal:
- path: data.template
- value: test.NAMESPACE.svc.kubernetes.local
- - equal:
- path: data.integer
- value: "12345"
- - equal:
- path: data.boolean
- value: "true"
diff --git a/charts/ingress-nginx/tests/controller-daemonset_test.yaml b/charts/ingress-nginx/tests/controller-daemonset_test.yaml
deleted file mode 100644
index 0321fd376..000000000
--- a/charts/ingress-nginx/tests/controller-daemonset_test.yaml
+++ /dev/null
@@ -1,201 +0,0 @@
-suite: Controller > DaemonSet
-templates:
- - controller-daemonset.yaml
-
-tests:
- - it: should create a DaemonSet if `controller.kind` is "DaemonSet"
- set:
- controller.kind: DaemonSet
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: DaemonSet
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should create a DaemonSet with argument `--enable-metrics=true` if `controller.metrics.enabled` is true
- set:
- controller.kind: DaemonSet
- controller.metrics.enabled: true
- asserts:
- - contains:
- path: spec.template.spec.containers[0].args
- content: --enable-metrics=true
-
- - it: should create a DaemonSet without argument `--enable-metrics=true` if `controller.metrics.enabled` is false
- set:
- controller.kind: DaemonSet
- controller.metrics.enabled: false
- asserts:
- - notContains:
- path: spec.template.spec.containers[0].args
- content: --enable-metrics=true
-
- - it: should create a DaemonSet with argument `--controller-class=k8s.io/ingress-nginx-internal` if `controller.ingressClassResource.controllerValue` is "k8s.io/ingress-nginx-internal"
- set:
- controller.kind: DaemonSet
- controller.ingressClassResource.controllerValue: k8s.io/ingress-nginx-internal
- asserts:
- - contains:
- path: spec.template.spec.containers[0].args
- content: --controller-class=k8s.io/ingress-nginx-internal
-
- - it: should create a DaemonSet with resource limits if `controller.resources.limits` is set
- set:
- controller.kind: DaemonSet
- controller.resources.limits.cpu: 500m
- controller.resources.limits.memory: 512Mi
- asserts:
- - equal:
- path: spec.template.spec.containers[0].resources.limits.cpu
- value: 500m
- - equal:
- path: spec.template.spec.containers[0].resources.limits.memory
- value: 512Mi
-
- - it: should create a DaemonSet with topology spread constraints if `controller.topologySpreadConstraints` is set
- set:
- controller.kind: DaemonSet
- controller.topologySpreadConstraints:
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'
- app.kubernetes.io/instance: '{{ .Release.Name }}'
- app.kubernetes.io/component: controller
- topologyKey: topology.kubernetes.io/zone
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'
- app.kubernetes.io/instance: '{{ .Release.Name }}'
- app.kubernetes.io/component: controller
- topologyKey: kubernetes.io/hostname
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
- asserts:
- - equal:
- path: spec.template.spec.topologySpreadConstraints
- value:
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/instance: RELEASE-NAME
- app.kubernetes.io/component: controller
- topologyKey: topology.kubernetes.io/zone
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/instance: RELEASE-NAME
- app.kubernetes.io/component: controller
- topologyKey: kubernetes.io/hostname
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
-
- - it: should create a DaemonSet with affinity if `controller.affinity` is set
- set:
- controller.kind: DaemonSet
- controller.affinity:
- podAntiAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- - labelSelector:
- matchExpressions:
- - key: app.kubernetes.io/name
- operator: In
- values:
- - '{{ include "ingress-nginx.name" . }}'
- - key: app.kubernetes.io/instance
- operator: In
- values:
- - '{{ .Release.Name }}'
- - key: app.kubernetes.io/component
- operator: In
- values:
- - controller
- topologyKey: kubernetes.io/hostname
- asserts:
- - equal:
- path: spec.template.spec.affinity
- value:
- podAntiAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- - labelSelector:
- matchExpressions:
- - key: app.kubernetes.io/name
- operator: In
- values:
- - ingress-nginx
- - key: app.kubernetes.io/instance
- operator: In
- values:
- - RELEASE-NAME
- - key: app.kubernetes.io/component
- operator: In
- values:
- - controller
- topologyKey: kubernetes.io/hostname
-
- - it: should create a DaemonSet with `runAsGroup` if `controller.image.runAsGroup` is set
- set:
- controller.kind: DaemonSet
- controller.image.runAsGroup: 1000
- asserts:
- - equal:
- path: spec.template.spec.containers[0].securityContext.runAsGroup
- value: 1000
-
- - it: should create a DaemonSet with a custom registry if `global.image.registry` is set
- set:
- global.image.registry: custom.registry.io
- controller.kind: DaemonSet
- controller.image.tag: v1.0.0-dev
- controller.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: custom.registry.io/ingress-nginx/controller:v1.0.0-dev@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a DaemonSet with a custom registry if `controller.image.registry` is set
- set:
- controller.kind: DaemonSet
- controller.image.registry: custom.registry.io
- controller.image.tag: v1.0.0-dev
- controller.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: custom.registry.io/ingress-nginx/controller:v1.0.0-dev@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a DaemonSet with a custom image if `controller.image.image` is set
- set:
- controller.kind: DaemonSet
- controller.image.image: custom-repo/custom-image
- controller.image.tag: v1.0.0-dev
- controller.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: registry.k8s.io/custom-repo/custom-image:v1.0.0-dev@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a DaemonSet with a custom tag if `controller.image.tag` is set
- set:
- controller.kind: DaemonSet
- controller.image.tag: custom-tag
- controller.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: registry.k8s.io/ingress-nginx/controller:custom-tag@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a DaemonSet with token auto-mounting disabled if `serviceAccount.automountServiceAccountToken` is false
- set:
- controller.kind: DaemonSet
- serviceAccount.automountServiceAccountToken: false
- asserts:
- - equal:
- path: spec.template.spec.automountServiceAccountToken
- value: false
diff --git a/charts/ingress-nginx/tests/controller-deployment_test.yaml b/charts/ingress-nginx/tests/controller-deployment_test.yaml
deleted file mode 100644
index 18306079e..000000000
--- a/charts/ingress-nginx/tests/controller-deployment_test.yaml
+++ /dev/null
@@ -1,225 +0,0 @@
-suite: Controller > Deployment
-templates:
- - controller-deployment.yaml
-
-tests:
- - it: should create a Deployment
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: Deployment
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should create a Deployment with 3 replicas if `controller.replicaCount` is 3
- set:
- controller.replicaCount: 3
- asserts:
- - equal:
- path: spec.replicas
- value: 3
-
- - it: should create a Deployment without replicas if `controller.autoscaling.enabled` is true
- set:
- controller.autoscaling.enabled: true
- asserts:
- - notExists:
- path: spec.replicas
-
- - it: should create a Deployment without replicas if `controller.keda.enabled` is true
- set:
- controller.keda.enabled: true
- asserts:
- - notExists:
- path: spec.replicas
-
- - it: should create a Deployment with replicas if `controller.autoscaling.enabled` is true and `controller.keda.enabled` is true
- set:
- controller.autoscaling.enabled: true
- controller.keda.enabled: true
- asserts:
- - exists:
- path: spec.replicas
-
- - it: should create a Deployment with argument `--enable-metrics=true` if `controller.metrics.enabled` is true
- set:
- controller.metrics.enabled: true
- asserts:
- - contains:
- path: spec.template.spec.containers[0].args
- content: --enable-metrics=true
-
- - it: should create a Deployment without argument `--enable-metrics=true` if `controller.metrics.enabled` is false
- set:
- controller.metrics.enabled: false
- asserts:
- - notContains:
- path: spec.template.spec.containers[0].args
- content: --enable-metrics=true
-
- - it: should create a Deployment with argument `--controller-class=k8s.io/ingress-nginx-internal` if `controller.ingressClassResource.controllerValue` is "k8s.io/ingress-nginx-internal"
- set:
- controller.ingressClassResource.controllerValue: k8s.io/ingress-nginx-internal
- asserts:
- - contains:
- path: spec.template.spec.containers[0].args
- content: --controller-class=k8s.io/ingress-nginx-internal
-
- - it: should create a Deployment with resource limits if `controller.resources.limits` is set
- set:
- controller.resources.limits.cpu: 500m
- controller.resources.limits.memory: 512Mi
- asserts:
- - equal:
- path: spec.template.spec.containers[0].resources.limits.cpu
- value: 500m
- - equal:
- path: spec.template.spec.containers[0].resources.limits.memory
- value: 512Mi
-
- - it: should create a Deployment with topology spread constraints if `controller.topologySpreadConstraints` is set
- set:
- controller.topologySpreadConstraints:
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'
- app.kubernetes.io/instance: '{{ .Release.Name }}'
- app.kubernetes.io/component: controller
- topologyKey: topology.kubernetes.io/zone
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'
- app.kubernetes.io/instance: '{{ .Release.Name }}'
- app.kubernetes.io/component: controller
- topologyKey: kubernetes.io/hostname
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
- asserts:
- - equal:
- path: spec.template.spec.topologySpreadConstraints
- value:
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/instance: RELEASE-NAME
- app.kubernetes.io/component: controller
- topologyKey: topology.kubernetes.io/zone
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/instance: RELEASE-NAME
- app.kubernetes.io/component: controller
- topologyKey: kubernetes.io/hostname
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
-
- - it: should create a Deployment with affinity if `controller.affinity` is set
- set:
- controller.affinity:
- podAntiAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- - labelSelector:
- matchExpressions:
- - key: app.kubernetes.io/name
- operator: In
- values:
- - '{{ include "ingress-nginx.name" . }}'
- - key: app.kubernetes.io/instance
- operator: In
- values:
- - '{{ .Release.Name }}'
- - key: app.kubernetes.io/component
- operator: In
- values:
- - controller
- topologyKey: kubernetes.io/hostname
- asserts:
- - equal:
- path: spec.template.spec.affinity
- value:
- podAntiAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- - labelSelector:
- matchExpressions:
- - key: app.kubernetes.io/name
- operator: In
- values:
- - ingress-nginx
- - key: app.kubernetes.io/instance
- operator: In
- values:
- - RELEASE-NAME
- - key: app.kubernetes.io/component
- operator: In
- values:
- - controller
- topologyKey: kubernetes.io/hostname
-
- - it: should create a Deployment with `runAsGroup` if `controller.image.runAsGroup` is set
- set:
- controller.image.runAsGroup: 1000
- asserts:
- - equal:
- path: spec.template.spec.containers[0].securityContext.runAsGroup
- value: 1000
-
- - it: should create a Deployment with a custom registry if `global.image.registry` is set
- set:
- global.image.registry: custom.registry.io
- controller.image.tag: v1.0.0-dev
- controller.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: custom.registry.io/ingress-nginx/controller:v1.0.0-dev@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a Deployment with a custom registry if `controller.image.registry` is set
- set:
- controller.image.registry: custom.registry.io
- controller.image.tag: v1.0.0-dev
- controller.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: custom.registry.io/ingress-nginx/controller:v1.0.0-dev@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a Deployment with a custom image if `controller.image.image` is set
- set:
- controller.image.image: custom-repo/custom-image
- controller.image.tag: v1.0.0-dev
- controller.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: registry.k8s.io/custom-repo/custom-image:v1.0.0-dev@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a Deployment with a custom tag if `controller.image.tag` is set
- set:
- controller.image.tag: custom-tag
- controller.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: registry.k8s.io/ingress-nginx/controller:custom-tag@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a Deployment with `progressDeadlineSeconds` if `controller.progressDeadlineSeconds` is set
- set:
- controller.progressDeadlineSeconds: 111
- asserts:
- - equal:
- path: spec.progressDeadlineSeconds
- value: 111
-
- - it: should create a Deployment with token auto-mounting disabled if `serviceAccount.automountServiceAccountToken` is false
- set:
- serviceAccount.automountServiceAccountToken: false
- asserts:
- - equal:
- path: spec.template.spec.automountServiceAccountToken
- value: false
diff --git a/charts/ingress-nginx/tests/controller-hpa_test.yaml b/charts/ingress-nginx/tests/controller-hpa_test.yaml
deleted file mode 100644
index 869d3a690..000000000
--- a/charts/ingress-nginx/tests/controller-hpa_test.yaml
+++ /dev/null
@@ -1,31 +0,0 @@
-suite: Controller > HPA
-templates:
- - controller-hpa.yaml
-
-tests:
- - it: should create an HPA if `controller.autoscaling.enabled` is true
- set:
- controller.autoscaling.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: HorizontalPodAutoscaler
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should not create an HPA if `controller.autoscaling.enabled` is true and `controller.keda.enabled` is true
- set:
- controller.autoscaling.enabled: true
- controller.keda.enabled: true
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should not create an HPA if `controller.kind` is "DaemonSet"
- set:
- controller.kind: DaemonSet
- asserts:
- - hasDocuments:
- count: 0
diff --git a/charts/ingress-nginx/tests/controller-ingressclass-aliases_test.yaml b/charts/ingress-nginx/tests/controller-ingressclass-aliases_test.yaml
deleted file mode 100644
index 9a4a576b7..000000000
--- a/charts/ingress-nginx/tests/controller-ingressclass-aliases_test.yaml
+++ /dev/null
@@ -1,110 +0,0 @@
-suite: Controller > IngressClass > Aliases
-templates:
- - controller-ingressclass-aliases.yaml
-
-tests:
- - it: should not create IngressClass aliases
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create an IngressClass alias with name "nginx-alias" if `controller.ingressClassResource.aliases` is set
- set:
- controller.ingressClassResource.aliases:
- - nginx-alias
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx-alias
-
- - it: should create an IngressClass alias without annotation `ingressclass.kubernetes.io/is-default-class` if `controller.ingressClassResource.default` is true
- set:
- controller.ingressClassResource.aliases:
- - nginx-alias
- controller.ingressClassResource.default: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx-alias
- - notExists:
- path: metadata.annotations["ingressclass.kubernetes.io/is-default-class"]
-
- - it: should create an IngressClass alias with annotations if `controller.ingressClassResource.annotations` is set
- set:
- controller.ingressClassResource.aliases:
- - nginx-alias
- controller.ingressClassResource.annotations:
- my-fancy-annotation: has-a-value
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx-alias
- - equal:
- path: metadata.annotations.my-fancy-annotation
- value: has-a-value
-
- - it: should create an IngressClass alias with controller "k8s.io/ingress-nginx-internal" if `controller.ingressClassResource.controllerValue` is "k8s.io/ingress-nginx-internal"
- set:
- controller.ingressClassResource.aliases:
- - nginx-alias
- controller.ingressClassResource.controllerValue: k8s.io/ingress-nginx-internal
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx-alias
- - equal:
- path: spec.controller
- value: k8s.io/ingress-nginx-internal
-
- - it: should create an IngressClass alias with parameters if `controller.ingressClassResource.parameters` is set
- set:
- controller.ingressClassResource.aliases:
- - nginx-alias
- controller.ingressClassResource.parameters:
- apiGroup: k8s.example.com
- kind: IngressParameters
- name: external-lb
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx-alias
- - equal:
- path: spec.parameters
- value:
- apiGroup: k8s.example.com
- kind: IngressParameters
- name: external-lb
-
- - it: should create two IngressClass aliases if `controller.ingressClassResource.aliases` has two elements
- set:
- controller.ingressClassResource.aliases:
- - nginx-alias-1
- - nginx-alias-2
- asserts:
- - hasDocuments:
- count: 2
- - isKind:
- of: IngressClass
- - matchRegex:
- path: metadata.name
- pattern: nginx-alias-(1|2)
diff --git a/charts/ingress-nginx/tests/controller-ingressclass_test.yaml b/charts/ingress-nginx/tests/controller-ingressclass_test.yaml
deleted file mode 100644
index b3384af32..000000000
--- a/charts/ingress-nginx/tests/controller-ingressclass_test.yaml
+++ /dev/null
@@ -1,93 +0,0 @@
-suite: Controller > IngressClass
-templates:
- - controller-ingressclass.yaml
-
-tests:
- - it: should create an IngressClass
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx
-
- - it: should create an IngressClass with name "nginx-internal" if `controller.ingressClassResource.name` is "nginx-internal"
- set:
- controller.ingressClassResource.name: nginx-internal
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx-internal
-
- - it: "should create an IngressClass with annotation `ingressclass.kubernetes.io/is-default-class: \"true\"` if `controller.ingressClassResource.default` is true"
- set:
- controller.ingressClassResource.default: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx
- - equal:
- path: metadata.annotations["ingressclass.kubernetes.io/is-default-class"]
- value: "true"
-
- - it: should create an IngressClass with annotations if `controller.ingressClassResource.annotations` is set
- set:
- controller.ingressClassResource.annotations:
- my-fancy-annotation: has-a-value
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx
- - equal:
- path: metadata.annotations.my-fancy-annotation
- value: has-a-value
-
- - it: should create an IngressClass with controller "k8s.io/ingress-nginx-internal" if `controller.ingressClassResource.controllerValue` is "k8s.io/ingress-nginx-internal"
- set:
- controller.ingressClassResource.controllerValue: k8s.io/ingress-nginx-internal
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx
- - equal:
- path: spec.controller
- value: k8s.io/ingress-nginx-internal
-
- - it: should create an IngressClass with parameters if `controller.ingressClassResource.parameters` is set
- set:
- controller.ingressClassResource.parameters:
- apiGroup: k8s.example.com
- kind: IngressParameters
- name: external-lb
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: IngressClass
- - equal:
- path: metadata.name
- value: nginx
- - equal:
- path: spec.parameters
- value:
- apiGroup: k8s.example.com
- kind: IngressParameters
- name: external-lb
diff --git a/charts/ingress-nginx/tests/controller-keda_test.yaml b/charts/ingress-nginx/tests/controller-keda_test.yaml
deleted file mode 100644
index 800283483..000000000
--- a/charts/ingress-nginx/tests/controller-keda_test.yaml
+++ /dev/null
@@ -1,31 +0,0 @@
-suite: Controller > KEDA
-templates:
- - controller-keda.yaml
-
-tests:
- - it: should create a ScaledObject if `controller.keda.enabled` is true
- set:
- controller.keda.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ScaledObject
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should not create a ScaledObject if `controller.keda.enabled` is true and `controller.autoscaling.enabled` is true
- set:
- controller.keda.enabled: true
- controller.autoscaling.enabled: true
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should not create a ScaledObject if `controller.kind` is "DaemonSet"
- set:
- controller.kind: DaemonSet
- asserts:
- - hasDocuments:
- count: 0
diff --git a/charts/ingress-nginx/tests/controller-networkpolicy_test.yaml b/charts/ingress-nginx/tests/controller-networkpolicy_test.yaml
deleted file mode 100644
index 5de12e9c4..000000000
--- a/charts/ingress-nginx/tests/controller-networkpolicy_test.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-suite: Controller > NetworkPolicy
-templates:
- - controller-networkpolicy.yaml
-
-tests:
- - it: should not create a NetworkPolicy if `controller.networkPolicy.enabled` is false
- set:
- controller.networkPolicy.enabled: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a NetworkPolicy if `controller.networkPolicy.enabled` is true
- set:
- controller.networkPolicy.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: NetworkPolicy
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
diff --git a/charts/ingress-nginx/tests/controller-poddisruptionbudget_test.yaml b/charts/ingress-nginx/tests/controller-poddisruptionbudget_test.yaml
deleted file mode 100644
index 5ac986fc7..000000000
--- a/charts/ingress-nginx/tests/controller-poddisruptionbudget_test.yaml
+++ /dev/null
@@ -1,102 +0,0 @@
-suite: Controller > PodDisruptionBudget
-templates:
- - controller-poddisruptionbudget.yaml
-
-tests:
- - it: should create a PodDisruptionBudget if `controller.replicaCount` is greater than 1
- set:
- controller.replicaCount: 2
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: PodDisruptionBudget
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should not create a PodDisruptionBudget if `controller.replicaCount` is less than or equal 1
- set:
- controller.replicaCount: 1
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a PodDisruptionBudget if `controller.autoscaling.enabled` is true and `controller.autoscaling.minReplicas` is greater than 1
- set:
- controller.autoscaling.enabled: true
- controller.autoscaling.minReplicas: 2
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: PodDisruptionBudget
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should not create a PodDisruptionBudget if `controller.autoscaling.enabled` is true and `controller.autoscaling.minReplicas` is less than or equal 1
- set:
- controller.autoscaling.enabled: true
- controller.autoscaling.minReplicas: 1
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a PodDisruptionBudget if `controller.keda.enabled` is true and `controller.keda.minReplicas` is greater than 1
- set:
- controller.keda.enabled: true
- controller.keda.minReplicas: 2
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: PodDisruptionBudget
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should not create a PodDisruptionBudget if `controller.keda.enabled` is true and `controller.keda.minReplicas` is less than or equal 1
- set:
- controller.keda.enabled: true
- controller.keda.minReplicas: 1
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should not create a PodDisruptionBudget if `controller.autoscaling.enabled` is true and `controller.keda.enabled` is true
- set:
- controller.autoscaling.enabled: true
- controller.keda.enabled: true
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a PodDisruptionBudget without `minAvailable` and with `maxUnavailable` if `controller.minAvailable` and `controller.maxUnavailable` are set
- set:
- controller.replicaCount: 2
- controller.minAvailable: 1
- controller.maxUnavailable: 1
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: PodDisruptionBudget
- - notExists:
- path: spec.minAvailable
- - equal:
- path: spec.maxUnavailable
- value: 1
-
- - it: should create a PodDisruptionBudget with `unhealthyPodEvictionPolicy` if `controller.unhealthyPodEvictionPolicy` is set
- set:
- controller.replicaCount: 2
- controller.unhealthyPodEvictionPolicy: IfHealthyBudget
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: PodDisruptionBudget
- - equal:
- path: spec.unhealthyPodEvictionPolicy
- value: IfHealthyBudget
diff --git a/charts/ingress-nginx/tests/controller-prometheusrule_test.yaml b/charts/ingress-nginx/tests/controller-prometheusrule_test.yaml
deleted file mode 100644
index 2d330919d..000000000
--- a/charts/ingress-nginx/tests/controller-prometheusrule_test.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-suite: Controller > PrometheusRule
-templates:
- - controller-prometheusrule.yaml
-
-tests:
- - it: should create a PrometheusRule if `controller.metrics.prometheusRule.enabled` is true
- set:
- controller.metrics.enabled: true
- controller.metrics.prometheusRule.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: PrometheusRule
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should create a PrometheusRule with annotations if `controller.metrics.prometheusRule.annotations` is set
- set:
- controller.metrics.enabled: true
- controller.metrics.prometheusRule.enabled: true
- controller.metrics.prometheusRule.annotations:
- my-little-annotation: test-value
- asserts:
- - equal:
- path: metadata.annotations
- value:
- my-little-annotation: test-value
diff --git a/charts/ingress-nginx/tests/controller-service-internal_test.yaml b/charts/ingress-nginx/tests/controller-service-internal_test.yaml
deleted file mode 100644
index c0ece07d5..000000000
--- a/charts/ingress-nginx/tests/controller-service-internal_test.yaml
+++ /dev/null
@@ -1,75 +0,0 @@
-suite: Controller > Service > Internal
-templates:
- - controller-service-internal.yaml
-
-tests:
- - it: should not create an internal Service if `controller.service.internal.enabled` is false
- set:
- controller.service.internal.enabled: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create an internal Service if `controller.service.internal.enabled` is true and `controller.service.internal.annotations` are set
- set:
- controller.service.internal.enabled: true
- controller.service.internal.annotations:
- test.annotation: "true"
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: Service
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller-internal
-
- - it: should create a Service without `clusterIPs` if `controller.service.internal.clusterIPs` is not set
- set:
- controller.service.internal.enabled: true
- controller.service.internal.annotations:
- test.annotation: "true"
- asserts:
- - notExists:
- path: spec.clusterIPs
-
- - it: should create a Service with `clusterIPs` if `controller.service.internal.clusterIPs` is set
- set:
- controller.service.internal.enabled: true
- controller.service.internal.annotations:
- test.annotation: "true"
- controller.service.internal.clusterIPs:
- - 10.0.0.1
- - fd00::1
- asserts:
- - equal:
- path: spec.clusterIPs
- value:
- - 10.0.0.1
- - fd00::1
-
- - it: should create a Service with `trafficDistribution` if `controller.service.internal.trafficDistribution` is set
- capabilities:
- majorVersion: 1
- minorVersion: 31
- set:
- controller.service.internal.enabled: true
- controller.service.internal.annotations:
- test.annotation: "true"
- controller.service.internal.trafficDistribution: PreferClose
- asserts:
- - equal:
- path: spec.trafficDistribution
- value: PreferClose
-
- - it: should create a Service with labels if `controller.service.internal.labels` is set
- set:
- controller.service.internal.enabled: true
- controller.service.internal.annotations:
- test.annotation: "true"
- controller.service.internal.labels:
- external-dns.alpha.kubernetes.io/hostname: internal.example.com
- asserts:
- - equal:
- path: metadata.labels["external-dns.alpha.kubernetes.io/hostname"]
- value: internal.example.com
diff --git a/charts/ingress-nginx/tests/controller-service-metrics_test.yaml b/charts/ingress-nginx/tests/controller-service-metrics_test.yaml
deleted file mode 100644
index ddb412e5b..000000000
--- a/charts/ingress-nginx/tests/controller-service-metrics_test.yaml
+++ /dev/null
@@ -1,41 +0,0 @@
-suite: Controller > Service > Metrics
-templates:
- - controller-service-metrics.yaml
-
-tests:
- - it: should not create a metrics Service if `controller.metrics.enabled` is false and `controller.metrics.service.enabled` is false
- set:
- controller.metrics.enabled: false
- controller.metrics.service.enabled: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should not create a metrics Service if `controller.metrics.enabled` is false and `controller.metrics.service.enabled` is true
- set:
- controller.metrics.enabled: false
- controller.metrics.service.enabled: true
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should not create a metrics Service if `controller.metrics.enabled` is true and `controller.metrics.service.enabled` is false
- set:
- controller.metrics.enabled: true
- controller.metrics.service.enabled: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a metrics Service if `controller.metrics.enabled` is true and `controller.metrics.service.enabled` is true
- set:
- controller.metrics.enabled: true
- controller.metrics.service.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: Service
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller-metrics
diff --git a/charts/ingress-nginx/tests/controller-service-webhook_test.yaml b/charts/ingress-nginx/tests/controller-service-webhook_test.yaml
deleted file mode 100644
index 1c759edbe..000000000
--- a/charts/ingress-nginx/tests/controller-service-webhook_test.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
-suite: Controller > Service > Webhook
-templates:
- - controller-service-webhook.yaml
-
-tests:
- - it: should not create a webhook Service if `controller.admissionWebhooks.enabled` is false
- set:
- controller.admissionWebhooks.enabled: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a webhook Service if `controller.admissionWebhooks.enabled` is true
- set:
- controller.admissionWebhooks.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: Service
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller-admission
-
- - it: should create a webhook Service with a custom port if `controller.admissionWebhooks.service.servicePort` is set
- set:
- controller.admissionWebhooks.enabled: true
- controller.admissionWebhooks.service.servicePort: 9443
- asserts:
- - equal:
- path: spec.ports[0].port
- value: 9443
diff --git a/charts/ingress-nginx/tests/controller-service_test.yaml b/charts/ingress-nginx/tests/controller-service_test.yaml
deleted file mode 100644
index f3e8cf030..000000000
--- a/charts/ingress-nginx/tests/controller-service_test.yaml
+++ /dev/null
@@ -1,74 +0,0 @@
-suite: Controller > Service
-templates:
- - controller-service.yaml
-
-tests:
- - it: should not create a Service if `controller.service.external.enabled` is false
- set:
- controller.service.external.enabled: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a Service if `controller.service.external.enabled` is true
- set:
- controller.service.external.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: Service
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should create a Service of type "NodePort" if `controller.service.external.enabled` is true and `controller.service.type` is "NodePort"
- set:
- controller.service.external.enabled: true
- controller.service.type: NodePort
- asserts:
- - equal:
- path: spec.type
- value: NodePort
-
- - it: should create a Service without `clusterIPs` if `controller.service.clusterIPs` is not set
- set:
- controller.service.external.enabled: true
- asserts:
- - notExists:
- path: spec.clusterIPs
-
- - it: should create a Service with `clusterIPs` if `controller.service.clusterIPs` is set
- set:
- controller.service.external.enabled: true
- controller.service.clusterIPs:
- - 10.0.0.1
- - fd00::1
- asserts:
- - equal:
- path: spec.clusterIPs
- value:
- - 10.0.0.1
- - fd00::1
-
- - it: should create a Service with `trafficDistribution` if `controller.service.trafficDistribution` is set
- capabilities:
- majorVersion: 1
- minorVersion: 31
- set:
- controller.service.external.enabled: true
- controller.service.trafficDistribution: PreferClose
- asserts:
- - equal:
- path: spec.trafficDistribution
- value: PreferClose
-
- - it: should create a Service with labels if `controller.service.external.labels` is set
- set:
- controller.service.external.enabled: true
- controller.service.external.labels:
- external-dns.alpha.kubernetes.io/hostname: external.example.com
- asserts:
- - equal:
- path: metadata.labels["external-dns.alpha.kubernetes.io/hostname"]
- value: external.example.com
diff --git a/charts/ingress-nginx/tests/controller-serviceaccount_test.yaml b/charts/ingress-nginx/tests/controller-serviceaccount_test.yaml
deleted file mode 100644
index 928e53772..000000000
--- a/charts/ingress-nginx/tests/controller-serviceaccount_test.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-suite: Controller > ServiceAccount
-templates:
- - controller-serviceaccount.yaml
-
-tests:
- - it: should not create a ServiceAccount if `serviceAccount.create` is false
- set:
- serviceAccount.create: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a ServiceAccount if `serviceAccount.create` is true
- set:
- serviceAccount.create: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ServiceAccount
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx
-
- - it: should create a ServiceAccount with specified name if `serviceAccount.name` is set
- set:
- serviceAccount.name: ingress-nginx-admission-test-sa
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ServiceAccount
- - equal:
- path: metadata.name
- value: ingress-nginx-admission-test-sa
-
- - it: should create a ServiceAccount with token auto-mounting disabled if `serviceAccount.automountServiceAccountToken` is false
- set:
- serviceAccount.automountServiceAccountToken: false
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ServiceAccount
- - equal:
- path: automountServiceAccountToken
- value: false
diff --git a/charts/ingress-nginx/tests/controller-servicemonitor_test.yaml b/charts/ingress-nginx/tests/controller-servicemonitor_test.yaml
deleted file mode 100644
index 7edee98c5..000000000
--- a/charts/ingress-nginx/tests/controller-servicemonitor_test.yaml
+++ /dev/null
@@ -1,79 +0,0 @@
-suite: Controller > ServiceMonitor
-templates:
- - controller-servicemonitor.yaml
-
-tests:
- - it: should create a ServiceMonitor if `controller.metrics.serviceMonitor.enabled` is true
- set:
- controller.metrics.enabled: true
- controller.metrics.serviceMonitor.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ServiceMonitor
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-controller
-
- - it: should create a ServiceMonitor with annotations if `controller.metrics.serviceMonitor.annotations` is set
- set:
- controller.metrics.enabled: true
- controller.metrics.serviceMonitor.enabled: true
- controller.metrics.serviceMonitor.annotations:
- my-little-annotation: test-value
- asserts:
- - equal:
- path: metadata.annotations
- value:
- my-little-annotation: test-value
-
- - it: should create a ServiceMonitor with `labelLimit` if `controller.metrics.serviceMonitor.labelLimit` is set
- set:
- controller.metrics.enabled: true
- controller.metrics.serviceMonitor.enabled: true
- controller.metrics.serviceMonitor.labelLimit: 20
- asserts:
- - equal:
- path: spec.labelLimit
- value: 20
-
- - it: should create a ServiceMonitor with `labelNameLengthLimit` if `controller.metrics.serviceMonitor.labelNameLengthLimit` is set
- set:
- controller.metrics.enabled: true
- controller.metrics.serviceMonitor.enabled: true
- controller.metrics.serviceMonitor.labelNameLengthLimit: 50
- asserts:
- - equal:
- path: spec.labelNameLengthLimit
- value: 50
-
- - it: should create a ServiceMonitor with `labelValueLengthLimit` if `controller.metrics.serviceMonitor.labelValueLengthLimit` is set
- set:
- controller.metrics.enabled: true
- controller.metrics.serviceMonitor.enabled: true
- controller.metrics.serviceMonitor.labelValueLengthLimit: 50
- asserts:
- - equal:
- path: spec.labelValueLengthLimit
- value: 50
-
- - it: should create a ServiceMonitor with `sampleLimit` if `controller.metrics.serviceMonitor.sampleLimit` is set
- set:
- controller.metrics.enabled: true
- controller.metrics.serviceMonitor.enabled: true
- controller.metrics.serviceMonitor.sampleLimit: 5000
- asserts:
- - equal:
- path: spec.sampleLimit
- value: 5000
-
- - it: should create a ServiceMonitor with `targetLimit` if `controller.metrics.serviceMonitor.targetLimit` is set
- set:
- controller.metrics.enabled: true
- controller.metrics.serviceMonitor.enabled: true
- controller.metrics.serviceMonitor.targetLimit: 100
- asserts:
- - equal:
- path: spec.targetLimit
- value: 100
diff --git a/charts/ingress-nginx/tests/default-backend-deployment_test.yaml b/charts/ingress-nginx/tests/default-backend-deployment_test.yaml
deleted file mode 100644
index 11d400c46..000000000
--- a/charts/ingress-nginx/tests/default-backend-deployment_test.yaml
+++ /dev/null
@@ -1,198 +0,0 @@
-suite: Default Backend > Deployment
-templates:
- - default-backend-deployment.yaml
-
-tests:
- - it: should not create a Deployment if `defaultBackend.enabled` is false
- set:
- defaultBackend.enabled: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a Deployment if `defaultBackend.enabled` is true
- set:
- defaultBackend.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: Deployment
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-defaultbackend
-
- - it: should create a Deployment with 3 replicas if `defaultBackend.replicaCount` is 3
- set:
- defaultBackend.enabled: true
- defaultBackend.replicaCount: 3
- asserts:
- - equal:
- path: spec.replicas
- value: 3
-
- - it: should create a Deployment without replicas if `defaultBackend.autoscaling.enabled` is true
- set:
- defaultBackend.enabled: true
- defaultBackend.autoscaling.enabled: true
- asserts:
- - notExists:
- path: spec.replicas
-
- - it: should create a Deployment with resource limits if `defaultBackend.resources.limits` is set
- set:
- defaultBackend.enabled: true
- defaultBackend.resources.limits.cpu: 500m
- defaultBackend.resources.limits.memory: 512Mi
- asserts:
- - equal:
- path: spec.template.spec.containers[0].resources.limits.cpu
- value: 500m
- - equal:
- path: spec.template.spec.containers[0].resources.limits.memory
- value: 512Mi
-
- - it: should create a Deployment with topology spread constraints if `defaultBackend.topologySpreadConstraints` is set
- set:
- defaultBackend.enabled: true
- defaultBackend.topologySpreadConstraints:
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'
- app.kubernetes.io/instance: '{{ .Release.Name }}'
- app.kubernetes.io/component: default-backend
- topologyKey: topology.kubernetes.io/zone
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'
- app.kubernetes.io/instance: '{{ .Release.Name }}'
- app.kubernetes.io/component: default-backend
- topologyKey: kubernetes.io/hostname
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
- asserts:
- - equal:
- path: spec.template.spec.topologySpreadConstraints
- value:
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/instance: RELEASE-NAME
- app.kubernetes.io/component: default-backend
- topologyKey: topology.kubernetes.io/zone
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
- - labelSelector:
- matchLabels:
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/instance: RELEASE-NAME
- app.kubernetes.io/component: default-backend
- topologyKey: kubernetes.io/hostname
- maxSkew: 1
- whenUnsatisfiable: ScheduleAnyway
-
- - it: should create a Deployment with affinity if `defaultBackend.affinity` is set
- set:
- defaultBackend.enabled: true
- defaultBackend.affinity:
- podAntiAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- - labelSelector:
- matchExpressions:
- - key: app.kubernetes.io/name
- operator: In
- values:
- - '{{ include "ingress-nginx.name" . }}'
- - key: app.kubernetes.io/instance
- operator: In
- values:
- - '{{ .Release.Name }}'
- - key: app.kubernetes.io/component
- operator: In
- values:
- - default-backend
- topologyKey: kubernetes.io/hostname
- asserts:
- - equal:
- path: spec.template.spec.affinity
- value:
- podAntiAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- - labelSelector:
- matchExpressions:
- - key: app.kubernetes.io/name
- operator: In
- values:
- - ingress-nginx
- - key: app.kubernetes.io/instance
- operator: In
- values:
- - RELEASE-NAME
- - key: app.kubernetes.io/component
- operator: In
- values:
- - default-backend
- topologyKey: kubernetes.io/hostname
-
- - it: should create a Deployment with `runAsGroup` if `defaultBackend.image.runAsGroup` is set
- set:
- defaultBackend.enabled: true
- defaultBackend.image.runAsGroup: 1000
- asserts:
- - equal:
- path: spec.template.spec.containers[0].securityContext.runAsGroup
- value: 1000
-
- - it: should create a Deployment with a custom registry if `global.image.registry` is set
- set:
- global.image.registry: custom.registry.io
- defaultBackend.enabled: true
- defaultBackend.image.tag: v1.0.0-dev
- defaultBackend.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: custom.registry.io/defaultbackend-amd64:v1.0.0-dev@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a Deployment with a custom registry if `defaultBackend.image.registry` is set
- set:
- defaultBackend.enabled: true
- defaultBackend.image.registry: custom.registry.io
- defaultBackend.image.tag: v1.0.0-dev
- defaultBackend.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: custom.registry.io/defaultbackend-amd64:v1.0.0-dev@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a Deployment with a custom image if `defaultBackend.image.image` is set
- set:
- defaultBackend.enabled: true
- defaultBackend.image.image: custom-repo/custom-image
- defaultBackend.image.tag: v1.0.0-dev
- defaultBackend.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: registry.k8s.io/custom-repo/custom-image:v1.0.0-dev@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a Deployment with a custom tag if `defaultBackend.image.tag` is set
- set:
- defaultBackend.enabled: true
- defaultBackend.image.tag: custom-tag
- defaultBackend.image.digest: sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
- asserts:
- - equal:
- path: spec.template.spec.containers[0].image
- value: registry.k8s.io/defaultbackend-amd64:custom-tag@sha256:faa2d18687f734994b6bd9e309e7a73852a81c30e1b8f63165fcd4f0a087e3cd
-
- - it: should create a Deployment with token auto-mounting disabled if `defaultBackend.serviceAccount.automountServiceAccountToken` is false
- set:
- defaultBackend.enabled: true
- defaultBackend.serviceAccount.automountServiceAccountToken: false
- asserts:
- - equal:
- path: spec.template.spec.automountServiceAccountToken
- value: false
diff --git a/charts/ingress-nginx/tests/default-backend-extra-configmaps_test.yaml b/charts/ingress-nginx/tests/default-backend-extra-configmaps_test.yaml
deleted file mode 100644
index aa600e749..000000000
--- a/charts/ingress-nginx/tests/default-backend-extra-configmaps_test.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-suite: Default Backend > Extra ConfigMaps
-templates:
- - default-backend-extra-configmaps.yaml
-
-tests:
- - it: should not create a ConfigMap if `defaultBackend.extraConfigMaps` is empty
- set:
- defaultBackend.enabled: true
- defaultBackend.extraConfigMaps: []
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create one ConfigMap if `defaultBackend.extraConfigMaps` has one element
- set:
- defaultBackend.enabled: true
- defaultBackend.extraConfigMaps:
- - name: my-configmap-1
- data:
- key1: value1
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ConfigMap
- - equal:
- path: metadata.name
- value: my-configmap-1
- - equal:
- path: data.key1
- value: value1
-
- - it: should create two ConfigMaps if `defaultBackend.extraConfigMaps` has two elements
- set:
- defaultBackend.enabled: true
- defaultBackend.extraConfigMaps:
- - name: my-configmap-1
- data:
- key1: value1
- - name: my-configmap-2
- data:
- key2: value2
- asserts:
- - hasDocuments:
- count: 2
- - isKind:
- of: ConfigMap
- - matchRegex:
- path: metadata.name
- pattern: my-configmap-(1|2)
diff --git a/charts/ingress-nginx/tests/default-backend-poddisruptionbudget_test.yaml b/charts/ingress-nginx/tests/default-backend-poddisruptionbudget_test.yaml
deleted file mode 100644
index bfe98e883..000000000
--- a/charts/ingress-nginx/tests/default-backend-poddisruptionbudget_test.yaml
+++ /dev/null
@@ -1,79 +0,0 @@
-suite: Default Backend > PodDisruptionBudget
-templates:
- - default-backend-poddisruptionbudget.yaml
-
-tests:
- - it: should create a PodDisruptionBudget if `defaultBackend.replicaCount` is greater than 1
- set:
- defaultBackend.enabled: true
- defaultBackend.replicaCount: 2
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: PodDisruptionBudget
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-defaultbackend
-
- - it: should not create a PodDisruptionBudget if `defaultBackend.replicaCount` is less than or equal 1
- set:
- defaultBackend.enabled: true
- defaultBackend.replicaCount: 1
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a PodDisruptionBudget if `defaultBackend.autoscaling.enabled` is true and `defaultBackend.autoscaling.minReplicas` is greater than 1
- set:
- defaultBackend.enabled: true
- defaultBackend.autoscaling.enabled: true
- defaultBackend.autoscaling.minReplicas: 2
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: PodDisruptionBudget
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-defaultbackend
-
- - it: should not create a PodDisruptionBudget if `defaultBackend.autoscaling.enabled` is true and `defaultBackend.autoscaling.minReplicas` is less than or equal 1
- set:
- defaultBackend.enabled: true
- defaultBackend.autoscaling.enabled: true
- defaultBackend.autoscaling.minReplicas: 1
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a PodDisruptionBudget without `minAvailable` and with `maxUnavailable` if `defaultBackend.minAvailable` and `defaultBackend.maxUnavailable` are set
- set:
- defaultBackend.enabled: true
- defaultBackend.replicaCount: 2
- defaultBackend.minAvailable: 1
- defaultBackend.maxUnavailable: 1
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: PodDisruptionBudget
- - notExists:
- path: spec.minAvailable
- - equal:
- path: spec.maxUnavailable
- value: 1
-
- - it: should create a PodDisruptionBudget with `unhealthyPodEvictionPolicy` if `defaultBackend.unhealthyPodEvictionPolicy` is set
- set:
- defaultBackend.enabled: true
- defaultBackend.replicaCount: 2
- defaultBackend.unhealthyPodEvictionPolicy: IfHealthyBudget
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: PodDisruptionBudget
- - equal:
- path: spec.unhealthyPodEvictionPolicy
- value: IfHealthyBudget
diff --git a/charts/ingress-nginx/tests/default-backend-service_test.yaml b/charts/ingress-nginx/tests/default-backend-service_test.yaml
deleted file mode 100644
index 521d82091..000000000
--- a/charts/ingress-nginx/tests/default-backend-service_test.yaml
+++ /dev/null
@@ -1,52 +0,0 @@
-suite: Default Backend > Service
-templates:
- - default-backend-service.yaml
-
-tests:
- - it: should not create a Service if `defaultBackend.enabled` is false
- set:
- defaultBackend.enabled: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a Service if `defaultBackend.enabled` is true
- set:
- defaultBackend.enabled: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: Service
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-defaultbackend
-
- - it: should create a Service with port 80 if `defaultBackend.service.port` is 80
- set:
- defaultBackend.enabled: true
- defaultBackend.service.port: 80
- asserts:
- - equal:
- path: spec.ports[0].port
- value: 80
-
- - it: should create a Service without `clusterIPs` if `defaultBackend.service.clusterIPs` is not set
- set:
- defaultBackend.enabled: true
- asserts:
- - notExists:
- path: spec.clusterIPs
-
- - it: should create a Service with `clusterIPs` if `defaultBackend.service.clusterIPs` is set
- set:
- defaultBackend.enabled: true
- defaultBackend.service.clusterIPs:
- - 10.0.0.1
- - fd00::1
- asserts:
- - equal:
- path: spec.clusterIPs
- value:
- - 10.0.0.1
- - fd00::1
diff --git a/charts/ingress-nginx/tests/default-backend-serviceaccount_test.yaml b/charts/ingress-nginx/tests/default-backend-serviceaccount_test.yaml
deleted file mode 100644
index 05a815d0a..000000000
--- a/charts/ingress-nginx/tests/default-backend-serviceaccount_test.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-suite: Default Backend > ServiceAccount
-templates:
- - default-backend-serviceaccount.yaml
-
-tests:
- - it: should not create a ServiceAccount if `defaultBackend.serviceAccount.create` is false
- set:
- defaultBackend.enabled: true
- defaultBackend.serviceAccount.create: false
- asserts:
- - hasDocuments:
- count: 0
-
- - it: should create a ServiceAccount if `defaultBackend.serviceAccount.create` is true
- set:
- defaultBackend.enabled: true
- defaultBackend.serviceAccount.create: true
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ServiceAccount
- - equal:
- path: metadata.name
- value: RELEASE-NAME-ingress-nginx-backend
-
- - it: should create a ServiceAccount with specified name if `defaultBackend.serviceAccount.name` is set
- set:
- defaultBackend.enabled: true
- defaultBackend.serviceAccount.name: ingress-nginx-admission-test-sa
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ServiceAccount
- - equal:
- path: metadata.name
- value: ingress-nginx-admission-test-sa
-
- - it: should create a ServiceAccount with token auto-mounting disabled if `defaultBackend.serviceAccount.automountServiceAccountToken` is false
- set:
- defaultBackend.enabled: true
- defaultBackend.serviceAccount.automountServiceAccountToken: false
- asserts:
- - hasDocuments:
- count: 1
- - isKind:
- of: ServiceAccount
- - equal:
- path: automountServiceAccountToken
- value: false
diff --git a/charts/ingress-nginx/values.yaml b/charts/ingress-nginx/values.yaml
index ccebb9ceb..42fe0c77e 100644
--- a/charts/ingress-nginx/values.yaml
+++ b/charts/ingress-nginx/values.yaml
@@ -1,217 +1,146 @@
## nginx configuration
-## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/index.md
+## Ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/index.md
##
-global:
- image:
- # -- Registry host to pull images from.
- registry: registry.k8s.io
## Overrides for generated resource names
# See templates/_helpers.tpl
# nameOverride:
# fullnameOverride:
-# -- Override the deployment namespace; defaults to .Release.Namespace
-namespaceOverride: ""
-## Labels to apply to all resources
-##
-commonLabels: {}
-# scmhash: abc123
-# myLabel: aakkmd
-
controller:
name: controller
- enableAnnotationValidations: true
image:
- ## Keep false as default for now!
- chroot: false
- # registry: registry.k8s.io
+ registry: k8s.gcr.io
image: ingress-nginx/controller
- ## for backwards compatibility consider setting the full image url via the repository value below
- ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
- ## repository:
- tag: "v1.12.0"
- digest: sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
- digestChroot: sha256:87c88e1c38a6c8d4483c8f70b69e2cca49853bb3ec3124b9b1be648edf139af3
+ # for backwards compatibility consider setting the full image url via the repository value below
+ # use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
+ # repository:
+ tag: "v0.47.0"
+ digest: sha256:a1e4efc107be0bb78f32eaec37bef17d7a0c81bec8066cdf2572508d21351d0b
pullPolicy: IfNotPresent
- runAsNonRoot: true
- # -- This value must not be changed using the official image.
- # uid=101(www-data) gid=82(www-data) groups=82(www-data)
+ # www-data -> uid 101
runAsUser: 101
- # -- This value must not be changed using the official image.
- # uid=101(www-data) gid=82(www-data) groups=82(www-data)
- runAsGroup: 82
- allowPrivilegeEscalation: false
- seccompProfile:
- type: RuntimeDefault
- readOnlyRootFilesystem: false
- # -- Configures the controller container name
+ allowPrivilegeEscalation: true
+
+ # Use an existing PSP instead of creating one
+ existingPsp: ""
+
+ # Configures the controller container name
containerName: controller
- # -- Configures the ports that the nginx-controller listens on
+
+ # Configures the ports the nginx-controller listens on
containerPort:
http: 80
https: 443
- # -- Global configuration passed to the ConfigMap consumed by the controller. Values may contain Helm templates.
- # Ref.: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/
+
+ # Will add custom configuration options to Nginx https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/
config: {}
- # -- Annotations to be added to the controller config configuration configmap.
+
+ ## Annotations to be added to the controller config configuration configmap
+ ##
configAnnotations: {}
- # -- Will add custom headers before sending traffic to backends according to https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/custom-headers
+
+ # Will add custom headers before sending traffic to backends according to https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/customization/custom-headers
proxySetHeaders: {}
- # -- Will add custom headers before sending response traffic to the client according to: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#add-headers
+
+ # Will add custom headers before sending response traffic to the client according to: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#add-headers
addHeaders: {}
- # -- Optionally customize the pod dnsConfig.
+
+ # Optionally customize the pod dnsConfig.
dnsConfig: {}
- # -- Optionally customize the pod hostAliases.
- hostAliases: []
- # - ip: 127.0.0.1
- # hostnames:
- # - foo.local
- # - bar.local
- # - ip: 10.1.2.3
- # hostnames:
- # - foo.remote
- # - bar.remote
- # -- Optionally customize the pod hostname.
- hostname: {}
- # -- Optionally change this to ClusterFirstWithHostNet in case you have 'hostNetwork: true'.
+
+ # Optionally change this to ClusterFirstWithHostNet in case you have 'hostNetwork: true'.
# By default, while using host network, name resolution uses the host's DNS. If you wish nginx-controller
# to keep resolving names inside the k8s network, use ClusterFirstWithHostNet.
dnsPolicy: ClusterFirst
- # -- Bare-metal considerations via the host network https://kubernetes.github.io/ingress-nginx/deploy/baremetal/#via-the-host-network
- # Ingress status was blank because there is no Service exposing the Ingress-Nginx Controller in a configuration using the host network, the default --publish-service flag used in standard cloud setups does not apply
+
+ # Bare-metal considerations via the host network https://kubernetes.github.io/ingress-nginx/deploy/baremetal/#via-the-host-network
+ # Ingress status was blank because there is no Service exposing the NGINX Ingress controller in a configuration using the host network, the default --publish-service flag used in standard cloud setups does not apply
reportNodeInternalIp: false
- # -- Process Ingress objects without ingressClass annotation/ingressClassName field
- # Overrides value for --watch-ingress-without-class flag of the controller binary
- # Defaults to false
- watchIngressWithoutClass: false
- # -- Process IngressClass per name (additionally as per spec.controller).
- ingressClassByName: false
- # -- This configuration enables Topology Aware Routing feature, used together with service annotation service.kubernetes.io/topology-mode="auto"
- # Defaults to false
- enableTopologyAwareRouting: false
- # -- This configuration disable Nginx Controller Leader Election
- disableLeaderElection: false
- # -- Duration a leader election is valid before it's getting re-elected, e.g. `15s`, `10m` or `1h`. (Default: 30s)
- electionTTL: ""
- # -- This configuration defines if Ingress Controller should allow users to set
- # their own *-snippet annotations, otherwise this is forbidden / dropped
- # when users add those annotations.
- # Global snippets in ConfigMap are still respected
- allowSnippetAnnotations: false
- # -- Required for use with CNI based kubernetes installations (such as ones set up by kubeadm),
+
+ # Required for use with CNI based kubernetes installations (such as ones set up by kubeadm),
# since CNI and hostport don't mix yet. Can be deprecated once https://github.com/kubernetes/kubernetes/issues/23920
# is merged
hostNetwork: false
+
## Use host ports 80 and 443
## Disabled by default
+ ##
hostPort:
- # -- Enable 'hostPort' or not
enabled: false
ports:
- # -- 'hostPort' http port
http: 80
- # -- 'hostPort' https port
https: 443
- # NetworkPolicy for controller component.
- networkPolicy:
- # -- Enable 'networkPolicy' or not
- enabled: false
- # -- Election ID to use for status update, by default it uses the controller name combined with a suffix of 'leader'
- electionID: ""
- # -- This section refers to the creation of the IngressClass resource.
- # IngressClasses are immutable and cannot be changed after creation.
- # We do not support namespaced IngressClasses, yet, so a ClusterRole and a ClusterRoleBinding is required.
- ingressClassResource:
- # -- Name of the IngressClass
- name: nginx
- # -- Create the IngressClass or not
- enabled: true
- # -- If true, Ingresses without `ingressClassName` get assigned to this IngressClass on creation.
- # Ingress creation gets rejected if there are multiple default IngressClasses.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class
- default: false
- # -- Annotations to be added to the IngressClass resource.
- annotations: {}
- # -- Controller of the IngressClass. An Ingress Controller looks for IngressClasses it should reconcile by this value.
- # This value is also being set as the `--controller-class` argument of this Ingress Controller.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class
- controllerValue: k8s.io/ingress-nginx
- # -- Aliases of this IngressClass. Creates copies with identical settings but the respective alias as name.
- # Useful for development environments with only one Ingress Controller but production-like Ingress resources.
- # `default` gets enabled on the original IngressClass only.
- aliases: []
- # aliases:
- # - nginx-alias-1
- # - nginx-alias-2
- # -- A link to a custom resource containing additional configuration for the controller.
- # This is optional if the controller consuming this IngressClass does not require additional parameters.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class
- parameters: {}
- # parameters:
- # apiGroup: k8s.example.com
- # kind: IngressParameters
- # name: external-lb
- # -- For backwards compatibility with ingress.class annotation, use ingressClass.
- # Algorithm is as follows, first ingressClassName is considered, if not present, controller looks for ingress.class annotation
+
+ ## Election ID to use for status update
+ ##
+ electionID: ingress-controller-leader
+
+ ## Name of the ingress class to route through this controller
+ ##
ingressClass: nginx
- # -- Labels to add to the pod container metadata
+
+ # labels to add to the pod container metadata
podLabels: {}
# key: value
- # -- Security context for controller pods
+ ## Security Context policies for controller pods
+ ##
podSecurityContext: {}
- # -- sysctls for controller pods
- ## Ref: https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
+
+ ## See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for
+ ## notes on enabling and using sysctls
+ ###
sysctls: {}
# sysctls:
# "net.core.somaxconn": "8192"
- # -- Security context for controller containers
- containerSecurityContext: {}
- # -- Allows customization of the source of the IP address or FQDN to report
- # in the ingress status field. By default, it reads the information provided
- # by the service. If disable, the status field reports the IP address of the
- # node or nodes where an ingress controller pod is running.
+
+ ## Allows customization of the source of the IP address or FQDN to report
+ ## in the ingress status field. By default, it reads the information provided
+ ## by the service. If disable, the status field reports the IP address of the
+ ## node or nodes where an ingress controller pod is running.
publishService:
- # -- Enable 'publishService' or not
enabled: true
- # -- Allows overriding of the publish service to bind to
- # Must be /
+ ## Allows overriding of the publish service to bind to
+ ## Must be /
+ ##
pathOverride: ""
- # Limit the scope of the controller to a specific namespace
+
+ ## Limit the scope of the controller
+ ##
scope:
- # -- Enable 'scope' or not
enabled: false
- # -- Namespace to limit the controller to; defaults to $(POD_NAMESPACE)
- namespace: ""
- # -- When scope.enabled == false, instead of watching all namespaces, we watching namespaces whose labels
- # only match with namespaceSelector. Format like foo=bar. Defaults to empty, means watching all namespaces.
- namespaceSelector: ""
- # -- Allows customization of the configmap / nginx-configmap namespace; defaults to $(POD_NAMESPACE)
- configMapNamespace: ""
+ namespace: "" # defaults to .Release.Namespace
+
+ ## Allows customization of the configmap / nginx-configmap namespace
+ ##
+ configMapNamespace: "" # defaults to .Release.Namespace
+
+ ## Allows customization of the tcp-services-configmap
+ ##
tcp:
- # -- Allows customization of the tcp-services-configmap; defaults to $(POD_NAMESPACE)
- configMapNamespace: ""
- # -- Annotations to be added to the tcp config configmap
+ configMapNamespace: "" # defaults to .Release.Namespace
+ ## Annotations to be added to the tcp config configmap
annotations: {}
+
+ ## Allows customization of the udp-services-configmap
+ ##
udp:
- # -- Allows customization of the udp-services-configmap; defaults to $(POD_NAMESPACE)
- configMapNamespace: ""
- # -- Annotations to be added to the udp config configmap
+ configMapNamespace: "" # defaults to .Release.Namespace
+ ## Annotations to be added to the udp config configmap
annotations: {}
- # -- Maxmind license key to download GeoLite2 Databases.
- ## https://blog.maxmind.com/2019/12/significant-changes-to-accessing-and-using-geolite2-databases/
+
+ # Maxmind license key to download GeoLite2 Databases
+ # https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases
maxmindLicenseKey: ""
- # -- Additional command line arguments to pass to Ingress-Nginx Controller
- # E.g. to specify the default SSL certificate you can use
- extraArgs: {}
+
+ ## Additional command line arguments to pass to nginx-ingress-controller
+ ## E.g. to specify the default SSL certificate you can use
## extraArgs:
## default-ssl-certificate: "/"
- ## time-buckets: "0.005,0.01,0.025,0.05,0.1,0.25,0.5,1,2.5,5,10"
- ## length-buckets: "10,20,30,40,50,60,70,80,90,100"
- ## size-buckets: "10,100,1000,10000,100000,1e+06,1e+07"
+ extraArgs: {}
- # -- Additional environment variables to set
+ ## Additional environment variables to set
extraEnvs: []
# extraEnvs:
# - name: FOO
@@ -220,33 +149,35 @@ controller:
# key: FOO
# name: secret-resource
- # -- Use a `DaemonSet` or `Deployment`
+ ## DaemonSet or Deployment
+ ##
kind: Deployment
- # -- Annotations to be added to the controller Deployment or DaemonSet
+
+ ## Annotations to be added to the controller Deployment or DaemonSet
##
annotations: {}
# keel.sh/pollSchedule: "@every 60m"
- # -- Labels to be added to the controller Deployment or DaemonSet and other resources that do not have option to specify labels
+ ## Labels to be added to the controller Deployment or DaemonSet
##
labels: {}
# keel.sh/policy: patch
# keel.sh/trigger: poll
- # -- The update strategy to apply to the Deployment or DaemonSet
+
+ # The update strategy to apply to the Deployment or DaemonSet
##
updateStrategy: {}
# rollingUpdate:
# maxUnavailable: 1
# type: RollingUpdate
- # -- Specifies the number of seconds you want to wait for the controller deployment to progress before the system reports back that it has failed.
- # Ref.: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#progress-deadline-seconds
- progressDeadlineSeconds: 0
- # -- `minReadySeconds` to avoid killing pods before we are ready
+ # minReadySeconds to avoid killing pods before we are ready
##
minReadySeconds: 0
- # -- Node tolerations for server scheduling to nodes with taints
+
+
+ ## Node tolerations for server scheduling to nodes with taints
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
##
tolerations: []
@@ -255,98 +186,86 @@ controller:
# value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
- # -- Affinity and anti-affinity rules for server scheduling to nodes
+ ## Affinity and anti-affinity
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}
- # # An example of preferred pod anti-affinity, weight is in the range 1-100
- # podAntiAffinity:
- # preferredDuringSchedulingIgnoredDuringExecution:
- # - weight: 100
- # podAffinityTerm:
- # labelSelector:
- # matchExpressions:
- # - key: app.kubernetes.io/name
- # operator: In
- # values:
- # - '{{ include "ingress-nginx.name" . }}'
- # - key: app.kubernetes.io/instance
- # operator: In
- # values:
- # - '{{ .Release.Name }}'
- # - key: app.kubernetes.io/component
- # operator: In
- # values:
- # - controller
- # topologyKey: kubernetes.io/hostname
+ # # An example of preferred pod anti-affinity, weight is in the range 1-100
+ # podAntiAffinity:
+ # preferredDuringSchedulingIgnoredDuringExecution:
+ # - weight: 100
+ # podAffinityTerm:
+ # labelSelector:
+ # matchExpressions:
+ # - key: app.kubernetes.io/name
+ # operator: In
+ # values:
+ # - ingress-nginx
+ # - key: app.kubernetes.io/instance
+ # operator: In
+ # values:
+ # - ingress-nginx
+ # - key: app.kubernetes.io/component
+ # operator: In
+ # values:
+ # - controller
+ # topologyKey: kubernetes.io/hostname
- # # An example of required pod anti-affinity
- # podAntiAffinity:
- # requiredDuringSchedulingIgnoredDuringExecution:
- # - labelSelector:
- # matchExpressions:
- # - key: app.kubernetes.io/name
- # operator: In
- # values:
- # - '{{ include "ingress-nginx.name" . }}'
- # - key: app.kubernetes.io/instance
- # operator: In
- # values:
- # - '{{ .Release.Name }}'
- # - key: app.kubernetes.io/component
- # operator: In
- # values:
- # - controller
- # topologyKey: kubernetes.io/hostname
+ # # An example of required pod anti-affinity
+ # podAntiAffinity:
+ # requiredDuringSchedulingIgnoredDuringExecution:
+ # - labelSelector:
+ # matchExpressions:
+ # - key: app.kubernetes.io/name
+ # operator: In
+ # values:
+ # - ingress-nginx
+ # - key: app.kubernetes.io/instance
+ # operator: In
+ # values:
+ # - ingress-nginx
+ # - key: app.kubernetes.io/component
+ # operator: In
+ # values:
+ # - controller
+ # topologyKey: "kubernetes.io/hostname"
- # -- Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in.
+ ## Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in.
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
##
topologySpreadConstraints: []
- # - labelSelector:
- # matchLabels:
- # app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'
- # app.kubernetes.io/instance: '{{ .Release.Name }}'
- # app.kubernetes.io/component: controller
- # matchLabelKeys:
- # - pod-template-hash
- # topologyKey: topology.kubernetes.io/zone
- # maxSkew: 1
- # whenUnsatisfiable: ScheduleAnyway
- # - labelSelector:
- # matchLabels:
- # app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'
- # app.kubernetes.io/instance: '{{ .Release.Name }}'
- # app.kubernetes.io/component: controller
- # matchLabelKeys:
- # - pod-template-hash
- # topologyKey: kubernetes.io/hostname
- # maxSkew: 1
- # whenUnsatisfiable: ScheduleAnyway
+ # - maxSkew: 1
+ # topologyKey: failure-domain.beta.kubernetes.io/zone
+ # whenUnsatisfiable: DoNotSchedule
+ # labelSelector:
+ # matchLabels:
+ # app.kubernetes.io/instance: ingress-nginx-internal
- # -- `terminationGracePeriodSeconds` to avoid killing pods before we are ready
+ ## terminationGracePeriodSeconds
## wait up to five minutes for the drain of connections
##
terminationGracePeriodSeconds: 300
- # -- Node labels for controller pod assignment
- ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
+
+ ## Node labels for controller pod assignment
+ ## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector:
kubernetes.io/os: linux
+
## Liveness and readiness probe values
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
##
- ## startupProbe:
- ## httpGet:
- ## # should match container.healthCheckPath
- ## path: "/healthz"
- ## port: 10254
- ## scheme: HTTP
- ## initialDelaySeconds: 5
- ## periodSeconds: 5
- ## timeoutSeconds: 2
- ## successThreshold: 1
- ## failureThreshold: 5
+ # startupProbe:
+ # httpGet:
+ # # should match container.healthCheckPath
+ # path: "/healthz"
+ # port: 10254
+ # scheme: HTTP
+ # initialDelaySeconds: 5
+ # periodSeconds: 5
+ # timeoutSeconds: 2
+ # successThreshold: 1
+ # failureThreshold: 5
livenessProbe:
httpGet:
# should match container.healthCheckPath
@@ -369,57 +288,40 @@ controller:
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 3
- # -- Path of the health check endpoint. All requests received on the port defined by
+
+
+ # Path of the health check endpoint. All requests received on the port defined by
# the healthz-port parameter are forwarded internally to this path.
healthCheckPath: "/healthz"
- # -- Address to bind the health check endpoint.
- # It is better to set this option to the internal node address
- # if the Ingress-Nginx Controller is running in the `hostNetwork: true` mode.
- healthCheckHost: ""
- # -- Annotations to be added to controller pods
+
+ ## Annotations to be added to controller pods
##
podAnnotations: {}
+
replicaCount: 1
- # -- Minimum available pods set in PodDisruptionBudget.
- # Define either 'minAvailable' or 'maxUnavailable', never both.
+
minAvailable: 1
- # -- Maximum unavailable pods set in PodDisruptionBudget. If set, 'minAvailable' is ignored.
- # maxUnavailable: 1
- # -- Eviction policy for unhealthy pods guarded by PodDisruptionBudget.
- # Ref: https://kubernetes.io/blog/2023/01/06/unhealthy-pod-eviction-policy-for-pdbs/
- unhealthyPodEvictionPolicy: ""
- ## Define requests resources to avoid probe issues due to CPU utilization in busy nodes
- ## ref: https://github.com/kubernetes/ingress-nginx/issues/4735#issuecomment-551204903
- ## Ideally, there should be no limits.
- ## https://engineering.indeedblog.com/blog/2019/12/cpu-throttling-regression-fix/
+
+ # Define requests resources to avoid probe issues due to CPU utilization in busy nodes
+ # ref: https://github.com/kubernetes/ingress-nginx/issues/4735#issuecomment-551204903
+ # Ideally, there should be no limits.
+ # https://engineering.indeedblog.com/blog/2019/12/cpu-throttling-regression-fix/
resources:
- ## limits:
- ## cpu: 100m
- ## memory: 90Mi
+ # limits:
+ # cpu: 100m
+ # memory: 90Mi
requests:
cpu: 100m
memory: 90Mi
+
# Mutually exclusive with keda autoscaling
autoscaling:
enabled: false
- annotations: {}
minReplicas: 1
maxReplicas: 11
targetCPUUtilizationPercentage: 50
targetMemoryUtilizationPercentage: 50
- behavior: {}
- # scaleDown:
- # stabilizationWindowSeconds: 300
- # policies:
- # - type: Pods
- # value: 1
- # periodSeconds: 180
- # scaleUp:
- # stabilizationWindowSeconds: 300
- # policies:
- # - type: Pods
- # value: 2
- # periodSeconds: 60
+
autoscalingTemplate: []
# Custom or additional autoscaling metrics
# ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics
@@ -434,17 +336,14 @@ controller:
# Mutually exclusive with hpa autoscaling
keda:
apiVersion: "keda.sh/v1alpha1"
- ## apiVersion changes with keda 1.x vs 2.x
- ## 2.x = keda.sh/v1alpha1
- ## 1.x = keda.k8s.io/v1alpha1
+ # apiVersion changes with keda 1.x vs 2.x
+ # 2.x = keda.sh/v1alpha1
+ # 1.x = keda.k8s.io/v1alpha1
enabled: false
minReplicas: 1
maxReplicas: 11
pollingInterval: 30
cooldownPeriod: 300
- # fallback:
- # failureThreshold: 3
- # replicas: 11
restoreToOriginalReplicaCount: false
scaledObject:
annotations: {}
@@ -452,225 +351,110 @@ controller:
# annotations:
# key: value
triggers: []
- # - type: prometheus
- # metadata:
- # serverAddress: http://:9090
- # metricName: http_requests_total
- # threshold: '100'
- # query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
+ # - type: prometheus
+ # metadata:
+ # serverAddress: http://:9090
+ # metricName: http_requests_total
+ # threshold: '100'
+ # query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
behavior: {}
- # scaleDown:
- # stabilizationWindowSeconds: 300
- # policies:
- # - type: Pods
- # value: 1
- # periodSeconds: 180
- # scaleUp:
- # stabilizationWindowSeconds: 300
- # policies:
- # - type: Pods
- # value: 2
- # periodSeconds: 60
- # -- Enable mimalloc as a drop-in replacement for malloc.
+ # scaleDown:
+ # stabilizationWindowSeconds: 300
+ # policies:
+ # - type: Pods
+ # value: 1
+ # periodSeconds: 180
+ # scaleUp:
+ # stabilizationWindowSeconds: 300
+ # policies:
+ # - type: Pods
+ # value: 2
+ # periodSeconds: 60
+
+ ## Enable mimalloc as a drop-in replacement for malloc.
## ref: https://github.com/microsoft/mimalloc
##
enableMimalloc: true
+
## Override NGINX template
customTemplate:
configMapName: ""
configMapKey: ""
- service:
- # -- Enable controller services or not. This does not influence the creation of either the admission webhook or the metrics service.
- enabled: true
- external:
- # -- Enable the external controller service or not. Useful for internal-only deployments.
- enabled: true
- # -- Labels to be added to the external controller service.
- labels: {}
- # -- Annotations to be added to the external controller service. See `controller.service.internal.annotations` for annotations to be added to the internal controller service.
- annotations: {}
- # -- Labels to be added to both controller services.
- labels: {}
- # -- Type of the external controller service.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
- type: LoadBalancer
- # -- Pre-defined cluster internal IP address of the external controller service. Take care of collisions with existing services.
- # This value is immutable. Set once, it can not be changed without deleting and re-creating the service.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
- clusterIP: ""
- # -- Pre-defined cluster internal IP addresses of the external controller service. Take care of collisions with existing services.
- # This value is immutable. Set once, it can not be changed without deleting and re-creating the service.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
- clusterIPs: []
- # -- List of node IP addresses at which the external controller service is available.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
- externalIPs: []
- # -- Deprecated: Pre-defined IP address of the external controller service. Used by cloud providers to connect the resulting load balancer service to a pre-existing static IP.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
- loadBalancerIP: ""
- # -- Restrict access to the external controller service. Values must be CIDRs. Allows any source address by default.
- loadBalancerSourceRanges: []
- # -- Load balancer class of the external controller service. Used by cloud providers to select a load balancer implementation other than the cloud provider default.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
- loadBalancerClass: ""
- # -- Enable node port allocation for the external controller service or not. Applies to type `LoadBalancer` only.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
- # allocateLoadBalancerNodePorts: true
- # -- External traffic policy of the external controller service. Set to "Local" to preserve source IP on providers supporting it.
- # Ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
- externalTrafficPolicy: ""
- # -- Session affinity of the external controller service. Must be either "None" or "ClientIP" if set. Defaults to "None".
- # Ref: https://kubernetes.io/docs/reference/networking/virtual-ips/#session-affinity
- sessionAffinity: ""
- # -- Specifies the health check node port (numeric port number) for the external controller service.
- # If not specified, the service controller allocates a port from your cluster's node port range.
+ service:
+ enabled: true
+
+ annotations: {}
+ labels: {}
+ # clusterIP: ""
+
+ ## List of IP addresses at which the controller services are available
+ ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
+ ##
+ externalIPs: []
+
+ # loadBalancerIP: ""
+ loadBalancerSourceRanges: []
+
+ enableHttp: true
+ enableHttps: true
+
+ ## Set external traffic policy to: "Local" to preserve source IP on
+ ## providers supporting it
+ ## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
+ # externalTrafficPolicy: ""
+
+ # Must be either "None" or "ClientIP" if set. Kubernetes will default to "None".
+ # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
+ # sessionAffinity: ""
+
+ # specifies the health check node port (numeric port number) for the service. If healthCheckNodePort isn’t specified,
+ # the service controller allocates a port from your cluster’s NodePort range.
# Ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
# healthCheckNodePort: 0
- # -- Traffic distribution policy of the external controller service. Set to "PreferClose" to route traffic to endpoints that are topologically closer to the client.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution
- trafficDistribution: ""
-
- # -- Represents the dual-stack capabilities of the external controller service. Possible values are SingleStack, PreferDualStack or RequireDualStack.
- # Fields `ipFamilies` and `clusterIP` depend on the value of this field.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
- ipFamilyPolicy: SingleStack
- # -- List of IP families (e.g. IPv4, IPv6) assigned to the external controller service. This field is usually assigned automatically based on cluster configuration and the `ipFamilyPolicy` field.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
- ipFamilies:
- - IPv4
- # -- Enable the HTTP listener on both controller services or not.
- enableHttp: true
- # -- Enable the HTTPS listener on both controller services or not.
- enableHttps: true
ports:
- # -- Port the external HTTP listener is published with.
http: 80
- # -- Port the external HTTPS listener is published with.
https: 443
+
targetPorts:
- # -- Port of the ingress controller the external HTTP listener is mapped to.
http: http
- # -- Port of the ingress controller the external HTTPS listener is mapped to.
https: https
- # -- Declare the app protocol of the external HTTP and HTTPS listeners or not. Supersedes provider-specific annotations for declaring the backend protocol.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#application-protocol
- appProtocol: true
+
+ type: LoadBalancer
+
+ # type: NodePort
+ # nodePorts:
+ # http: 32080
+ # https: 32443
+ # tcp:
+ # 8080: 32808
nodePorts:
- # -- Node port allocated for the external HTTP listener. If left empty, the service controller allocates one from the configured node port range.
http: ""
- # -- Node port allocated for the external HTTPS listener. If left empty, the service controller allocates one from the configured node port range.
https: ""
- # -- Node port mapping for external TCP listeners. If left empty, the service controller allocates them from the configured node port range.
- # Example:
- # tcp:
- # 8080: 30080
tcp: {}
- # -- Node port mapping for external UDP listeners. If left empty, the service controller allocates them from the configured node port range.
- # Example:
- # udp:
- # 53: 30053
udp: {}
+
+ ## Enables an additional internal load balancer (besides the external one).
+ ## Annotations are mandatory for the load balancer to come up. Varies with the cloud service.
internal:
- # -- Enable the internal controller service or not. Remember to configure `controller.service.internal.annotations` when enabling this.
enabled: false
- # -- Labels to be added to the internal controller service.
- labels: {}
- # -- Annotations to be added to the internal controller service. Mandatory for the internal controller service to be created. Varies with the cloud service.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
annotations: {}
- # -- Type of the internal controller service.
- # Defaults to the value of `controller.service.type`.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
- type: ""
- # -- Pre-defined cluster internal IP address of the internal controller service. Take care of collisions with existing services.
- # This value is immutable. Set once, it can not be changed without deleting and re-creating the service.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
- clusterIP: ""
- # -- Pre-defined cluster internal IP addresses of the internal controller service. Take care of collisions with existing services.
- # This value is immutable. Set once, it can not be changed without deleting and re-creating the service.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
- clusterIPs: []
- # -- List of node IP addresses at which the internal controller service is available.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
- externalIPs: []
- # -- Deprecated: Pre-defined IP address of the internal controller service. Used by cloud providers to connect the resulting load balancer service to a pre-existing static IP.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
- loadBalancerIP: ""
- # -- Restrict access to the internal controller service. Values must be CIDRs. Allows any source address by default.
+
+ # loadBalancerIP: ""
+
+ ## Restrict access For LoadBalancer service. Defaults to 0.0.0.0/0.
loadBalancerSourceRanges: []
- # -- Load balancer class of the internal controller service. Used by cloud providers to select a load balancer implementation other than the cloud provider default.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
- loadBalancerClass: ""
- # -- Enable node port allocation for the internal controller service or not. Applies to type `LoadBalancer` only.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
- # allocateLoadBalancerNodePorts: true
- # -- External traffic policy of the internal controller service. Set to "Local" to preserve source IP on providers supporting it.
- # Ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
- externalTrafficPolicy: ""
- # -- Session affinity of the internal controller service. Must be either "None" or "ClientIP" if set. Defaults to "None".
- # Ref: https://kubernetes.io/docs/reference/networking/virtual-ips/#session-affinity
- sessionAffinity: ""
- # -- Specifies the health check node port (numeric port number) for the internal controller service.
- # If not specified, the service controller allocates a port from your cluster's node port range.
- # Ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
- # healthCheckNodePort: 0
+ ## Set external traffic policy to: "Local" to preserve source IP on
+ ## providers supporting it
+ ## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
+ # externalTrafficPolicy: ""
- # -- Traffic distribution policy of the internal controller service. Set to "PreferClose" to route traffic to endpoints that are topologically closer to the client.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution
- trafficDistribution: ""
-
- # -- Represents the dual-stack capabilities of the internal controller service. Possible values are SingleStack, PreferDualStack or RequireDualStack.
- # Fields `ipFamilies` and `clusterIP` depend on the value of this field.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
- ipFamilyPolicy: SingleStack
- # -- List of IP families (e.g. IPv4, IPv6) assigned to the internal controller service. This field is usually assigned automatically based on cluster configuration and the `ipFamilyPolicy` field.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
- ipFamilies:
- - IPv4
- ports: {}
- # -- Port the internal HTTP listener is published with.
- # Defaults to the value of `controller.service.ports.http`.
- # http: 80
- # -- Port the internal HTTPS listener is published with.
- # Defaults to the value of `controller.service.ports.https`.
- # https: 443
-
- targetPorts: {}
- # -- Port of the ingress controller the internal HTTP listener is mapped to.
- # Defaults to the value of `controller.service.targetPorts.http`.
- # http: http
- # -- Port of the ingress controller the internal HTTPS listener is mapped to.
- # Defaults to the value of `controller.service.targetPorts.https`.
- # https: https
-
- # -- Declare the app protocol of the internal HTTP and HTTPS listeners or not. Supersedes provider-specific annotations for declaring the backend protocol.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#application-protocol
- appProtocol: true
- nodePorts:
- # -- Node port allocated for the internal HTTP listener. If left empty, the service controller allocates one from the configured node port range.
- http: ""
- # -- Node port allocated for the internal HTTPS listener. If left empty, the service controller allocates one from the configured node port range.
- https: ""
- # -- Node port mapping for internal TCP listeners. If left empty, the service controller allocates them from the configured node port range.
- # Example:
- # tcp:
- # 8080: 30080
- tcp: {}
- # -- Node port mapping for internal UDP listeners. If left empty, the service controller allocates them from the configured node port range.
- # Example:
- # udp:
- # 53: 30053
- udp: {}
- # shareProcessNamespace enables process namespace sharing within the pod.
- # This can be used for example to signal log rotation using `kill -USR1` from a sidecar.
- shareProcessNamespace: false
- # -- Additional containers to be added to the controller pod.
- # See https://github.com/lemonldap-ng-controller/lemonldap-ng-controller as example.
extraContainers: []
+ ## Additional containers to be added to the controller pod.
+ ## See https://github.com/lemonldap-ng-controller/lemonldap-ng-controller as example.
# - name: my-sidecar
# image: nginx:latest
# - name: lemonldap-ng-controller
@@ -692,69 +476,25 @@ controller:
# - name: copy-portal-skins
# mountPath: /srv/var/lib/lemonldap-ng/portal/skins
- # -- Additional volumeMounts to the controller main container.
extraVolumeMounts: []
+ ## Additional volumeMounts to the controller main container.
# - name: copy-portal-skins
# mountPath: /var/lib/lemonldap-ng/portal/skins
- # -- Additional volumes to the controller pod.
extraVolumes: []
+ ## Additional volumes to the controller pod.
# - name: copy-portal-skins
# emptyDir: {}
- # -- Containers, which are run before the app containers are started.
extraInitContainers: []
+ ## Containers, which are run before the app containers are started.
# - name: init-myservice
# image: busybox
# command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;']
- # -- Modules, which are mounted into the core nginx image.
- extraModules: []
- # - name: mytestmodule
- # image:
- # # registry: registry.k8s.io
- # image: ingress-nginx/mytestmodule
- # ## for backwards compatibility consider setting the full image url via the repository value below
- # ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
- # ## repository:
- # tag: "v1.0.0"
- # digest: ""
- # distroless: false
- # containerSecurityContext:
- # runAsNonRoot: true
- # runAsUser:
- # runAsGroup:
- # allowPrivilegeEscalation: false
- # seccompProfile:
- # type: RuntimeDefault
- # capabilities:
- # drop:
- # - ALL
- # readOnlyRootFilesystem: true
- # resources: {}
- #
- # The image must contain a `/usr/local/bin/init_module.sh` executable, which
- # will be executed as initContainers, to move its config files within the
- # mounted volume.
-
admissionWebhooks:
- name: admission
annotations: {}
- # ignore-check.kube-linter.io/no-read-only-rootfs: "This deployment needs write access to root filesystem".
-
- ## Additional annotations to the admission webhooks.
- ## These annotations will be added to the ValidatingWebhookConfiguration and
- ## the Jobs Spec of the admission webhooks.
enabled: true
- # -- Additional environment variables to set
- extraEnvs: []
- # extraEnvs:
- # - name: FOO
- # valueFrom:
- # secretKeyRef:
- # key: FOO
- # name: secret-resource
- # -- Admission Webhook failure policy to use
failurePolicy: Fail
# timeoutSeconds: 10
port: 8443
@@ -762,8 +502,10 @@ controller:
key: "/usr/local/certificates/key"
namespaceSelector: {}
objectSelector: {}
- # -- Labels to be added to admission webhooks
- labels: {}
+
+ # Use an existing PSP instead of creating one
+ existingPsp: ""
+
service:
annotations: {}
# clusterIP: ""
@@ -772,237 +514,158 @@ controller:
loadBalancerSourceRanges: []
servicePort: 443
type: ClusterIP
- createSecretJob:
- name: create
- # -- Security context for secret creation containers
- securityContext:
- runAsNonRoot: true
- runAsUser: 65532
- runAsGroup: 65532
- allowPrivilegeEscalation: false
- seccompProfile:
- type: RuntimeDefault
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- resources: {}
- # limits:
- # cpu: 10m
- # memory: 20Mi
- # requests:
- # cpu: 10m
- # memory: 20Mi
- patchWebhookJob:
- name: patch
- # -- Security context for webhook patch containers
- securityContext:
- runAsNonRoot: true
- runAsUser: 65532
- runAsGroup: 65532
- allowPrivilegeEscalation: false
- seccompProfile:
- type: RuntimeDefault
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- resources: {}
+
patch:
enabled: true
image:
- # registry: registry.k8s.io
- image: ingress-nginx/kube-webhook-certgen
- ## for backwards compatibility consider setting the full image url via the repository value below
- ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
- ## repository:
+ registry: docker.io
+ image: jettech/kube-webhook-certgen
+ # for backwards compatibility consider setting the full image url via the repository value below
+ # use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
+ # repository:
tag: v1.5.1
- digest: sha256:0de05718b59dc33b57ddfb4d8ad5f637cefd13eafdec0e1579d782b3483c27c3
pullPolicy: IfNotPresent
- # -- Provide a priority class name to the webhook patching job
+ ## Provide a priority class name to the webhook patching job
##
priorityClassName: ""
podAnnotations: {}
- # NetworkPolicy for webhook patch
- networkPolicy:
- # -- Enable 'networkPolicy' or not
- enabled: false
- nodeSelector:
- kubernetes.io/os: linux
+ nodeSelector: {}
tolerations: []
- # -- Labels to be added to patch job resources
- labels: {}
- # -- Security context for secret creation & webhook patch pods
- securityContext: {}
- # -- Admission webhook patch job RBAC
- rbac:
- # -- Create RBAC or not
- create: true
- # -- Admission webhook patch job service account
- serviceAccount:
- # -- Create a service account or not
- create: true
- # -- Custom service account name
- name: ""
- # -- Auto-mount service account token or not
- automountServiceAccountToken: true
- # Use certmanager to generate webhook certs
- certManager:
- enabled: false
- # self-signed root certificate
- rootCert:
- # default to be 5y
- duration: ""
- admissionCert:
- # default to be 1y
- duration: ""
- # issuerRef:
- # name: "issuer"
- # kind: "ClusterIssuer"
+ runAsUser: 2000
+
metrics:
port: 10254
- portName: metrics
# if this port is changed, change healthz-port: in extraArgs: accordingly
enabled: false
+
service:
- # -- Enable the metrics service or not.
- enabled: true
annotations: {}
# prometheus.io/scrape: "true"
# prometheus.io/port: "10254"
- # -- Labels to be added to the metrics service resource
- labels: {}
+
# clusterIP: ""
- # -- List of IP addresses at which the stats-exporter service is available
- ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
+ ## List of IP addresses at which the stats-exporter service is available
+ ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
##
externalIPs: []
+
# loadBalancerIP: ""
loadBalancerSourceRanges: []
servicePort: 10254
type: ClusterIP
# externalTrafficPolicy: ""
# nodePort: ""
+
serviceMonitor:
enabled: false
additionalLabels: {}
- # -- Annotations to be added to the ServiceMonitor.
- annotations: {}
- ## The label to use to retrieve the job name from.
- ## jobLabel: "app.kubernetes.io/name"
+ # The label to use to retrieve the job name from.
+ # jobLabel: "app.kubernetes.io/name"
namespace: ""
namespaceSelector: {}
- ## Default: scrape .Release.Namespace or namespaceOverride only
- ## To scrape all, use the following:
- ## namespaceSelector:
- ## any: true
+ # Default: scrape .Release.Namespace only
+ # To scrape all, use the following:
+ # namespaceSelector:
+ # any: true
scrapeInterval: 30s
# honorLabels: true
targetLabels: []
- relabelings: []
metricRelabelings: []
- # -- Per-scrape limit on number of labels that will be accepted for a sample.
- labelLimit: 0
- # -- Per-scrape limit on length of labels name that will be accepted for a sample.
- labelNameLengthLimit: 0
- # -- Per-scrape limit on length of labels value that will be accepted for a sample.
- labelValueLengthLimit: 0
- # -- Defines a per-scrape limit on the number of scraped samples that will be accepted.
- sampleLimit: 0
- # -- Defines a limit on the number of scraped targets that will be accepted.
- targetLimit: 0
+
prometheusRule:
enabled: false
additionalLabels: {}
- # -- Annotations to be added to the PrometheusRule.
- annotations: {}
# namespace: ""
rules: []
- # # These are just examples rules, please adapt them to your needs
- # - alert: NGINXConfigFailed
- # expr: count(nginx_ingress_controller_config_last_reload_successful == 0) > 0
- # for: 1s
- # labels:
- # severity: critical
- # annotations:
- # description: bad ingress config - nginx config test failed
- # summary: uninstall the latest ingress changes to allow config reloads to resume
- # # By default a fake self-signed certificate is generated as default and
- # # it is fine if it expires. If `--default-ssl-certificate` flag is used
- # # and a valid certificate passed please do not filter for `host` label!
- # # (i.e. delete `{host!="_"}` so also the default SSL certificate is
- # # checked for expiration)
- # - alert: NGINXCertificateExpiry
- # expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds{host!="_"}) by (host) - time()) < 604800
- # for: 1s
- # labels:
- # severity: critical
- # annotations:
- # description: ssl certificate(s) will expire in less then a week
- # summary: renew expiring certificates to avoid downtime
- # - alert: NGINXTooMany500s
- # expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
- # for: 1m
- # labels:
- # severity: warning
- # annotations:
- # description: Too many 5XXs
- # summary: More than 5% of all requests returned 5XX, this requires your attention
- # - alert: NGINXTooMany400s
- # expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
- # for: 1m
- # labels:
- # severity: warning
- # annotations:
- # description: Too many 4XXs
- # summary: More than 5% of all requests returned 4XX, this requires your attention
- # -- Improve connection draining when ingress controller pod is deleted using a lifecycle hook:
- # With this new hook, we increased the default terminationGracePeriodSeconds from 30 seconds
- # to 300, allowing the draining of connections up to five minutes.
- # If the active connections end before that, the pod will terminate gracefully at that time.
- # To effectively take advantage of this feature, the Configmap feature
- # worker-shutdown-timeout new value is 240s instead of 10s.
+ # # These are just examples rules, please adapt them to your needs
+ # - alert: NGINXConfigFailed
+ # expr: count(nginx_ingress_controller_config_last_reload_successful == 0) > 0
+ # for: 1s
+ # labels:
+ # severity: critical
+ # annotations:
+ # description: bad ingress config - nginx config test failed
+ # summary: uninstall the latest ingress changes to allow config reloads to resume
+ # - alert: NGINXCertificateExpiry
+ # expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds) by (host) - time()) < 604800
+ # for: 1s
+ # labels:
+ # severity: critical
+ # annotations:
+ # description: ssl certificate(s) will expire in less then a week
+ # summary: renew expiring certificates to avoid downtime
+ # - alert: NGINXTooMany500s
+ # expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
+ # for: 1m
+ # labels:
+ # severity: warning
+ # annotations:
+ # description: Too many 5XXs
+ # summary: More than 5% of all requests returned 5XX, this requires your attention
+ # - alert: NGINXTooMany400s
+ # expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
+ # for: 1m
+ # labels:
+ # severity: warning
+ # annotations:
+ # description: Too many 4XXs
+ # summary: More than 5% of all requests returned 4XX, this requires your attention
+
+ ## Improve connection draining when ingress controller pod is deleted using a lifecycle hook:
+ ## With this new hook, we increased the default terminationGracePeriodSeconds from 30 seconds
+ ## to 300, allowing the draining of connections up to five minutes.
+ ## If the active connections end before that, the pod will terminate gracefully at that time.
+ ## To effectively take advantage of this feature, the Configmap feature
+ ## worker-shutdown-timeout new value is 240s instead of 10s.
##
lifecycle:
preStop:
exec:
command:
- /wait-shutdown
+
priorityClassName: ""
-# -- Rollback limit
+
+## Rollback limit
##
revisionHistoryLimit: 10
+
## Default 404 backend
##
defaultBackend:
##
enabled: false
+
name: defaultbackend
image:
- # registry: registry.k8s.io
+ registry: k8s.gcr.io
image: defaultbackend-amd64
- ## for backwards compatibility consider setting the full image url via the repository value below
- ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
- ## repository:
+ # for backwards compatibility consider setting the full image url via the repository value below
+ # use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
+ # repository:
tag: "1.5"
pullPolicy: IfNotPresent
- runAsNonRoot: true
# nobody user -> uid 65534
runAsUser: 65534
- runAsGroup: 65534
- allowPrivilegeEscalation: false
- seccompProfile:
- type: RuntimeDefault
+ runAsNonRoot: true
readOnlyRootFilesystem: true
+ allowPrivilegeEscalation: false
+
+ # Use an existing PSP instead of creating one
+ existingPsp: ""
+
extraArgs: {}
+
serviceAccount:
create: true
name: ""
automountServiceAccountToken: true
- # -- Additional environment variables to set for defaultBackend pods
+ ## Additional environment variables to set for defaultBackend pods
extraEnvs: []
+
port: 8080
+
## Readiness and liveness probes for default backend
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
##
@@ -1018,17 +681,8 @@ defaultBackend:
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 5
- # -- The update strategy to apply to the Deployment or DaemonSet
- ##
- updateStrategy: {}
- # rollingUpdate:
- # maxUnavailable: 1
- # type: RollingUpdate
- # -- `minReadySeconds` to avoid killing pods before we are ready
- ##
- minReadySeconds: 0
- # -- Node tolerations for server scheduling to nodes with taints
+ ## Node tolerations for server scheduling to nodes with taints
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
##
tolerations: []
@@ -1037,97 +691,31 @@ defaultBackend:
# value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
- # -- Affinity and anti-affinity rules for server scheduling to nodes
- ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
affinity: {}
- # # An example of preferred pod anti-affinity, weight is in the range 1-100
- # podAntiAffinity:
- # preferredDuringSchedulingIgnoredDuringExecution:
- # - weight: 100
- # podAffinityTerm:
- # labelSelector:
- # matchExpressions:
- # - key: app.kubernetes.io/name
- # operator: In
- # values:
- # - '{{ include "ingress-nginx.name" . }}'
- # - key: app.kubernetes.io/instance
- # operator: In
- # values:
- # - '{{ .Release.Name }}'
- # - key: app.kubernetes.io/component
- # operator: In
- # values:
- # - default-backend
- # topologyKey: kubernetes.io/hostname
- # # An example of required pod anti-affinity
- # podAntiAffinity:
- # requiredDuringSchedulingIgnoredDuringExecution:
- # - labelSelector:
- # matchExpressions:
- # - key: app.kubernetes.io/name
- # operator: In
- # values:
- # - '{{ include "ingress-nginx.name" . }}'
- # - key: app.kubernetes.io/instance
- # operator: In
- # values:
- # - '{{ .Release.Name }}'
- # - key: app.kubernetes.io/component
- # operator: In
- # values:
- # - default-backend
- # topologyKey: kubernetes.io/hostname
-
- # -- Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in.
- # Ref.: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
- topologySpreadConstraints: []
- # - labelSelector:
- # matchLabels:
- # app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'
- # app.kubernetes.io/instance: '{{ .Release.Name }}'
- # app.kubernetes.io/component: default-backend
- # matchLabelKeys:
- # - pod-template-hash
- # topologyKey: topology.kubernetes.io/zone
- # maxSkew: 1
- # whenUnsatisfiable: ScheduleAnyway
- # - labelSelector:
- # matchLabels:
- # app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'
- # app.kubernetes.io/instance: '{{ .Release.Name }}'
- # app.kubernetes.io/component: default-backend
- # matchLabelKeys:
- # - pod-template-hash
- # topologyKey: kubernetes.io/hostname
- # maxSkew: 1
- # whenUnsatisfiable: ScheduleAnyway
- # -- Security context for default backend pods
+ ## Security Context policies for controller pods
+ ## See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for
+ ## notes on enabling and using sysctls
+ ##
podSecurityContext: {}
- # -- Security context for default backend containers
- containerSecurityContext: {}
- # -- Labels to add to the pod container metadata
+
+ # labels to add to the pod container metadata
podLabels: {}
# key: value
- # -- Node labels for default backend pod assignment
- ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
+ ## Node labels for default backend pod assignment
+ ## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
- nodeSelector:
- kubernetes.io/os: linux
- # -- Annotations to be added to default backend pods
+ nodeSelector: {}
+
+ ## Annotations to be added to default backend pods
##
podAnnotations: {}
+
replicaCount: 1
- # -- Minimum available pods set in PodDisruptionBudget.
- # Define either 'minAvailable' or 'maxUnavailable', never both.
+
minAvailable: 1
- # -- Maximum unavailable pods set in PodDisruptionBudget. If set, 'minAvailable' is ignored.
- # maxUnavailable: 1
- # -- Eviction policy for unhealthy pods guarded by PodDisruptionBudget.
- # Ref: https://kubernetes.io/blog/2023/01/06/unhealthy-pod-eviction-policy-for-pdbs/
- unhealthyPodEvictionPolicy: ""
+
resources: {}
# limits:
# cpu: 10m
@@ -1146,21 +734,6 @@ defaultBackend:
# - name: copy-portal-skins
# emptyDir: {}
- extraConfigMaps: []
- ## Additional configmaps to the default backend pod.
- # - name: my-extra-configmap-1
- # labels:
- # type: config-1
- # data:
- # extra_file_1.html: |
- #
- # - name: my-extra-configmap-2
- # labels:
- # type: config-2
- # data:
- # extra_file_2.html: |
- #
-
autoscaling:
annotations: {}
enabled: false
@@ -1168,60 +741,57 @@ defaultBackend:
maxReplicas: 2
targetCPUUtilizationPercentage: 50
targetMemoryUtilizationPercentage: 50
- # NetworkPolicy for default backend component.
- networkPolicy:
- # -- Enable 'networkPolicy' or not
- enabled: false
+
service:
annotations: {}
- # clusterIP: ""
- # -- Pre-defined cluster internal IP addresses of the default backend service. Take care of collisions with existing services.
- # This value is immutable. Set once, it can not be changed without deleting and re-creating the service.
- # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
- clusterIPs: []
- # -- List of IP addresses at which the default backend service is available
- ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
+ # clusterIP: ""
+
+ ## List of IP addresses at which the default backend service is available
+ ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
##
externalIPs: []
+
# loadBalancerIP: ""
loadBalancerSourceRanges: []
servicePort: 80
type: ClusterIP
+
priorityClassName: ""
- # -- Labels to be added to the default backend resources
- labels: {}
-## Enable RBAC as per https://github.com/kubernetes/ingress-nginx/blob/main/docs/deploy/rbac.md and https://github.com/kubernetes/ingress-nginx/issues/266
+
+## Enable RBAC as per https://github.com/kubernetes/ingress/tree/master/examples/rbac/nginx and https://github.com/kubernetes/ingress/issues/266
rbac:
create: true
scope: false
+
+# If true, create & use Pod Security Policy resources
+# https://kubernetes.io/docs/concepts/policy/pod-security-policy/
+podSecurityPolicy:
+ enabled: false
+
serviceAccount:
create: true
name: ""
automountServiceAccountToken: true
- # -- Annotations for the controller service account
- annotations: {}
-# -- Optional array of imagePullSecrets containing private registry credentials
+
+## Optional array of imagePullSecrets containing private registry credentials
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: []
# - name: secretName
-# -- TCP service key-value pairs
-## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md
+# TCP service key:value pairs
+# Ref: https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/tcp
##
tcp: {}
-# "8080": "default/example-tcp-svc:9000"
+# 8080: "default/example-tcp-svc:9000"
-# -- UDP service key-value pairs
-## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md
+# UDP service key:value pairs
+# Ref: https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/udp
##
udp: {}
-# "53": "kube-system/kube-dns:53"
+# 53: "kube-system/kube-dns:53"
-# -- Prefix for TCP and UDP ports names in ingress controller service
-## Some cloud providers, like Yandex Cloud may have a requirements for a port name regex to support cloud load balancer integration
-portNamePrefix: ""
-# -- (string) A base64-encoded Diffie-Hellman parameter.
-# This can be generated with: `openssl dhparam 4096 2> /dev/null | base64`
-## Ref: https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/ssl-dh-param
-dhParam: ""
+# A base64ed Diffie-Hellman parameter
+# This can be generated with: openssl dhparam 4096 2> /dev/null | base64
+# Ref: https://github.com/krmichel/ingress-nginx/blob/master/docs/examples/customization/ssl-dh-param
+dhParam:
diff --git a/cloudbuild.yaml b/cloudbuild.yaml
index 0bb2b60a4..0c2854fa8 100644
--- a/cloudbuild.yaml
+++ b/cloudbuild.yaml
@@ -1,14 +1,25 @@
+# See https://cloud.google.com/cloud-build/docs/build-config
+
+timeout: 1800s
options:
- # Ignore Prow provided substitutions.
substitution_option: ALLOW_LOOSE
steps:
- - name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20250116-2a05ea7e3d
- env:
- - REGISTRY=us-central1-docker.pkg.dev/k8s-staging-images/ingress-nginx
- - REPO_INFO=https://github.com/kubernetes/ingress-nginx
- - COMMIT_SHA=${_PULL_BASE_SHA}
- - BUILD_ID=${BUILD_ID}
+ - name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20201130-750d12f'
entrypoint: bash
+ env:
+ - DOCKER_CLI_EXPERIMENTAL=enabled
+ - REGISTRY=gcr.io/k8s-staging-ingress-nginx
+ - REPO_INFO=https://github.com/kubernetes/ingress-nginx
+ - COMMIT_SHA=$_PULL_BASE_SHA
+ - BUILD_ID=$BUILD_ID
+ - HOME=/root
+ - USER=root
args:
- - -c
- - gcloud auth configure-docker && make release
+ - -c
+ - |
+ gcloud auth configure-docker \
+ && make release
+substitutions:
+ _GIT_TAG: "12345"
+ _PULL_BASE_REF: "master"
+ _PULL_BASE_SHA: '12345'
diff --git a/cmd/annotations/annotations.tmpl b/cmd/annotations/annotations.tmpl
deleted file mode 100644
index 91dd21de8..000000000
--- a/cmd/annotations/annotations.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-# Annotations Scope and Risk
-
-|Group |Annotation | Risk | Scope |
-|--------|------------------|------|-------|
-{{- range $doc := . }}
-| {{ $doc.Group }} | {{ $doc.Annotation }} | {{ $doc.Risk }} | {{ $doc.Scope }} |
-{{- end }}
diff --git a/cmd/annotations/main.go b/cmd/annotations/main.go
deleted file mode 100644
index 78f26099c..000000000
--- a/cmd/annotations/main.go
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
-Copyright 2024 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-package main
-
-import (
- "bytes"
- "embed"
- "flag"
- "fmt"
- "os"
- "slices"
- "strings"
- "text/template"
-
- anns "k8s.io/ingress-nginx/internal/ingress/annotations"
-)
-
-type Documentation struct {
- Group string
- Annotation string
- Risk string
- Scope string
-}
-
-var output string
-
-//go:embed annotations.tmpl
-var content embed.FS
-
-func main() {
- flag.StringVar(&output, "output", "", "where to write documentation")
- flag.Parse()
- if output == "" {
- panic(fmt.Errorf("output field is required"))
- }
- docEntries := make([]Documentation, 0)
- annotationFactory := anns.NewAnnotationFactory(nil)
- for group, val := range annotationFactory {
- annotations := val.GetDocumentation()
- intermediateDocs := make([]Documentation, len(annotations))
- i := 0
- for annotation, values := range annotations {
- doc := Documentation{
- Group: group,
- Annotation: annotation,
- Scope: string(values.Scope),
- Risk: values.Risk.ToString(),
- }
- intermediateDocs[i] = doc
- i++
- }
- slices.SortStableFunc(intermediateDocs, func(a, b Documentation) int {
- return strings.Compare(a.Annotation, b.Annotation)
- })
- docEntries = append(docEntries, intermediateDocs...)
- }
- slices.SortStableFunc(docEntries, func(a, b Documentation) int {
- return strings.Compare(a.Group, b.Group)
- })
-
- tmpl, err := template.New("annotations.tmpl").ParseFS(content, "annotations.tmpl")
- if err != nil {
- panic(fmt.Errorf("error parsing template: %s", err))
- }
-
- tplBuffer := new(bytes.Buffer)
- err = tmpl.Execute(tplBuffer, docEntries)
- if err != nil {
- panic(err)
- }
- tplBuffer.WriteString("\n")
-
- //nolint:gosec // no need to check file permission here
- if err := os.WriteFile(output, tplBuffer.Bytes(), 0o755); err != nil {
- panic(err)
- }
-}
diff --git a/cmd/dataplane/main.go b/cmd/dataplane/main.go
deleted file mode 100644
index e7e4dc38f..000000000
--- a/cmd/dataplane/main.go
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
-Copyright 2022 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-package main
-
-import (
- "fmt"
- "net/http"
- "os"
-
- "github.com/prometheus/client_golang/prometheus"
- "github.com/prometheus/client_golang/prometheus/collectors"
-
- "k8s.io/klog/v2"
-
- "k8s.io/ingress-nginx/internal/ingress/controller"
- "k8s.io/ingress-nginx/internal/ingress/metric"
- "k8s.io/ingress-nginx/internal/nginx"
- ingressflags "k8s.io/ingress-nginx/pkg/flags"
- "k8s.io/ingress-nginx/pkg/metrics"
- "k8s.io/ingress-nginx/pkg/util/file"
- "k8s.io/ingress-nginx/pkg/util/process"
- "k8s.io/ingress-nginx/version"
-)
-
-func main() {
- klog.InitFlags(nil)
-
- fmt.Println(version.String())
- var err error
- showVersion, conf, err := ingressflags.ParseFlags()
- if showVersion {
- os.Exit(0)
- }
-
- if err != nil {
- klog.Fatal(err)
- }
-
- err = file.CreateRequiredDirectories()
- if err != nil {
- klog.Fatal(err)
- }
-
- reg := prometheus.NewRegistry()
-
- reg.MustRegister(collectors.NewGoCollector())
- reg.MustRegister(collectors.NewProcessCollector(collectors.ProcessCollectorOpts{
- PidFn: func() (int, error) { return os.Getpid(), nil },
- ReportErrors: true,
- }))
-
- mc := metric.NewDummyCollector()
- if conf.EnableMetrics {
- // TODO: Ingress class is not a part of dataplane anymore
- mc, err = metric.NewCollector(conf.MetricsPerHost, conf.MetricsPerUndefinedHost, conf.ReportStatusClasses, reg, conf.IngressClassConfiguration.Controller, *conf.MetricsBuckets, conf.MetricsBucketFactor, conf.MetricsMaxBuckets, conf.ExcludeSocketMetrics)
- if err != nil {
- klog.Fatalf("Error creating prometheus collector: %v", err)
- }
- }
- // Pass the ValidationWebhook status to determine if we need to start the collector
- // for the admissionWebhook
- // TODO: Dataplane does not contain validation webhook so the MetricCollector should not receive
- // this as an argument
- mc.Start(conf.ValidationWebhook)
-
- if conf.EnableProfiling {
- go metrics.RegisterProfiler(nginx.ProfilerAddress, nginx.ProfilerPort)
- }
-
- ngx := controller.NewNGINXController(conf, mc)
-
- mux := http.NewServeMux()
- metrics.RegisterHealthz(nginx.HealthPath, mux)
- metrics.RegisterMetrics(reg, mux)
-
- go metrics.StartHTTPServer(conf.HealthCheckHost, conf.ListenPorts.Health, mux)
- go ngx.Start()
-
- process.HandleSigterm(ngx, conf.PostShutdownGracePeriod, func(code int) {
- os.Exit(code)
- })
-}
diff --git a/cmd/dbg/main.go b/cmd/dbg/main.go
index ab68001c9..41a3c2772 100644
--- a/cmd/dbg/main.go
+++ b/cmd/dbg/main.go
@@ -47,7 +47,7 @@ func main() {
backendsAllCmd := &cobra.Command{
Use: "all",
Short: "Output the all dynamic backend information as a JSON array",
- Run: func(_ *cobra.Command, _ []string) {
+ Run: func(cmd *cobra.Command, args []string) {
backendsAll()
},
}
@@ -56,7 +56,7 @@ func main() {
backendsListCmd := &cobra.Command{
Use: "list",
Short: "Output a newline-separated list of the backend names",
- Run: func(_ *cobra.Command, _ []string) {
+ Run: func(cmd *cobra.Command, args []string) {
backendsList()
},
}
@@ -66,7 +66,7 @@ func main() {
Use: "get [backend name]",
Short: "Output the backend information only for the backend that has this name",
Args: cobra.ExactArgs(1),
- Run: func(_ *cobra.Command, args []string) {
+ Run: func(cmd *cobra.Command, args []string) {
backendsGet(args[0])
},
}
@@ -81,7 +81,7 @@ func main() {
Use: "get [hostname]",
Short: "Get the dynamically-loaded certificate information for the given hostname",
Args: cobra.ExactArgs(1),
- RunE: func(_ *cobra.Command, args []string) error {
+ RunE: func(cmd *cobra.Command, args []string) error {
certGet(args[0])
return nil
},
@@ -93,7 +93,7 @@ func main() {
generalCmd := &cobra.Command{
Use: "general",
Short: "Output the general dynamic lua state",
- Run: func(_ *cobra.Command, _ []string) {
+ Run: func(cmd *cobra.Command, args []string) {
general()
},
}
@@ -102,7 +102,7 @@ func main() {
confCmd := &cobra.Command{
Use: "conf",
Short: "Dump the contents of /etc/nginx/nginx.conf",
- Run: func(_ *cobra.Command, _ []string) {
+ Run: func(cmd *cobra.Command, args []string) {
readNginxConf()
},
}
@@ -114,6 +114,7 @@ func main() {
fmt.Println(err)
os.Exit(1)
}
+
}
func backendsAll() {
@@ -154,16 +155,10 @@ func backendsList() {
fmt.Println(unmarshalErr)
return
}
- backends, ok := f.([]interface{})
- if !ok {
- fmt.Printf("unexpected type: %T", f)
- }
+ backends := f.([]interface{})
for _, backendi := range backends {
- backend, ok := backendi.(map[string]interface{})
- if !ok {
- fmt.Printf("unexpected type: %T", backendi)
- }
+ backend := backendi.(map[string]interface{})
fmt.Println(backend["name"].(string))
}
}
@@ -185,22 +180,12 @@ func backendsGet(name string) {
fmt.Println(unmarshalErr)
return
}
- backends, ok := f.([]interface{})
- if !ok {
- fmt.Printf("unexpected type: %T", f)
- }
+ backends := f.([]interface{})
for _, backendi := range backends {
- backend, ok := backendi.(map[string]interface{})
- if !ok {
- fmt.Printf("unexpected type: %T", backendi)
- }
+ backend := backendi.(map[string]interface{})
if backend["name"].(string) == name {
- printed, err := json.MarshalIndent(backend, "", " ")
- if err != nil {
- fmt.Println(err)
- return
- }
+ printed, _ := json.MarshalIndent(backend, "", " ")
fmt.Println(string(printed))
return
}
@@ -228,7 +213,18 @@ func certGet(host string) {
}
func general() {
- // TODO: refactor to obtain ingress-nginx pod count from the api server
+ //TODO: refactor to obtain ingress-nginx pod count from the api server
+ /*
+ statusCode, body, requestErr := nginx.NewGetStatusRequest(generalPath)
+ if requestErr != nil {
+ fmt.Println(requestErr)
+ return
+ }
+ if statusCode != 200 {
+ fmt.Printf("Nginx returned code %v\n", statusCode)
+ return
+ }
+ */
var prettyBuffer bytes.Buffer
indentErr := json.Indent(&prettyBuffer, []byte("{}"), "", " ")
diff --git a/pkg/flags/flags.go b/cmd/nginx/flags.go
similarity index 51%
rename from pkg/flags/flags.go
rename to cmd/nginx/flags.go
index ce24160fd..5fb63b430 100644
--- a/pkg/flags/flags.go
+++ b/cmd/nginx/flags.go
@@ -14,36 +14,29 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
-package flags
+package main
import (
- "errors"
"flag"
"fmt"
- "net"
"os"
"time"
- "github.com/prometheus/client_golang/prometheus"
"github.com/spf13/pflag"
+
apiv1 "k8s.io/api/core/v1"
- "k8s.io/apimachinery/pkg/labels"
+ "k8s.io/klog/v2"
+
+ "k8s.io/ingress-nginx/internal/ingress/annotations/class"
"k8s.io/ingress-nginx/internal/ingress/annotations/parser"
"k8s.io/ingress-nginx/internal/ingress/controller"
ngx_config "k8s.io/ingress-nginx/internal/ingress/controller/config"
- "k8s.io/ingress-nginx/internal/ingress/controller/ingressclass"
- "k8s.io/ingress-nginx/internal/ingress/metric/collectors"
"k8s.io/ingress-nginx/internal/ingress/status"
ing_net "k8s.io/ingress-nginx/internal/net"
"k8s.io/ingress-nginx/internal/nginx"
- klog "k8s.io/klog/v2"
)
-// TODO: We should split the flags functions between common for all programs
-// and specific for each component (like webhook, controller and configurer)
-// ParseFlags generates a configuration for Ingress Controller based on the flags
-// provided by users
-func ParseFlags() (bool, *controller.Configuration, error) {
+func parseFlags() (bool, *controller.Configuration, error) {
var (
flags = pflag.NewFlagSet("", pflag.ExitOnError)
@@ -64,21 +57,10 @@ only when the flag --apiserver-host is specified.`)
Takes the form "namespace/name". The controller configures NGINX to forward
requests to the first port of this Service.`)
- ingressClassAnnotation = flags.String("ingress-class", ingressclass.DefaultAnnotationValue,
- `[IN DEPRECATION] Name of the ingress class this controller satisfies.
-The class of an Ingress object is set using the annotation "kubernetes.io/ingress.class" (deprecated).
-The parameter --controller-class has precedence over this.`)
-
- ingressClassController = flags.String("controller-class", ingressclass.DefaultControllerName,
- `Ingress Class Controller value this Ingress satisfies.
-The class of an Ingress object is set using the field IngressClassName in Kubernetes clusters version v1.19.0 or higher. The .spec.controller value of the IngressClass
-referenced in an Ingress Object should be the same value specified here to make this object be watched.`)
-
- watchWithoutClass = flags.Bool("watch-ingress-without-class", false,
- `Define if Ingress Controller should also watch for Ingresses without an IngressClass or the annotation specified.`)
-
- ingressClassByName = flags.Bool("ingress-class-by-name", false,
- `Define if Ingress Controller should watch for Ingress Class by Name together with Controller Class.`)
+ ingressClass = flags.String("ingress-class", "",
+ `Name of the ingress class this controller satisfies.
+The class of an Ingress object is set using the field IngressClassName in Kubernetes clusters version v1.18.0 or higher or the annotation "kubernetes.io/ingress.class" (deprecated).
+If this parameter is not set, or set to the default value of "nginx", it will handle ingresses with either an empty or "nginx" class name.`)
configMap = flags.String("configmap", "",
`Name of the ConfigMap containing custom global configurations for the controller.`)
@@ -109,11 +91,8 @@ either be a port name or number.`)
This includes Ingresses, Services and all configuration resources. All
namespaces are watched if this parameter is left empty.`)
- watchNamespaceSelector = flags.String("watch-namespace-selector", "",
- `Selector selects namespaces the controller watches for updates to Kubernetes objects.`)
-
profiling = flags.Bool("profiling", true,
- `Enable profiling via web interface host:port/debug/pprof/ .`)
+ `Enable profiling via web interface host:port/debug/pprof/`)
defSSLCertificate = flags.String("default-ssl-certificate", "",
`Secret containing a SSL certificate to be used by the default HTTPS server (catch-all).
@@ -133,9 +112,6 @@ Requires setting the publish-service parameter to a valid Service reference.`)
electionID = flags.String("election-id", "ingress-controller-leader",
`Election id to use for Ingress status updates.`)
- electionTTL = flags.Duration("election-ttl", 30*time.Second,
- `Duration a leader election is valid before it's getting re-elected`)
-
updateStatusOnShutdown = flags.Bool("update-status-on-shutdown", true,
`Update the load-balancer status of Ingress objects when the controller shuts down.
Requires the update-status parameter.`)
@@ -150,18 +126,9 @@ Requires the update-status parameter.`)
enableSSLPassthrough = flags.Bool("enable-ssl-passthrough", false,
`Enable SSL Passthrough.`)
- disableLeaderElection = flags.Bool("disable-leader-election", false,
- `Disable Leader Election on NGINX Controller.`)
-
- disableServiceExternalName = flags.Bool("disable-svc-external-name", false,
- `Disable support for Services of type ExternalName.`)
-
annotationsPrefix = flags.String("annotations-prefix", parser.DefaultAnnotationsPrefix,
`Prefix of the Ingress annotations specific to the NGINX controller.`)
- enableAnnotationValidation = flags.Bool("enable-annotation-validation", true,
- `If true, will enable the annotation validation feature. Defaults to true`)
-
enableSSLChainCompletion = flags.Bool("enable-ssl-chain-completion", false,
`Autocomplete SSL certificate chains with missing intermediate CA certificates.
Certificates uploaded to Kubernetes must have the "Authority Information Access" X.509 v3
@@ -174,22 +141,11 @@ extension for this to succeed.`)
`Customized address (or addresses, separated by comma) to set as the load-balancer status of Ingress objects this controller satisfies.
Requires the update-status parameter.`)
- enableMetrics = flags.Bool("enable-metrics", false,
- `Enables the collection of NGINX metrics.`)
+ enableMetrics = flags.Bool("enable-metrics", true,
+ `Enables the collection of NGINX metrics`)
metricsPerHost = flags.Bool("metrics-per-host", true,
- `Export metrics per-host.`)
- metricsPerUndefinedHost = flags.Bool("metrics-per-undefined-host", false,
- `Export metrics per-host even if the host is not defined in an ingress. Requires --metrics-per-host to be set to true.`)
- reportStatusClasses = flags.Bool("report-status-classes", false,
- `Use status classes (2xx, 3xx, 4xx and 5xx) instead of status codes in metrics.`)
-
- timeBuckets = flags.Float64Slice("time-buckets", prometheus.DefBuckets, "Set of buckets which will be used for prometheus histogram metrics such as RequestTime, ResponseTime.")
- lengthBuckets = flags.Float64Slice("length-buckets", prometheus.LinearBuckets(10, 10, 10), "Set of buckets which will be used for prometheus histogram metrics such as RequestLength, ResponseLength.")
- sizeBuckets = flags.Float64Slice("size-buckets", prometheus.ExponentialBuckets(10, 10, 7), "Set of buckets which will be used for prometheus histogram metrics such as BytesSent.")
- bucketFactor = flags.Float64("bucket-factor", 0, "Bucket factor for native histograms. Value must be > 1 for enabling native histograms.")
- maxBuckets = flags.Uint32("max-buckets", 100, "Maximum number of buckets for native histograms.")
- excludeSocketMetrics = flags.StringSlice("exclude-socket-metrics", []string{}, "et of socket request metrics to exclude which won't be exported nor being calculated. E.g. 'nginx_ingress_controller_success,nginx_ingress_controller_header_duration_seconds'.")
- monitorMaxBatchSize = flags.Int("monitor-max-batch-size", 10000, "Max batch size of NGINX metrics.")
+ `Export metrics per-host`)
+ monitorMaxBatchSize = flags.Int("monitor-max-batch-size", 10000, "Max batch size of NGINX metrics")
httpPort = flags.Int("http-port", 80, `Port to use for servicing HTTP traffic.`)
httpsPort = flags.Int("https-port", 443, `Port to use for servicing HTTPS traffic.`)
@@ -197,10 +153,9 @@ Requires the update-status parameter.`)
sslProxyPort = flags.Int("ssl-passthrough-proxy-port", 442, `Port to use internally for SSL Passthrough.`)
defServerPort = flags.Int("default-server-port", 8181, `Port to use for exposing the default server (catch-all).`)
healthzPort = flags.Int("healthz-port", 10254, "Port to use for the healthz endpoint.")
- healthzHost = flags.String("healthz-host", "", "Address to bind the healthz endpoint.")
disableCatchAll = flags.Bool("disable-catch-all", false,
- `Disable support for catch-all Ingresses.`)
+ `Disable support for catch-all Ingresses`)
validationWebhook = flags.String("validating-webhook", "",
`The address to start an admission controller on to validate incoming ingresses.
@@ -209,43 +164,30 @@ Takes the form ":port". If not provided, no admission controller is starte
`The path of the validating webhook certificate PEM.`)
validationWebhookKey = flags.String("validating-webhook-key", "",
`The path of the validating webhook key PEM.`)
- disableFullValidationTest = flags.Bool("disable-full-test", false,
- `Disable full test of all merged ingresses at the admission stage and tests the template of the ingress being created or updated (full test of all ingresses is enabled by default).`)
statusPort = flags.Int("status-port", 10246, `Port to use for the lua HTTP endpoint configuration.`)
streamPort = flags.Int("stream-port", 10247, "Port to use for the lua TCP/UDP endpoint configuration.")
- internalLoggerAddress = flags.String("internal-logger-address", "127.0.0.1:11514", "Address to be used when binding internal syslogger.")
-
- profilerPort = flags.Int("profiler-port", 10245, "Port to use for expose the ingress controller Go profiler when it is enabled.")
- profilerAddress = flags.IP("profiler-address", net.ParseIP("127.0.0.1"), "IP address used by the ingress controller to expose the Go Profiler when it is enabled.")
+ profilerPort = flags.Int("profiler-port", 10245, "Port to use for expose the ingress controller Go profiler when it is enabled.")
statusUpdateInterval = flags.Int("status-update-interval", status.UpdateInterval, "Time interval in seconds in which the status should check if an update is required. Default is 60 seconds")
shutdownGracePeriod = flags.Int("shutdown-grace-period", 0, "Seconds to wait after receiving the shutdown signal, before stopping the nginx process.")
-
- postShutdownGracePeriod = flags.Int("post-shutdown-grace-period", 10, "Seconds to wait after the nginx process has stopped before controller exits.")
-
- deepInspector = flags.Bool("deep-inspect", true, "Enables ingress object security deep inspector")
-
- dynamicConfigurationRetries = flags.Int("dynamic-configuration-retries", 15, "Number of times to retry failed dynamic configuration before failing to sync an ingress.")
-
- disableSyncEvents = flags.Bool("disable-sync-events", false, "Disables the creation of 'Sync' event resources")
-
- enableTopologyAwareRouting = flags.Bool("enable-topology-aware-routing", false, "Enable topology aware routing feature, needs service object annotation service.kubernetes.io/topology-mode sets to auto.")
)
- flags.StringVar(&nginx.MaxmindMirror, "maxmind-mirror", "", `Maxmind mirror url (example: http://geoip.local/databases.`)
+ flags.StringVar(&nginx.MaxmindMirror, "maxmind-mirror", "", `Maxmind mirror url (example: http://geoip.local/databases`)
flags.StringVar(&nginx.MaxmindLicenseKey, "maxmind-license-key", "", `Maxmind license key to download GeoLite2 Databases.
-https://blog.maxmind.com/2019/12/significant-changes-to-accessing-and-using-geolite2-databases/ .`)
+https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases`)
flags.StringVar(&nginx.MaxmindEditionIDs, "maxmind-edition-ids", "GeoLite2-City,GeoLite2-ASN", `Maxmind edition ids to download GeoLite2 Databases.`)
- flags.IntVar(&nginx.MaxmindRetriesCount, "maxmind-retries-count", 1, "Number of attempts to download the GeoIP DB.")
- flags.DurationVar(&nginx.MaxmindRetriesTimeout, "maxmind-retries-timeout", time.Second*0, "Maxmind downloading delay between 1st and 2nd attempt, 0s - do not retry to download if something went wrong.")
+
+ flag.Set("logtostderr", "true")
flags.AddGoFlagSet(flag.CommandLine)
- if err := flags.Parse(os.Args); err != nil {
- return false, nil, err
- }
+ flags.Parse(os.Args)
+
+ // Workaround for this issue:
+ // https://github.com/kubernetes/kubernetes/issues/17162
+ flag.CommandLine.Parse([]string{})
pflag.VisitAll(func(flag *pflag.Flag) {
klog.V(2).InfoS("FLAG", flag.Name, flag.Value)
@@ -262,8 +204,19 @@ https://blog.maxmind.com/2019/12/significant-changes-to-accessing-and-using-geol
status.UpdateInterval = *statusUpdateInterval
}
+ if *ingressClass != "" {
+ klog.InfoS("Watching for Ingress", "class", *ingressClass)
+
+ if *ingressClass != class.DefaultClass {
+ klog.Warningf("Only Ingresses with class %q will be processed by this Ingress controller", *ingressClass)
+ } else {
+ klog.Warning("Ingresses with an empty class will also be processed by this Ingress controller")
+ }
+
+ class.IngressClass = *ingressClass
+ }
+
parser.AnnotationsPrefix = *annotationsPrefix
- parser.EnableAnnotationValidation = *enableAnnotationValidation
// check port collisions
if !ing_net.IsPortAvailable(*httpPort) {
@@ -293,7 +246,6 @@ https://blog.maxmind.com/2019/12/significant-changes-to-accessing-and-using-geol
nginx.StatusPort = *statusPort
nginx.StreamPort = *streamPort
nginx.ProfilerPort = *profilerPort
- nginx.ProfilerAddress = profilerAddress.String()
if *enableSSLPassthrough && !ing_net.IsPortAvailable(*sslProxyPort) {
return false, nil, fmt.Errorf("port %v is already in use. Please check the flag --ssl-passthrough-proxy-port", *sslProxyPort)
@@ -309,74 +261,31 @@ https://blog.maxmind.com/2019/12/significant-changes-to-accessing-and-using-geol
nginx.HealthCheckTimeout = time.Duration(*defHealthCheckTimeout) * time.Second
}
- if *watchNamespace != "" && *watchNamespaceSelector != "" {
- return false, nil, fmt.Errorf("flags --watch-namespace and --watch-namespace-selector are mutually exclusive")
- }
-
- var namespaceSelector labels.Selector
- if *watchNamespaceSelector != "" {
- var err error
- namespaceSelector, err = labels.Parse(*watchNamespaceSelector)
- if err != nil {
- return false, nil, fmt.Errorf("failed to parse --watch-namespace-selector=%s, error: %v", *watchNamespaceSelector, err)
- }
- }
-
- if *metricsPerUndefinedHost && !*metricsPerHost {
- return false, nil, errors.New("--metrics-per-undefined-host=true must be passed with --metrics-per-host=true")
- }
-
- if *electionTTL <= 0 {
- *electionTTL = 30 * time.Second
- }
-
- histogramBuckets := &collectors.HistogramBuckets{
- TimeBuckets: *timeBuckets,
- LengthBuckets: *lengthBuckets,
- SizeBuckets: *sizeBuckets,
- }
-
ngx_config.EnableSSLChainCompletion = *enableSSLChainCompletion
config := &controller.Configuration{
- APIServerHost: *apiserverHost,
- KubeConfigFile: *kubeConfigFile,
- UpdateStatus: *updateStatus,
- ElectionID: *electionID,
- ElectionTTL: *electionTTL,
- EnableProfiling: *profiling,
- EnableMetrics: *enableMetrics,
- MetricsPerHost: *metricsPerHost,
- MetricsPerUndefinedHost: *metricsPerUndefinedHost,
- MetricsBuckets: histogramBuckets,
- MetricsBucketFactor: *bucketFactor,
- MetricsMaxBuckets: *maxBuckets,
- ReportStatusClasses: *reportStatusClasses,
- ExcludeSocketMetrics: *excludeSocketMetrics,
- MonitorMaxBatchSize: *monitorMaxBatchSize,
- DisableServiceExternalName: *disableServiceExternalName,
- EnableSSLPassthrough: *enableSSLPassthrough,
- DisableLeaderElection: *disableLeaderElection,
- ResyncPeriod: *resyncPeriod,
- DefaultService: *defaultSvc,
- Namespace: *watchNamespace,
- WatchNamespaceSelector: namespaceSelector,
- ConfigMapName: *configMap,
- TCPConfigMapName: *tcpConfigMapName,
- UDPConfigMapName: *udpConfigMapName,
- DisableFullValidationTest: *disableFullValidationTest,
- DefaultSSLCertificate: *defSSLCertificate,
- DeepInspector: *deepInspector,
- PublishService: *publishSvc,
- PublishStatusAddress: *publishStatusAddress,
- UpdateStatusOnShutdown: *updateStatusOnShutdown,
- ShutdownGracePeriod: *shutdownGracePeriod,
- PostShutdownGracePeriod: *postShutdownGracePeriod,
- UseNodeInternalIP: *useNodeInternalIP,
- SyncRateLimit: *syncRateLimit,
- HealthCheckHost: *healthzHost,
- DynamicConfigurationRetries: *dynamicConfigurationRetries,
- EnableTopologyAwareRouting: *enableTopologyAwareRouting,
+ APIServerHost: *apiserverHost,
+ KubeConfigFile: *kubeConfigFile,
+ UpdateStatus: *updateStatus,
+ ElectionID: *electionID,
+ EnableProfiling: *profiling,
+ EnableMetrics: *enableMetrics,
+ MetricsPerHost: *metricsPerHost,
+ MonitorMaxBatchSize: *monitorMaxBatchSize,
+ EnableSSLPassthrough: *enableSSLPassthrough,
+ ResyncPeriod: *resyncPeriod,
+ DefaultService: *defaultSvc,
+ Namespace: *watchNamespace,
+ ConfigMapName: *configMap,
+ TCPConfigMapName: *tcpConfigMapName,
+ UDPConfigMapName: *udpConfigMapName,
+ DefaultSSLCertificate: *defSSLCertificate,
+ PublishService: *publishSvc,
+ PublishStatusAddress: *publishStatusAddress,
+ UpdateStatusOnShutdown: *updateStatusOnShutdown,
+ ShutdownGracePeriod: *shutdownGracePeriod,
+ UseNodeInternalIP: *useNodeInternalIP,
+ SyncRateLimit: *syncRateLimit,
ListenPorts: &ngx_config.ListenPorts{
Default: *defServerPort,
Health: *healthzPort,
@@ -384,46 +293,26 @@ https://blog.maxmind.com/2019/12/significant-changes-to-accessing-and-using-geol
HTTPS: *httpsPort,
SSLProxy: *sslProxyPort,
},
- IngressClassConfiguration: &ingressclass.Configuration{
- Controller: *ingressClassController,
- AnnotationValue: *ingressClassAnnotation,
- WatchWithoutClass: *watchWithoutClass,
- IngressClassByName: *ingressClassByName,
- },
DisableCatchAll: *disableCatchAll,
ValidationWebhook: *validationWebhook,
ValidationWebhookCertPath: *validationWebhookCert,
ValidationWebhookKeyPath: *validationWebhookKey,
- InternalLoggerAddress: *internalLoggerAddress,
- DisableSyncEvents: *disableSyncEvents,
}
if *apiserverHost != "" {
config.RootCAFile = *rootCAFile
}
- var err error
- if nginx.MaxmindEditionIDs != "" {
+ if (nginx.MaxmindLicenseKey != "" || nginx.MaxmindMirror != "") && nginx.MaxmindEditionIDs != "" {
if err := nginx.ValidateGeoLite2DBEditions(); err != nil {
return false, nil, err
}
- if nginx.MaxmindLicenseKey != "" || nginx.MaxmindMirror != "" {
- klog.InfoS("downloading maxmind GeoIP2 databases")
- if err = nginx.DownloadGeoLite2DB(nginx.MaxmindRetriesCount, nginx.MaxmindRetriesTimeout); err != nil {
- klog.ErrorS(err, "unexpected error downloading GeoIP2 database")
- }
+ klog.InfoS("downloading maxmind GeoIP2 databases")
+ if err := nginx.DownloadGeoLite2DB(); err != nil {
+ klog.ErrorS(err, "unexpected error downloading GeoIP2 database")
}
- config.MaxmindEditionFiles = &nginx.MaxmindEditionFiles
+ config.MaxmindEditionFiles = nginx.MaxmindEditionFiles
}
- return false, config, err
-}
-
-// ResetForTesting clears all flag state and sets the usage function as directed.
-// After calling resetForTesting, parse errors in flag handling will not
-// exit the program.
-// Extracted from https://github.com/golang/go/blob/master/src/flag/export_test.go
-func ResetForTesting(usage func()) {
- flag.CommandLine = flag.NewFlagSet(os.Args[0], flag.ContinueOnError)
- flag.Usage = usage
+ return false, config, nil
}
diff --git a/cmd/nginx/flags_test.go b/cmd/nginx/flags_test.go
new file mode 100644
index 000000000..4286d4a20
--- /dev/null
+++ b/cmd/nginx/flags_test.go
@@ -0,0 +1,107 @@
+/*
+Copyright 2017 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package main
+
+import (
+ "flag"
+ "os"
+ "testing"
+)
+
+// resetForTesting clears all flag state and sets the usage function as directed.
+// After calling resetForTesting, parse errors in flag handling will not
+// exit the program.
+// Extracted from https://github.com/golang/go/blob/master/src/flag/export_test.go
+func resetForTesting(usage func()) {
+ flag.CommandLine = flag.NewFlagSet(os.Args[0], flag.ContinueOnError)
+ flag.Usage = usage
+}
+
+func TestNoMandatoryFlag(t *testing.T) {
+ _, _, err := parseFlags()
+ if err != nil {
+ t.Fatalf("Expected no error but got: %s", err)
+ }
+}
+
+func TestDefaults(t *testing.T) {
+ resetForTesting(func() { t.Fatal("Parsing failed") })
+
+ oldArgs := os.Args
+ defer func() { os.Args = oldArgs }()
+ os.Args = []string{"cmd",
+ "--default-backend-service", "namespace/test",
+ "--http-port", "0",
+ "--https-port", "0",
+ }
+
+ showVersion, conf, err := parseFlags()
+ if err != nil {
+ t.Fatalf("Unexpected error parsing default flags: %v", err)
+ }
+
+ if showVersion {
+ t.Fatal("Expected flag \"show-version\" to be false")
+ }
+
+ if conf == nil {
+ t.Fatal("Expected a controller Configuration")
+ }
+}
+
+func TestSetupSSLProxy(t *testing.T) {
+ // TODO
+}
+
+func TestFlagConflict(t *testing.T) {
+ resetForTesting(func() { t.Fatal("Parsing failed") })
+
+ oldArgs := os.Args
+ defer func() { os.Args = oldArgs }()
+ os.Args = []string{"cmd", "--publish-service", "namespace/test", "--http-port", "0", "--https-port", "0", "--publish-status-address", "1.1.1.1"}
+
+ _, _, err := parseFlags()
+ if err == nil {
+ t.Fatalf("Expected an error parsing flags but none returned")
+ }
+}
+
+func TestMaxmindEdition(t *testing.T) {
+ resetForTesting(func() { t.Fatal("Parsing failed") })
+
+ oldArgs := os.Args
+ defer func() { os.Args = oldArgs }()
+ os.Args = []string{"cmd", "--publish-service", "namespace/test", "--http-port", "0", "--https-port", "0", "--maxmind-license-key", "0000000", "--maxmind-edition-ids", "GeoLite2-City, TestCheck"}
+
+ _, _, err := parseFlags()
+ if err == nil {
+ t.Fatalf("Expected an error parsing flags but none returned")
+ }
+}
+
+func TestMaxmindMirror(t *testing.T) {
+ resetForTesting(func() { t.Fatal("Parsing failed") })
+
+ oldArgs := os.Args
+ defer func() { os.Args = oldArgs }()
+ os.Args = []string{"cmd", "--publish-service", "namespace/test", "--http-port", "0", "--https-port", "0", "--maxmind-mirror", "http://geoip.local", "--maxmind-license-key", "0000000", "--maxmind-edition-ids", "GeoLite2-City, TestCheck"}
+
+ _, _, err := parseFlags()
+ if err == nil {
+ t.Fatalf("Expected an error parsing flags but none returned")
+ }
+}
diff --git a/cmd/nginx/logger.go b/cmd/nginx/logger.go
deleted file mode 100644
index 8f0db0257..000000000
--- a/cmd/nginx/logger.go
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
-Copyright 2022 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-package main
-
-import (
- "fmt"
-
- "k8s.io/klog/v2"
-
- "gopkg.in/mcuadros/go-syslog.v2"
-)
-
-func logger(address string) {
- channel := make(syslog.LogPartsChannel)
- handler := syslog.NewChannelHandler(channel)
-
- server := syslog.NewServer()
-
- server.SetFormat(syslog.RFC3164)
- server.SetHandler(handler)
- if err := server.ListenUDP(address); err != nil {
- klog.Fatalf("failed bind internal syslog: %s", err.Error())
- }
-
- if err := server.Boot(); err != nil {
- klog.Fatalf("failed to boot internal syslog: %s", err.Error())
- }
- klog.Infof("Is Chrooted, starting logger")
-
- for logParts := range channel {
- fmt.Printf("%s\n", logParts["content"])
- }
-
- server.Wait()
- klog.Infof("Stopping logger")
-}
diff --git a/cmd/nginx/main.go b/cmd/nginx/main.go
index 781f3a8eb..9c245baa1 100644
--- a/cmd/nginx/main.go
+++ b/cmd/nginx/main.go
@@ -19,43 +19,47 @@ package main
import (
"context"
"fmt"
+ "math/rand" // #nosec
"net/http"
+ "net/http/pprof"
"os"
+ "os/signal"
"path/filepath"
"runtime"
+ "syscall"
"time"
"github.com/prometheus/client_golang/prometheus"
- "github.com/prometheus/client_golang/prometheus/collectors"
+ "github.com/prometheus/client_golang/prometheus/promhttp"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
discovery "k8s.io/apimachinery/pkg/version"
+ "k8s.io/apiserver/pkg/server/healthz"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
certutil "k8s.io/client-go/util/cert"
"k8s.io/klog/v2"
+ "k8s.io/ingress-nginx/internal/file"
+ "k8s.io/ingress-nginx/internal/ingress/annotations/class"
"k8s.io/ingress-nginx/internal/ingress/controller"
"k8s.io/ingress-nginx/internal/ingress/metric"
"k8s.io/ingress-nginx/internal/k8s"
"k8s.io/ingress-nginx/internal/net/ssl"
"k8s.io/ingress-nginx/internal/nginx"
- "k8s.io/ingress-nginx/pkg/util/file"
"k8s.io/ingress-nginx/version"
-
- ingressflags "k8s.io/ingress-nginx/pkg/flags"
- "k8s.io/ingress-nginx/pkg/metrics"
- "k8s.io/ingress-nginx/pkg/util/process"
)
func main() {
klog.InitFlags(nil)
+ rand.Seed(time.Now().UnixNano())
+
fmt.Println(version.String())
- showVersion, conf, err := ingressflags.ParseFlags()
+ showVersion, conf, err := parseFlags()
if showVersion {
os.Exit(0)
}
@@ -74,7 +78,7 @@ func main() {
handleFatalInitError(err)
}
- if conf.DefaultService != "" {
+ if len(conf.DefaultService) > 0 {
err := checkService(conf.DefaultService, kubeClient)
if err != nil {
klog.Fatal(err)
@@ -83,7 +87,7 @@ func main() {
klog.InfoS("Valid default backend", "service", conf.DefaultService)
}
- if conf.PublishService != "" {
+ if len(conf.PublishService) > 0 {
err := checkService(conf.PublishService, kubeClient)
if err != nil {
klog.Fatal(err)
@@ -100,19 +104,38 @@ func main() {
conf.FakeCertificate = ssl.GetFakeSSLCert()
klog.InfoS("SSL fake certificate created", "file", conf.FakeCertificate.PemFileName)
- if !k8s.NetworkingIngressAvailable(kubeClient) {
- klog.Fatalf("ingress-nginx requires Kubernetes v1.19.0 or higher")
+ var isNetworkingIngressAvailable bool
+
+ isNetworkingIngressAvailable, k8s.IsIngressV1Beta1Ready, _ = k8s.NetworkingIngressAvailable(kubeClient)
+ if !isNetworkingIngressAvailable {
+ klog.Fatalf("ingress-nginx requires Kubernetes v1.14.0 or higher")
}
- _, err = kubeClient.NetworkingV1().IngressClasses().List(context.TODO(), metav1.ListOptions{})
- if err != nil {
- if !errors.IsNotFound(err) {
- if errors.IsForbidden(err) {
- klog.Warningf("No permissions to list and get Ingress Classes: %v, IngressClass feature will be disabled", err)
- conf.IngressClassConfiguration.IgnoreIngressClass = true
+ if k8s.IsIngressV1Beta1Ready {
+ klog.InfoS("Enabling new Ingress features available since Kubernetes v1.18")
+ k8s.IngressClass, err = kubeClient.NetworkingV1beta1().IngressClasses().
+ Get(context.TODO(), class.IngressClass, metav1.GetOptions{})
+ if err != nil {
+ if !errors.IsNotFound(err) {
+ if !errors.IsUnauthorized(err) && !errors.IsForbidden(err) {
+ klog.Fatalf("Error searching IngressClass: %v", err)
+ }
+
+ klog.ErrorS(err, "Searching IngressClass", "class", class.IngressClass)
}
+
+ klog.Warningf("No IngressClass resource with name %v found. Only annotation will be used.", class.IngressClass)
+
+ // TODO: remove once this is fixed in client-go
+ k8s.IngressClass = nil
+ }
+
+ if k8s.IngressClass != nil && k8s.IngressClass.Spec.Controller != k8s.IngressNGINXController {
+ klog.Errorf(`Invalid IngressClass (Spec.Controller) value "%v". Should be "%v"`, k8s.IngressClass.Spec.Controller, k8s.IngressNGINXController)
+ klog.Fatalf("IngressClass with name %v is not valid for ingress-nginx (invalid Spec.Controller)", class.IngressClass)
}
}
+
conf.Client = kubeClient
err = k8s.GetIngressPod(kubeClient)
@@ -122,47 +145,60 @@ func main() {
reg := prometheus.NewRegistry()
- reg.MustRegister(collectors.NewGoCollector())
- reg.MustRegister(collectors.NewProcessCollector(collectors.ProcessCollectorOpts{
+ reg.MustRegister(prometheus.NewGoCollector())
+ reg.MustRegister(prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{
PidFn: func() (int, error) { return os.Getpid(), nil },
ReportErrors: true,
}))
mc := metric.NewDummyCollector()
if conf.EnableMetrics {
- mc, err = metric.NewCollector(conf.MetricsPerHost, conf.MetricsPerUndefinedHost, conf.ReportStatusClasses, reg, conf.IngressClassConfiguration.Controller, *conf.MetricsBuckets, conf.MetricsBucketFactor, conf.MetricsMaxBuckets, conf.ExcludeSocketMetrics)
+ mc, err = metric.NewCollector(conf.MetricsPerHost, reg)
if err != nil {
klog.Fatalf("Error creating prometheus collector: %v", err)
}
}
- // Pass the ValidationWebhook status to determine if we need to start the collector
- // for the admissionWebhook
- mc.Start(conf.ValidationWebhook)
+ mc.Start()
if conf.EnableProfiling {
- go metrics.RegisterProfiler(nginx.ProfilerAddress, nginx.ProfilerPort)
+ go registerProfiler()
}
ngx := controller.NewNGINXController(conf, mc)
mux := http.NewServeMux()
- metrics.RegisterHealthz(nginx.HealthPath, mux, ngx)
- metrics.RegisterMetrics(reg, mux)
+ registerHealthz(nginx.HealthPath, ngx, mux)
+ registerMetrics(reg, mux)
- _, errExists := os.Stat("/chroot")
- if errExists == nil {
- conf.IsChroot = true
- go logger(conf.InternalLoggerAddress)
- }
-
- go metrics.StartHTTPServer(conf.HealthCheckHost, conf.ListenPorts.Health, mux)
+ go startHTTPServer(conf.ListenPorts.Health, mux)
go ngx.Start()
- process.HandleSigterm(ngx, conf.PostShutdownGracePeriod, func(code int) {
+ handleSigterm(ngx, func(code int) {
os.Exit(code)
})
}
+type exiter func(code int)
+
+func handleSigterm(ngx *controller.NGINXController, exit exiter) {
+ signalChan := make(chan os.Signal, 1)
+ signal.Notify(signalChan, syscall.SIGTERM)
+ <-signalChan
+ klog.InfoS("Received SIGTERM, shutting down")
+
+ exitCode := 0
+ if err := ngx.Stop(); err != nil {
+ klog.Warningf("Error during shutdown: %v", err)
+ exitCode = 1
+ }
+
+ klog.InfoS("Handled quit, awaiting Pod deletion")
+ time.Sleep(10 * time.Second)
+
+ klog.InfoS("Exiting", "code", exitCode)
+ exit(exitCode)
+}
+
// createApiserverClient creates a new Kubernetes REST client. apiserverHost is
// the URL of the API server in the format protocol://address:port/pathPrefix,
// kubeConfig is the location of a kubeconfig file. If defined, the kubeconfig
@@ -235,6 +271,7 @@ func createApiserverClient(apiserverHost, rootCAFile, kubeConfig string) (*kuber
retries++
return false, nil
})
+
// err is returned in case of timeout in the exponential backoff (ErrWaitTimeout)
if err != nil {
return nil, lastErr
@@ -267,6 +304,58 @@ func handleFatalInitError(err error) {
err)
}
+func registerHealthz(healthPath string, ic *controller.NGINXController, mux *http.ServeMux) {
+ // expose health check endpoint (/healthz)
+ healthz.InstallPathHandler(mux,
+ healthPath,
+ healthz.PingHealthz,
+ ic,
+ )
+}
+
+func registerMetrics(reg *prometheus.Registry, mux *http.ServeMux) {
+ mux.Handle(
+ "/metrics",
+ promhttp.InstrumentMetricHandler(
+ reg,
+ promhttp.HandlerFor(reg, promhttp.HandlerOpts{}),
+ ),
+ )
+}
+
+func registerProfiler() {
+ mux := http.NewServeMux()
+
+ mux.HandleFunc("/debug/pprof/", pprof.Index)
+ mux.HandleFunc("/debug/pprof/heap", pprof.Index)
+ mux.HandleFunc("/debug/pprof/mutex", pprof.Index)
+ mux.HandleFunc("/debug/pprof/goroutine", pprof.Index)
+ mux.HandleFunc("/debug/pprof/threadcreate", pprof.Index)
+ mux.HandleFunc("/debug/pprof/block", pprof.Index)
+ mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
+ mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
+ mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
+ mux.HandleFunc("/debug/pprof/trace", pprof.Trace)
+
+ server := &http.Server{
+ Addr: fmt.Sprintf("127.0.0.1:%v", nginx.ProfilerPort),
+ Handler: mux,
+ }
+ klog.Fatal(server.ListenAndServe())
+}
+
+func startHTTPServer(port int, mux *http.ServeMux) {
+ server := &http.Server{
+ Addr: fmt.Sprintf(":%v", port),
+ Handler: mux,
+ ReadTimeout: 10 * time.Second,
+ ReadHeaderTimeout: 10 * time.Second,
+ WriteTimeout: 300 * time.Second,
+ IdleTimeout: 120 * time.Second,
+ }
+ klog.Fatal(server.ListenAndServe())
+}
+
func checkService(key string, kubeClient *kubernetes.Clientset) error {
ns, name, err := k8s.ParseNameNS(key)
if err != nil {
@@ -280,10 +369,10 @@ func checkService(key string, kubeClient *kubernetes.Clientset) error {
}
if errors.IsNotFound(err) {
- return fmt.Errorf("no service with name %v found in namespace %v: %v", name, ns, err)
+ return fmt.Errorf("No service with name %v found in namespace %v: %v", name, ns, err)
}
- return fmt.Errorf("unexpected error searching service with name %v in namespace %v: %v", name, ns, err)
+ return fmt.Errorf("Unexpected error searching service with name %v in namespace %v: %v", name, ns, err)
}
return nil
diff --git a/cmd/nginx/main_test.go b/cmd/nginx/main_test.go
index 13f1e9eec..e6d24b301 100644
--- a/cmd/nginx/main_test.go
+++ b/cmd/nginx/main_test.go
@@ -33,8 +33,6 @@ import (
"k8s.io/ingress-nginx/internal/ingress/controller"
"k8s.io/ingress-nginx/internal/k8s"
"k8s.io/ingress-nginx/internal/nginx"
- ingressflags "k8s.io/ingress-nginx/pkg/flags"
- "k8s.io/ingress-nginx/pkg/util/process"
)
func TestCreateApiserverClient(t *testing.T) {
@@ -47,7 +45,7 @@ func TestCreateApiserverClient(t *testing.T) {
func init() {
// the default value of nginx.TemplatePath assumes the template exists in
// the root filesystem and not in the rootfs directory
- path, err := filepath.Abs(filepath.Join("..", "..", "rootfs", nginx.TemplatePath))
+ path, err := filepath.Abs(filepath.Join("../../rootfs/", nginx.TemplatePath))
if err == nil {
nginx.TemplatePath = path
}
@@ -85,21 +83,21 @@ func TestHandleSigterm(t *testing.T) {
t.Fatalf("error creating pod %v: %v", pod, err)
}
- ingressflags.ResetForTesting(func() { t.Fatal("bad parse") })
+ resetForTesting(func() { t.Fatal("bad parse") })
- t.Setenv("POD_NAME", podName)
- t.Setenv("POD_NAMESPACE", namespace)
+ os.Setenv("POD_NAME", podName)
+ os.Setenv("POD_NAMESPACE", namespace)
oldArgs := os.Args
defer func() {
- t.Setenv("POD_NAME", "")
- t.Setenv("POD_NAMESPACE", "")
+ os.Setenv("POD_NAME", "")
+ os.Setenv("POD_NAMESPACE", "")
os.Args = oldArgs
}()
os.Args = []string{"cmd", "--default-backend-service", "ingress-nginx/default-backend-http", "--http-port", "0", "--https-port", "0"}
- _, conf, err := ingressflags.ParseFlags()
+ _, conf, err := parseFlags()
if err != nil {
t.Errorf("Unexpected error creating NGINX controller: %v", err)
}
@@ -107,7 +105,7 @@ func TestHandleSigterm(t *testing.T) {
ngx := controller.NewNGINXController(conf, nil)
- go process.HandleSigterm(ngx, 10, func(code int) {
+ go handleSigterm(ngx, func(code int) {
if code != 1 {
t.Errorf("Expected exit code 1 but %d received", code)
}
diff --git a/cmd/plugin/commands/backends/backends.go b/cmd/plugin/commands/backends/backends.go
index e7bd42147..341c62a9c 100644
--- a/cmd/plugin/commands/backends/backends.go
+++ b/cmd/plugin/commands/backends/backends.go
@@ -30,11 +30,11 @@ import (
// CreateCommand creates and returns this cobra subcommand
func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
- var pod, deployment, selector, container *string
+ var pod, deployment, selector *string
cmd := &cobra.Command{
Use: "backends",
Short: "Inspect the dynamic backend information of an ingress-nginx instance",
- RunE: func(cmd *cobra.Command, _ []string) error {
+ RunE: func(cmd *cobra.Command, args []string) error {
backend, err := cmd.Flags().GetString("backend")
if err != nil {
return err
@@ -47,7 +47,7 @@ func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
return fmt.Errorf("--list and --backend cannot both be specified")
}
- util.PrintError(backends(flags, *pod, *deployment, *selector, *container, backend, onlyList))
+ util.PrintError(backends(flags, *pod, *deployment, *selector, backend, onlyList))
return nil
},
}
@@ -55,7 +55,6 @@ func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
pod = util.AddPodFlag(cmd)
deployment = util.AddDeploymentFlag(cmd)
selector = util.AddSelectorFlag(cmd)
- container = util.AddContainerFlag(cmd)
cmd.Flags().String("backend", "", "Output only the information for the given backend")
cmd.Flags().Bool("list", false, "Output a newline-separated list of backend names")
@@ -63,14 +62,13 @@ func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
return cmd
}
-func backends(flags *genericclioptions.ConfigFlags, podName, deployment, selector, container, backend string, onlyList bool) error {
+func backends(flags *genericclioptions.ConfigFlags, podName string, deployment string, selector string, backend string, onlyList bool) error {
var command []string
- switch {
- case onlyList:
+ if onlyList {
command = []string{"/dbg", "backends", "list"}
- case backend != "":
+ } else if backend != "" {
command = []string{"/dbg", "backends", "get", backend}
- default:
+ } else {
command = []string{"/dbg", "backends", "all"}
}
@@ -79,7 +77,7 @@ func backends(flags *genericclioptions.ConfigFlags, podName, deployment, selecto
return err
}
- out, err := kubectl.PodExecString(flags, &pod, container, command)
+ out, err := kubectl.PodExecString(flags, &pod, command)
if err != nil {
return err
}
diff --git a/cmd/plugin/commands/certs/certs.go b/cmd/plugin/commands/certs/certs.go
index 4a7fee1cf..07fd08ad3 100644
--- a/cmd/plugin/commands/certs/certs.go
+++ b/cmd/plugin/commands/certs/certs.go
@@ -18,7 +18,6 @@ package certs
import (
"fmt"
- "os"
"github.com/spf13/cobra"
@@ -31,35 +30,31 @@ import (
// CreateCommand creates and returns this cobra subcommand
func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
- var pod, deployment, selector, container *string
+ var pod, deployment, selector *string
cmd := &cobra.Command{
Use: "certs",
Short: "Output the certificate data stored in an ingress-nginx pod",
- RunE: func(cmd *cobra.Command, _ []string) error {
+ RunE: func(cmd *cobra.Command, args []string) error {
host, err := cmd.Flags().GetString("host")
if err != nil {
return err
}
- util.PrintError(certs(flags, *pod, *deployment, *selector, *container, host))
+ util.PrintError(certs(flags, *pod, *deployment, *selector, host))
return nil
},
}
cmd.Flags().String("host", "", "Get the cert for this hostname")
- if err := cobra.MarkFlagRequired(cmd.Flags(), "host"); err != nil {
- util.PrintError(err)
- os.Exit(1)
- }
+ cobra.MarkFlagRequired(cmd.Flags(), "host")
pod = util.AddPodFlag(cmd)
deployment = util.AddDeploymentFlag(cmd)
selector = util.AddSelectorFlag(cmd)
- container = util.AddContainerFlag(cmd)
return cmd
}
-func certs(flags *genericclioptions.ConfigFlags, podName, deployment, selector, container, host string) error {
+func certs(flags *genericclioptions.ConfigFlags, podName string, deployment string, selector string, host string) error {
command := []string{"/dbg", "certs", "get", host}
pod, err := request.ChoosePod(flags, podName, deployment, selector)
@@ -67,7 +62,7 @@ func certs(flags *genericclioptions.ConfigFlags, podName, deployment, selector,
return err
}
- out, err := kubectl.PodExecString(flags, &pod, container, command)
+ out, err := kubectl.PodExecString(flags, &pod, command)
if err != nil {
return err
}
diff --git a/cmd/plugin/commands/conf/conf.go b/cmd/plugin/commands/conf/conf.go
index 5821b11f1..5caa2a649 100644
--- a/cmd/plugin/commands/conf/conf.go
+++ b/cmd/plugin/commands/conf/conf.go
@@ -32,17 +32,17 @@ import (
// CreateCommand creates and returns this cobra subcommand
func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
- var pod, deployment, selector, container *string
+ var pod, deployment, selector *string
cmd := &cobra.Command{
Use: "conf",
Short: "Inspect the generated nginx.conf",
- RunE: func(cmd *cobra.Command, _ []string) error {
+ RunE: func(cmd *cobra.Command, args []string) error {
host, err := cmd.Flags().GetString("host")
if err != nil {
return err
}
- util.PrintError(conf(flags, host, *pod, *deployment, *selector, *container))
+ util.PrintError(conf(flags, host, *pod, *deployment, *selector))
return nil
},
}
@@ -50,18 +50,17 @@ func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
pod = util.AddPodFlag(cmd)
deployment = util.AddDeploymentFlag(cmd)
selector = util.AddSelectorFlag(cmd)
- container = util.AddContainerFlag(cmd)
return cmd
}
-func conf(flags *genericclioptions.ConfigFlags, host, podName, deployment, selector, container string) error {
+func conf(flags *genericclioptions.ConfigFlags, host string, podName string, deployment string, selector string) error {
pod, err := request.ChoosePod(flags, podName, deployment, selector)
if err != nil {
return err
}
- nginxConf, err := kubectl.PodExecString(flags, &pod, container, []string{"/dbg", "conf"})
+ nginxConf, err := kubectl.PodExecString(flags, &pod, []string{"/dbg", "conf"})
if err != nil {
return err
}
diff --git a/cmd/plugin/commands/exec/exec.go b/cmd/plugin/commands/exec/exec.go
index a91bdb594..5f1a31913 100644
--- a/cmd/plugin/commands/exec/exec.go
+++ b/cmd/plugin/commands/exec/exec.go
@@ -29,21 +29,19 @@ import (
// CreateCommand creates and returns this cobra subcommand
func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
opts := execFlags{}
- var pod, deployment, selector, container *string
+ var pod, deployment, selector *string
cmd := &cobra.Command{
Use: "exec",
Short: "Execute a command inside an ingress-nginx pod",
- RunE: func(_ *cobra.Command, args []string) error {
- util.PrintError(exec(flags, *pod, *deployment, *selector, *container, args, opts))
+ RunE: func(cmd *cobra.Command, args []string) error {
+ util.PrintError(exec(flags, *pod, *deployment, *selector, args, opts))
return nil
},
}
pod = util.AddPodFlag(cmd)
deployment = util.AddDeploymentFlag(cmd)
selector = util.AddSelectorFlag(cmd)
- container = util.AddContainerFlag(cmd)
-
cmd.Flags().BoolVarP(&opts.TTY, "tty", "t", false, "Stdin is a TTY")
cmd.Flags().BoolVarP(&opts.Stdin, "stdin", "i", false, "Pass stdin to the container")
@@ -55,7 +53,7 @@ type execFlags struct {
Stdin bool
}
-func exec(flags *genericclioptions.ConfigFlags, podName, deployment, selector, container string, cmd []string, opts execFlags) error {
+func exec(flags *genericclioptions.ConfigFlags, podName string, deployment string, selector string, cmd []string, opts execFlags) error {
pod, err := request.ChoosePod(flags, podName, deployment, selector)
if err != nil {
return err
@@ -69,7 +67,7 @@ func exec(flags *genericclioptions.ConfigFlags, podName, deployment, selector, c
args = append(args, "-i")
}
- args = append(args, []string{"-n", pod.Namespace, "-c", container, pod.Name, "--"}...)
+ args = append(args, []string{"-n", pod.Namespace, pod.Name, "--"}...)
args = append(args, cmd...)
return kubectl.Exec(flags, args)
}
diff --git a/cmd/plugin/commands/general/general.go b/cmd/plugin/commands/general/general.go
index d7b3b34f9..44e02ca88 100644
--- a/cmd/plugin/commands/general/general.go
+++ b/cmd/plugin/commands/general/general.go
@@ -30,30 +30,29 @@ import (
// CreateCommand creates and returns this cobra subcommand
func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
- var pod, deployment, selector, container *string
+ var pod, deployment, selector *string
cmd := &cobra.Command{
Use: "general",
Short: "Inspect the other dynamic ingress-nginx information",
- RunE: func(_ *cobra.Command, _ []string) error {
- util.PrintError(general(flags, *pod, *deployment, *selector, *container))
+ RunE: func(cmd *cobra.Command, args []string) error {
+ util.PrintError(general(flags, *pod, *deployment, *selector))
return nil
},
}
pod = util.AddPodFlag(cmd)
deployment = util.AddDeploymentFlag(cmd)
selector = util.AddSelectorFlag(cmd)
- container = util.AddContainerFlag(cmd)
return cmd
}
-func general(flags *genericclioptions.ConfigFlags, podName, deployment, selector, container string) error {
+func general(flags *genericclioptions.ConfigFlags, podName string, deployment string, selector string) error {
pod, err := request.ChoosePod(flags, podName, deployment, selector)
if err != nil {
return err
}
- out, err := kubectl.PodExecString(flags, &pod, container, []string{"/dbg", "general"})
+ out, err := kubectl.PodExecString(flags, &pod, []string{"/dbg", "general"})
if err != nil {
return err
}
diff --git a/cmd/plugin/commands/info/info.go b/cmd/plugin/commands/info/info.go
index e0fd3aaec..246046c3a 100644
--- a/cmd/plugin/commands/info/info.go
+++ b/cmd/plugin/commands/info/info.go
@@ -32,7 +32,7 @@ func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
cmd := &cobra.Command{
Use: "info",
Short: "Show information about the ingress-nginx service",
- RunE: func(cmd *cobra.Command, _ []string) error {
+ RunE: func(cmd *cobra.Command, args []string) error {
service, err := cmd.Flags().GetString("service")
if err != nil {
return err
diff --git a/cmd/plugin/commands/ingresses/ingresses.go b/cmd/plugin/commands/ingresses/ingresses.go
index 7cb90a570..38da62930 100644
--- a/cmd/plugin/commands/ingresses/ingresses.go
+++ b/cmd/plugin/commands/ingresses/ingresses.go
@@ -22,8 +22,7 @@ import (
"text/tabwriter"
"github.com/spf13/cobra"
- networking "k8s.io/api/networking/v1"
- "k8s.io/apimachinery/pkg/util/intstr"
+ networking "k8s.io/api/networking/v1beta1"
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/ingress-nginx/cmd/plugin/request"
@@ -36,7 +35,7 @@ func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
Use: "ingresses",
Aliases: []string{"ingress", "ing"},
Short: "Provide a short summary of all of the ingress definitions",
- RunE: func(cmd *cobra.Command, _ []string) error {
+ RunE: func(cmd *cobra.Command, args []string) error {
host, err := cmd.Flags().GetString("host")
if err != nil {
return err
@@ -74,9 +73,9 @@ func ingresses(flags *genericclioptions.ConfigFlags, host string, allNamespaces
if host != "" {
rowsWithHost := make([]ingressRow, 0)
- for i := range rows {
- if rows[i].Host == host {
- rowsWithHost = append(rowsWithHost, rows[i])
+ for _, row := range rows {
+ if row.Host == host {
+ rowsWithHost = append(rowsWithHost, row)
}
}
rows = rowsWithHost
@@ -91,8 +90,7 @@ func ingresses(flags *genericclioptions.ConfigFlags, host string, allNamespaces
fmt.Fprintln(printer, "INGRESS NAME\tHOST+PATH\tADDRESSES\tTLS\tSERVICE\tSERVICE PORT\tENDPOINTS")
}
- for i := range rows {
- row := &rows[i]
+ for _, row := range rows {
var tlsMsg string
if row.TLS {
tlsMsg = "YES"
@@ -135,18 +133,18 @@ type ingressRow struct {
func getIngressRows(ingresses *[]networking.Ingress) []ingressRow {
rows := make([]ingressRow, 0)
- for i := range *ingresses {
- ing := &(*ingresses)[i]
+ for _, ing := range *ingresses {
+
address := ""
for _, lbIng := range ing.Status.LoadBalancer.Ingress {
- if lbIng.IP != "" {
+ if len(lbIng.IP) > 0 {
address = address + lbIng.IP + ","
}
- if lbIng.Hostname != "" {
+ if len(lbIng.Hostname) > 0 {
address = address + lbIng.Hostname + ","
}
}
- if address != "" {
+ if len(address) > 0 {
address = address[:len(address)-1]
}
@@ -159,14 +157,13 @@ func getIngressRows(ingresses *[]networking.Ingress) []ingressRow {
defaultBackendService := ""
defaultBackendPort := ""
- if ing.Spec.DefaultBackend != nil {
- name, port := serviceToNameAndPort(ing.Spec.DefaultBackend.Service)
- defaultBackendService = name
- defaultBackendPort = port.String()
+ if ing.Spec.Backend != nil {
+ defaultBackendService = ing.Spec.Backend.ServiceName
+ defaultBackendPort = ing.Spec.Backend.ServicePort.String()
}
// Handle catch-all ingress
- if len(ing.Spec.Rules) == 0 && defaultBackendService != "" {
+ if len(ing.Spec.Rules) == 0 && len(defaultBackendService) > 0 {
row := ingressRow{
Namespace: ing.Namespace,
IngressName: ing.Name,
@@ -183,7 +180,7 @@ func getIngressRows(ingresses *[]networking.Ingress) []ingressRow {
for _, rule := range ing.Spec.Rules {
_, hasTLS := tlsHosts[rule.Host]
- // Handle ingress with no paths
+ //Handle ingress with no paths
if rule.HTTP == nil {
row := ingressRow{
Namespace: ing.Namespace,
@@ -200,15 +197,14 @@ func getIngressRows(ingresses *[]networking.Ingress) []ingressRow {
}
for _, path := range rule.HTTP.Paths {
- svcName, svcPort := serviceToNameAndPort(path.Backend.Service)
row := ingressRow{
Namespace: ing.Namespace,
IngressName: ing.Name,
Host: rule.Host,
Path: path.Path,
TLS: hasTLS,
- ServiceName: svcName,
- ServicePort: svcPort.String(),
+ ServiceName: path.Backend.ServiceName,
+ ServicePort: path.Backend.ServicePort.String(),
Address: address,
}
@@ -219,17 +215,3 @@ func getIngressRows(ingresses *[]networking.Ingress) []ingressRow {
return rows
}
-
-func serviceToNameAndPort(svc *networking.IngressServiceBackend) (string, intstr.IntOrString) {
- var svcName string
- if svc != nil {
- svcName = svc.Name
- if svc.Port.Number > 0 {
- return svcName, intstr.FromInt(int(svc.Port.Number))
- }
- if svc.Port.Name != "" {
- return svcName, intstr.FromString(svc.Port.Name)
- }
- }
- return "", intstr.IntOrString{}
-}
diff --git a/cmd/plugin/commands/ingresses/ingresses_test.go b/cmd/plugin/commands/ingresses/ingresses_test.go
deleted file mode 100644
index 7a90efe46..000000000
--- a/cmd/plugin/commands/ingresses/ingresses_test.go
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
-Copyright 2021 The Kubernetes Authors.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-package ingresses
-
-import (
- "testing"
-
- networking "k8s.io/api/networking/v1"
- "k8s.io/apimachinery/pkg/util/intstr"
-)
-
-func TestGetIngressInformation(t *testing.T) {
- testcases := map[string]struct {
- ServiceBackend *networking.IngressServiceBackend
- wantName string
- wantPort intstr.IntOrString
- }{
- "empty ingressServiceBackend": {
- ServiceBackend: &networking.IngressServiceBackend{},
- wantName: "",
- wantPort: intstr.IntOrString{},
- },
- "ingressServiceBackend with port 8080": {
- ServiceBackend: &networking.IngressServiceBackend{
- Name: "test",
- Port: networking.ServiceBackendPort{
- Number: 8080,
- },
- },
- wantName: "test",
- wantPort: intstr.IntOrString{
- Type: intstr.Int,
- IntVal: 8080,
- },
- },
- "ingressServiceBackend with port name a-svc": {
- ServiceBackend: &networking.IngressServiceBackend{
- Name: "test",
- Port: networking.ServiceBackendPort{
- Name: "a-svc",
- },
- },
- wantName: "test",
- wantPort: intstr.IntOrString{
- Type: intstr.String,
- StrVal: "a-svc",
- },
- },
- }
-
- for title, testCase := range testcases {
- gotName, gotPort := serviceToNameAndPort(testCase.ServiceBackend)
- if gotName != testCase.wantName {
- t.Fatalf("%s: expected '%v' but returned %v", title, testCase.wantName, gotName)
- }
- if gotPort != testCase.wantPort {
- t.Fatalf("%s: expected '%v' but returned %v", title, testCase.wantPort, gotPort)
- }
- }
-}
diff --git a/cmd/plugin/commands/lint/main.go b/cmd/plugin/commands/lint/main.go
index 69ab984f5..d120e9311 100644
--- a/cmd/plugin/commands/lint/main.go
+++ b/cmd/plugin/commands/lint/main.go
@@ -22,7 +22,7 @@ import (
"github.com/spf13/cobra"
appsv1 "k8s.io/api/apps/v1"
- networking "k8s.io/api/networking/v1"
+ networking "k8s.io/api/networking/v1beta1"
kmeta "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/cli-runtime/pkg/genericclioptions"
@@ -38,7 +38,7 @@ func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
cmd := &cobra.Command{
Use: "lint",
Short: "Inspect kubernetes resources for possible issues",
- RunE: func(_ *cobra.Command, _ []string) error {
+ RunE: func(cmd *cobra.Command, args []string) error {
err := opts.Validate()
if err != nil {
return err
@@ -73,7 +73,7 @@ func createSubcommand(flags *genericclioptions.ConfigFlags, names []string, shor
Use: names[0],
Aliases: names[1:],
Short: short,
- RunE: func(_ *cobra.Command, _ []string) error {
+ RunE: func(cmd *cobra.Command, args []string) error {
err := opts.Validate()
if err != nil {
return err
@@ -111,13 +111,11 @@ type lintOptions struct {
}
func (opts *lintOptions) Validate() error {
- //nolint:dogsled // Ignore 3 blank identifiers
_, _, _, err := util.ParseVersionString(opts.versionFrom)
if err != nil {
return err
}
- //nolint:dogsled // Ignore 3 blank identifiers
_, _, _, err = util.ParseVersionString(opts.versionTo)
if err != nil {
return err
@@ -133,9 +131,9 @@ type lint interface {
Version() string
}
-func checkObjectArray(allLints []lint, objects []kmeta.Object, opts lintOptions) {
+func checkObjectArray(lints []lint, objects []kmeta.Object, opts lintOptions) {
usedLints := make([]lint, 0)
- for _, lint := range allLints {
+ for _, lint := range lints {
lintVersion := lint.Version()
if lint.Version() == "" {
lintVersion = "0.0.0"
@@ -191,7 +189,7 @@ func ingresses(opts lintOptions) error {
return err
}
- iLints := lints.GetIngressLints()
+ var iLints []lints.IngressLint = lints.GetIngressLints()
genericLints := make([]lint, len(iLints))
for i := range iLints {
genericLints[i] = iLints[i]
@@ -218,7 +216,7 @@ func deployments(opts lintOptions) error {
return err
}
- iLints := lints.GetDeploymentLints()
+ var iLints []lints.DeploymentLint = lints.GetDeploymentLints()
genericLints := make([]lint, len(iLints))
for i := range iLints {
genericLints[i] = iLints[i]
diff --git a/cmd/plugin/commands/logs/logs.go b/cmd/plugin/commands/logs/logs.go
index d9f6e7bd8..55cd008dc 100644
--- a/cmd/plugin/commands/logs/logs.go
+++ b/cmd/plugin/commands/logs/logs.go
@@ -31,20 +31,19 @@ import (
// CreateCommand creates and returns this cobra subcommand
func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
o := logsFlags{}
- var pod, deployment, selector, container *string
+ var pod, deployment, selector *string
cmd := &cobra.Command{
Use: "logs",
Short: "Get the kubernetes logs for an ingress-nginx pod",
- RunE: func(_ *cobra.Command, _ []string) error {
- util.PrintError(logs(flags, *pod, *deployment, *selector, *container, o))
+ RunE: func(cmd *cobra.Command, args []string) error {
+ util.PrintError(logs(flags, *pod, *deployment, *selector, o))
return nil
},
}
pod = util.AddPodFlag(cmd)
deployment = util.AddDeploymentFlag(cmd)
selector = util.AddSelectorFlag(cmd)
- container = util.AddContainerFlag(cmd)
cmd.Flags().BoolVarP(&o.Follow, "follow", "f", o.Follow, "Specify if the logs should be streamed.")
cmd.Flags().BoolVar(&o.Timestamps, "timestamps", o.Timestamps, "Include timestamps on each line in the log output")
@@ -95,13 +94,13 @@ func (o *logsFlags) toStrings() []string {
return r
}
-func logs(flags *genericclioptions.ConfigFlags, podName, deployment, selector, container string, opts logsFlags) error {
+func logs(flags *genericclioptions.ConfigFlags, podName string, deployment string, selector string, opts logsFlags) error {
pod, err := request.ChoosePod(flags, podName, deployment, selector)
if err != nil {
return err
}
- cmd := []string{"logs", "-n", pod.Namespace, "-c", container, pod.Name}
+ cmd := []string{"logs", "-n", pod.Namespace, pod.Name}
cmd = append(cmd, opts.toStrings()...)
return kubectl.Exec(flags, cmd)
}
diff --git a/cmd/plugin/commands/ssh/ssh.go b/cmd/plugin/commands/ssh/ssh.go
index c9631d10b..5e8b49fac 100644
--- a/cmd/plugin/commands/ssh/ssh.go
+++ b/cmd/plugin/commands/ssh/ssh.go
@@ -28,28 +28,27 @@ import (
// CreateCommand creates and returns this cobra subcommand
func CreateCommand(flags *genericclioptions.ConfigFlags) *cobra.Command {
- var pod, deployment, selector, container *string
+ var pod, deployment, selector *string
cmd := &cobra.Command{
Use: "ssh",
Short: "ssh into a running ingress-nginx pod",
- RunE: func(_ *cobra.Command, _ []string) error {
- util.PrintError(ssh(flags, *pod, *deployment, *selector, *container))
+ RunE: func(cmd *cobra.Command, args []string) error {
+ util.PrintError(ssh(flags, *pod, *deployment, *selector))
return nil
},
}
pod = util.AddPodFlag(cmd)
deployment = util.AddDeploymentFlag(cmd)
selector = util.AddSelectorFlag(cmd)
- container = util.AddContainerFlag(cmd)
return cmd
}
-func ssh(flags *genericclioptions.ConfigFlags, podName, deployment, selector, container string) error {
+func ssh(flags *genericclioptions.ConfigFlags, podName string, deployment string, selector string) error {
pod, err := request.ChoosePod(flags, podName, deployment, selector)
if err != nil {
return err
}
- return kubectl.Exec(flags, []string{"exec", "-it", "-n", pod.Namespace, "-c", container, pod.Name, "--", "/bin/bash"})
+ return kubectl.Exec(flags, []string{"exec", "-it", "-n", pod.Namespace, pod.Name, "--", "/bin/bash"})
}
diff --git a/cmd/plugin/ingress-nginx.yaml.tmpl b/cmd/plugin/ingress-nginx.yaml.tmpl
new file mode 100644
index 000000000..f5e7c3541
--- /dev/null
+++ b/cmd/plugin/ingress-nginx.yaml.tmpl
@@ -0,0 +1,41 @@
+apiVersion: krew.googlecontainertools.github.com/v1alpha2
+kind: Plugin
+metadata:
+ name: ingress-nginx
+spec:
+ shortDescription: Interact with ingress-nginx
+ description: |
+ The official kubectl plugin for ingress-nginx.
+ version: v%%%tag%%%
+ homepage: https://kubernetes.github.io/ingress-nginx/kubectl-plugin/
+ platforms:
+ - uri: https://github.com/kubernetes/ingress-nginx/releases/download/nginx-%%%tag%%%/kubectl-ingress_nginx-darwin-amd64.tar.gz
+ sha256: %%%shasum_darwin_amd64%%%
+ files:
+ - from: "*"
+ to: "."
+ bin: "./kubectl-ingress_nginx"
+ selector:
+ matchLabels:
+ os: darwin
+ arch: amd64
+ - uri: https://github.com/kubernetes/ingress-nginx/releases/download/nginx-%%%tag%%%/kubectl-ingress_nginx-linux-amd64.tar.gz
+ sha256: %%%shasum_linux_amd64%%%
+ files:
+ - from: "*"
+ to: "."
+ bin: "./kubectl-ingress_nginx"
+ selector:
+ matchLabels:
+ os: linux
+ arch: amd64
+ - uri: https://github.com/kubernetes/ingress-nginx/releases/download/nginx-%%%tag%%%/kubectl-ingress_nginx-windows-amd64.tar.gz
+ sha256: %%%shasum_windows_amd64%%%
+ files:
+ - from: "*"
+ to: "."
+ bin: "./kubectl-ingress_nginx.exe"
+ selector:
+ matchLabels:
+ os: windows
+ arch: amd64
diff --git a/cmd/plugin/krew.yaml b/cmd/plugin/krew.yaml
deleted file mode 100644
index 0ef537d34..000000000
--- a/cmd/plugin/krew.yaml
+++ /dev/null
@@ -1,41 +0,0 @@
-apiVersion: krew.googlecontainertools.github.com/v1alpha2
-kind: Plugin
-metadata:
- name: ingress-nginx
-spec:
- shortDescription: Interact with ingress-nginx
- description: |
- The official kubectl plugin for ingress-nginx.
- version: {{ .TagName }}
- homepage: https://kubernetes.github.io/ingress-nginx/kubectl-plugin/
- platforms:
- - selector:
- matchLabels:
- os: darwin
- arch: arm64
- {{addURIAndSha "https://github.com/kubernetes/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_darwin_arm64.tar.gz" .TagName }}
- bin: kubectl-ingress-nginx
- - selector:
- matchLabels:
- os: darwin
- arch: amd64
- {{addURIAndSha "https://github.com/kubernetes/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_darwin_amd64.tar.gz" .TagName }}
- bin: kubectl-ingress-nginx
- - selector:
- matchLabels:
- os: linux
- arch: amd64
- {{addURIAndSha "https://github.com/kubernetes/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_linux_amd64.tar.gz" .TagName }}
- bin: kubectl-ingress-nginx
- - selector:
- matchLabels:
- os: linux
- arch: arm64
- {{addURIAndSha "https://github.com/kubernetes/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_linux_arm64.tar.gz" .TagName }}
- bin: kubectl-ingress-nginx
- - selector:
- matchLabels:
- os: windows
- arch: amd64
- {{addURIAndSha "https://github.com/kubernetes/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_windows_amd64.tar.gz" .TagName }}
- bin: kubectl-ingress-nginx.exe
diff --git a/cmd/plugin/kubectl/kubectl.go b/cmd/plugin/kubectl/kubectl.go
index cb33243fc..c11ba5b77 100644
--- a/cmd/plugin/kubectl/kubectl.go
+++ b/cmd/plugin/kubectl/kubectl.go
@@ -31,18 +31,18 @@ import (
// PodExecString takes a pod and a command, uses kubectl exec to run the command in the pod
// and returns stdout as a string
-func PodExecString(flags *genericclioptions.ConfigFlags, pod *apiv1.Pod, container string, args []string) (string, error) {
- args = append([]string{"exec", "-n", pod.Namespace, "-c", container, pod.Name}, args...)
+func PodExecString(flags *genericclioptions.ConfigFlags, pod *apiv1.Pod, args []string) (string, error) {
+ args = append([]string{"exec", "-n", pod.Namespace, pod.Name}, args...)
return ExecToString(flags, args)
}
// ExecToString runs a kubectl subcommand and returns stdout as a string
func ExecToString(flags *genericclioptions.ConfigFlags, args []string) (string, error) {
- kubectlArgs := getKubectlConfigFlags(flags)
- kubectlArgs = append(kubectlArgs, args...)
+ kArgs := getKubectlConfigFlags(flags)
+ kArgs = append(kArgs, args...)
buf := bytes.NewBuffer(make([]byte, 0))
- err := execToWriter(append([]string{"kubectl"}, kubectlArgs...), buf)
+ err := execToWriter(append([]string{"kubectl"}, kArgs...), buf)
if err != nil {
return "", err
}
@@ -51,9 +51,9 @@ func ExecToString(flags *genericclioptions.ConfigFlags, args []string) (string,
// Exec replaces the current process with a kubectl invocation
func Exec(flags *genericclioptions.ConfigFlags, args []string) error {
- kubectlArgs := getKubectlConfigFlags(flags)
- kubectlArgs = append(kubectlArgs, args...)
- return execCommand(append([]string{"kubectl"}, kubectlArgs...))
+ kArgs := getKubectlConfigFlags(flags)
+ kArgs = append(kArgs, args...)
+ return execCommand(append([]string{"kubectl"}, kArgs...))
}
// Replaces the currently running process with the given command
@@ -70,7 +70,6 @@ func execCommand(args []string) error {
// Runs a command and returns stdout
func execToWriter(args []string, writer io.Writer) error {
- //nolint:gosec // Ignore G204 error
cmd := exec.Command(args[0], args[1:]...)
op, err := cmd.StdoutPipe()
@@ -78,9 +77,7 @@ func execToWriter(args []string, writer io.Writer) error {
return err
}
- go func() {
- io.Copy(writer, op) //nolint:errcheck // Ignore the error
- }()
+ go io.Copy(writer, op)
err = cmd.Run()
if err != nil {
return err
@@ -107,6 +104,7 @@ func getKubectlConfigFlags(flags *genericclioptions.ConfigFlags) []string {
appendStringFlag(o, flags.Password, "password")
appendStringFlag(o, flags.ClusterName, "cluster")
appendStringFlag(o, flags.AuthInfoName, "user")
+ //appendStringFlag(o, flags.Namespace, "namespace")
appendStringFlag(o, flags.Context, "context")
appendStringFlag(o, flags.APIServer, "server")
appendBoolFlag(o, flags.Insecure, "insecure-skip-tls-verify")
@@ -128,7 +126,7 @@ func appendBoolFlag(out *[]string, in *bool, flag string) {
}
}
-func appendStringArrayFlag(out, in *[]string, flag string) {
+func appendStringArrayFlag(out *[]string, in *[]string, flag string) {
if in != nil && len(*in) > 0 {
*out = append(*out, fmt.Sprintf("--%v=%v'", flag, strings.Join(*in, ",")))
}
diff --git a/cmd/plugin/lints/deployment.go b/cmd/plugin/lints/deployment.go
index ce1712284..a1c473f1e 100644
--- a/cmd/plugin/lints/deployment.go
+++ b/cmd/plugin/lints/deployment.go
@@ -35,10 +35,7 @@ type DeploymentLint struct {
// Check returns true if the lint detects an issue
func (lint DeploymentLint) Check(obj kmeta.Object) bool {
- cmp, ok := obj.(*v1.Deployment)
- if !ok {
- util.PrintError(fmt.Errorf("unexpected type: %T", obj))
- }
+ cmp := obj.(*v1.Deployment)
return lint.f(*cmp)
}
@@ -75,11 +72,11 @@ func removedFlag(flag string, issueNumber int, version string) DeploymentLint {
issue: issueNumber,
version: version,
f: func(dep v1.Deployment) bool {
- if !isIngressNginxDeployment(&dep) {
+ if !isIngressNginxDeployment(dep) {
return false
}
- args := getNginxArgs(&dep)
+ args := getNginxArgs(dep)
for _, arg := range args {
if strings.HasPrefix(arg, fmt.Sprintf("--%v", flag)) {
return true
@@ -91,9 +88,8 @@ func removedFlag(flag string, issueNumber int, version string) DeploymentLint {
}
}
-func getNginxArgs(dep *v1.Deployment) []string {
- for i := range dep.Spec.Template.Spec.Containers {
- container := &dep.Spec.Template.Spec.Containers[i]
+func getNginxArgs(dep v1.Deployment) []string {
+ for _, container := range dep.Spec.Template.Spec.Containers {
if len(container.Args) > 0 && container.Args[0] == "/nginx-ingress-controller" {
return container.Args
}
@@ -101,10 +97,10 @@ func getNginxArgs(dep *v1.Deployment) []string {
return make([]string, 0)
}
-func isIngressNginxDeployment(dep *v1.Deployment) bool {
+func isIngressNginxDeployment(dep v1.Deployment) bool {
containers := dep.Spec.Template.Spec.Containers
- for i := range containers {
- if len(containers[i].Args) > 0 && containers[i].Args[0] == "/nginx-ingress-controller" {
+ for _, container := range containers {
+ if len(container.Args) > 0 && container.Args[0] == "/nginx-ingress-controller" {
return true
}
}
diff --git a/cmd/plugin/lints/ingress.go b/cmd/plugin/lints/ingress.go
index d5ad42e2c..0de4661f4 100644
--- a/cmd/plugin/lints/ingress.go
+++ b/cmd/plugin/lints/ingress.go
@@ -20,7 +20,7 @@ import (
"fmt"
"strings"
- networking "k8s.io/api/networking/v1"
+ networking "k8s.io/api/networking/v1beta1"
kmeta "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/ingress-nginx/cmd/plugin/util"
)
@@ -30,16 +30,13 @@ type IngressLint struct {
message string
issue int
version string
- f func(ing *networking.Ingress) bool
+ f func(ing networking.Ingress) bool
}
// Check returns true if the lint detects an issue
func (lint IngressLint) Check(obj kmeta.Object) bool {
- ing, ok := obj.(*networking.Ingress)
- if !ok {
- util.PrintError(fmt.Errorf("unexpected type: %T", obj))
- }
- return lint.f(ing)
+ ing := obj.(*networking.Ingress)
+ return lint.f(*ing)
}
// Message is a description of the lint
@@ -97,7 +94,7 @@ func GetIngressLints() []IngressLint {
}
}
-func xForwardedPrefixIsBool(ing *networking.Ingress) bool {
+func xForwardedPrefixIsBool(ing networking.Ingress) bool {
for name, val := range ing.Annotations {
if strings.HasSuffix(name, "/x-forwarded-prefix") && (val == "true" || val == "false") {
return true
@@ -106,7 +103,7 @@ func xForwardedPrefixIsBool(ing *networking.Ingress) bool {
return false
}
-func annotationPrefixIsNginxCom(ing *networking.Ingress) bool {
+func annotationPrefixIsNginxCom(ing networking.Ingress) bool {
for name := range ing.Annotations {
if strings.HasPrefix(name, "nginx.com/") {
return true
@@ -115,7 +112,7 @@ func annotationPrefixIsNginxCom(ing *networking.Ingress) bool {
return false
}
-func annotationPrefixIsNginxOrg(ing *networking.Ingress) bool {
+func annotationPrefixIsNginxOrg(ing networking.Ingress) bool {
for name := range ing.Annotations {
if strings.HasPrefix(name, "nginx.org/") {
return true
@@ -124,7 +121,7 @@ func annotationPrefixIsNginxOrg(ing *networking.Ingress) bool {
return false
}
-func rewriteTargetWithoutCaptureGroup(ing *networking.Ingress) bool {
+func rewriteTargetWithoutCaptureGroup(ing networking.Ingress) bool {
for name, val := range ing.Annotations {
if strings.HasSuffix(name, "/rewrite-target") && !strings.Contains(val, "$1") {
return true
@@ -138,7 +135,7 @@ func removedAnnotation(annotationName string, issueNumber int, version string) I
message: fmt.Sprintf("Contains the removed %v annotation.", annotationName),
issue: issueNumber,
version: version,
- f: func(ing *networking.Ingress) bool {
+ f: func(ing networking.Ingress) bool {
for annotation := range ing.Annotations {
if strings.HasSuffix(annotation, "/"+annotationName) {
return true
@@ -149,7 +146,7 @@ func removedAnnotation(annotationName string, issueNumber int, version string) I
}
}
-func satisfyDirective(ing *networking.Ingress) bool {
+func satisfyDirective(ing networking.Ingress) bool {
for name, val := range ing.Annotations {
if strings.HasSuffix(name, "/configuration-snippet") {
return strings.Contains(val, "satisfy")
diff --git a/cmd/plugin/main.go b/cmd/plugin/main.go
index e9a8ea59a..f3a809715 100644
--- a/cmd/plugin/main.go
+++ b/cmd/plugin/main.go
@@ -24,7 +24,7 @@ import (
"k8s.io/cli-runtime/pkg/genericclioptions"
- // Just importing this is supposed to allow cloud authentication
+ //Just importing this is supposed to allow cloud authentication
// eg GCP, AWS, Azure ...
_ "k8s.io/client-go/plugin/pkg/client/auth"
diff --git a/cmd/plugin/request/request.go b/cmd/plugin/request/request.go
index 57b02827e..b8bc4eaae 100644
--- a/cmd/plugin/request/request.go
+++ b/cmd/plugin/request/request.go
@@ -22,20 +22,18 @@ import (
appsv1 "k8s.io/api/apps/v1"
apiv1 "k8s.io/api/core/v1"
- discoveryv1 "k8s.io/api/discovery/v1"
- networking "k8s.io/api/networking/v1"
+ networking "k8s.io/api/networking/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/cli-runtime/pkg/genericclioptions"
appsv1client "k8s.io/client-go/kubernetes/typed/apps/v1"
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
- discoveryv1client "k8s.io/client-go/kubernetes/typed/discovery/v1"
- typednetworking "k8s.io/client-go/kubernetes/typed/networking/v1"
+ typednetworking "k8s.io/client-go/kubernetes/typed/networking/v1beta1"
"k8s.io/ingress-nginx/cmd/plugin/util"
)
// ChoosePod finds a pod either by deployment or by name
-func ChoosePod(flags *genericclioptions.ConfigFlags, podName, deployment, selector string) (apiv1.Pod, error) {
+func ChoosePod(flags *genericclioptions.ConfigFlags, podName string, deployment string, selector string) (apiv1.Pod, error) {
if podName != "" {
return GetNamedPod(flags, podName)
}
@@ -54,9 +52,9 @@ func GetNamedPod(flags *genericclioptions.ConfigFlags, name string) (apiv1.Pod,
return apiv1.Pod{}, err
}
- for i := range allPods {
- if allPods[i].Name == name {
- return allPods[i], nil
+ for _, pod := range allPods {
+ if pod.Name == name {
+ return pod, nil
}
}
@@ -131,62 +129,55 @@ func GetIngressDefinitions(flags *genericclioptions.ConfigFlags, namespace strin
return pods.Items, nil
}
-// GetNumEndpoints counts the number of endpointslices addresses for the service with the given name
-func GetNumEndpoints(flags *genericclioptions.ConfigFlags, namespace, serviceName string) (*int, error) {
- epss, err := GetEndpointSlicesByName(flags, namespace, serviceName)
+// GetNumEndpoints counts the number of endpoints for the service with the given name
+func GetNumEndpoints(flags *genericclioptions.ConfigFlags, namespace string, serviceName string) (*int, error) {
+ endpoints, err := GetEndpointsByName(flags, namespace, serviceName)
if err != nil {
return nil, err
}
- if len(epss) == 0 {
+ if endpoints == nil {
return nil, nil
}
ret := 0
- for i := range epss {
- eps := &epss[i]
- for j := range eps.Endpoints {
- ret += len(eps.Endpoints[j].Addresses)
- }
+ for _, subset := range endpoints.Subsets {
+ ret += len(subset.Addresses)
}
return &ret, nil
}
-// GetEndpointSlicesByName returns the endpointSlices for the service with the given name
-func GetEndpointSlicesByName(flags *genericclioptions.ConfigFlags, namespace, name string) ([]discoveryv1.EndpointSlice, error) {
- allEndpointsSlices, err := getEndpointSlices(flags, namespace)
+// GetEndpointsByName returns the endpoints for the service with the given name
+func GetEndpointsByName(flags *genericclioptions.ConfigFlags, namespace string, name string) (*apiv1.Endpoints, error) {
+ allEndpoints, err := getEndpoints(flags, namespace)
if err != nil {
return nil, err
}
- var eps []discoveryv1.EndpointSlice
- for i := range allEndpointsSlices {
- if svcName, ok := allEndpointsSlices[i].ObjectMeta.GetLabels()[discoveryv1.LabelServiceName]; ok {
- if svcName == name {
- eps = append(eps, allEndpointsSlices[i])
- }
+
+ for _, endpoints := range allEndpoints {
+ if endpoints.Name == name {
+ return &endpoints, nil
}
}
- return eps, nil
+ return nil, nil
}
-var endpointSlicesCache = make(map[string]*[]discoveryv1.EndpointSlice)
-
-func getEndpointSlices(flags *genericclioptions.ConfigFlags, namespace string) ([]discoveryv1.EndpointSlice, error) {
- cachedEndpointSlices, ok := endpointSlicesCache[namespace]
+var endpointsCache = make(map[string]*[]apiv1.Endpoints)
+func getEndpoints(flags *genericclioptions.ConfigFlags, namespace string) ([]apiv1.Endpoints, error) {
+ cachedEndpoints, ok := endpointsCache[namespace]
if ok {
- return *cachedEndpointSlices, nil
+ return *cachedEndpoints, nil
}
if namespace != "" {
- tryAllNamespacesEndpointSlicesCache(flags)
+ tryAllNamespacesEndpointsCache(flags)
}
- cachedEndpointSlices = tryFilteringEndpointSlicesFromAllNamespacesCache(namespace)
-
- if cachedEndpointSlices != nil {
- return *cachedEndpointSlices, nil
+ cachedEndpoints = tryFilteringEndpointsFromAllNamespacesCache(flags, namespace)
+ if cachedEndpoints != nil {
+ return *cachedEndpoints, nil
}
rawConfig, err := flags.ToRESTConfig()
@@ -194,41 +185,42 @@ func getEndpointSlices(flags *genericclioptions.ConfigFlags, namespace string) (
return nil, err
}
- api, err := discoveryv1client.NewForConfig(rawConfig)
+ api, err := corev1.NewForConfig(rawConfig)
if err != nil {
return nil, err
}
- endpointSlicesList, err := api.EndpointSlices(namespace).List(context.TODO(), metav1.ListOptions{})
- if err != nil {
- return nil, err
- }
- endpointSlices := endpointSlicesList.Items
- endpointSlicesCache[namespace] = &endpointSlices
- return endpointSlices, nil
+ endpointsList, err := api.Endpoints(namespace).List(context.TODO(), metav1.ListOptions{})
+ if err != nil {
+ return nil, err
+ }
+ endpoints := endpointsList.Items
+
+ endpointsCache[namespace] = &endpoints
+ return endpoints, nil
}
-func tryAllNamespacesEndpointSlicesCache(flags *genericclioptions.ConfigFlags) {
- _, ok := endpointSlicesCache[""]
+func tryAllNamespacesEndpointsCache(flags *genericclioptions.ConfigFlags) {
+ _, ok := endpointsCache[""]
if !ok {
- _, err := getEndpointSlices(flags, "")
+ _, err := getEndpoints(flags, "")
if err != nil {
- endpointSlicesCache[""] = nil
+ endpointsCache[""] = nil
}
}
}
-func tryFilteringEndpointSlicesFromAllNamespacesCache(namespace string) *[]discoveryv1.EndpointSlice {
- allEndpointSlices := endpointSlicesCache[""]
- if allEndpointSlices != nil {
- endpointSlices := make([]discoveryv1.EndpointSlice, 0)
- for i := range *allEndpointSlices {
- if (*allEndpointSlices)[i].Namespace == namespace {
- endpointSlices = append(endpointSlices, (*allEndpointSlices)[i])
+func tryFilteringEndpointsFromAllNamespacesCache(flags *genericclioptions.ConfigFlags, namespace string) *[]apiv1.Endpoints {
+ allEndpoints := endpointsCache[""]
+ if allEndpoints != nil {
+ endpoints := make([]apiv1.Endpoints, 0)
+ for _, thisEndpoints := range *allEndpoints {
+ if thisEndpoints.Namespace == namespace {
+ endpoints = append(endpoints, thisEndpoints)
}
}
- endpointSlicesCache[namespace] = &endpointSlices
- return &endpointSlices
+ endpointsCache[namespace] = &endpoints
+ return &endpoints
}
return nil
}
@@ -243,9 +235,9 @@ func GetServiceByName(flags *genericclioptions.ConfigFlags, name string, service
services = &servicesArray
}
- for i := range *services {
- if (*services)[i].Name == name {
- return (*services)[i], nil
+ for _, svc := range *services {
+ if svc.Name == name {
+ return svc, nil
}
}
@@ -289,6 +281,7 @@ func getLabeledPods(flags *genericclioptions.ConfigFlags, label string) ([]apiv1
pods, err := api.Pods(namespace).List(context.TODO(), metav1.ListOptions{
LabelSelector: label,
})
+
if err != nil {
return make([]apiv1.Pod, 0), err
}
@@ -303,9 +296,9 @@ func getDeploymentPods(flags *genericclioptions.ConfigFlags, deployment string)
}
ingressPods := make([]apiv1.Pod, 0)
- for i := range pods {
- if util.PodInDeployment(&pods[i], deployment) {
- ingressPods = append(ingressPods, pods[i])
+ for _, pod := range pods {
+ if util.PodInDeployment(pod, deployment) {
+ ingressPods = append(ingressPods, pod)
}
}
@@ -331,4 +324,5 @@ func getServices(flags *genericclioptions.ConfigFlags) ([]apiv1.Service, error)
}
return services.Items, nil
+
}
diff --git a/cmd/plugin/util/util.go b/cmd/plugin/util/util.go
index 7457b8c53..cc9882009 100644
--- a/cmd/plugin/util/util.go
+++ b/cmd/plugin/util/util.go
@@ -29,9 +29,8 @@ import (
// The default deployment and service names for ingress-nginx
const (
- DefaultIngressDeploymentName = "ingress-nginx-controller" //#nosec G101
- DefaultIngressServiceName = "ingress-nginx-controller" //#nosec G101
- DefaultIngressContainerName = "controller"
+ DefaultIngressDeploymentName = "ingress-nginx-controller"
+ DefaultIngressServiceName = "ingress-nginx-controller"
)
// IssuePrefix is the github url that we can append an issue number to to link to it
@@ -47,25 +46,17 @@ func PrintError(e error) {
}
// ParseVersionString returns the major, minor, and patch numbers of a version string
-func ParseVersionString(v string) (major, minor, patch int, err error) {
+func ParseVersionString(v string) (int, int, int, error) {
parts := versionRegex.FindStringSubmatch(v)
if len(parts) != 4 {
return 0, 0, 0, fmt.Errorf("could not parse %v as a version string (like 0.20.3)", v)
}
- major, err = strconv.Atoi(parts[1])
- if err != nil {
- return 0, 0, 0, err
- }
- minor, err = strconv.Atoi(parts[2])
- if err != nil {
- return 0, 0, 0, err
- }
- patch, err = strconv.Atoi(parts[3])
- if err != nil {
- return 0, 0, 0, err
- }
+ major, _ := strconv.Atoi(parts[1])
+ minor, _ := strconv.Atoi(parts[2])
+ patch, _ := strconv.Atoi(parts[3])
+
return major, minor, patch, nil
}
@@ -98,7 +89,7 @@ func isVersionLessThan(a, b string) bool {
// PodInDeployment returns whether a pod is part of a deployment with the given name
// a pod is considered to be in {deployment} if it is owned by a replicaset with a name of format {deployment}-otherchars
-func PodInDeployment(pod *apiv1.Pod, deployment string) bool {
+func PodInDeployment(pod apiv1.Pod, deployment string) bool {
for _, owner := range pod.OwnerReferences {
if owner.Controller == nil || !*owner.Controller || owner.Kind != "ReplicaSet" {
continue
@@ -136,17 +127,10 @@ func AddSelectorFlag(cmd *cobra.Command) *string {
return &v
}
-// AddContainerFlag adds a --container flag to a cobra command
-func AddContainerFlag(cmd *cobra.Command) *string {
- v := ""
- cmd.Flags().StringVar(&v, "container", DefaultIngressContainerName, "The name of the ingress-nginx controller container")
- return &v
-}
-
// GetNamespace takes a set of kubectl flag values and returns the namespace we should be operating in
func GetNamespace(flags *genericclioptions.ConfigFlags) string {
namespace, _, err := flags.ToRawKubeConfigLoader().Namespace()
- if err != nil || namespace == "" {
+ if err != nil || len(namespace) == 0 {
namespace = apiv1.NamespaceDefault
}
return namespace
diff --git a/deploy/grafana/dashboards/README.md b/deploy/grafana/dashboards/README.md
index fc1e35406..26195583b 100644
--- a/deploy/grafana/dashboards/README.md
+++ b/deploy/grafana/dashboards/README.md
@@ -4,7 +4,7 @@ Ingress-nginx supports a rich collection of prometheus metrics. If you have pro
This folder contains two dashboards that you can import.
-## 1. Ingress-Nginx Controller
+## 1. NGINX Ingress Controller

@@ -19,7 +19,7 @@ This folder contains two dashboards that you can import.
### Requirements
-- **Grafana v10.4.3** (or newer)
+- **Grafana v5.2.0** (or newer)
## 2. Request Handling Performance
@@ -36,4 +36,4 @@ This folder contains two dashboards that you can import.
### Requirements
-- **Grafana v10.4.3** (or newer)
+- **Grafana v6.6.0** (or newer)
diff --git a/deploy/grafana/dashboards/nginx.json b/deploy/grafana/dashboards/nginx.json
index 5ebc4ae6c..a2c277047 100644
--- a/deploy/grafana/dashboards/nginx.json
+++ b/deploy/grafana/dashboards/nginx.json
@@ -9,53 +9,31 @@
"pluginName": "Prometheus"
}
],
- "__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
- "version": "10.4.3"
- },
- {
- "type": "panel",
- "id": "heatmap",
- "name": "Heatmap",
- "version": ""
+ "version": "5.2.1"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
- "version": "1.0.0"
+ "version": "5.0.0"
},
{
"type": "panel",
- "id": "stat",
- "name": "Stat",
- "version": ""
- },
- {
- "type": "panel",
- "id": "table",
- "name": "Table",
- "version": ""
- },
- {
- "type": "panel",
- "id": "timeseries",
- "name": "Time series",
- "version": ""
+ "id": "singlestat",
+ "name": "Singlestat",
+ "version": "5.0.0"
}
],
"annotations": {
"list": [
{
"builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
+ "datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
@@ -63,10 +41,7 @@
"type": "dashboard"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
+ "datasource": "${DS_PROMETHEUS}",
"enable": true,
"expr": "sum(changes(nginx_ingress_controller_config_last_reload_successful_timestamp_seconds{instance!=\"unknown\",controller_class=~\"$controller_class\",namespace=~\"$namespace\"}[30s])) by (controller_class)",
"hide": false,
@@ -83,75 +58,72 @@
]
},
"editable": true,
- "fiscalYearStartMonth": 0,
+ "gnetId": null,
"graphTooltip": 0,
- "id": null,
+ "iteration": 1534359654832,
"links": [],
"panels": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": false,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "datasource": "${DS_PROMETHEUS}",
+ "format": "ops",
+ "gauge": {
+ "maxValue": 100,
+ "minValue": 0,
+ "show": false,
+ "thresholdLabels": false,
+ "thresholdMarkers": true
},
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "ops"
- },
- "overrides": []
+ "gridPos": {
+ "h": 3,
+ "w": 6,
+ "x": 0,
+ "y": 0
},
"id": 20,
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "mean"
- ],
- "fields": "",
- "values": false
+ "interval": null,
+ "links": [],
+ "mappingType": 1,
+ "mappingTypes": [
+ {
+ "name": "value to text",
+ "value": 1
},
- "showPercentChange": false,
- "textMode": "auto",
- "wideLayout": true
+ {
+ "name": "range to text",
+ "value": 2
+ }
+ ],
+ "maxDataPoints": 100,
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "",
+ "postfixFontSize": "50%",
+ "prefix": "",
+ "prefixFontSize": "50%",
+ "rangeMaps": [
+ {
+ "from": "null",
+ "text": "N/A",
+ "to": "null"
+ }
+ ],
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
},
- "pluginVersion": "10.4.3",
+ "tableColumn": "",
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"expr": "round(sum(irate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\"}[2m])), 0.001)",
"format": "time_series",
"intervalFactor": 1,
@@ -159,47 +131,37 @@
"step": 4
}
],
+ "thresholds": "",
"title": "Controller Request Volume",
- "type": "stat"
+ "transparent": false,
+ "type": "singlestat",
+ "valueFontSize": "80%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "avg"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": false,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "datasource": "${DS_PROMETHEUS}",
+ "format": "none",
+ "gauge": {
+ "maxValue": 100,
+ "minValue": 0,
+ "show": false,
+ "thresholdLabels": false,
+ "thresholdMarkers": true
},
"gridPos": {
"h": 3,
@@ -208,30 +170,42 @@
"y": 0
},
"id": 82,
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "mean"
- ],
- "fields": "",
- "values": false
+ "interval": null,
+ "links": [],
+ "mappingType": 1,
+ "mappingTypes": [
+ {
+ "name": "value to text",
+ "value": 1
},
- "showPercentChange": false,
- "textMode": "auto",
- "wideLayout": true
+ {
+ "name": "range to text",
+ "value": 2
+ }
+ ],
+ "maxDataPoints": 100,
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "",
+ "postfixFontSize": "50%",
+ "prefix": "",
+ "prefixFontSize": "50%",
+ "rangeMaps": [
+ {
+ "from": "null",
+ "text": "N/A",
+ "to": "null"
+ }
+ ],
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
},
- "pluginVersion": "10.4.3",
+ "tableColumn": "",
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"expr": "sum(avg_over_time(nginx_ingress_controller_nginx_process_connections{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",state=\"active\"}[2m]))",
"format": "time_series",
"instant": false,
@@ -240,51 +214,37 @@
"step": 4
}
],
+ "thresholds": "",
"title": "Controller Connections",
- "type": "stat"
+ "transparent": false,
+ "type": "singlestat",
+ "valueFontSize": "80%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "avg"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "rgba(245, 54, 54, 0.9)",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 95
- },
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": 99
- }
- ]
- },
- "unit": "percentunit"
- },
- "overrides": []
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": false,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "datasource": "${DS_PROMETHEUS}",
+ "format": "percentunit",
+ "gauge": {
+ "maxValue": 100,
+ "minValue": 80,
+ "show": false,
+ "thresholdLabels": false,
+ "thresholdMarkers": false
},
"gridPos": {
"h": 3,
@@ -293,30 +253,42 @@
"y": 0
},
"id": 21,
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "mean"
- ],
- "fields": "",
- "values": false
+ "interval": null,
+ "links": [],
+ "mappingType": 1,
+ "mappingTypes": [
+ {
+ "name": "value to text",
+ "value": 1
},
- "showPercentChange": false,
- "textMode": "auto",
- "wideLayout": true
+ {
+ "name": "range to text",
+ "value": 2
+ }
+ ],
+ "maxDataPoints": 100,
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "",
+ "postfixFontSize": "50%",
+ "prefix": "",
+ "prefixFontSize": "50%",
+ "rangeMaps": [
+ {
+ "from": "null",
+ "text": "N/A",
+ "to": "null"
+ }
+ ],
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
},
- "pluginVersion": "10.4.3",
+ "tableColumn": "",
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"expr": "sum(rate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\",status!~\"[4-5].*\"}[2m])) / sum(rate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\"}[2m]))",
"format": "time_series",
"intervalFactor": 1,
@@ -324,48 +296,38 @@
"step": 4
}
],
+ "thresholds": "95, 99, 99.5",
"title": "Controller Success Rate (non-4|5xx responses)",
- "type": "stat"
+ "transparent": false,
+ "type": "singlestat",
+ "valueFontSize": "80%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "avg"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "decimals": 0,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": false,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "datasource": "${DS_PROMETHEUS}",
+ "decimals": 0,
+ "format": "none",
+ "gauge": {
+ "maxValue": 100,
+ "minValue": 0,
+ "show": false,
+ "thresholdLabels": false,
+ "thresholdMarkers": true
},
"gridPos": {
"h": 3,
@@ -374,30 +336,42 @@
"y": 0
},
"id": 81,
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "sum"
- ],
- "fields": "",
- "values": false
+ "interval": null,
+ "links": [],
+ "mappingType": 1,
+ "mappingTypes": [
+ {
+ "name": "value to text",
+ "value": 1
},
- "showPercentChange": false,
- "textMode": "auto",
- "wideLayout": true
+ {
+ "name": "range to text",
+ "value": 2
+ }
+ ],
+ "maxDataPoints": 100,
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "",
+ "postfixFontSize": "50%",
+ "prefix": "",
+ "prefixFontSize": "50%",
+ "rangeMaps": [
+ {
+ "from": "null",
+ "text": "N/A",
+ "to": "null"
+ }
+ ],
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
},
- "pluginVersion": "10.4.3",
+ "tableColumn": "",
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"expr": "avg(irate(nginx_ingress_controller_success{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}[1m])) * 60",
"format": "time_series",
"instant": false,
@@ -406,48 +380,38 @@
"step": 4
}
],
+ "thresholds": "",
"title": "Config Reloads",
- "type": "stat"
+ "transparent": false,
+ "type": "singlestat",
+ "valueFontSize": "80%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "total"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "decimals": 0,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
+ "cacheTimeout": null,
+ "colorBackground": false,
+ "colorValue": false,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "datasource": "${DS_PROMETHEUS}",
+ "decimals": 0,
+ "format": "none",
+ "gauge": {
+ "maxValue": 100,
+ "minValue": 0,
+ "show": false,
+ "thresholdLabels": false,
+ "thresholdMarkers": true
},
"gridPos": {
"h": 3,
@@ -456,30 +420,42 @@
"y": 0
},
"id": 83,
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "mean"
- ],
- "fields": "",
- "values": false
+ "interval": null,
+ "links": [],
+ "mappingType": 1,
+ "mappingTypes": [
+ {
+ "name": "value to text",
+ "value": 1
},
- "showPercentChange": false,
- "textMode": "auto",
- "wideLayout": true
+ {
+ "name": "range to text",
+ "value": 2
+ }
+ ],
+ "maxDataPoints": 100,
+ "nullPointMode": "connected",
+ "nullText": null,
+ "postfix": "",
+ "postfixFontSize": "50%",
+ "prefix": "",
+ "prefixFontSize": "50%",
+ "rangeMaps": [
+ {
+ "from": "null",
+ "text": "N/A",
+ "to": "null"
+ }
+ ],
+ "sparkline": {
+ "fillColor": "rgba(31, 118, 189, 0.18)",
+ "full": true,
+ "lineColor": "rgb(31, 120, 193)",
+ "show": true
},
- "pluginVersion": "10.4.3",
+ "tableColumn": "",
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"expr": "count(nginx_ingress_controller_config_last_reload_successful{controller_pod=~\"$controller\",controller_namespace=~\"$namespace\"} == 0)",
"format": "time_series",
"instant": true,
@@ -488,120 +464,73 @@
"step": 4
}
],
+ "thresholds": "",
"title": "Last Config Failed",
- "type": "stat"
+ "transparent": false,
+ "type": "singlestat",
+ "valueFontSize": "80%",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ],
+ "valueName": "avg"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "reqps"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byValue",
- "options": {
- "op": "gte",
- "reducer": "allIsZero",
- "value": 0
- }
- },
- "properties": [
- {
- "id": "custom.hideFrom",
- "value": {
- "legend": true,
- "tooltip": true,
- "viz": false
- }
- }
- ]
- }
- ]
- },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
+ "decimals": 2,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 3
},
+ "height": "200px",
"id": 86,
- "options": {
- "legend": {
- "calcs": [
- "mean"
- ],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "isNew": true,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": true,
+ "max": false,
+ "min": false,
+ "rightSide": true,
+ "show": true,
+ "sideWidth": 300,
+ "sort": "current",
+ "sortDesc": true,
+ "total": false,
+ "values": true
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "connected",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": null,
"repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "round(sum(irate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",exported_namespace=~\"$exported_namespace\",ingress=~\"$ingress\"}[2m])) by (ingress), 0.001)",
+ "expr": "round(sum(irate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (ingress), 0.001)",
"format": "time_series",
"hide": false,
"instant": false,
@@ -613,135 +542,63 @@
"step": 10
}
],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
"title": "Ingress Request Volume",
- "type": "timeseries"
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 2,
+ "value_type": "cumulative"
+ },
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "reqps",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "Bps",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "percentunit"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "max - istio-proxy"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#890f02",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "max - master"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#bf1b00",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "max - prometheus"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#bf1b00",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byValue",
- "options": {
- "op": "gte",
- "reducer": "allIsNull",
- "value": 0
- }
- },
- "properties": [
- {
- "id": "custom.hideFrom",
- "value": {
- "legend": true,
- "tooltip": true,
- "viz": false
- }
- }
- ]
- }
- ]
+ "aliasColors": {
+ "max - istio-proxy": "#890f02",
+ "max - master": "#bf1b00",
+ "max - prometheus": "#bf1b00"
},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
+ "decimals": 2,
+ "editable": false,
+ "error": false,
+ "fill": 0,
+ "grid": {},
"gridPos": {
"h": 7,
"w": 12,
@@ -749,28 +606,38 @@
"y": 3
},
"id": 87,
- "options": {
- "legend": {
- "calcs": [
- "mean"
- ],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "asc"
- }
+ "isNew": true,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideEmpty": true,
+ "hideZero": false,
+ "max": false,
+ "min": false,
+ "rightSide": true,
+ "show": true,
+ "sideWidth": 300,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "connected",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "sum(rate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\",exported_namespace=~\"$exported_namespace\",ingress=~\"$ingress\",status!~\"[4-5].*\"}[2m])) by (ingress) / sum(rate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\",exported_namespace=~\"$exported_namespace\",ingress=~\"$ingress\"}[2m])) by (ingress)",
+ "expr": "sum(rate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\",ingress=~\"$ingress\",status!~\"[4-5].*\"}[2m])) by (ingress) / sum(rate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (ingress)",
"format": "time_series",
"instant": false,
"interval": "10s",
@@ -781,99 +648,95 @@
"step": 10
}
],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
"title": "Ingress Success Rate (non-4|5xx responses)",
- "type": "timeseries"
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 1,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "percentunit",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "Bps"
- },
- "overrides": []
- },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
+ "decimals": 2,
+ "editable": true,
+ "error": false,
+ "fill": 1,
+ "grid": {},
"gridPos": {
"h": 6,
"w": 8,
"x": 0,
"y": 10
},
+ "height": "200px",
"id": 32,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "lastNotNull"
- ],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false,
- "width": 200
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "isNew": true,
+ "legend": {
+ "alignAsTable": false,
+ "avg": true,
+ "current": true,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": false,
+ "sideWidth": 200,
+ "sort": "current",
+ "sortDesc": true,
+ "total": false,
+ "values": true
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "connected",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"expr": "sum (irate (nginx_ingress_controller_request_size_sum{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}[2m]))",
"format": "time_series",
"instant": false,
@@ -885,10 +748,6 @@
"step": 10
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"expr": "- sum (irate (nginx_ingress_controller_response_size_sum{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}[2m]))",
"format": "time_series",
"hide": false,
@@ -900,115 +759,63 @@
"step": 10
}
],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
"title": "Network I/O pressure",
- "type": "timeseries"
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 0,
+ "value_type": "cumulative"
+ },
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "Bps",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "Bps",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "bytes"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "max - istio-proxy"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#890f02",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "max - master"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#bf1b00",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "max - prometheus"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#bf1b00",
- "mode": "fixed"
- }
- }
- ]
- }
- ]
+ "aliasColors": {
+ "max - istio-proxy": "#890f02",
+ "max - master": "#bf1b00",
+ "max - prometheus": "#bf1b00"
},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
+ "decimals": 2,
+ "editable": false,
+ "error": false,
+ "fill": 0,
+ "grid": {},
"gridPos": {
"h": 6,
"w": 8,
@@ -1016,29 +823,35 @@
"y": 10
},
"id": 77,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "lastNotNull"
- ],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false,
- "width": 200
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
+ "isNew": true,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": true,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": false,
+ "sideWidth": 200,
+ "sort": "current",
+ "sortDesc": true,
+ "total": false,
+ "values": true
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "connected",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"expr": "avg(nginx_ingress_controller_nginx_process_resident_memory_bytes{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}) ",
"format": "time_series",
"instant": false,
@@ -1050,94 +863,97 @@
"step": 10
}
],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
"title": "Average Memory Usage",
- "type": "timeseries"
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 2,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "bytes",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "cores",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "line+area"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "transparent",
- "value": null
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
+ "aliasColors": {
+ "max - istio-proxy": "#890f02",
+ "max - master": "#bf1b00"
},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
+ "decimals": 3,
+ "editable": false,
+ "error": false,
+ "fill": 0,
+ "grid": {},
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"y": 10
},
+ "height": "",
"id": 79,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "lastNotNull"
- ],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
+ "isNew": true,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": true,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": false,
+ "sort": null,
+ "sortDesc": null,
+ "total": false,
+ "values": true
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "connected",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"expr": "avg (rate (nginx_ingress_controller_nginx_process_cpu_seconds_total{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}[2m])) ",
"format": "time_series",
"interval": "10s",
@@ -1148,209 +964,59 @@
"step": 10
}
],
+ "thresholds": [
+ {
+ "colorMode": "critical",
+ "fill": true,
+ "line": true,
+ "op": "gt"
+ }
+ ],
+ "timeFrom": null,
+ "timeShift": null,
"title": "Average CPU Usage",
- "type": "timeseries"
+ "tooltip": {
+ "msResolution": true,
+ "shared": true,
+ "sort": 2,
+ "value_type": "cumulative"
+ },
+ "transparent": false,
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "none",
+ "label": "cores",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "description": "This data is real time, independent of dashboard time range",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "align": "auto",
- "cellOptions": {
- "type": "auto"
- },
- "inspect": false
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "ingress"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "Ingress"
- },
- {
- "id": "unit",
- "value": "short"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "custom.align"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #A"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "P50 Latency"
- },
- {
- "id": "unit",
- "value": "dtdurations"
- },
- {
- "id": "custom.align"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #B"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "P90 Latency"
- },
- {
- "id": "unit",
- "value": "dtdurations"
- },
- {
- "id": "custom.align"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #C"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "P99 Latency"
- },
- {
- "id": "unit",
- "value": "dtdurations"
- },
- {
- "id": "custom.align"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #D"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "IN"
- },
- {
- "id": "unit",
- "value": "Bps"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "custom.align"
- },
- {
- "id": "thresholds",
- "value": {
- "mode": "absolute",
- "steps": [
- {
- "color": "rgba(245, 54, 54, 0.9)",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)"
- }
- ]
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Time"
- },
- "properties": [
- {
- "id": "unit",
- "value": "short"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "custom.align"
- },
- {
- "id": "custom.hidden",
- "value": true
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #E"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "OUT"
- },
- {
- "id": "unit",
- "value": "Bps"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "custom.align"
- }
- ]
- }
- ]
- },
+ "columns": [],
+ "datasource": "${DS_PROMETHEUS}",
+ "fontSize": "100%",
"gridPos": {
"h": 8,
"w": 24,
@@ -1359,463 +1025,281 @@
},
"hideTimeOverride": false,
"id": 75,
- "options": {
- "cellHeight": "sm",
- "footer": {
- "countRows": false,
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "showHeader": true
- },
- "pluginVersion": "10.4.3",
+ "links": [],
+ "pageSize": 7,
+ "repeat": null,
"repeatDirection": "h",
+ "scroll": true,
+ "showHeader": true,
+ "sort": {
+ "col": 1,
+ "desc": true
+ },
+ "styles": [
+ {
+ "alias": "Ingress",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "pattern": "ingress",
+ "preserveFormat": false,
+ "sanitize": false,
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "Requests",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "pattern": "Value #A",
+ "thresholds": [
+ ""
+ ],
+ "type": "number",
+ "unit": "ops"
+ },
+ {
+ "alias": "Errors",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "pattern": "Value #B",
+ "thresholds": [],
+ "type": "number",
+ "unit": "ops"
+ },
+ {
+ "alias": "P50 Latency",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 0,
+ "link": false,
+ "pattern": "Value #C",
+ "thresholds": [],
+ "type": "number",
+ "unit": "dtdurations"
+ },
+ {
+ "alias": "P90 Latency",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 0,
+ "pattern": "Value #D",
+ "thresholds": [],
+ "type": "number",
+ "unit": "dtdurations"
+ },
+ {
+ "alias": "P99 Latency",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 0,
+ "pattern": "Value #E",
+ "thresholds": [],
+ "type": "number",
+ "unit": "dtdurations"
+ },
+ {
+ "alias": "IN",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "pattern": "Value #F",
+ "thresholds": [
+ ""
+ ],
+ "type": "number",
+ "unit": "Bps"
+ },
+ {
+ "alias": "",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "pattern": "Time",
+ "thresholds": [],
+ "type": "hidden",
+ "unit": "short"
+ },
+ {
+ "alias": "OUT",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "Value #G",
+ "thresholds": [],
+ "type": "number",
+ "unit": "Bps"
+ }
+ ],
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "histogram_quantile(0.50, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\",exported_namespace=~\"$exported_namespace\"}[2m])) by (le, ingress))",
+ "expr": "histogram_quantile(0.50, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (le, ingress))",
"format": "table",
"hide": false,
"instant": true,
"intervalFactor": 1,
"legendFormat": "{{ ingress }}",
- "refId": "A"
+ "refId": "C"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "histogram_quantile(0.90, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\",exported_namespace=~\"$exported_namespace\"}[2m])) by (le, ingress))",
+ "expr": "histogram_quantile(0.90, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (le, ingress))",
"format": "table",
"hide": false,
"instant": true,
"intervalFactor": 1,
"legendFormat": "{{ ingress }}",
- "refId": "B"
+ "refId": "D"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "histogram_quantile(0.99, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\",exported_namespace=~\"$exported_namespace\"}[2m])) by (le, ingress))",
+ "expr": "histogram_quantile(0.99, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (le, ingress))",
"format": "table",
"hide": false,
"instant": true,
"intervalFactor": 1,
"legendFormat": "{{ destination_service }}",
- "refId": "C"
+ "refId": "E"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "sum(irate(nginx_ingress_controller_request_size_sum{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\",exported_namespace=~\"$exported_namespace\"}[2m])) by (ingress)",
+ "expr": "sum(irate(nginx_ingress_controller_request_size_sum{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (ingress)",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ ingress }}",
- "refId": "D"
+ "refId": "F"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "sum(irate(nginx_ingress_controller_response_size_sum{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\",exported_namespace=~\"$exported_namespace\"}[2m])) by (ingress)",
+ "expr": "sum(irate(nginx_ingress_controller_response_size_sum{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (ingress)",
"format": "table",
"instant": true,
"intervalFactor": 1,
"legendFormat": "{{ ingress }}",
- "refId": "E"
+ "refId": "G"
}
],
+ "timeFrom": null,
"title": "Ingress Percentile Response Times and Transfer Rates",
- "transformations": [
- {
- "id": "merge",
- "options": {
- "reducers": []
- }
- }
- ],
+ "transform": "table",
+ "transparent": false,
"type": "table"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 24
- },
- "hideTimeOverride": false,
- "id": 91,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
- },
- "pluginVersion": "8.3.4",
- "repeatDirection": "h",
- "targets": [
+ "columns": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "exemplar": true,
- "expr": "histogram_quantile(0.80, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\",exported_namespace=~\"$exported_namespace\"}[2m])) by (le))",
- "format": "time_series",
- "hide": false,
- "instant": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "P80",
- "refId": "C"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "exemplar": true,
- "expr": "histogram_quantile(0.90, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\",exported_namespace=~\"$exported_namespace\"}[2m])) by (le))",
- "format": "time_series",
- "hide": false,
- "instant": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "P90",
- "refId": "D"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "editorMode": "code",
- "exemplar": true,
- "expr": "histogram_quantile(0.99, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\",exported_namespace=~\"$exported_namespace\"}[2m])) by (le))",
- "format": "time_series",
- "hide": false,
- "instant": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "P99",
- "refId": "E"
+ "text": "Current",
+ "value": "current"
}
],
- "title": "Ingress Percentile Response Times (Ingress Namespaces)",
- "type": "timeseries"
- },
- {
- "cards": {},
- "color": {
- "cardColor": "#b4ff00",
- "colorScale": "sqrt",
- "colorScheme": "interpolateWarm",
- "exponent": 0.5,
- "mode": "spectrum"
- },
- "dataFormat": "tsbuckets",
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "description": "",
- "fieldConfig": {
- "defaults": {
- "custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "scaleDistribution": {
- "type": "linear"
- }
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 24
- },
- "heatmap": {},
- "hideZeroBuckets": false,
- "highlightCards": true,
- "id": 89,
- "legend": {
- "show": true
- },
- "options": {
- "calculate": false,
- "calculation": {},
- "cellGap": 2,
- "cellValues": {},
- "color": {
- "exponent": 0.5,
- "fill": "#b4ff00",
- "mode": "scheme",
- "reverse": false,
- "scale": "exponential",
- "scheme": "Warm",
- "steps": 128
- },
- "exemplars": {
- "color": "rgba(255,0,255,0.7)"
- },
- "filterValues": {
- "le": 1e-9
- },
- "legend": {
- "show": true
- },
- "rowsFrame": {
- "layout": "auto"
- },
- "showValue": "never",
- "tooltip": {
- "mode": "single",
- "showColorScale": false,
- "yHistogram": true
- },
- "yAxis": {
- "axisPlacement": "left",
- "reverse": false,
- "unit": "s"
- }
- },
- "pluginVersion": "10.4.3",
- "reverseYBuckets": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "exemplar": true,
- "expr": "sum(increase(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\",exported_namespace=~\"$exported_namespace\"}[2m])) by (le)",
- "format": "heatmap",
- "interval": "",
- "legendFormat": "{{le}}",
- "refId": "A"
- }
- ],
- "title": "Ingress Request Latency Heatmap (Ingress Namespaces)",
- "tooltip": {
- "show": true,
- "showHistogram": true
- },
- "type": "heatmap",
- "xAxis": {
- "show": true
- },
- "yAxis": {
- "format": "s",
- "logBase": 1,
- "show": true
- },
- "yBucketBound": "auto"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "align": "auto",
- "cellOptions": {
- "type": "auto"
- },
- "inspect": false
- },
- "decimals": 2,
- "displayName": "",
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "short"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Last *"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "TTL"
- },
- {
- "id": "unit",
- "value": "s"
- },
- {
- "id": "custom.cellOptions",
- "value": {
- "type": "color-background"
- }
- },
- {
- "id": "thresholds",
- "value": {
- "mode": "absolute",
- "steps": [
- {
- "color": "rgba(245, 54, 54, 0.9)",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 0
- },
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": 691200
- }
- ]
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Field"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "Host"
- }
- ]
- }
- ]
- },
+ "datasource": "${DS_PROMETHEUS}",
+ "fontSize": "100%",
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
- "y": 31
+ "y": 24
},
+ "height": "1024",
"id": 85,
- "options": {
- "cellHeight": "sm",
- "footer": {
- "countRows": false,
- "enablePagination": false,
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "showHeader": true
+ "links": [],
+ "pageSize": 7,
+ "scroll": true,
+ "showHeader": true,
+ "sort": {
+ "col": 1,
+ "desc": false
},
- "pluginVersion": "10.4.3",
+ "styles": [
+ {
+ "alias": "Time",
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "pattern": "Time",
+ "type": "date"
+ },
+ {
+ "alias": "TTL",
+ "colorMode": "cell",
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 0,
+ "pattern": "Current",
+ "thresholds": [
+ "0",
+ "691200"
+ ],
+ "type": "number",
+ "unit": "s"
+ },
+ {
+ "alias": "",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "decimals": 2,
+ "pattern": "/.*/",
+ "thresholds": [],
+ "type": "number",
+ "unit": "short"
+ }
+ ],
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"expr": "avg(nginx_ingress_controller_ssl_expire_time_seconds{kubernetes_pod_name=~\"$controller\",namespace=~\"$namespace\",ingress=~\"$ingress\"}) by (host) - time()",
"format": "time_series",
"intervalFactor": 1,
@@ -1826,55 +1310,35 @@
}
],
"title": "Ingress Certificate Expiry",
- "transformations": [
- {
- "id": "reduce",
- "options": {
- "includeTimeField": false,
- "labelsToFields": false,
- "reducers": [
- "lastNotNull"
- ]
- }
- }
- ],
+ "transform": "timeseries_aggregations",
"type": "table"
}
],
"refresh": "5s",
- "schemaVersion": 39,
+ "schemaVersion": 16,
+ "style": "dark",
"tags": [
"nginx"
],
"templating": {
"list": [
{
- "current": {
- "selected": false,
- "text": "Prometheus",
- "value": "${DS_PROMETHEUS}"
- },
"hide": 0,
- "includeAll": false,
"label": "datasource",
- "multi": false,
"name": "DS_PROMETHEUS",
"options": [],
"query": "prometheus",
- "queryValue": "",
"refresh": 1,
"regex": "",
- "skipUrlSync": false,
"type": "datasource"
},
{
"allValue": ".*",
- "current": {},
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "current": {
+ "text": "All",
+ "value": "$__all"
},
- "definition": "",
+ "datasource": "${DS_PROMETHEUS}",
"hide": 0,
"includeAll": true,
"label": "Namespace",
@@ -1884,21 +1348,20 @@
"query": "label_values(nginx_ingress_controller_config_hash, controller_namespace)",
"refresh": 1,
"regex": "",
- "skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
+ "tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": ".*",
- "current": {},
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "current": {
+ "text": "All",
+ "value": "$__all"
},
- "definition": "",
+ "datasource": "${DS_PROMETHEUS}",
"hide": 0,
"includeAll": true,
"label": "Controller Class",
@@ -1908,21 +1371,20 @@
"query": "label_values(nginx_ingress_controller_config_hash{namespace=~\"$namespace\"}, controller_class) ",
"refresh": 1,
"regex": "",
- "skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
+ "tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": ".*",
- "current": {},
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "current": {
+ "text": "All",
+ "value": "$__all"
},
- "definition": "",
+ "datasource": "${DS_PROMETHEUS}",
"hide": 0,
"includeAll": true,
"label": "Controller",
@@ -1932,57 +1394,33 @@
"query": "label_values(nginx_ingress_controller_config_hash{namespace=~\"$namespace\",controller_class=~\"$controller_class\"}, controller_pod) ",
"refresh": 1,
"regex": "",
- "skipUrlSync": false,
- "sort": 1,
+ "sort": 0,
"tagValuesQuery": "",
+ "tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": ".*",
- "current": {},
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "current": {
+ "tags": [],
+ "text": "All",
+ "value": "$__all"
},
- "definition": "",
- "hide": 0,
- "includeAll": true,
- "label": "Ingress Namespace",
- "multi": false,
- "name": "exported_namespace",
- "options": [],
- "query": "label_values(nginx_ingress_controller_requests{namespace=~\"$namespace\",controller_class=~\"$controller_class\",controller_pod=~\"$controller\"}, exported_namespace) ",
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 1,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "allValue": ".*",
- "current": {},
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "definition": "",
+ "datasource": "${DS_PROMETHEUS}",
"hide": 0,
"includeAll": true,
"label": "Ingress",
"multi": false,
"name": "ingress",
"options": [],
- "query": "label_values(nginx_ingress_controller_requests{namespace=~\"$namespace\",controller_class=~\"$controller_class\",controller_pod=~\"$controller\",exported_namespace=~\"$exported_namespace\"}, ingress) ",
+ "query": "label_values(nginx_ingress_controller_requests{namespace=~\"$namespace\",controller_class=~\"$controller_class\",controller_pod=~\"$controller\"}, ingress) ",
"refresh": 1,
"regex": "",
- "skipUrlSync": false,
- "sort": 1,
+ "sort": 2,
"tagValuesQuery": "",
+ "tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
@@ -2021,6 +1459,5 @@
"timezone": "browser",
"title": "NGINX Ingress controller",
"uid": "nginx",
- "version": 1,
- "weekStart": ""
-}
\ No newline at end of file
+ "version": 1
+}
diff --git a/deploy/grafana/dashboards/request-handling-performance.json b/deploy/grafana/dashboards/request-handling-performance.json
index cde796384..e231129be 100644
--- a/deploy/grafana/dashboards/request-handling-performance.json
+++ b/deploy/grafana/dashboards/request-handling-performance.json
@@ -9,264 +9,191 @@
"pluginName": "Prometheus"
}
],
- "__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
- "version": "10.4.3"
+ "version": "6.6.0"
+ },
+ {
+ "type": "panel",
+ "id": "graph",
+ "name": "Graph",
+ "version": ""
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
- },
- {
- "type": "panel",
- "id": "timeseries",
- "name": "Time series",
- "version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
+ "datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
"type": "dashboard"
}
]
},
"description": "",
"editable": true,
- "fiscalYearStartMonth": 0,
"gnetId": 9614,
"graphTooltip": 1,
"id": null,
+ "iteration": 1582146566338,
"links": [],
- "liveNow": false,
"panels": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "description": "Total time for NGINX and upstream servers to process a request and send a response",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
+ "description": "Total time taken for nginx and upstream servers to process a request and send a response",
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
+ "hiddenSeries": false,
"id": 91,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
+ "legend": {
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 1,
+ "nullPointMode": "null",
+ "options": {
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "histogram_quantile(\n 0.5,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[5m]\n )\n )\n)",
+ "expr": "histogram_quantile(\n 0.5,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[1m]\n )\n )\n)",
"interval": "",
"legendFormat": ".5",
"refId": "D"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "histogram_quantile(\n 0.95,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[5m]\n )\n )\n)",
+ "expr": "histogram_quantile(\n 0.95,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[1m]\n )\n )\n)",
"interval": "",
"legendFormat": ".95",
"refId": "B"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "histogram_quantile(\n 0.99,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[5m]\n )\n )\n)",
+ "expr": "histogram_quantile(\n 0.99,\n sum by (le)(\n rate(\n nginx_ingress_controller_request_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[1m]\n )\n )\n)",
"interval": "",
"legendFormat": ".99",
"refId": "A"
}
],
- "title": "Request Latency Percentiles",
- "type": "timeseries"
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Total request handling time",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "s",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
"description": "The time spent on receiving the response from the upstream server",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
+ "hiddenSeries": false,
"id": 94,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
+ "legend": {
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 1,
+ "nullPointMode": "null",
+ "options": {
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "histogram_quantile(\n 0.5,\n sum by (le)(\n rate(\n nginx_ingress_controller_response_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[5m]\n )\n )\n)",
+ "expr": "histogram_quantile(\n 0.5,\n sum by (le)(\n rate(\n nginx_ingress_controller_response_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[1m]\n )\n )\n)",
"instant": false,
"interval": "",
"intervalFactor": 1,
@@ -274,659 +201,730 @@
"refId": "D"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "histogram_quantile(\n 0.95,\n sum by (le)(\n rate(\n nginx_ingress_controller_response_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[5m]\n )\n )\n)",
+ "expr": "histogram_quantile(\n 0.95,\n sum by (le)(\n rate(\n nginx_ingress_controller_response_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[1m]\n )\n )\n)",
"interval": "",
"legendFormat": ".95",
"refId": "B"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "histogram_quantile(\n 0.99,\n sum by (le)(\n rate(\n nginx_ingress_controller_response_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[5m]\n )\n )\n)",
+ "expr": "histogram_quantile(\n 0.99,\n sum by (le)(\n rate(\n nginx_ingress_controller_response_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[1m]\n )\n )\n)",
"interval": "",
"legendFormat": ".99",
"refId": "A"
}
],
- "title": "Upstream Response Latency Percentiles",
- "type": "timeseries"
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Upstream response time",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "s",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "reqps"
- },
- "overrides": []
- },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
+ "hiddenSeries": false,
"id": 93,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "rightSide": true,
+ "show": true,
+ "total": false,
+ "values": false
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 1,
+ "nullPointMode": "null",
+ "options": {
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": " sum by (method, host, path)(\n rate(\n nginx_ingress_controller_request_duration_seconds_count{\n ingress =~ \"$ingress\"\n }[5m]\n )\n )\n",
+ "expr": " sum by (path)(\n rate(\n nginx_ingress_controller_request_duration_seconds_count{\n ingress =~ \"$ingress\"\n }[1m]\n )\n )\n",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "{{ method }} {{ host }}{{path }}",
+ "legendFormat": "{{ path }}",
"refId": "A"
}
],
- "title": "Request Rate by Method and Path",
- "type": "timeseries"
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Request volume by Path",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "reqps",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
"description": "For each path observed, its median upstream response time",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 8
},
+ "hiddenSeries": false,
"id": 98,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "rightSide": true,
+ "show": true,
+ "total": false,
+ "values": false
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 1,
+ "nullPointMode": "null",
+ "options": {
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "histogram_quantile(\n .5,\n sum by (le, method, host, path)(\n rate(\n nginx_ingress_controller_response_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[5m]\n )\n )\n)",
+ "expr": "histogram_quantile(\n .5,\n sum by (le, path)(\n rate(\n nginx_ingress_controller_response_duration_seconds_bucket{\n ingress =~ \"$ingress\"\n }[1m]\n )\n )\n)",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "{{ method }} {{ host }}{{path }}",
+ "legendFormat": "{{ path }}",
"refId": "A"
}
],
- "title": "Median Upstream Response Time by Method and Path",
- "type": "timeseries"
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Median upstream response time by Path",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "s",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
"description": "Percentage of 4xx and 5xx responses among all responses.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "percentunit"
- },
- "overrides": []
- },
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
},
+ "hiddenSeries": false,
"id": 100,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "rightSide": true,
+ "show": true,
+ "total": false,
+ "values": false
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 1,
+ "nullPointMode": "null as zero",
+ "options": {
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "sum by (method, host, path) (rate(nginx_ingress_controller_request_duration_seconds_count{\n ingress =~ \"$ingress\",\n status =~ \"[4-5].*\"\n}[5m])) / sum by (method, host, path) (rate(nginx_ingress_controller_request_duration_seconds_count{\n ingress =~ \"$ingress\",\n}[5m]))",
+ "expr": "sum by (path) (rate(nginx_ingress_controller_request_duration_seconds_count{\n ingress =~ \"$ingress\",\n status =~ \"[4-5].*\"\n}[1m])) / sum by (path) (rate(nginx_ingress_controller_request_duration_seconds_count{\n ingress =~ \"$ingress\",\n}[1m]))",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "{{ method }} {{ host }}{{path }}",
+ "legendFormat": "{{ path }}",
"refId": "A"
}
],
- "title": "Response Error Rate by Method and Path",
- "type": "timeseries"
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Response error rate by Path",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "percentunit",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
"description": "For each path observed, the sum of upstream request time",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 16
},
+ "hiddenSeries": false,
"id": 102,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "rightSide": true,
+ "show": true,
+ "total": false,
+ "values": false
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 1,
+ "nullPointMode": "null",
+ "options": {
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "sum by (method, host, path) (rate(nginx_ingress_controller_response_duration_seconds_sum{ingress =~ \"$ingress\"}[5m]))",
+ "expr": "sum by (path) (rate(nginx_ingress_controller_response_duration_seconds_sum{ingress =~ \"$ingress\"}[1m]))",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "{{ method }} {{ host }}{{path }}",
+ "legendFormat": "{{ path }}",
"refId": "A"
}
],
- "title": "Upstream Response Time by Method and Path",
- "type": "timeseries"
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Upstream time consumed by Path",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "s",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "reqps"
- },
- "overrides": []
- },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 24
},
+ "hiddenSeries": false,
"id": 101,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "rightSide": true,
+ "show": true,
+ "total": false,
+ "values": false
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 1,
+ "nullPointMode": "null",
+ "options": {
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": " sum (\n rate(\n nginx_ingress_controller_request_duration_seconds_count{\n ingress =~ \"$ingress\",\n status =~\"[4-5].*\",\n }[5m]\n )\n ) by(method, host, path, status)\n",
+ "expr": " sum (\n rate(\n nginx_ingress_controller_request_duration_seconds_count{\n ingress =~ \"$ingress\",\n status =~\"[4-5].*\",\n }[1m]\n )\n ) by(path, status)\n",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "{{ method }} {{ host }}{{path }} {{ status }}",
+ "legendFormat": "{{ path }} {{ status }}",
"refId": "A"
}
],
- "title": "Response Error Rate by Method and Path",
- "type": "timeseries"
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Response error volume by Path",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "reqps",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "decbytes"
- },
- "overrides": []
- },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 24
},
+ "hiddenSeries": false,
"id": 99,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "rightSide": true,
+ "show": true,
+ "total": false,
+ "values": false
},
- "pluginVersion": "10.4.3",
+ "lines": true,
+ "linewidth": 1,
+ "nullPointMode": "null",
+ "options": {
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": "sum (\n rate (\n nginx_ingress_controller_response_size_sum {\n ingress =~ \"$ingress\",\n }[5m]\n )\n) by (method, host, path) / sum (\n rate(\n nginx_ingress_controller_response_size_count {\n ingress =~ \"$ingress\",\n }[5m]\n )\n) by (method, host, path)\n",
+ "expr": "sum (\n rate (\n nginx_ingress_controller_response_size_sum {\n ingress =~ \"$ingress\",\n }[1m]\n )\n) by (path) / sum (\n rate(\n nginx_ingress_controller_response_size_count {\n ingress =~ \"$ingress\",\n }[1m]\n )\n) by (path)\n",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "{{ method }} {{ host }}{{path }}",
+ "legendFormat": "{{ path }}",
"refId": "D"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "expr": " sum (rate(nginx_ingress_controller_response_size_bucket{\n ingress =~ \"$ingress\",\n }[5m])) by (le)\n",
+ "expr": " sum (rate(nginx_ingress_controller_response_size_bucket{\n ingress =~ \"$ingress\",\n }[1m])) by (le)\n",
"hide": true,
"legendFormat": "{{le}}",
"refId": "A"
}
],
- "title": "Average Response Size by Method and Path",
- "type": "timeseries"
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Average response size by Path",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "decbytes",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_PROMETHEUS}",
+ "fill": 1,
+ "fillGradient": 0,
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 32
+ },
+ "hiddenSeries": false,
+ "id": 96,
+ "legend": {
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 1,
+ "nullPointMode": "null",
+ "options": {
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum (\n rate(\n nginx_ingress_controller_ingress_upstream_latency_seconds_sum {\n ingress =~ \"$ingress\",\n }[1m]\n)) / sum (\n rate(\n nginx_ingress_controller_ingress_upstream_latency_seconds_count {\n ingress =~ \"$ingress\",\n }[1m]\n )\n)\n",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "average",
+ "refId": "B"
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Upstream service latency",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "s",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
}
],
"refresh": "30s",
- "schemaVersion": 39,
+ "schemaVersion": 22,
+ "style": "dark",
"tags": [
"nginx"
],
"templating": {
"list": [
{
- "current": {
- "selected": false,
- "text": "Prometheus",
- "value": "${DS_PROMETHEUS}"
- },
"hide": 0,
- "includeAll": false,
"label": "datasource",
- "multi": false,
"name": "DS_PROMETHEUS",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
- "skipUrlSync": false,
"type": "datasource"
},
{
"allValue": ".*",
"current": {},
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
+ "datasource": "${DS_PROMETHEUS}",
"definition": "label_values(nginx_ingress_controller_requests, ingress) ",
"hide": 0,
"includeAll": true,
@@ -934,15 +932,13 @@
"multi": false,
"name": "ingress",
"options": [],
- "query": {
- "query": "label_values(nginx_ingress_controller_requests, ingress) ",
- "refId": "Prometheus-ingress-Variable-Query"
- },
+ "query": "label_values(nginx_ingress_controller_requests, ingress) ",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 2,
"tagValuesQuery": "",
+ "tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
@@ -981,6 +977,5 @@
"timezone": "browser",
"title": "Request Handling Performance",
"uid": "4GFbkOsZk",
- "version": 1,
- "weekStart": ""
+ "version": 1
}
diff --git a/deploy/grafana/kustomization.yaml b/deploy/grafana/kustomization.yaml
index e2744818e..2069c1a7a 100644
--- a/deploy/grafana/kustomization.yaml
+++ b/deploy/grafana/kustomization.yaml
@@ -9,3 +9,4 @@ resources:
- service.yaml
images:
- name: grafana/grafana
+ newTag: 6.1.6
diff --git a/deploy/prometheus/kustomization.yaml b/deploy/prometheus/kustomization.yaml
index a55bd8d2c..2d6e0a7e2 100644
--- a/deploy/prometheus/kustomization.yaml
+++ b/deploy/prometheus/kustomization.yaml
@@ -12,6 +12,7 @@ resources:
- service.yaml
images:
- name: prom/prometheus
+ newTag: v2.3.2
configMapGenerator:
- name: prometheus-configuration
files:
diff --git a/deploy/static/provider/aws/deploy-tls-termination.yaml b/deploy/static/provider/aws/deploy-tls-termination.yaml
new file mode 100644
index 000000000..2cb23fe0e
--- /dev/null
+++ b/deploy/static/provider/aws/deploy-tls-termination.yaml
@@ -0,0 +1,671 @@
+
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: ingress-nginx
+ labels:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+
+---
+# Source: ingress-nginx/templates/controller-serviceaccount.yaml
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+automountServiceAccountToken: true
+---
+# Source: ingress-nginx/templates/controller-configmap.yaml
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller
+ namespace: ingress-nginx
+data:
+ http-snippet: |
+ server {
+ listen 2443;
+ return 308 https://$host$request_uri;
+ }
+ proxy-real-ip-cidr: XXX.XXX.XXX/XX
+ use-forwarded-headers: 'true'
+---
+# Source: ingress-nginx/templates/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - endpoints
+ - nodes
+ - pods
+ - secrets
+ verbs:
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - nodes
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+---
+# Source: ingress-nginx/templates/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - namespaces
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - pods
+ - secrets
+ - endpoints
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ resourceNames:
+ - ingress-controller-leader-nginx
+ verbs:
+ - get
+ - update
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ verbs:
+ - create
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+---
+# Source: ingress-nginx/templates/controller-rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-service-webhook.yaml
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller-admission
+ namespace: ingress-nginx
+spec:
+ type: ClusterIP
+ ports:
+ - name: https-webhook
+ port: 443
+ targetPort: webhook
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+---
+# Source: ingress-nginx/templates/controller-service.yaml
+apiVersion: v1
+kind: Service
+metadata:
+ annotations:
+ service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
+ service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: '60'
+ service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'
+ service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-west-2:XXXXXXXX:certificate/XXXXXX-XXXXXXX-XXXXXXX-XXXXXXXX
+ service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https
+ service.beta.kubernetes.io/aws-load-balancer-type: elb
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller
+ namespace: ingress-nginx
+spec:
+ type: LoadBalancer
+ externalTrafficPolicy: Local
+ ports:
+ - name: http
+ port: 80
+ protocol: TCP
+ targetPort: tohttps
+ - name: https
+ port: 443
+ protocol: TCP
+ targetPort: http
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+---
+# Source: ingress-nginx/templates/controller-deployment.yaml
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller
+ namespace: ingress-nginx
+spec:
+ selector:
+ matchLabels:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+ revisionHistoryLimit: 10
+ minReadySeconds: 0
+ template:
+ metadata:
+ labels:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+ spec:
+ dnsPolicy: ClusterFirst
+ containers:
+ - name: controller
+ image: k8s.gcr.io/ingress-nginx/controller:v0.46.0@sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
+ imagePullPolicy: IfNotPresent
+ lifecycle:
+ preStop:
+ exec:
+ command:
+ - /wait-shutdown
+ args:
+ - /nginx-ingress-controller
+ - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --election-id=ingress-controller-leader
+ - --ingress-class=nginx
+ - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --validating-webhook=:8443
+ - --validating-webhook-certificate=/usr/local/certificates/cert
+ - --validating-webhook-key=/usr/local/certificates/key
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ add:
+ - NET_BIND_SERVICE
+ runAsUser: 101
+ allowPrivilegeEscalation: true
+ env:
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: LD_PRELOAD
+ value: /usr/local/lib/libmimalloc.so
+ livenessProbe:
+ failureThreshold: 5
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ readinessProbe:
+ failureThreshold: 3
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ ports:
+ - name: http
+ containerPort: 80
+ protocol: TCP
+ - name: https
+ containerPort: 80
+ protocol: TCP
+ - name: tohttps
+ containerPort: 2443
+ protocol: TCP
+ - name: webhook
+ containerPort: 8443
+ protocol: TCP
+ volumeMounts:
+ - name: webhook-cert
+ mountPath: /usr/local/certificates/
+ readOnly: true
+ resources:
+ requests:
+ cpu: 100m
+ memory: 90Mi
+ nodeSelector:
+ kubernetes.io/os: linux
+ serviceAccountName: ingress-nginx
+ terminationGracePeriodSeconds: 300
+ volumes:
+ - name: webhook-cert
+ secret:
+ secretName: ingress-nginx-admission
+---
+# Source: ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
+# before changing this value, check the required kubernetes version
+# https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#prerequisites
+apiVersion: admissionregistration.k8s.io/v1
+kind: ValidatingWebhookConfiguration
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ name: ingress-nginx-admission
+webhooks:
+ - name: validate.nginx.ingress.kubernetes.io
+ matchPolicy: Equivalent
+ rules:
+ - apiGroups:
+ - networking.k8s.io
+ apiVersions:
+ - v1beta1
+ operations:
+ - CREATE
+ - UPDATE
+ resources:
+ - ingresses
+ failurePolicy: Fail
+ sideEffects: None
+ admissionReviewVersions:
+ - v1
+ - v1beta1
+ clientConfig:
+ service:
+ namespace: ingress-nginx
+ name: ingress-nginx-controller-admission
+ path: /networking/v1beta1/ingresses
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+rules:
+ - apiGroups:
+ - admissionregistration.k8s.io
+ resources:
+ - validatingwebhookconfigurations
+ verbs:
+ - get
+ - update
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - secrets
+ verbs:
+ - get
+ - create
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-create
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-create
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: create
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - create
+ - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
+ - --namespace=$(POD_NAMESPACE)
+ - --secret-name=ingress-nginx-admission
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-patch
+ annotations:
+ helm.sh/hook: post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-patch
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: patch
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - patch
+ - --webhook-name=ingress-nginx-admission
+ - --namespace=$(POD_NAMESPACE)
+ - --patch-mutating=false
+ - --secret-name=ingress-nginx-admission
+ - --patch-failure-policy=Fail
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
diff --git a/deploy/static/provider/aws/deploy.yaml b/deploy/static/provider/aws/deploy.yaml
index 1ed9b7471..9af4712a4 100644
--- a/deploy/static/provider/aws/deploy.yaml
+++ b/deploy/static/provider/aws/deploy.yaml
@@ -1,669 +1,658 @@
+
apiVersion: v1
kind: Namespace
metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
name: ingress-nginx
+ labels:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+
---
+# Source: ingress-nginx/templates/controller-serviceaccount.yaml
apiVersion: v1
-automountServiceAccountToken: true
kind: ServiceAccount
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx
namespace: ingress-nginx
----
-apiVersion: v1
automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - namespaces
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - configmaps
- - pods
- - secrets
- - endpoints
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resourceNames:
- - ingress-nginx-leader
- resources:
- - leases
- verbs:
- - get
- - update
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - create
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - secrets
- verbs:
- - get
- - create
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - configmaps
- - endpoints
- - nodes
- - pods
- - secrets
- - namespaces
- verbs:
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - nodes
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-rules:
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - validatingwebhookconfigurations
- verbs:
- - get
- - update
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
---
+# Source: ingress-nginx/templates/controller-configmap.yaml
apiVersion: v1
-data: null
kind: ConfigMap
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
+data:
---
+# Source: ingress-nginx/templates/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - endpoints
+ - nodes
+ - pods
+ - secrets
+ verbs:
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - nodes
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+---
+# Source: ingress-nginx/templates/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - namespaces
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - pods
+ - secrets
+ - endpoints
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ resourceNames:
+ - ingress-controller-leader-nginx
+ verbs:
+ - get
+ - update
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ verbs:
+ - create
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+---
+# Source: ingress-nginx/templates/controller-rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-service-webhook.yaml
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller-admission
+ namespace: ingress-nginx
+spec:
+ type: ClusterIP
+ ports:
+ - name: https-webhook
+ port: 443
+ targetPort: webhook
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+---
+# Source: ingress-nginx/templates/controller-service.yaml
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
- service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
+ service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'
service.beta.kubernetes.io/aws-load-balancer-type: nlb
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- externalTrafficPolicy: Local
- ipFamilies:
- - IPv4
- ipFamilyPolicy: SingleStack
- ports:
- - appProtocol: http
- name: http
- port: 80
- protocol: TCP
- targetPort: http
- - appProtocol: https
- name: https
- port: 443
- protocol: TCP
- targetPort: https
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
type: LoadBalancer
----
-apiVersion: v1
-kind: Service
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
-spec:
+ externalTrafficPolicy: Local
ports:
- - appProtocol: https
- name: https-webhook
- port: 443
- targetPort: webhook
+ - name: http
+ port: 80
+ protocol: TCP
+ targetPort: http
+ - name: https
+ port: 443
+ protocol: TCP
+ targetPort: https
selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- type: ClusterIP
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
---
+# Source: ingress-nginx/templates/controller-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- minReadySeconds: 0
- revisionHistoryLimit: 10
selector:
matchLabels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- strategy:
- rollingUpdate:
- maxUnavailable: 1
- type: RollingUpdate
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+ revisionHistoryLimit: 10
+ minReadySeconds: 0
template:
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
spec:
- containers:
- - args:
- - /nginx-ingress-controller
- - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
- - --election-id=ingress-nginx-leader
- - --controller-class=k8s.io/ingress-nginx
- - --ingress-class=nginx
- - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
- - --validating-webhook=:8443
- - --validating-webhook-certificate=/usr/local/certificates/cert
- - --validating-webhook-key=/usr/local/certificates/key
- env:
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: LD_PRELOAD
- value: /usr/local/lib/libmimalloc.so
- image: registry.k8s.io/ingress-nginx/controller:v1.12.0@sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
- imagePullPolicy: IfNotPresent
- lifecycle:
- preStop:
- exec:
- command:
- - /wait-shutdown
- livenessProbe:
- failureThreshold: 5
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- name: controller
- ports:
- - containerPort: 80
- name: http
- protocol: TCP
- - containerPort: 443
- name: https
- protocol: TCP
- - containerPort: 8443
- name: webhook
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources:
- requests:
- cpu: 100m
- memory: 90Mi
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- add:
- - NET_BIND_SERVICE
- drop:
- - ALL
- readOnlyRootFilesystem: false
- runAsGroup: 82
- runAsNonRoot: true
- runAsUser: 101
- seccompProfile:
- type: RuntimeDefault
- volumeMounts:
- - mountPath: /usr/local/certificates/
- name: webhook-cert
- readOnly: true
dnsPolicy: ClusterFirst
+ containers:
+ - name: controller
+ image: k8s.gcr.io/ingress-nginx/controller:v0.46.0@sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
+ imagePullPolicy: IfNotPresent
+ lifecycle:
+ preStop:
+ exec:
+ command:
+ - /wait-shutdown
+ args:
+ - /nginx-ingress-controller
+ - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --election-id=ingress-controller-leader
+ - --ingress-class=nginx
+ - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --validating-webhook=:8443
+ - --validating-webhook-certificate=/usr/local/certificates/cert
+ - --validating-webhook-key=/usr/local/certificates/key
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ add:
+ - NET_BIND_SERVICE
+ runAsUser: 101
+ allowPrivilegeEscalation: true
+ env:
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: LD_PRELOAD
+ value: /usr/local/lib/libmimalloc.so
+ livenessProbe:
+ failureThreshold: 5
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ readinessProbe:
+ failureThreshold: 3
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ ports:
+ - name: http
+ containerPort: 80
+ protocol: TCP
+ - name: https
+ containerPort: 443
+ protocol: TCP
+ - name: webhook
+ containerPort: 8443
+ protocol: TCP
+ volumeMounts:
+ - name: webhook-cert
+ mountPath: /usr/local/certificates/
+ readOnly: true
+ resources:
+ requests:
+ cpu: 100m
+ memory: 90Mi
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: 300
volumes:
- - name: webhook-cert
- secret:
- secretName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- spec:
- containers:
- - args:
- - create
- - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
- - --namespace=$(POD_NAMESPACE)
- - --secret-name=ingress-nginx-admission
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: create
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- spec:
- containers:
- - args:
- - patch
- - --webhook-name=ingress-nginx-admission
- - --namespace=$(POD_NAMESPACE)
- - --patch-mutating=false
- - --secret-name=ingress-nginx-admission
- - --patch-failure-policy=Fail
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: patch
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: nginx
-spec:
- controller: k8s.io/ingress-nginx
+ - name: webhook-cert
+ secret:
+ secretName: ingress-nginx-admission
---
+# Source: ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
+# before changing this value, check the required kubernetes version
+# https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#prerequisites
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
name: ingress-nginx-admission
webhooks:
-- admissionReviewVersions:
- - v1
- clientConfig:
- service:
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
- path: /networking/v1/ingresses
- port: 443
- failurePolicy: Fail
- matchPolicy: Equivalent
- name: validate.nginx.ingress.kubernetes.io
- rules:
+ - name: validate.nginx.ingress.kubernetes.io
+ matchPolicy: Equivalent
+ rules:
+ - apiGroups:
+ - networking.k8s.io
+ apiVersions:
+ - v1beta1
+ operations:
+ - CREATE
+ - UPDATE
+ resources:
+ - ingresses
+ failurePolicy: Fail
+ sideEffects: None
+ admissionReviewVersions:
+ - v1
+ - v1beta1
+ clientConfig:
+ service:
+ namespace: ingress-nginx
+ name: ingress-nginx-controller-admission
+ path: /networking/v1beta1/ingresses
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+rules:
- apiGroups:
- - networking.k8s.io
- apiVersions:
- - v1
- operations:
- - CREATE
- - UPDATE
+ - admissionregistration.k8s.io
resources:
- - ingresses
- sideEffects: None
+ - validatingwebhookconfigurations
+ verbs:
+ - get
+ - update
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - secrets
+ verbs:
+ - get
+ - create
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-create
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-create
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: create
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - create
+ - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
+ - --namespace=$(POD_NAMESPACE)
+ - --secret-name=ingress-nginx-admission
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-patch
+ annotations:
+ helm.sh/hook: post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-patch
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: patch
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - patch
+ - --webhook-name=ingress-nginx-admission
+ - --namespace=$(POD_NAMESPACE)
+ - --patch-mutating=false
+ - --secret-name=ingress-nginx-admission
+ - --patch-failure-policy=Fail
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
diff --git a/deploy/static/provider/aws/kustomization.yaml b/deploy/static/provider/aws/kustomization.yaml
index 18c6bb6a3..d18ef3896 100644
--- a/deploy/static/provider/aws/kustomization.yaml
+++ b/deploy/static/provider/aws/kustomization.yaml
@@ -4,7 +4,7 @@
# ```
# namespace: ingress-nginx
# bases:
-# - github.com/kubernetes/ingress-nginx/tree/main/deploy/static/provider/aws
+# - github.com/kubernetes/ingress-nginx/deploy/static/provider/aws?ref=master
# ```
resources:
diff --git a/deploy/static/provider/aws/nlb-with-tls-termination/deploy.yaml b/deploy/static/provider/aws/nlb-with-tls-termination/deploy.yaml
deleted file mode 100644
index d048683d9..000000000
--- a/deploy/static/provider/aws/nlb-with-tls-termination/deploy.yaml
+++ /dev/null
@@ -1,681 +0,0 @@
-apiVersion: v1
-kind: Namespace
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- name: ingress-nginx
----
-apiVersion: v1
-automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: v1
-automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - namespaces
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - configmaps
- - pods
- - secrets
- - endpoints
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resourceNames:
- - ingress-nginx-leader
- resources:
- - leases
- verbs:
- - get
- - update
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - create
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - secrets
- verbs:
- - get
- - create
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - configmaps
- - endpoints
- - nodes
- - pods
- - secrets
- - namespaces
- verbs:
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - nodes
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-rules:
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - validatingwebhookconfigurations
- verbs:
- - get
- - update
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: v1
-data:
- http-snippet: |
- server {
- listen 2443;
- return 308 https://$host$request_uri;
- }
- proxy-real-ip-cidr: XXX.XXX.XXX/XX
- use-forwarded-headers: "true"
-kind: ConfigMap
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller
- namespace: ingress-nginx
----
-apiVersion: v1
-kind: Service
-metadata:
- annotations:
- service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "60"
- service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
- service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-west-2:XXXXXXXX:certificate/XXXXXX-XXXXXXX-XXXXXXX-XXXXXXXX
- service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https
- service.beta.kubernetes.io/aws-load-balancer-type: nlb
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller
- namespace: ingress-nginx
-spec:
- externalTrafficPolicy: Local
- ipFamilies:
- - IPv4
- ipFamilyPolicy: SingleStack
- ports:
- - appProtocol: http
- name: http
- port: 80
- protocol: TCP
- targetPort: tohttps
- - appProtocol: https
- name: https
- port: 443
- protocol: TCP
- targetPort: http
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- type: LoadBalancer
----
-apiVersion: v1
-kind: Service
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
-spec:
- ports:
- - appProtocol: https
- name: https-webhook
- port: 443
- targetPort: webhook
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- type: ClusterIP
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller
- namespace: ingress-nginx
-spec:
- minReadySeconds: 0
- revisionHistoryLimit: 10
- selector:
- matchLabels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- strategy:
- rollingUpdate:
- maxUnavailable: 1
- type: RollingUpdate
- template:
- metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- spec:
- containers:
- - args:
- - /nginx-ingress-controller
- - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
- - --election-id=ingress-nginx-leader
- - --controller-class=k8s.io/ingress-nginx
- - --ingress-class=nginx
- - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
- - --validating-webhook=:8443
- - --validating-webhook-certificate=/usr/local/certificates/cert
- - --validating-webhook-key=/usr/local/certificates/key
- env:
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: LD_PRELOAD
- value: /usr/local/lib/libmimalloc.so
- image: registry.k8s.io/ingress-nginx/controller:v1.12.0@sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
- imagePullPolicy: IfNotPresent
- lifecycle:
- preStop:
- exec:
- command:
- - /wait-shutdown
- livenessProbe:
- failureThreshold: 5
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- name: controller
- ports:
- - containerPort: 80
- name: http
- protocol: TCP
- - containerPort: 80
- name: https
- protocol: TCP
- - containerPort: 2443
- name: tohttps
- protocol: TCP
- - containerPort: 8443
- name: webhook
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources:
- requests:
- cpu: 100m
- memory: 90Mi
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- add:
- - NET_BIND_SERVICE
- drop:
- - ALL
- readOnlyRootFilesystem: false
- runAsGroup: 82
- runAsNonRoot: true
- runAsUser: 101
- seccompProfile:
- type: RuntimeDefault
- volumeMounts:
- - mountPath: /usr/local/certificates/
- name: webhook-cert
- readOnly: true
- dnsPolicy: ClusterFirst
- nodeSelector:
- kubernetes.io/os: linux
- serviceAccountName: ingress-nginx
- terminationGracePeriodSeconds: 300
- volumes:
- - name: webhook-cert
- secret:
- secretName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- spec:
- containers:
- - args:
- - create
- - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
- - --namespace=$(POD_NAMESPACE)
- - --secret-name=ingress-nginx-admission
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: create
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- spec:
- containers:
- - args:
- - patch
- - --webhook-name=ingress-nginx-admission
- - --namespace=$(POD_NAMESPACE)
- - --patch-mutating=false
- - --secret-name=ingress-nginx-admission
- - --patch-failure-policy=Fail
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: patch
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: nginx
-spec:
- controller: k8s.io/ingress-nginx
----
-apiVersion: admissionregistration.k8s.io/v1
-kind: ValidatingWebhookConfiguration
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-webhooks:
-- admissionReviewVersions:
- - v1
- clientConfig:
- service:
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
- path: /networking/v1/ingresses
- port: 443
- failurePolicy: Fail
- matchPolicy: Equivalent
- name: validate.nginx.ingress.kubernetes.io
- rules:
- - apiGroups:
- - networking.k8s.io
- apiVersions:
- - v1
- operations:
- - CREATE
- - UPDATE
- resources:
- - ingresses
- sideEffects: None
diff --git a/deploy/static/provider/aws/nlb-with-tls-termination/kustomization.yaml b/deploy/static/provider/aws/nlb-with-tls-termination/kustomization.yaml
deleted file mode 100644
index 51c1513c9..000000000
--- a/deploy/static/provider/aws/nlb-with-tls-termination/kustomization.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-# NOTE: kustomize is not supported. This file exists only to be able to reference it from bases.
-# https://kubectl.docs.kubernetes.io/references/kustomize/bases/
-#
-# ```
-# namespace: ingress-nginx
-# bases:
-# - github.com/kubernetes/ingress-nginx/tree/main/deploy/static/provider/aws/nlb-with-tls-termination
-# ```
-
-resources:
- - deploy.yaml
diff --git a/deploy/static/provider/baremetal/deploy.yaml b/deploy/static/provider/baremetal/deploy.yaml
index 7248dfd9b..bd5cdab43 100644
--- a/deploy/static/provider/baremetal/deploy.yaml
+++ b/deploy/static/provider/baremetal/deploy.yaml
@@ -1,663 +1,653 @@
+
apiVersion: v1
kind: Namespace
metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
name: ingress-nginx
+ labels:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+
---
+# Source: ingress-nginx/templates/controller-serviceaccount.yaml
apiVersion: v1
-automountServiceAccountToken: true
kind: ServiceAccount
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx
namespace: ingress-nginx
----
-apiVersion: v1
automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - namespaces
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - configmaps
- - pods
- - secrets
- - endpoints
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resourceNames:
- - ingress-nginx-leader
- resources:
- - leases
- verbs:
- - get
- - update
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - create
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - secrets
- verbs:
- - get
- - create
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - configmaps
- - endpoints
- - nodes
- - pods
- - secrets
- - namespaces
- verbs:
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - nodes
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-rules:
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - validatingwebhookconfigurations
- verbs:
- - get
- - update
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
---
+# Source: ingress-nginx/templates/controller-configmap.yaml
apiVersion: v1
-data: null
kind: ConfigMap
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
+data:
---
+# Source: ingress-nginx/templates/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - endpoints
+ - nodes
+ - pods
+ - secrets
+ verbs:
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - nodes
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+---
+# Source: ingress-nginx/templates/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - namespaces
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - pods
+ - secrets
+ - endpoints
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ resourceNames:
+ - ingress-controller-leader-nginx
+ verbs:
+ - get
+ - update
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ verbs:
+ - create
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+---
+# Source: ingress-nginx/templates/controller-rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-service-webhook.yaml
apiVersion: v1
kind: Service
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller
- namespace: ingress-nginx
-spec:
- ipFamilies:
- - IPv4
- ipFamilyPolicy: SingleStack
- ports:
- - appProtocol: http
- name: http
- port: 80
- protocol: TCP
- targetPort: http
- - appProtocol: https
- name: https
- port: 443
- protocol: TCP
- targetPort: https
- selector:
- app.kubernetes.io/component: controller
app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- type: NodePort
----
-apiVersion: v1
-kind: Service
-metadata:
- labels:
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
name: ingress-nginx-controller-admission
namespace: ingress-nginx
spec:
- ports:
- - appProtocol: https
- name: https-webhook
- port: 443
- targetPort: webhook
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
type: ClusterIP
+ ports:
+ - name: https-webhook
+ port: 443
+ targetPort: webhook
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
---
+# Source: ingress-nginx/templates/controller-service.yaml
+apiVersion: v1
+kind: Service
+metadata:
+ annotations:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller
+ namespace: ingress-nginx
+spec:
+ type: NodePort
+ ports:
+ - name: http
+ port: 80
+ protocol: TCP
+ targetPort: http
+ - name: https
+ port: 443
+ protocol: TCP
+ targetPort: https
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+---
+# Source: ingress-nginx/templates/controller-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- minReadySeconds: 0
- revisionHistoryLimit: 10
selector:
matchLabels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- strategy:
- rollingUpdate:
- maxUnavailable: 1
- type: RollingUpdate
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+ revisionHistoryLimit: 10
+ minReadySeconds: 0
template:
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
spec:
- containers:
- - args:
- - /nginx-ingress-controller
- - --election-id=ingress-nginx-leader
- - --controller-class=k8s.io/ingress-nginx
- - --ingress-class=nginx
- - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
- - --validating-webhook=:8443
- - --validating-webhook-certificate=/usr/local/certificates/cert
- - --validating-webhook-key=/usr/local/certificates/key
- env:
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: LD_PRELOAD
- value: /usr/local/lib/libmimalloc.so
- image: registry.k8s.io/ingress-nginx/controller:v1.12.0@sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
- imagePullPolicy: IfNotPresent
- lifecycle:
- preStop:
- exec:
- command:
- - /wait-shutdown
- livenessProbe:
- failureThreshold: 5
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- name: controller
- ports:
- - containerPort: 80
- name: http
- protocol: TCP
- - containerPort: 443
- name: https
- protocol: TCP
- - containerPort: 8443
- name: webhook
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources:
- requests:
- cpu: 100m
- memory: 90Mi
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- add:
- - NET_BIND_SERVICE
- drop:
- - ALL
- readOnlyRootFilesystem: false
- runAsGroup: 82
- runAsNonRoot: true
- runAsUser: 101
- seccompProfile:
- type: RuntimeDefault
- volumeMounts:
- - mountPath: /usr/local/certificates/
- name: webhook-cert
- readOnly: true
dnsPolicy: ClusterFirst
+ containers:
+ - name: controller
+ image: k8s.gcr.io/ingress-nginx/controller:v0.46.0@sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
+ imagePullPolicy: IfNotPresent
+ lifecycle:
+ preStop:
+ exec:
+ command:
+ - /wait-shutdown
+ args:
+ - /nginx-ingress-controller
+ - --election-id=ingress-controller-leader
+ - --ingress-class=nginx
+ - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --validating-webhook=:8443
+ - --validating-webhook-certificate=/usr/local/certificates/cert
+ - --validating-webhook-key=/usr/local/certificates/key
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ add:
+ - NET_BIND_SERVICE
+ runAsUser: 101
+ allowPrivilegeEscalation: true
+ env:
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: LD_PRELOAD
+ value: /usr/local/lib/libmimalloc.so
+ livenessProbe:
+ failureThreshold: 5
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ readinessProbe:
+ failureThreshold: 3
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ ports:
+ - name: http
+ containerPort: 80
+ protocol: TCP
+ - name: https
+ containerPort: 443
+ protocol: TCP
+ - name: webhook
+ containerPort: 8443
+ protocol: TCP
+ volumeMounts:
+ - name: webhook-cert
+ mountPath: /usr/local/certificates/
+ readOnly: true
+ resources:
+ requests:
+ cpu: 100m
+ memory: 90Mi
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: 300
volumes:
- - name: webhook-cert
- secret:
- secretName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- spec:
- containers:
- - args:
- - create
- - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
- - --namespace=$(POD_NAMESPACE)
- - --secret-name=ingress-nginx-admission
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: create
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- spec:
- containers:
- - args:
- - patch
- - --webhook-name=ingress-nginx-admission
- - --namespace=$(POD_NAMESPACE)
- - --patch-mutating=false
- - --secret-name=ingress-nginx-admission
- - --patch-failure-policy=Fail
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: patch
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: nginx
-spec:
- controller: k8s.io/ingress-nginx
+ - name: webhook-cert
+ secret:
+ secretName: ingress-nginx-admission
---
+# Source: ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
+# before changing this value, check the required kubernetes version
+# https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#prerequisites
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
name: ingress-nginx-admission
webhooks:
-- admissionReviewVersions:
- - v1
- clientConfig:
- service:
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
- path: /networking/v1/ingresses
- port: 443
- failurePolicy: Fail
- matchPolicy: Equivalent
- name: validate.nginx.ingress.kubernetes.io
- rules:
+ - name: validate.nginx.ingress.kubernetes.io
+ matchPolicy: Equivalent
+ rules:
+ - apiGroups:
+ - networking.k8s.io
+ apiVersions:
+ - v1beta1
+ operations:
+ - CREATE
+ - UPDATE
+ resources:
+ - ingresses
+ failurePolicy: Fail
+ sideEffects: None
+ admissionReviewVersions:
+ - v1
+ - v1beta1
+ clientConfig:
+ service:
+ namespace: ingress-nginx
+ name: ingress-nginx-controller-admission
+ path: /networking/v1beta1/ingresses
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+rules:
- apiGroups:
- - networking.k8s.io
- apiVersions:
- - v1
- operations:
- - CREATE
- - UPDATE
+ - admissionregistration.k8s.io
resources:
- - ingresses
- sideEffects: None
+ - validatingwebhookconfigurations
+ verbs:
+ - get
+ - update
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - secrets
+ verbs:
+ - get
+ - create
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-create
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-create
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: create
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - create
+ - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
+ - --namespace=$(POD_NAMESPACE)
+ - --secret-name=ingress-nginx-admission
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-patch
+ annotations:
+ helm.sh/hook: post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-patch
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: patch
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - patch
+ - --webhook-name=ingress-nginx-admission
+ - --namespace=$(POD_NAMESPACE)
+ - --patch-mutating=false
+ - --secret-name=ingress-nginx-admission
+ - --patch-failure-policy=Fail
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
diff --git a/deploy/static/provider/baremetal/kustomization.yaml b/deploy/static/provider/baremetal/kustomization.yaml
index d585f85c6..d13af0f82 100644
--- a/deploy/static/provider/baremetal/kustomization.yaml
+++ b/deploy/static/provider/baremetal/kustomization.yaml
@@ -4,7 +4,7 @@
# ```
# namespace: ingress-nginx
# bases:
-# - github.com/kubernetes/ingress-nginx/tree/main/deploy/static/provider/baremetal
+# - github.com/kubernetes/ingress-nginx/deploy/static/provider/baremetal?ref=master
# ```
resources:
diff --git a/deploy/static/provider/cloud/deploy.yaml b/deploy/static/provider/cloud/deploy.yaml
index 08bc7e4bf..1d2a459a4 100644
--- a/deploy/static/provider/cloud/deploy.yaml
+++ b/deploy/static/provider/cloud/deploy.yaml
@@ -1,665 +1,655 @@
+
apiVersion: v1
kind: Namespace
metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
name: ingress-nginx
+ labels:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+
---
+# Source: ingress-nginx/templates/controller-serviceaccount.yaml
apiVersion: v1
-automountServiceAccountToken: true
kind: ServiceAccount
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx
namespace: ingress-nginx
----
-apiVersion: v1
automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - namespaces
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - configmaps
- - pods
- - secrets
- - endpoints
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resourceNames:
- - ingress-nginx-leader
- resources:
- - leases
- verbs:
- - get
- - update
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - create
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - secrets
- verbs:
- - get
- - create
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - configmaps
- - endpoints
- - nodes
- - pods
- - secrets
- - namespaces
- verbs:
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - nodes
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-rules:
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - validatingwebhookconfigurations
- verbs:
- - get
- - update
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
---
+# Source: ingress-nginx/templates/controller-configmap.yaml
apiVersion: v1
-data: null
kind: ConfigMap
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
+data:
---
+# Source: ingress-nginx/templates/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - endpoints
+ - nodes
+ - pods
+ - secrets
+ verbs:
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - nodes
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+---
+# Source: ingress-nginx/templates/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - namespaces
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - pods
+ - secrets
+ - endpoints
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ resourceNames:
+ - ingress-controller-leader-nginx
+ verbs:
+ - get
+ - update
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ verbs:
+ - create
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+---
+# Source: ingress-nginx/templates/controller-rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-service-webhook.yaml
apiVersion: v1
kind: Service
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller
- namespace: ingress-nginx
-spec:
- externalTrafficPolicy: Local
- ipFamilies:
- - IPv4
- ipFamilyPolicy: SingleStack
- ports:
- - appProtocol: http
- name: http
- port: 80
- protocol: TCP
- targetPort: http
- - appProtocol: https
- name: https
- port: 443
- protocol: TCP
- targetPort: https
- selector:
- app.kubernetes.io/component: controller
app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- type: LoadBalancer
----
-apiVersion: v1
-kind: Service
-metadata:
- labels:
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
name: ingress-nginx-controller-admission
namespace: ingress-nginx
spec:
- ports:
- - appProtocol: https
- name: https-webhook
- port: 443
- targetPort: webhook
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
type: ClusterIP
+ ports:
+ - name: https-webhook
+ port: 443
+ targetPort: webhook
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
---
+# Source: ingress-nginx/templates/controller-service.yaml
+apiVersion: v1
+kind: Service
+metadata:
+ annotations:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller
+ namespace: ingress-nginx
+spec:
+ type: LoadBalancer
+ externalTrafficPolicy: Local
+ ports:
+ - name: http
+ port: 80
+ protocol: TCP
+ targetPort: http
+ - name: https
+ port: 443
+ protocol: TCP
+ targetPort: https
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+---
+# Source: ingress-nginx/templates/controller-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- minReadySeconds: 0
- revisionHistoryLimit: 10
selector:
matchLabels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- strategy:
- rollingUpdate:
- maxUnavailable: 1
- type: RollingUpdate
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+ revisionHistoryLimit: 10
+ minReadySeconds: 0
template:
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
spec:
- containers:
- - args:
- - /nginx-ingress-controller
- - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
- - --election-id=ingress-nginx-leader
- - --controller-class=k8s.io/ingress-nginx
- - --ingress-class=nginx
- - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
- - --validating-webhook=:8443
- - --validating-webhook-certificate=/usr/local/certificates/cert
- - --validating-webhook-key=/usr/local/certificates/key
- env:
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: LD_PRELOAD
- value: /usr/local/lib/libmimalloc.so
- image: registry.k8s.io/ingress-nginx/controller:v1.12.0@sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
- imagePullPolicy: IfNotPresent
- lifecycle:
- preStop:
- exec:
- command:
- - /wait-shutdown
- livenessProbe:
- failureThreshold: 5
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- name: controller
- ports:
- - containerPort: 80
- name: http
- protocol: TCP
- - containerPort: 443
- name: https
- protocol: TCP
- - containerPort: 8443
- name: webhook
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources:
- requests:
- cpu: 100m
- memory: 90Mi
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- add:
- - NET_BIND_SERVICE
- drop:
- - ALL
- readOnlyRootFilesystem: false
- runAsGroup: 82
- runAsNonRoot: true
- runAsUser: 101
- seccompProfile:
- type: RuntimeDefault
- volumeMounts:
- - mountPath: /usr/local/certificates/
- name: webhook-cert
- readOnly: true
dnsPolicy: ClusterFirst
+ containers:
+ - name: controller
+ image: k8s.gcr.io/ingress-nginx/controller:v0.46.0@sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
+ imagePullPolicy: IfNotPresent
+ lifecycle:
+ preStop:
+ exec:
+ command:
+ - /wait-shutdown
+ args:
+ - /nginx-ingress-controller
+ - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --election-id=ingress-controller-leader
+ - --ingress-class=nginx
+ - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --validating-webhook=:8443
+ - --validating-webhook-certificate=/usr/local/certificates/cert
+ - --validating-webhook-key=/usr/local/certificates/key
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ add:
+ - NET_BIND_SERVICE
+ runAsUser: 101
+ allowPrivilegeEscalation: true
+ env:
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: LD_PRELOAD
+ value: /usr/local/lib/libmimalloc.so
+ livenessProbe:
+ failureThreshold: 5
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ readinessProbe:
+ failureThreshold: 3
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ ports:
+ - name: http
+ containerPort: 80
+ protocol: TCP
+ - name: https
+ containerPort: 443
+ protocol: TCP
+ - name: webhook
+ containerPort: 8443
+ protocol: TCP
+ volumeMounts:
+ - name: webhook-cert
+ mountPath: /usr/local/certificates/
+ readOnly: true
+ resources:
+ requests:
+ cpu: 100m
+ memory: 90Mi
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: 300
volumes:
- - name: webhook-cert
- secret:
- secretName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- spec:
- containers:
- - args:
- - create
- - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
- - --namespace=$(POD_NAMESPACE)
- - --secret-name=ingress-nginx-admission
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: create
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- spec:
- containers:
- - args:
- - patch
- - --webhook-name=ingress-nginx-admission
- - --namespace=$(POD_NAMESPACE)
- - --patch-mutating=false
- - --secret-name=ingress-nginx-admission
- - --patch-failure-policy=Fail
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: patch
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: nginx
-spec:
- controller: k8s.io/ingress-nginx
+ - name: webhook-cert
+ secret:
+ secretName: ingress-nginx-admission
---
+# Source: ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
+# before changing this value, check the required kubernetes version
+# https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#prerequisites
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
name: ingress-nginx-admission
webhooks:
-- admissionReviewVersions:
- - v1
- clientConfig:
- service:
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
- path: /networking/v1/ingresses
- port: 443
- failurePolicy: Fail
- matchPolicy: Equivalent
- name: validate.nginx.ingress.kubernetes.io
- rules:
+ - name: validate.nginx.ingress.kubernetes.io
+ matchPolicy: Equivalent
+ rules:
+ - apiGroups:
+ - networking.k8s.io
+ apiVersions:
+ - v1beta1
+ operations:
+ - CREATE
+ - UPDATE
+ resources:
+ - ingresses
+ failurePolicy: Fail
+ sideEffects: None
+ admissionReviewVersions:
+ - v1
+ - v1beta1
+ clientConfig:
+ service:
+ namespace: ingress-nginx
+ name: ingress-nginx-controller-admission
+ path: /networking/v1beta1/ingresses
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+rules:
- apiGroups:
- - networking.k8s.io
- apiVersions:
- - v1
- operations:
- - CREATE
- - UPDATE
+ - admissionregistration.k8s.io
resources:
- - ingresses
- sideEffects: None
+ - validatingwebhookconfigurations
+ verbs:
+ - get
+ - update
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - secrets
+ verbs:
+ - get
+ - create
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-create
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-create
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: create
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - create
+ - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
+ - --namespace=$(POD_NAMESPACE)
+ - --secret-name=ingress-nginx-admission
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-patch
+ annotations:
+ helm.sh/hook: post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-patch
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: patch
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - patch
+ - --webhook-name=ingress-nginx-admission
+ - --namespace=$(POD_NAMESPACE)
+ - --patch-mutating=false
+ - --secret-name=ingress-nginx-admission
+ - --patch-failure-policy=Fail
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
diff --git a/deploy/static/provider/cloud/kustomization.yaml b/deploy/static/provider/cloud/kustomization.yaml
index d477ec405..a92167fad 100644
--- a/deploy/static/provider/cloud/kustomization.yaml
+++ b/deploy/static/provider/cloud/kustomization.yaml
@@ -4,7 +4,7 @@
# ```
# namespace: ingress-nginx
# bases:
-# - github.com/kubernetes/ingress-nginx/tree/main/deploy/static/provider/cloud
+# - github.com/kubernetes/ingress-nginx/deploy/static/provider/cloud?ref=master
# ```
resources:
diff --git a/deploy/static/provider/do/deploy.yaml b/deploy/static/provider/do/deploy.yaml
index 4745c64fc..722f4199f 100644
--- a/deploy/static/provider/do/deploy.yaml
+++ b/deploy/static/provider/do/deploy.yaml
@@ -1,669 +1,657 @@
+
apiVersion: v1
kind: Namespace
metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
name: ingress-nginx
+ labels:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+
---
+# Source: ingress-nginx/templates/controller-serviceaccount.yaml
apiVersion: v1
-automountServiceAccountToken: true
kind: ServiceAccount
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx
namespace: ingress-nginx
----
-apiVersion: v1
automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - namespaces
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - configmaps
- - pods
- - secrets
- - endpoints
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resourceNames:
- - ingress-nginx-leader
- resources:
- - leases
- verbs:
- - get
- - update
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - create
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - secrets
- verbs:
- - get
- - create
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - configmaps
- - endpoints
- - nodes
- - pods
- - secrets
- - namespaces
- verbs:
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - nodes
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-rules:
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - validatingwebhookconfigurations
- verbs:
- - get
- - update
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
---
+# Source: ingress-nginx/templates/controller-configmap.yaml
apiVersion: v1
-data:
- use-proxy-protocol: "true"
kind: ConfigMap
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
+data:
+ use-proxy-protocol: 'true'
---
+# Source: ingress-nginx/templates/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - endpoints
+ - nodes
+ - pods
+ - secrets
+ verbs:
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - nodes
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+---
+# Source: ingress-nginx/templates/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - namespaces
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - pods
+ - secrets
+ - endpoints
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ resourceNames:
+ - ingress-controller-leader-nginx
+ verbs:
+ - get
+ - update
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ verbs:
+ - create
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+---
+# Source: ingress-nginx/templates/controller-rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-service-webhook.yaml
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller-admission
+ namespace: ingress-nginx
+spec:
+ type: ClusterIP
+ ports:
+ - name: https-webhook
+ port: 443
+ targetPort: webhook
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+---
+# Source: ingress-nginx/templates/controller-service.yaml
apiVersion: v1
kind: Service
metadata:
annotations:
- service.beta.kubernetes.io/do-loadbalancer-enable-proxy-protocol: "true"
+ service.beta.kubernetes.io/do-loadbalancer-enable-proxy-protocol: 'true'
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- externalTrafficPolicy: Local
- ipFamilies:
- - IPv4
- ipFamilyPolicy: SingleStack
- ports:
- - appProtocol: http
- name: http
- port: 80
- protocol: TCP
- targetPort: http
- - appProtocol: https
- name: https
- port: 443
- protocol: TCP
- targetPort: https
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
type: LoadBalancer
----
-apiVersion: v1
-kind: Service
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
-spec:
+ externalTrafficPolicy: Local
ports:
- - appProtocol: https
- name: https-webhook
- port: 443
- targetPort: webhook
+ - name: http
+ port: 80
+ protocol: TCP
+ targetPort: http
+ - name: https
+ port: 443
+ protocol: TCP
+ targetPort: https
selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- type: ClusterIP
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
---
+# Source: ingress-nginx/templates/controller-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- minReadySeconds: 0
- revisionHistoryLimit: 10
selector:
matchLabels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- strategy:
- rollingUpdate:
- maxUnavailable: 1
- type: RollingUpdate
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+ revisionHistoryLimit: 10
+ minReadySeconds: 0
template:
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
spec:
- containers:
- - args:
- - /nginx-ingress-controller
- - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
- - --election-id=ingress-nginx-leader
- - --controller-class=k8s.io/ingress-nginx
- - --ingress-class=nginx
- - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
- - --validating-webhook=:8443
- - --validating-webhook-certificate=/usr/local/certificates/cert
- - --validating-webhook-key=/usr/local/certificates/key
- env:
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: LD_PRELOAD
- value: /usr/local/lib/libmimalloc.so
- image: registry.k8s.io/ingress-nginx/controller:v1.12.0@sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
- imagePullPolicy: IfNotPresent
- lifecycle:
- preStop:
- exec:
- command:
- - /wait-shutdown
- livenessProbe:
- failureThreshold: 5
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- name: controller
- ports:
- - containerPort: 80
- name: http
- protocol: TCP
- - containerPort: 443
- name: https
- protocol: TCP
- - containerPort: 8443
- name: webhook
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources:
- requests:
- cpu: 100m
- memory: 90Mi
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- add:
- - NET_BIND_SERVICE
- drop:
- - ALL
- readOnlyRootFilesystem: false
- runAsGroup: 82
- runAsNonRoot: true
- runAsUser: 101
- seccompProfile:
- type: RuntimeDefault
- volumeMounts:
- - mountPath: /usr/local/certificates/
- name: webhook-cert
- readOnly: true
dnsPolicy: ClusterFirst
+ containers:
+ - name: controller
+ image: k8s.gcr.io/ingress-nginx/controller:v0.46.0@sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
+ imagePullPolicy: IfNotPresent
+ lifecycle:
+ preStop:
+ exec:
+ command:
+ - /wait-shutdown
+ args:
+ - /nginx-ingress-controller
+ - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --election-id=ingress-controller-leader
+ - --ingress-class=nginx
+ - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --validating-webhook=:8443
+ - --validating-webhook-certificate=/usr/local/certificates/cert
+ - --validating-webhook-key=/usr/local/certificates/key
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ add:
+ - NET_BIND_SERVICE
+ runAsUser: 101
+ allowPrivilegeEscalation: true
+ env:
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: LD_PRELOAD
+ value: /usr/local/lib/libmimalloc.so
+ livenessProbe:
+ failureThreshold: 5
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ readinessProbe:
+ failureThreshold: 3
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ ports:
+ - name: http
+ containerPort: 80
+ protocol: TCP
+ - name: https
+ containerPort: 443
+ protocol: TCP
+ - name: webhook
+ containerPort: 8443
+ protocol: TCP
+ volumeMounts:
+ - name: webhook-cert
+ mountPath: /usr/local/certificates/
+ readOnly: true
+ resources:
+ requests:
+ cpu: 100m
+ memory: 90Mi
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: 300
volumes:
- - name: webhook-cert
- secret:
- secretName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- spec:
- containers:
- - args:
- - create
- - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
- - --namespace=$(POD_NAMESPACE)
- - --secret-name=ingress-nginx-admission
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: create
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- spec:
- containers:
- - args:
- - patch
- - --webhook-name=ingress-nginx-admission
- - --namespace=$(POD_NAMESPACE)
- - --patch-mutating=false
- - --secret-name=ingress-nginx-admission
- - --patch-failure-policy=Fail
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: patch
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: nginx
-spec:
- controller: k8s.io/ingress-nginx
+ - name: webhook-cert
+ secret:
+ secretName: ingress-nginx-admission
---
+# Source: ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
+# before changing this value, check the required kubernetes version
+# https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#prerequisites
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
name: ingress-nginx-admission
webhooks:
-- admissionReviewVersions:
- - v1
- clientConfig:
- service:
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
- path: /networking/v1/ingresses
- port: 443
- failurePolicy: Fail
- matchPolicy: Equivalent
- name: validate.nginx.ingress.kubernetes.io
- rules:
+ - name: validate.nginx.ingress.kubernetes.io
+ matchPolicy: Equivalent
+ rules:
+ - apiGroups:
+ - networking.k8s.io
+ apiVersions:
+ - v1beta1
+ operations:
+ - CREATE
+ - UPDATE
+ resources:
+ - ingresses
+ failurePolicy: Fail
+ sideEffects: None
+ admissionReviewVersions:
+ - v1
+ - v1beta1
+ clientConfig:
+ service:
+ namespace: ingress-nginx
+ name: ingress-nginx-controller-admission
+ path: /networking/v1beta1/ingresses
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+rules:
- apiGroups:
- - networking.k8s.io
- apiVersions:
- - v1
- operations:
- - CREATE
- - UPDATE
+ - admissionregistration.k8s.io
resources:
- - ingresses
- sideEffects: None
- timeoutSeconds: 29
+ - validatingwebhookconfigurations
+ verbs:
+ - get
+ - update
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - secrets
+ verbs:
+ - get
+ - create
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-create
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-create
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: create
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - create
+ - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
+ - --namespace=$(POD_NAMESPACE)
+ - --secret-name=ingress-nginx-admission
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-patch
+ annotations:
+ helm.sh/hook: post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-patch
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: patch
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - patch
+ - --webhook-name=ingress-nginx-admission
+ - --namespace=$(POD_NAMESPACE)
+ - --patch-mutating=false
+ - --secret-name=ingress-nginx-admission
+ - --patch-failure-policy=Fail
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
diff --git a/deploy/static/provider/do/kustomization.yaml b/deploy/static/provider/do/kustomization.yaml
index f20d445c7..c7bb8d250 100644
--- a/deploy/static/provider/do/kustomization.yaml
+++ b/deploy/static/provider/do/kustomization.yaml
@@ -4,7 +4,7 @@
# ```
# namespace: ingress-nginx
# bases:
-# - github.com/kubernetes/ingress-nginx/tree/main/deploy/static/provider/do
+# - github.com/kubernetes/ingress-nginx/deploy/static/provider/do?ref=master
# ```
resources:
diff --git a/deploy/static/provider/exoscale/deploy.yaml b/deploy/static/provider/exoscale/deploy.yaml
index 8ed5d002c..c05a916b5 100644
--- a/deploy/static/provider/exoscale/deploy.yaml
+++ b/deploy/static/provider/exoscale/deploy.yaml
@@ -1,674 +1,663 @@
+
apiVersion: v1
kind: Namespace
metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
name: ingress-nginx
+ labels:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+
---
+# Source: ingress-nginx/templates/controller-serviceaccount.yaml
apiVersion: v1
-automountServiceAccountToken: true
kind: ServiceAccount
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx
namespace: ingress-nginx
----
-apiVersion: v1
automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - namespaces
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - configmaps
- - pods
- - secrets
- - endpoints
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resourceNames:
- - ingress-nginx-leader
- resources:
- - leases
- verbs:
- - get
- - update
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - create
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - secrets
- verbs:
- - get
- - create
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - configmaps
- - endpoints
- - nodes
- - pods
- - secrets
- - namespaces
- verbs:
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - nodes
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-rules:
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - validatingwebhookconfigurations
- verbs:
- - get
- - update
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
---
+# Source: ingress-nginx/templates/controller-configmap.yaml
apiVersion: v1
-data: null
kind: ConfigMap
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
+data:
---
+# Source: ingress-nginx/templates/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - endpoints
+ - nodes
+ - pods
+ - secrets
+ verbs:
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - nodes
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+---
+# Source: ingress-nginx/templates/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - namespaces
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - pods
+ - secrets
+ - endpoints
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ resourceNames:
+ - ingress-controller-leader-nginx
+ verbs:
+ - get
+ - update
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ verbs:
+ - create
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+---
+# Source: ingress-nginx/templates/controller-rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-service-webhook.yaml
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller-admission
+ namespace: ingress-nginx
+spec:
+ type: ClusterIP
+ ports:
+ - name: https-webhook
+ port: 443
+ targetPort: webhook
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+---
+# Source: ingress-nginx/templates/controller-service.yaml
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/exoscale-loadbalancer-description: NGINX Ingress Controller
load balancer
+ service.beta.kubernetes.io/exoscale-loadbalancer-name: nginx-ingress-controller
service.beta.kubernetes.io/exoscale-loadbalancer-service-healthcheck-interval: 10s
- service.beta.kubernetes.io/exoscale-loadbalancer-service-healthcheck-mode: http
- service.beta.kubernetes.io/exoscale-loadbalancer-service-healthcheck-retries: "1"
+ service.beta.kubernetes.io/exoscale-loadbalancer-service-healthcheck-mode: tcp
+ service.beta.kubernetes.io/exoscale-loadbalancer-service-healthcheck-retries: '1'
service.beta.kubernetes.io/exoscale-loadbalancer-service-healthcheck-timeout: 3s
- service.beta.kubernetes.io/exoscale-loadbalancer-service-healthcheck-uri: /
service.beta.kubernetes.io/exoscale-loadbalancer-service-strategy: source-hash
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- externalTrafficPolicy: Local
- ipFamilies:
- - IPv4
- ipFamilyPolicy: SingleStack
- ports:
- - appProtocol: http
- name: http
- port: 80
- protocol: TCP
- targetPort: http
- - appProtocol: https
- name: https
- port: 443
- protocol: TCP
- targetPort: https
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
type: LoadBalancer
----
-apiVersion: v1
-kind: Service
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
-spec:
+ externalTrafficPolicy: Local
ports:
- - appProtocol: https
- name: https-webhook
- port: 443
- targetPort: webhook
+ - name: http
+ port: 80
+ protocol: TCP
+ targetPort: http
+ - name: https
+ port: 443
+ protocol: TCP
+ targetPort: https
selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- type: ClusterIP
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
---
+# Source: ingress-nginx/templates/controller-daemonset.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- minReadySeconds: 0
- revisionHistoryLimit: 10
selector:
matchLabels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+ revisionHistoryLimit: 10
+ minReadySeconds: 0
template:
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
spec:
- containers:
- - args:
- - /nginx-ingress-controller
- - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
- - --election-id=ingress-nginx-leader
- - --controller-class=k8s.io/ingress-nginx
- - --ingress-class=nginx
- - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
- - --validating-webhook=:8443
- - --validating-webhook-certificate=/usr/local/certificates/cert
- - --validating-webhook-key=/usr/local/certificates/key
- env:
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: LD_PRELOAD
- value: /usr/local/lib/libmimalloc.so
- image: registry.k8s.io/ingress-nginx/controller:v1.12.0@sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
- imagePullPolicy: IfNotPresent
- lifecycle:
- preStop:
- exec:
- command:
- - /wait-shutdown
- livenessProbe:
- failureThreshold: 5
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- name: controller
- ports:
- - containerPort: 80
- name: http
- protocol: TCP
- - containerPort: 443
- name: https
- protocol: TCP
- - containerPort: 8443
- name: webhook
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources:
- requests:
- cpu: 100m
- memory: 90Mi
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- add:
- - NET_BIND_SERVICE
- drop:
- - ALL
- readOnlyRootFilesystem: false
- runAsGroup: 82
- runAsNonRoot: true
- runAsUser: 101
- seccompProfile:
- type: RuntimeDefault
- volumeMounts:
- - mountPath: /usr/local/certificates/
- name: webhook-cert
- readOnly: true
dnsPolicy: ClusterFirst
+ containers:
+ - name: controller
+ image: k8s.gcr.io/ingress-nginx/controller:v0.46.0@sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
+ imagePullPolicy: IfNotPresent
+ lifecycle:
+ preStop:
+ exec:
+ command:
+ - /wait-shutdown
+ args:
+ - /nginx-ingress-controller
+ - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --election-id=ingress-controller-leader
+ - --ingress-class=nginx
+ - --configmap=ingress-nginx/ingress-nginx-controller
+ - --validating-webhook=:8443
+ - --validating-webhook-certificate=/usr/local/certificates/cert
+ - --validating-webhook-key=/usr/local/certificates/key
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ add:
+ - NET_BIND_SERVICE
+ runAsUser: 101
+ allowPrivilegeEscalation: true
+ env:
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: LD_PRELOAD
+ value: /usr/local/lib/libmimalloc.so
+ livenessProbe:
+ failureThreshold: 5
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ readinessProbe:
+ failureThreshold: 3
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ ports:
+ - name: http
+ containerPort: 80
+ protocol: TCP
+ - name: https
+ containerPort: 443
+ protocol: TCP
+ - name: webhook
+ containerPort: 8443
+ protocol: TCP
+ volumeMounts:
+ - name: webhook-cert
+ mountPath: /usr/local/certificates/
+ readOnly: true
+ resources:
+ requests:
+ cpu: 100m
+ memory: 90Mi
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: 300
volumes:
- - name: webhook-cert
- secret:
- secretName: ingress-nginx-admission
- updateStrategy:
- rollingUpdate:
- maxUnavailable: 1
- type: RollingUpdate
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- spec:
- containers:
- - args:
- - create
- - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
- - --namespace=$(POD_NAMESPACE)
- - --secret-name=ingress-nginx-admission
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: create
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- spec:
- containers:
- - args:
- - patch
- - --webhook-name=ingress-nginx-admission
- - --namespace=$(POD_NAMESPACE)
- - --patch-mutating=false
- - --secret-name=ingress-nginx-admission
- - --patch-failure-policy=Fail
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: patch
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: nginx
-spec:
- controller: k8s.io/ingress-nginx
+ - name: webhook-cert
+ secret:
+ secretName: ingress-nginx-admission
---
+# Source: ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
+# before changing this value, check the required kubernetes version
+# https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#prerequisites
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
name: ingress-nginx-admission
webhooks:
-- admissionReviewVersions:
- - v1
- clientConfig:
- service:
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
- path: /networking/v1/ingresses
- port: 443
- failurePolicy: Fail
- matchPolicy: Equivalent
- name: validate.nginx.ingress.kubernetes.io
- rules:
+ - name: validate.nginx.ingress.kubernetes.io
+ matchPolicy: Equivalent
+ rules:
+ - apiGroups:
+ - networking.k8s.io
+ apiVersions:
+ - v1beta1
+ operations:
+ - CREATE
+ - UPDATE
+ resources:
+ - ingresses
+ failurePolicy: Fail
+ sideEffects: None
+ admissionReviewVersions:
+ - v1
+ - v1beta1
+ clientConfig:
+ service:
+ namespace: ingress-nginx
+ name: ingress-nginx-controller-admission
+ path: /networking/v1beta1/ingresses
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+rules:
- apiGroups:
- - networking.k8s.io
- apiVersions:
- - v1
- operations:
- - CREATE
- - UPDATE
+ - admissionregistration.k8s.io
resources:
- - ingresses
- sideEffects: None
+ - validatingwebhookconfigurations
+ verbs:
+ - get
+ - update
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - secrets
+ verbs:
+ - get
+ - create
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-create
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-create
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: create
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - create
+ - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
+ - --namespace=$(POD_NAMESPACE)
+ - --secret-name=ingress-nginx-admission
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-patch
+ annotations:
+ helm.sh/hook: post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-patch
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: patch
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - patch
+ - --webhook-name=ingress-nginx-admission
+ - --namespace=$(POD_NAMESPACE)
+ - --patch-mutating=false
+ - --secret-name=ingress-nginx-admission
+ - --patch-failure-policy=Fail
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
diff --git a/deploy/static/provider/exoscale/kustomization.yaml b/deploy/static/provider/exoscale/kustomization.yaml
index e79016cf3..8466627e2 100644
--- a/deploy/static/provider/exoscale/kustomization.yaml
+++ b/deploy/static/provider/exoscale/kustomization.yaml
@@ -4,7 +4,7 @@
# ```
# namespace: ingress-nginx
# bases:
-# - github.com/kubernetes/ingress-nginx/tree/main/deploy/static/provider/exoscale
+# - github.com/kubernetes/ingress-nginx/deploy/static/provider/exoscale?ref=master
# ```
resources:
diff --git a/deploy/static/provider/kind/deploy.yaml b/deploy/static/provider/kind/deploy.yaml
index b7488f046..066bbad85 100644
--- a/deploy/static/provider/kind/deploy.yaml
+++ b/deploy/static/provider/kind/deploy.yaml
@@ -1,675 +1,665 @@
+
apiVersion: v1
kind: Namespace
metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
name: ingress-nginx
+ labels:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+
---
+# Source: ingress-nginx/templates/controller-serviceaccount.yaml
apiVersion: v1
-automountServiceAccountToken: true
kind: ServiceAccount
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx
namespace: ingress-nginx
----
-apiVersion: v1
automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - namespaces
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - configmaps
- - pods
- - secrets
- - endpoints
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resourceNames:
- - ingress-nginx-leader
- resources:
- - leases
- verbs:
- - get
- - update
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - create
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - secrets
- verbs:
- - get
- - create
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - configmaps
- - endpoints
- - nodes
- - pods
- - secrets
- - namespaces
- verbs:
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - nodes
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-rules:
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - validatingwebhookconfigurations
- verbs:
- - get
- - update
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
---
+# Source: ingress-nginx/templates/controller-configmap.yaml
apiVersion: v1
-data: null
kind: ConfigMap
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
+data:
---
+# Source: ingress-nginx/templates/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - endpoints
+ - nodes
+ - pods
+ - secrets
+ verbs:
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - nodes
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+---
+# Source: ingress-nginx/templates/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - namespaces
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - pods
+ - secrets
+ - endpoints
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ resourceNames:
+ - ingress-controller-leader-nginx
+ verbs:
+ - get
+ - update
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ verbs:
+ - create
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+---
+# Source: ingress-nginx/templates/controller-rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-service-webhook.yaml
apiVersion: v1
kind: Service
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller
- namespace: ingress-nginx
-spec:
- ipFamilies:
- - IPv4
- ipFamilyPolicy: SingleStack
- ports:
- - appProtocol: http
- name: http
- port: 80
- protocol: TCP
- targetPort: http
- - appProtocol: https
- name: https
- port: 443
- protocol: TCP
- targetPort: https
- selector:
- app.kubernetes.io/component: controller
app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- type: NodePort
----
-apiVersion: v1
-kind: Service
-metadata:
- labels:
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
name: ingress-nginx-controller-admission
namespace: ingress-nginx
spec:
- ports:
- - appProtocol: https
- name: https-webhook
- port: 443
- targetPort: webhook
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
type: ClusterIP
+ ports:
+ - name: https-webhook
+ port: 443
+ targetPort: webhook
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
---
+# Source: ingress-nginx/templates/controller-service.yaml
+apiVersion: v1
+kind: Service
+metadata:
+ annotations:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller
+ namespace: ingress-nginx
+spec:
+ type: NodePort
+ ports:
+ - name: http
+ port: 80
+ protocol: TCP
+ targetPort: http
+ - name: https
+ port: 443
+ protocol: TCP
+ targetPort: https
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+---
+# Source: ingress-nginx/templates/controller-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- minReadySeconds: 0
- revisionHistoryLimit: 10
selector:
matchLabels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+ revisionHistoryLimit: 10
strategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
+ minReadySeconds: 0
template:
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
spec:
- containers:
- - args:
- - /nginx-ingress-controller
- - --election-id=ingress-nginx-leader
- - --controller-class=k8s.io/ingress-nginx
- - --ingress-class=nginx
- - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
- - --validating-webhook=:8443
- - --validating-webhook-certificate=/usr/local/certificates/cert
- - --validating-webhook-key=/usr/local/certificates/key
- - --watch-ingress-without-class=true
- - --publish-status-address=localhost
- env:
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: LD_PRELOAD
- value: /usr/local/lib/libmimalloc.so
- image: registry.k8s.io/ingress-nginx/controller:v1.12.0@sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
- imagePullPolicy: IfNotPresent
- lifecycle:
- preStop:
- exec:
- command:
- - /wait-shutdown
- livenessProbe:
- failureThreshold: 5
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- name: controller
- ports:
- - containerPort: 80
- hostPort: 80
- name: http
- protocol: TCP
- - containerPort: 443
- hostPort: 443
- name: https
- protocol: TCP
- - containerPort: 8443
- name: webhook
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources:
- requests:
- cpu: 100m
- memory: 90Mi
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- add:
- - NET_BIND_SERVICE
- drop:
- - ALL
- readOnlyRootFilesystem: false
- runAsGroup: 82
- runAsNonRoot: true
- runAsUser: 101
- seccompProfile:
- type: RuntimeDefault
- volumeMounts:
- - mountPath: /usr/local/certificates/
- name: webhook-cert
- readOnly: true
dnsPolicy: ClusterFirst
+ containers:
+ - name: controller
+ image: k8s.gcr.io/ingress-nginx/controller:v0.46.0@sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
+ imagePullPolicy: IfNotPresent
+ lifecycle:
+ preStop:
+ exec:
+ command:
+ - /wait-shutdown
+ args:
+ - /nginx-ingress-controller
+ - --election-id=ingress-controller-leader
+ - --ingress-class=nginx
+ - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --validating-webhook=:8443
+ - --validating-webhook-certificate=/usr/local/certificates/cert
+ - --validating-webhook-key=/usr/local/certificates/key
+ - --publish-status-address=localhost
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ add:
+ - NET_BIND_SERVICE
+ runAsUser: 101
+ allowPrivilegeEscalation: true
+ env:
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: LD_PRELOAD
+ value: /usr/local/lib/libmimalloc.so
+ livenessProbe:
+ failureThreshold: 5
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ readinessProbe:
+ failureThreshold: 3
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ ports:
+ - name: http
+ containerPort: 80
+ protocol: TCP
+ hostPort: 80
+ - name: https
+ containerPort: 443
+ protocol: TCP
+ hostPort: 443
+ - name: webhook
+ containerPort: 8443
+ protocol: TCP
+ volumeMounts:
+ - name: webhook-cert
+ mountPath: /usr/local/certificates/
+ readOnly: true
+ resources:
+ requests:
+ cpu: 100m
+ memory: 90Mi
nodeSelector:
- ingress-ready: "true"
+ ingress-ready: 'true'
kubernetes.io/os: linux
+ tolerations:
+ - effect: NoSchedule
+ key: node-role.kubernetes.io/master
+ operator: Equal
serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: 0
- tolerations:
- - effect: NoSchedule
- key: node-role.kubernetes.io/master
- operator: Equal
- - effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
- operator: Equal
volumes:
- - name: webhook-cert
- secret:
- secretName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- spec:
- containers:
- - args:
- - create
- - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
- - --namespace=$(POD_NAMESPACE)
- - --secret-name=ingress-nginx-admission
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: create
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- spec:
- containers:
- - args:
- - patch
- - --webhook-name=ingress-nginx-admission
- - --namespace=$(POD_NAMESPACE)
- - --patch-mutating=false
- - --secret-name=ingress-nginx-admission
- - --patch-failure-policy=Fail
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: patch
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: nginx
-spec:
- controller: k8s.io/ingress-nginx
+ - name: webhook-cert
+ secret:
+ secretName: ingress-nginx-admission
---
+# Source: ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
+# before changing this value, check the required kubernetes version
+# https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#prerequisites
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
name: ingress-nginx-admission
webhooks:
-- admissionReviewVersions:
- - v1
- clientConfig:
- service:
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
- path: /networking/v1/ingresses
- port: 443
- failurePolicy: Fail
- matchPolicy: Equivalent
- name: validate.nginx.ingress.kubernetes.io
- rules:
+ - name: validate.nginx.ingress.kubernetes.io
+ matchPolicy: Equivalent
+ rules:
+ - apiGroups:
+ - networking.k8s.io
+ apiVersions:
+ - v1beta1
+ operations:
+ - CREATE
+ - UPDATE
+ resources:
+ - ingresses
+ failurePolicy: Fail
+ sideEffects: None
+ admissionReviewVersions:
+ - v1
+ - v1beta1
+ clientConfig:
+ service:
+ namespace: ingress-nginx
+ name: ingress-nginx-controller-admission
+ path: /networking/v1beta1/ingresses
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+rules:
- apiGroups:
- - networking.k8s.io
- apiVersions:
- - v1
- operations:
- - CREATE
- - UPDATE
+ - admissionregistration.k8s.io
resources:
- - ingresses
- sideEffects: None
+ - validatingwebhookconfigurations
+ verbs:
+ - get
+ - update
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - secrets
+ verbs:
+ - get
+ - create
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-create
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-create
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: create
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - create
+ - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
+ - --namespace=$(POD_NAMESPACE)
+ - --secret-name=ingress-nginx-admission
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-patch
+ annotations:
+ helm.sh/hook: post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-patch
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: patch
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - patch
+ - --webhook-name=ingress-nginx-admission
+ - --namespace=$(POD_NAMESPACE)
+ - --patch-mutating=false
+ - --secret-name=ingress-nginx-admission
+ - --patch-failure-policy=Fail
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
diff --git a/deploy/static/provider/kind/kustomization.yaml b/deploy/static/provider/kind/kustomization.yaml
index bd605a188..94b7c887d 100644
--- a/deploy/static/provider/kind/kustomization.yaml
+++ b/deploy/static/provider/kind/kustomization.yaml
@@ -4,7 +4,7 @@
# ```
# namespace: ingress-nginx
# bases:
-# - github.com/kubernetes/ingress-nginx/tree/main/deploy/static/provider/kind
+# - github.com/kubernetes/ingress-nginx/deploy/static/provider/kind?ref=master
# ```
resources:
diff --git a/deploy/static/provider/oracle/deploy.yaml b/deploy/static/provider/oracle/deploy.yaml
deleted file mode 100644
index 02d18b1bf..000000000
--- a/deploy/static/provider/oracle/deploy.yaml
+++ /dev/null
@@ -1,669 +0,0 @@
-apiVersion: v1
-kind: Namespace
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- name: ingress-nginx
----
-apiVersion: v1
-automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: v1
-automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - namespaces
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - configmaps
- - pods
- - secrets
- - endpoints
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resourceNames:
- - ingress-nginx-leader
- resources:
- - leases
- verbs:
- - get
- - update
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - create
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - secrets
- verbs:
- - get
- - create
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - configmaps
- - endpoints
- - nodes
- - pods
- - secrets
- - namespaces
- verbs:
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - nodes
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-rules:
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - validatingwebhookconfigurations
- verbs:
- - get
- - update
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: v1
-data: null
-kind: ConfigMap
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller
- namespace: ingress-nginx
----
-apiVersion: v1
-kind: Service
-metadata:
- annotations:
- service.beta.kubernetes.io/oci-load-balancer-shape: flexible
- service.beta.kubernetes.io/oci-load-balancer-shape-flex-max: "100"
- service.beta.kubernetes.io/oci-load-balancer-shape-flex-min: "10"
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller
- namespace: ingress-nginx
-spec:
- externalTrafficPolicy: Local
- ipFamilies:
- - IPv4
- ipFamilyPolicy: SingleStack
- ports:
- - appProtocol: http
- name: http
- port: 80
- protocol: TCP
- targetPort: http
- - appProtocol: https
- name: https
- port: 443
- protocol: TCP
- targetPort: https
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- type: LoadBalancer
----
-apiVersion: v1
-kind: Service
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
-spec:
- ports:
- - appProtocol: https
- name: https-webhook
- port: 443
- targetPort: webhook
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- type: ClusterIP
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller
- namespace: ingress-nginx
-spec:
- minReadySeconds: 0
- revisionHistoryLimit: 10
- selector:
- matchLabels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- strategy:
- rollingUpdate:
- maxUnavailable: 1
- type: RollingUpdate
- template:
- metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- spec:
- containers:
- - args:
- - /nginx-ingress-controller
- - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
- - --election-id=ingress-nginx-leader
- - --controller-class=k8s.io/ingress-nginx
- - --ingress-class=nginx
- - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
- - --validating-webhook=:8443
- - --validating-webhook-certificate=/usr/local/certificates/cert
- - --validating-webhook-key=/usr/local/certificates/key
- env:
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: LD_PRELOAD
- value: /usr/local/lib/libmimalloc.so
- image: registry.k8s.io/ingress-nginx/controller:v1.12.0@sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
- imagePullPolicy: IfNotPresent
- lifecycle:
- preStop:
- exec:
- command:
- - /wait-shutdown
- livenessProbe:
- failureThreshold: 5
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- name: controller
- ports:
- - containerPort: 80
- name: http
- protocol: TCP
- - containerPort: 443
- name: https
- protocol: TCP
- - containerPort: 8443
- name: webhook
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources:
- requests:
- cpu: 100m
- memory: 90Mi
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- add:
- - NET_BIND_SERVICE
- drop:
- - ALL
- readOnlyRootFilesystem: false
- runAsGroup: 82
- runAsNonRoot: true
- runAsUser: 101
- seccompProfile:
- type: RuntimeDefault
- volumeMounts:
- - mountPath: /usr/local/certificates/
- name: webhook-cert
- readOnly: true
- dnsPolicy: ClusterFirst
- nodeSelector:
- kubernetes.io/os: linux
- serviceAccountName: ingress-nginx
- terminationGracePeriodSeconds: 300
- volumes:
- - name: webhook-cert
- secret:
- secretName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- spec:
- containers:
- - args:
- - create
- - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
- - --namespace=$(POD_NAMESPACE)
- - --secret-name=ingress-nginx-admission
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: create
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- spec:
- containers:
- - args:
- - patch
- - --webhook-name=ingress-nginx-admission
- - --namespace=$(POD_NAMESPACE)
- - --patch-mutating=false
- - --secret-name=ingress-nginx-admission
- - --patch-failure-policy=Fail
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: patch
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: nginx
-spec:
- controller: k8s.io/ingress-nginx
----
-apiVersion: admissionregistration.k8s.io/v1
-kind: ValidatingWebhookConfiguration
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-webhooks:
-- admissionReviewVersions:
- - v1
- clientConfig:
- service:
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
- path: /networking/v1/ingresses
- port: 443
- failurePolicy: Fail
- matchPolicy: Equivalent
- name: validate.nginx.ingress.kubernetes.io
- rules:
- - apiGroups:
- - networking.k8s.io
- apiVersions:
- - v1
- operations:
- - CREATE
- - UPDATE
- resources:
- - ingresses
- sideEffects: None
diff --git a/deploy/static/provider/oracle/kustomization.yaml b/deploy/static/provider/oracle/kustomization.yaml
deleted file mode 100644
index 5c1dcff96..000000000
--- a/deploy/static/provider/oracle/kustomization.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-# NOTE: kustomize is not supported. This file exists only to be able to reference it from bases.
-# https://kubectl.docs.kubernetes.io/references/kustomize/bases/
-#
-# ```
-# namespace: ingress-nginx
-# bases:
-# - github.com/kubernetes/ingress-nginx/tree/main/deploy/static/provider/oracle
-# ```
-
-resources:
- - deploy.yaml
diff --git a/deploy/static/provider/scw/deploy.yaml b/deploy/static/provider/scw/deploy.yaml
index 8ed37d062..3776bb8d5 100644
--- a/deploy/static/provider/scw/deploy.yaml
+++ b/deploy/static/provider/scw/deploy.yaml
@@ -1,668 +1,657 @@
+
apiVersion: v1
kind: Namespace
metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
name: ingress-nginx
+ labels:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+
---
+# Source: ingress-nginx/templates/controller-serviceaccount.yaml
apiVersion: v1
-automountServiceAccountToken: true
kind: ServiceAccount
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx
namespace: ingress-nginx
----
-apiVersion: v1
automountServiceAccountToken: true
-kind: ServiceAccount
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - namespaces
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - configmaps
- - pods
- - secrets
- - endpoints
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resourceNames:
- - ingress-nginx-leader
- resources:
- - leases
- verbs:
- - get
- - update
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - create
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - secrets
- verbs:
- - get
- - create
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-rules:
-- apiGroups:
- - ""
- resources:
- - configmaps
- - endpoints
- - nodes
- - pods
- - secrets
- - namespaces
- verbs:
- - list
- - watch
-- apiGroups:
- - coordination.k8s.io
- resources:
- - leases
- verbs:
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - nodes
- verbs:
- - get
-- apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - patch
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingresses/status
- verbs:
- - update
-- apiGroups:
- - networking.k8s.io
- resources:
- - ingressclasses
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - discovery.k8s.io
- resources:
- - endpointslices
- verbs:
- - list
- - watch
- - get
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-rules:
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - validatingwebhookconfigurations
- verbs:
- - get
- - update
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
- namespace: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx
- namespace: ingress-nginx
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: ingress-nginx-admission
-subjects:
-- kind: ServiceAccount
- name: ingress-nginx-admission
- namespace: ingress-nginx
---
+# Source: ingress-nginx/templates/controller-configmap.yaml
apiVersion: v1
-data:
- use-proxy-protocol: "true"
kind: ConfigMap
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
+data:
+ use-proxy-protocol: 'true'
---
+# Source: ingress-nginx/templates/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - endpoints
+ - nodes
+ - pods
+ - secrets
+ verbs:
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - nodes
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+---
+# Source: ingress-nginx/templates/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ name: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - namespaces
+ verbs:
+ - get
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ - pods
+ - secrets
+ - endpoints
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - services
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - extensions
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingresses/status
+ verbs:
+ - update
+ - apiGroups:
+ - networking.k8s.io # k8s 1.14+
+ resources:
+ - ingressclasses
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ resourceNames:
+ - ingress-controller-leader-nginx
+ verbs:
+ - get
+ - update
+ - apiGroups:
+ - ''
+ resources:
+ - configmaps
+ verbs:
+ - create
+ - apiGroups:
+ - ''
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
+---
+# Source: ingress-nginx/templates/controller-rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/controller-service-webhook.yaml
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
+ name: ingress-nginx-controller-admission
+ namespace: ingress-nginx
+spec:
+ type: ClusterIP
+ ports:
+ - name: https-webhook
+ port: 443
+ targetPort: webhook
+ selector:
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+---
+# Source: ingress-nginx/templates/controller-service.yaml
apiVersion: v1
kind: Service
metadata:
annotations:
- service.beta.kubernetes.io/scw-loadbalancer-proxy-protocol-v2: "true"
+ service.beta.kubernetes.io/scw-loadbalancer-proxy-protocol-v2: 'true'
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- externalTrafficPolicy: Local
- ipFamilies:
- - IPv4
- ipFamilyPolicy: SingleStack
- ports:
- - appProtocol: http
- name: http
- port: 80
- protocol: TCP
- targetPort: http
- - appProtocol: https
- name: https
- port: 443
- protocol: TCP
- targetPort: https
- selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
type: LoadBalancer
----
-apiVersion: v1
-kind: Service
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
-spec:
+ externalTrafficPolicy: Local
ports:
- - appProtocol: https
- name: https-webhook
- port: 443
- targetPort: webhook
+ - name: http
+ port: 80
+ protocol: TCP
+ targetPort: http
+ - name: https
+ port: 443
+ protocol: TCP
+ targetPort: https
selector:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- type: ClusterIP
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
---
+# Source: ingress-nginx/templates/controller-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: controller
name: ingress-nginx-controller
namespace: ingress-nginx
spec:
- minReadySeconds: 0
- revisionHistoryLimit: 10
selector:
matchLabels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- strategy:
- rollingUpdate:
- maxUnavailable: 1
- type: RollingUpdate
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
+ revisionHistoryLimit: 10
+ minReadySeconds: 0
template:
metadata:
labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/component: controller
spec:
- containers:
- - args:
- - /nginx-ingress-controller
- - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
- - --election-id=ingress-nginx-leader
- - --controller-class=k8s.io/ingress-nginx
- - --ingress-class=nginx
- - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
- - --validating-webhook=:8443
- - --validating-webhook-certificate=/usr/local/certificates/cert
- - --validating-webhook-key=/usr/local/certificates/key
- env:
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: LD_PRELOAD
- value: /usr/local/lib/libmimalloc.so
- image: registry.k8s.io/ingress-nginx/controller:v1.12.0@sha256:e6b8de175acda6ca913891f0f727bca4527e797d52688cbe9fec9040d6f6b6fa
- imagePullPolicy: IfNotPresent
- lifecycle:
- preStop:
- exec:
- command:
- - /wait-shutdown
- livenessProbe:
- failureThreshold: 5
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- name: controller
- ports:
- - containerPort: 80
- name: http
- protocol: TCP
- - containerPort: 443
- name: https
- protocol: TCP
- - containerPort: 8443
- name: webhook
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /healthz
- port: 10254
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources:
- requests:
- cpu: 100m
- memory: 90Mi
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- add:
- - NET_BIND_SERVICE
- drop:
- - ALL
- readOnlyRootFilesystem: false
- runAsGroup: 82
- runAsNonRoot: true
- runAsUser: 101
- seccompProfile:
- type: RuntimeDefault
- volumeMounts:
- - mountPath: /usr/local/certificates/
- name: webhook-cert
- readOnly: true
dnsPolicy: ClusterFirst
+ containers:
+ - name: controller
+ image: k8s.gcr.io/ingress-nginx/controller:v0.46.0@sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
+ imagePullPolicy: IfNotPresent
+ lifecycle:
+ preStop:
+ exec:
+ command:
+ - /wait-shutdown
+ args:
+ - /nginx-ingress-controller
+ - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --election-id=ingress-controller-leader
+ - --ingress-class=nginx
+ - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
+ - --validating-webhook=:8443
+ - --validating-webhook-certificate=/usr/local/certificates/cert
+ - --validating-webhook-key=/usr/local/certificates/key
+ securityContext:
+ capabilities:
+ drop:
+ - ALL
+ add:
+ - NET_BIND_SERVICE
+ runAsUser: 101
+ allowPrivilegeEscalation: true
+ env:
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: LD_PRELOAD
+ value: /usr/local/lib/libmimalloc.so
+ livenessProbe:
+ failureThreshold: 5
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ readinessProbe:
+ failureThreshold: 3
+ httpGet:
+ path: /healthz
+ port: 10254
+ scheme: HTTP
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ successThreshold: 1
+ timeoutSeconds: 1
+ ports:
+ - name: http
+ containerPort: 80
+ protocol: TCP
+ - name: https
+ containerPort: 443
+ protocol: TCP
+ - name: webhook
+ containerPort: 8443
+ protocol: TCP
+ volumeMounts:
+ - name: webhook-cert
+ mountPath: /usr/local/certificates/
+ readOnly: true
+ resources:
+ requests:
+ cpu: 100m
+ memory: 90Mi
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: 300
volumes:
- - name: webhook-cert
- secret:
- secretName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-create
- spec:
- containers:
- - args:
- - create
- - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
- - --namespace=$(POD_NAMESPACE)
- - --secret-name=ingress-nginx-admission
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: create
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: batch/v1
-kind: Job
-metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- namespace: ingress-nginx
-spec:
- template:
- metadata:
- labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: ingress-nginx-admission-patch
- spec:
- containers:
- - args:
- - patch
- - --webhook-name=ingress-nginx-admission
- - --namespace=$(POD_NAMESPACE)
- - --patch-mutating=false
- - --secret-name=ingress-nginx-admission
- - --patch-failure-policy=Fail
- env:
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.0@sha256:aaafd456bda110628b2d4ca6296f38731a3aaf0bf7581efae824a41c770a8fc4
- imagePullPolicy: IfNotPresent
- name: patch
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsGroup: 65532
- runAsNonRoot: true
- runAsUser: 65532
- seccompProfile:
- type: RuntimeDefault
- nodeSelector:
- kubernetes.io/os: linux
- restartPolicy: OnFailure
- serviceAccountName: ingress-nginx-admission
----
-apiVersion: networking.k8s.io/v1
-kind: IngressClass
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
- name: nginx
-spec:
- controller: k8s.io/ingress-nginx
+ - name: webhook-cert
+ secret:
+ secretName: ingress-nginx-admission
---
+# Source: ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
+# before changing this value, check the required kubernetes version
+# https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#prerequisites
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
labels:
- app.kubernetes.io/component: admission-webhook
- app.kubernetes.io/instance: ingress-nginx
+ helm.sh/chart: ingress-nginx-3.33.0
app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
- app.kubernetes.io/version: 1.12.0
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
name: ingress-nginx-admission
webhooks:
-- admissionReviewVersions:
- - v1
- clientConfig:
- service:
- name: ingress-nginx-controller-admission
- namespace: ingress-nginx
- path: /networking/v1/ingresses
- port: 443
- failurePolicy: Fail
- matchPolicy: Equivalent
- name: validate.nginx.ingress.kubernetes.io
- rules:
+ - name: validate.nginx.ingress.kubernetes.io
+ matchPolicy: Equivalent
+ rules:
+ - apiGroups:
+ - networking.k8s.io
+ apiVersions:
+ - v1beta1
+ operations:
+ - CREATE
+ - UPDATE
+ resources:
+ - ingresses
+ failurePolicy: Fail
+ sideEffects: None
+ admissionReviewVersions:
+ - v1
+ - v1beta1
+ clientConfig:
+ service:
+ namespace: ingress-nginx
+ name: ingress-nginx-controller-admission
+ path: /networking/v1beta1/ingresses
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrole.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+rules:
- apiGroups:
- - networking.k8s.io
- apiVersions:
- - v1
- operations:
- - CREATE
- - UPDATE
+ - admissionregistration.k8s.io
resources:
- - ingresses
- sideEffects: None
+ - validatingwebhookconfigurations
+ verbs:
+ - get
+ - update
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/role.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+rules:
+ - apiGroups:
+ - ''
+ resources:
+ - secrets
+ verbs:
+ - get
+ - create
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: ingress-nginx-admission
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade,post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx-admission
+subjects:
+ - kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-create
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-create
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: create
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - create
+ - --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc
+ - --namespace=$(POD_NAMESPACE)
+ - --secret-name=ingress-nginx-admission
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
+---
+# Source: ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: ingress-nginx-admission-patch
+ annotations:
+ helm.sh/hook: post-install,post-upgrade
+ helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ namespace: ingress-nginx
+spec:
+ template:
+ metadata:
+ name: ingress-nginx-admission-patch
+ labels:
+ helm.sh/chart: ingress-nginx-3.33.0
+ app.kubernetes.io/name: ingress-nginx
+ app.kubernetes.io/instance: ingress-nginx
+ app.kubernetes.io/version: 0.47.0
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/component: admission-webhook
+ spec:
+ containers:
+ - name: patch
+ image: docker.io/jettech/kube-webhook-certgen:v1.5.1
+ imagePullPolicy: IfNotPresent
+ args:
+ - patch
+ - --webhook-name=ingress-nginx-admission
+ - --namespace=$(POD_NAMESPACE)
+ - --patch-mutating=false
+ - --secret-name=ingress-nginx-admission
+ - --patch-failure-policy=Fail
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ restartPolicy: OnFailure
+ serviceAccountName: ingress-nginx-admission
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 2000
diff --git a/deploy/static/provider/scw/kustomization.yaml b/deploy/static/provider/scw/kustomization.yaml
index d8535dbde..da792b8f5 100644
--- a/deploy/static/provider/scw/kustomization.yaml
+++ b/deploy/static/provider/scw/kustomization.yaml
@@ -4,7 +4,7 @@
# ```
# namespace: ingress-nginx
# bases:
-# - github.com/kubernetes/ingress-nginx/tree/main/deploy/static/provider/scw
+# - github.com/kubernetes/ingress-nginx/deploy/static/provider/scw?ref=master
# ```
resources:
diff --git a/docs/OWNERS b/docs/OWNERS
deleted file mode 100644
index 245cb8688..000000000
--- a/docs/OWNERS
+++ /dev/null
@@ -1,7 +0,0 @@
-# See the OWNERS docs: https://www.kubernetes.dev/docs/guide/owners
-
-approvers:
-- ingress-nginx-docs-maintainers
-
-labels:
-- area/docs
diff --git a/docs/deploy/baremetal.md b/docs/deploy/baremetal.md
index 077d1e758..436fdc4ae 100644
--- a/docs/deploy/baremetal.md
+++ b/docs/deploy/baremetal.md
@@ -1,14 +1,14 @@
# Bare-metal considerations
In traditional *cloud* environments, where network load balancers are available on-demand, a single Kubernetes manifest
-suffices to provide a single point of contact to the Ingress-Nginx Controller to external clients and, indirectly, to
+suffices to provide a single point of contact to the NGINX Ingress controller to external clients and, indirectly, to
any application running inside the cluster. *Bare-metal* environments lack this commodity, requiring a slightly
different setup to offer the same kind of access to external consumers.


-The rest of this document describes a few recommended approaches to deploying the Ingress-Nginx Controller inside a
+The rest of this document describes a few recommended approaches to deploying the NGINX Ingress controller inside a
Kubernetes cluster running on bare-metal.
## A pure software solution: MetalLB
@@ -30,11 +30,10 @@ the traffic for the `ingress-nginx` Service IP. See [Traffic policies][metallb-t
yourself by reading the official documentation thoroughly.
MetalLB can be deployed either with a simple Kubernetes manifest or with Helm. The rest of this example assumes MetalLB
-was deployed following the [Installation][metallb-install] instructions, and that the Ingress-Nginx Controller was installed
-using the steps described in the [quickstart section of the installation guide][install-quickstart].
+was deployed following the [Installation][metallb-install] instructions.
MetalLB requires a pool of IP addresses in order to be able to take ownership of the `ingress-nginx` Service. This pool
-can be defined through `IPAddressPool` objects in the same namespace as the MetalLB controller. This pool of IPs **must** be dedicated to MetalLB's use, you can't reuse the Kubernetes node IPs or IPs handed out by a DHCP server.
+can be defined in a ConfigMap named `config` located in the same namespace as the MetalLB controller. This pool of IPs **must** be dedicated to MetalLB's use, you can't reuse the Kubernetes node IPs or IPs handed out by a DHCP server.
!!! example
Given the following 3-node Kubernetes cluster (the external IP is added as an example, in most bare-metal
@@ -48,29 +47,22 @@ can be defined through `IPAddressPool` objects in the same namespace as the Meta
host-3 Ready node 203.0.113.3
```
- After creating the following objects, MetalLB takes ownership of one of the IP addresses in the pool and updates
+ After creating the following ConfigMap, MetalLB takes ownership of one of the IP addresses in the pool and updates
the *loadBalancer* IP field of the `ingress-nginx` Service accordingly.
```yaml
- ---
- apiVersion: metallb.io/v1beta1
- kind: IPAddressPool
+ apiVersion: v1
+ kind: ConfigMap
metadata:
- name: default
namespace: metallb-system
- spec:
- addresses:
- - 203.0.113.10-203.0.113.15
- autoAssign: true
- ---
- apiVersion: metallb.io/v1beta1
- kind: L2Advertisement
- metadata:
- name: default
- namespace: metallb-system
- spec:
- ipAddressPools:
- - default
+ name: config
+ data:
+ config: |
+ address-pools:
+ - name: default
+ protocol: layer2
+ addresses:
+ - 203.0.113.10-203.0.113.15
```
```console
@@ -118,8 +110,6 @@ requests.

-You can **customize the exposed node port numbers** by setting the `controller.service.nodePorts.*` Helm values, but they still have to be in the 30000-32767 range.
-
!!! example
Given the NodePort `30100` allocated to the `ingress-nginx` Service
@@ -154,7 +144,7 @@ You can **customize the exposed node port numbers** by setting the `controller.s
This approach has a few other limitations one ought to be aware of:
-### Source IP address
+* **Source IP address**
Services of type NodePort perform [source address translation][nodeport-nat] by default. This means the source IP of a
HTTP request is always **the IP address of the Kubernetes node that received the request** from the perspective of
@@ -166,7 +156,7 @@ field of the `ingress-nginx` Service spec to `Local` ([example][preserve-ip]).
!!! warning
This setting effectively **drops packets** sent to Kubernetes nodes which are not running any instance of the NGINX
Ingress controller. Consider [assigning NGINX Pods to specific nodes][pod-assign] in order to control on what nodes
- the Ingress-Nginx Controller should be scheduled or not scheduled.
+ the NGINX Ingress controller should be scheduled or not scheduled.
!!! example
In a Kubernetes cluster composed of 3 nodes (the external IP is added as an example, in most bare-metal environments
@@ -193,11 +183,9 @@ field of the `ingress-nginx` Service spec to `Local` ([example][preserve-ip]).
Requests sent to `host-2` and `host-3` would be forwarded to NGINX and original client's IP would be preserved,
while requests to `host-1` would get dropped because there is no NGINX replica running on that node.
-Other ways to preserve the source IP in a NodePort setup are described here: [Source IP address](https://kubernetes.github.io/ingress-nginx/user-guide/miscellaneous/#source-ip-address).
+* **Ingress status**
-### Ingress status
-
-Because NodePort Services do not get a LoadBalancerIP assigned by definition, the Ingress-Nginx Controller **does not
+Because NodePort Services do not get a LoadBalancerIP assigned by definition, the NGINX Ingress controller **does not
update the status of Ingress objects it manages**.
```console
@@ -206,12 +194,12 @@ NAME HOSTS ADDRESS PORTS
test-ingress myapp.example.com 80
```
-Despite the fact there is no load balancer providing a public IP address to the Ingress-Nginx Controller, it is possible
+Despite the fact there is no load balancer providing a public IP address to the NGINX Ingress controller, it is possible
to force the status update of all managed Ingress objects by setting the `externalIPs` field of the `ingress-nginx`
Service.
!!! warning
- There is more to setting `externalIPs` than just enabling the Ingress-Nginx Controller to update the status of
+ There is more to setting `externalIPs` than just enabling the NGINX Ingress controller to update the status of
Ingress objects. Please read about this option in the [Services][external-ips] page of official Kubernetes
documentation as well as the section about [External IPs](#external-ips) in this document for more information.
@@ -245,7 +233,7 @@ Service.
test-ingress myapp.example.com 203.0.113.1,203.0.113.2,203.0.113.3 80
```
-### Redirects
+* **Redirects**
As NGINX is **not aware of the port translation operated by the NodePort Service**, backend applications are responsible
for generating redirect URLs that take into account the URL used by external clients, including the NodePort.
@@ -262,21 +250,20 @@ for generating redirect URLs that take into account the URL used by external cli
```
[install-baremetal]: ./index.md#bare-metal
-[install-quickstart]: ./index.md#quick-start
-[nodeport-def]: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
+[nodeport-def]: https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
[nodeport-nat]: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-type-nodeport
[pod-assign]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
-[preserve-ip]: https://github.com/kubernetes/ingress-nginx/blob/ingress-nginx-3.15.2/deploy/static/provider/aws/deploy.yaml#L290
+[preserve-ip]: https://github.com/kubernetes/ingress-nginx/blob/nginx-0.19.0/deploy/provider/aws/service-nlb.yaml#L12-L14
## Via the host network
In a setup where there is no external load balancer available but using NodePorts is not an option, one can configure
`ingress-nginx` Pods to use the network of the host they run on instead of a dedicated network namespace. The benefit of
-this approach is that the Ingress-Nginx Controller can bind ports 80 and 443 directly to Kubernetes nodes' network
+this approach is that the NGINX Ingress controller can bind ports 80 and 443 directly to Kubernetes nodes' network
interfaces, without the extra network translation imposed by NodePort Services.
!!! note
- This approach does not leverage any Service object to expose the Ingress-Nginx Controller. If the `ingress-nginx`
+ This approach does not leverage any Service object to expose the NGINX Ingress controller. If the `ingress-nginx`
Service exists in the target cluster, it is **recommended to delete it**.
This can be achieved by enabling the `hostNetwork` option in the Pods' spec.
@@ -288,7 +275,7 @@ template:
```
!!! danger "Security considerations"
- Enabling this option **exposes every system daemon to the Ingress-Nginx Controller** on any network interface,
+ Enabling this option **exposes every system daemon to the NGINX Ingress controller** on any network interface,
including the host's loopback. Please evaluate the impact this may have on the security of your system carefully.
!!! example
@@ -303,7 +290,7 @@ template:
ingress-nginx-controller-5b4cf5fc6-lzrls 1/1 Running 203.0.113.2 host-2
```
-One major limitation of this deployment approach is that only **a single Ingress-Nginx Controller Pod** may be scheduled
+One major limitation of this deployment approach is that only **a single NGINX Ingress controller Pod** may be scheduled
on each cluster node, because binding the same port multiple times on the same network interface is technically
impossible. Pods that are unschedulable due to such situation fail with the following event:
@@ -316,7 +303,7 @@ Events:
Warning FailedScheduling default-scheduler 0/3 nodes are available: 3 node(s) didn't have free ports for the requested pod ports.
```
-One way to ensure only schedulable Pods are created is to deploy the Ingress-Nginx Controller as a *DaemonSet* instead
+One way to ensure only schedulable Pods are created is to deploy the NGINX Ingress controller as a *DaemonSet* instead
of a traditional Deployment.
!!! info
@@ -330,15 +317,15 @@ configuration of the corresponding manifest at the user's discretion.
Like with NodePorts, this approach has a few quirks it is important to be aware of.
-### DNS resolution
+* **DNS resolution**
Pods configured with `hostNetwork: true` do not use the internal DNS resolver (i.e. *kube-dns* or *CoreDNS*), unless
their `dnsPolicy` spec field is set to [`ClusterFirstWithHostNet`][dnspolicy]. Consider using this setting if NGINX is
expected to resolve internal names for any reason.
-### Ingress status
+* **Ingress status**
-Because there is no Service exposing the Ingress-Nginx Controller in a configuration using the host network, the default
+Because there is no Service exposing the NGINX Ingress controller in a configuration using the host network, the default
`--publish-service` flag used in standard cloud setups **does not apply** and the status of all Ingress objects remains
blank.
@@ -350,7 +337,7 @@ test-ingress myapp.example.com 80
Instead, and because bare-metal nodes usually don't have an ExternalIP, one has to enable the
[`--report-node-internal-ip-address`][cli-args] flag, which sets the status of all Ingress objects to the internal IP
-address of all nodes running the Ingress-Nginx Controller.
+address of all nodes running the NGINX Ingress controller.
!!! example
Given a `ingress-nginx-controller` DaemonSet composed of 2 replicas
diff --git a/docs/deploy/hardening-guide.md b/docs/deploy/hardening-guide.md
index 2726b1a07..5b44686ab 100644
--- a/docs/deploy/hardening-guide.md
+++ b/docs/deploy/hardening-guide.md
@@ -1,8 +1,6 @@
# Hardening Guide
-Do not use in multi-tenant Kubernetes production installations. This project assumes that users that can create Ingress objects are administrators of the cluster.
-
## Overview
There are several ways to do hardening and securing of nginx. In this documentation two guides are used, the guides are
overlapping in some points:
@@ -56,14 +54,14 @@ This guide refers to chapters in the CIS Benchmark. For full explanation you sho
| __2.4 Network Configuration__ ||| |
| 2.4.1 Ensure NGINX only listens for network connections on authorized ports (Not Scored)| OK | Ensured by automatic nginx.conf configuration| |
| 2.4.2 Ensure requests for unknown host names are rejected (Not Scored)| OK | They are not rejected but send to the "default backend" delivering appropriate errors (mostly 404)| |
-| 2.4.3 Ensure keepalive_timeout is 10 seconds or less, but not 0 (Scored)| ACTION NEEDED| Default is 75s | configure keep-alive to 10 seconds [according to this documentation](https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/configmap.md#keep-alive) |
+| 2.4.3 Ensure keepalive_timeout is 10 seconds or less, but not 0 (Scored)| ACTION NEEDED| Default is 75s | configure keep-alive to 10 seconds [according to this documentation](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/configmap.md#keep-alive) |
| 2.4.4 Ensure send_timeout is set to 10 seconds or less, but not 0 (Scored)| RISK TO BE ACCEPTED| Not configured, however the nginx default is 60s| Not configurable|
| ||| |
| __2.5 Information Disclosure__||| |
| 2.5.1 Ensure server_tokens directive is set to `off` (Scored) | OK | server_tokens is configured to off by default| |
| 2.5.2 Ensure default error and index.html pages do not reference NGINX (Scored) | ACTION NEEDED| 404 shows no version at all, 503 and 403 show "nginx", which is hardcoded [see this line in nginx source code](https://github.com/nginx/nginx/blob/master/src/http/ngx_http_special_response.c#L36) | configure custom error pages at least for 403, 404 and 503 and 500|
| 2.5.3 Ensure hidden file serving is disabled (Not Scored) | ACTION NEEDED | config not set | configure a config.server-snippet Snippet, but beware of .well-known challenges or similar. Refer to the benchmark here please |
-| 2.5.4 Ensure the NGINX reverse proxy does not enable information disclosure (Scored)| ACTION NEEDED| hide not configured| configure hide-headers with array of "X-Powered-By" and "Server": [according to this documentation](https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/configmap.md#hide-headers) |
+| 2.5.4 Ensure the NGINX reverse proxy does not enable information disclosure (Scored)| ACTION NEEDED| hide not configured| configure hide-headers with array of "X-Powered-By" and "Server": [according to this documentation](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/configmap.md#hide-headers) |
| ||| |
| __3 Logging__ ||| |
| ||| |
@@ -88,7 +86,7 @@ This guide refers to chapters in the CIS Benchmark. For full explanation you sho
| 4.1.8 Ensure HTTP Strict Transport Security (HSTS) is enabled (Scored)| OK | HSTS is enabled by default | |
| 4.1.9 Ensure HTTP Public Key Pinning is enabled (Not Scored)| ACTION NEEDED / RISK TO BE ACCEPTED | HKPK not enabled by default | If lets encrypt is not used, set correct HPKP header. There are several ways to implement this - with the helm charts it works via controller.add-headers. If lets encrypt is used, this is complicated, a solution here is yet unknown |
| 4.1.10 Ensure upstream server traffic is authenticated with a client certificate (Scored) | DEPENDS ON BACKEND | Highly dependent on backends, not every backend allows configuring this, can also be mitigated via a service mesh| If backend allows it, [manual is here](https://kubernetes.github.io/ingress-nginx/examples/auth/client-certs/)|
-| 4.1.11 Ensure the upstream traffic server certificate is trusted (Not Scored) | DEPENDS ON BACKEND | Highly dependent on backends, not every backend allows configuring this, can also be mitigated via a service mesh| If backend allows it, [see configuration here](https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md#backend-certificate-authentication) |
+| 4.1.11 Ensure the upstream traffic server certificate is trusted (Not Scored) | DEPENDS ON BACKEND | Highly dependent on backends, not every backend allows configuring this, can also be mitigated via a service mesh| If backend allows it, [see configuration here](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md#backend-certificate-authentication) |
| 4.1.12 Ensure your domain is preloaded (Not Scored) | ACTION NEEDED| Preload is not active by default | Set controller.config.hsts-preload to true|
| 4.1.13 Ensure session resumption is disabled to enable perfect forward security (Scored)| OK | Session tickets are disabled by default | |
| 4.1.14 Ensure HTTP/2.0 is used (Not Scored) | OK | http2 is set by default| |
@@ -96,13 +94,13 @@ This guide refers to chapters in the CIS Benchmark. For full explanation you sho
| __5 Request Filtering and Restrictions__||| |
| ||| |
| __5.1 Access Control__||| |
-| 5.1.1 Ensure allow and deny filters limit access to specific IP addresses (Not Scored)| OK/ACTION NEEDED | Depends on use case, geo ip module is compiled into Ingress-Nginx Controller, there are several ways to use it | If needed set IP restrictions via annotations or work with config snippets (be careful with lets-encrypt-http-challenge!) |
+| 5.1.1 Ensure allow and deny filters limit access to specific IP addresses (Not Scored)| OK/ACTION NEEDED | Depends on use case, geo ip module is compiled into nginx ingress controller, there are several ways to use it | If needed set IP restrictions via annotations or work with config snippets (be careful with lets-encrypt-http-challenge!) |
| 5.1.2 Ensure only whitelisted HTTP methods are allowed (Not Scored) | OK/ACTION NEEDED | Depends on use case| If required it can be set via config snippet|
| ||| |
| __5.2 Request Limits__||| |
-| 5.2.1 Ensure timeout values for reading the client header and body are set correctly (Scored) | ACTION NEEDED| Default timeout is 60s | Set via [this configuration parameter](https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/configmap.md#client-header-timeout) and respective body equivalent|
-| 5.2.2 Ensure the maximum request body size is set correctly (Scored)| ACTION NEEDED| Default is 1m| set via [this configuration parameter](https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/configmap.md#proxy-body-size)|
-| 5.2.3 Ensure the maximum buffer size for URIs is defined (Scored) | ACTION NEEDED| Default is 4 8k| Set via [this configuration parameter](https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/configmap.md#large-client-header-buffers)|
+| 5.2.1 Ensure timeout values for reading the client header and body are set correctly (Scored) | ACTION NEEDED| Default timeout is 60s | Set via [this configuration parameter](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/configmap.md#client-header-timeout) and respective body equivalent|
+| 5.2.2 Ensure the maximum request body size is set correctly (Scored)| ACTION NEEDED| Default is 1m| set via [this configuration parameter](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/configmap.md#proxy-body-size)|
+| 5.2.3 Ensure the maximum buffer size for URIs is defined (Scored) | ACTION NEEDED| Default is 4 8k| Set via [this configuration parameter](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/configmap.md#large-client-header-buffers)|
| 5.2.4 Ensure the number of connections per IP address is limited (Not Scored) | OK/ACTION NEEDED| No limit set| Depends on use case, limit can be set via [these annotations](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#rate-limiting)|
| 5.2.5 Ensure rate limits by IP address are set (Not Scored) | OK/ACTION NEEDED| No limit set| Depends on use case, limit can be set via [these annotations](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#rate-limiting)|
| ||| |
diff --git a/docs/deploy/index.md b/docs/deploy/index.md
index 717c479ac..a821357df 100644
--- a/docs/deploy/index.md
+++ b/docs/deploy/index.md
@@ -1,457 +1,21 @@
# Installation Guide
-There are multiple ways to install the Ingress-Nginx Controller:
-
-- with [Helm](https://helm.sh), using the project repository chart;
-- with `kubectl apply`, using YAML manifests;
-- with specific addons (e.g. for [minikube](#minikube) or [MicroK8s](#microk8s)).
-
-On most Kubernetes clusters, the ingress controller will work without requiring any extra configuration. If you want to
-get started as fast as possible, you can check the [quick start](#quick-start) instructions. However, in many
-environments, you can improve the performance or get better logs by enabling extra features. We recommend that you
-check the [environment-specific instructions](#environment-specific-instructions) for details about optimizing the
-ingress controller for your particular environment or cloud provider.
-
-## Contents
-
-
-
-- [Quick start](#quick-start)
-
-- [Environment-specific instructions](#environment-specific-instructions)
- - ... [Docker Desktop](#docker-desktop)
- - ... [Rancher Desktop](#rancher-desktop)
- - ... [minikube](#minikube)
- - ... [MicroK8s](#microk8s)
- - ... [AWS](#aws)
- - ... [GCE - GKE](#gce-gke)
- - ... [Azure](#azure)
- - ... [Digital Ocean](#digital-ocean)
- - ... [Scaleway](#scaleway)
- - ... [Exoscale](#exoscale)
- - ... [Oracle Cloud Infrastructure](#oracle-cloud-infrastructure)
- - ... [OVHcloud](#ovhcloud)
- - ... [Bare-metal](#bare-metal-clusters)
-- [Miscellaneous](#miscellaneous)
-
-
-
-## Quick start
-
-**If you have Helm,** you can deploy the ingress controller with the following command:
-
-```console
-helm upgrade --install ingress-nginx ingress-nginx \
- --repo https://kubernetes.github.io/ingress-nginx \
- --namespace ingress-nginx --create-namespace
-```
-
-It will install the controller in the `ingress-nginx` namespace, creating that namespace if it doesn't already exist.
-
-!!! info
- This command is *idempotent*:
-
- - if the ingress controller is not installed, it will install it,
- - if the ingress controller is already installed, it will upgrade it.
-
-**If you want a full list of values that you can set, while installing with Helm,** then run:
-
-```console
-helm show values ingress-nginx --repo https://kubernetes.github.io/ingress-nginx
-```
-
-!!! attention "Helm install on AWS/GCP/Azure/Other providers"
- The *ingress-nginx-controller helm-chart is a generic install out of the box*. The default set of helm values is **not** configured for installation on any infra provider. The annotations that are applicable to the cloud provider must be customized by the users.
- See [AWS LB Controller](https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/service/annotations/).
- Examples of some annotations recommended (healthecheck ones are required for target-type IP) for the service resource of `--type LoadBalancer` on AWS are below:
- ```yaml
- annotations:
- service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: deregistration_delay.timeout_seconds=270
- service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip
- service.beta.kubernetes.io/aws-load-balancer-healthcheck-path: /healthz
- service.beta.kubernetes.io/aws-load-balancer-healthcheck-port: "10254"
- service.beta.kubernetes.io/aws-load-balancer-healthcheck-protocol: http
- service.beta.kubernetes.io/aws-load-balancer-healthcheck-success-codes: 200-299
- service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing"
- service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
- service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
- service.beta.kubernetes.io/aws-load-balancer-type: nlb
- service.beta.kubernetes.io/aws-load-balancer-manage-backend-security-group-rules: "true"
- service.beta.kubernetes.io/aws-load-balancer-access-log-enabled: "true"
- service.beta.kubernetes.io/aws-load-balancer-security-groups: "sg-something1 sg-something2"
- service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-name: "somebucket"
- service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefix: "ingress-nginx"
- service.beta.kubernetes.io/aws-load-balancer-access-log-emit-interval: "5"
- ```
-
-**If you don't have Helm** or if you prefer to use a YAML manifest, you can run the following command instead:
-
-```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/cloud/deploy.yaml
-```
-
-!!! info
- The YAML manifest in the command above was generated with `helm template`, so you will end up with almost the same
- resources as if you had used Helm to install the controller.
-
!!! attention
- If you are running an old version of Kubernetes (1.18 or earlier), please read [this paragraph](#running-on-Kubernetes-versions-older-than-1.19) for specific instructions.
- Because of api deprecations, the default manifest may not work on your cluster.
- Specific manifests for supported Kubernetes versions are available within a sub-folder of each provider.
+ The default configuration watches Ingress object from **all namespaces**.
-### Firewall configuration
-
-To check which ports are used by your installation of ingress-nginx, look at the output of `kubectl -n ingress-nginx get pod -o yaml`. In general, you need:
-
-- Port 8443 open between all hosts on which the kubernetes nodes are running. This is used for the ingress-nginx [admission controller](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/).
-- Port 80 (for HTTP) and/or 443 (for HTTPS) open to the public on the kubernetes nodes to which the DNS of your apps are pointing.
-
-### Pre-flight check
-
-A few pods should start in the `ingress-nginx` namespace:
-
-```console
-kubectl get pods --namespace=ingress-nginx
-```
-
-After a while, they should all be running. The following command will wait for the ingress controller pod to be up,
-running, and ready:
-
-```console
-kubectl wait --namespace ingress-nginx \
- --for=condition=ready pod \
- --selector=app.kubernetes.io/component=controller \
- --timeout=120s
-```
-
-### Local testing
-
-Let's create a simple web server and the associated service:
-
-```console
-kubectl create deployment demo --image=httpd --port=80
-kubectl expose deployment demo
-```
-
-Then create an ingress resource. The following example uses a host that maps to `localhost`:
-
-```console
-kubectl create ingress demo-localhost --class=nginx \
- --rule="demo.localdev.me/*=demo:80"
-```
-
-Now, forward a local port to the ingress controller:
-
-```console
-kubectl port-forward --namespace=ingress-nginx service/ingress-nginx-controller 8080:80
-```
-
-!!! info
- A note on DNS & network-connection.
- This documentation assumes that a user has awareness of the DNS and the network routing aspects involved in using ingress.
- The port-forwarding mentioned above, is the easiest way to demo the working of ingress. The "kubectl port-forward..." command above has forwarded the port number 8080, on the localhost's tcp/ip stack, where the command was typed, to the port number 80, of the service created by the installation of ingress-nginx controller. So now, the traffic sent to port number 8080 on localhost will reach the port number 80, of the ingress-controller's service.
- Port-forwarding is not for a production environment use-case. But here we use port-forwarding, to simulate a HTTP request, originating from outside the cluster, to reach the service of the ingress-nginx controller, that is exposed to receive traffic from outside the cluster.
- [This issue](https://github.com/kubernetes/ingress-nginx/issues/10014#issuecomment-1567791549described) shows a typical DNS problem and its solution.
-
-At this point, you can access your deployment using curl ;
-
-```console
-curl --resolve demo.localdev.me:8080:127.0.0.1 http://demo.localdev.me:8080
-```
-
-You should see a HTML response containing text like **"It works!"**.
-
-### Online testing
-
-If your Kubernetes cluster is a "real" cluster that supports services of type `LoadBalancer`, it will have allocated an
-external IP address or FQDN to the ingress controller.
-
-You can see that IP address or FQDN with the following command:
-
-```console
-kubectl get service ingress-nginx-controller --namespace=ingress-nginx
-```
-
-It will be the `EXTERNAL-IP` field. If that field shows ``, this means that your Kubernetes cluster wasn't
-able to provision the load balancer (generally, this is because it doesn't support services of type `LoadBalancer`).
-
-Once you have the external IP address (or FQDN), set up a DNS record pointing to it. Then you can create an ingress
-resource. The following example assumes that you have set up a DNS record for `www.demo.io`:
-
-```console
-kubectl create ingress demo --class=nginx \
- --rule="www.demo.io/*=demo:80"
-```
-
-Alternatively, the above command can be rewritten as follows for the ```--rule``` command and below.
-
-```console
-kubectl create ingress demo --class=nginx \
- --rule www.demo.io/=demo:80
-```
-
-You should then be able to see the "It works!" page when you connect to . Congratulations,
-you are serving a public website hosted on a Kubernetes cluster! 🎉
-
-## Environment-specific instructions
-
-### Local development clusters
-
-#### minikube
-
-The ingress controller can be installed through minikube's addons system:
-
-```console
-minikube addons enable ingress
-```
-
-#### MicroK8s
-
-The ingress controller can be installed through MicroK8s's addons system:
-
-```console
-microk8s enable ingress
-```
-
-Please check the MicroK8s [documentation page](https://microk8s.io/docs/addon-ingress) for details.
-
-#### Docker Desktop
-
-Kubernetes is available in Docker Desktop:
-
-- Mac, from [version 18.06.0-ce](https://docs.docker.com/docker-for-mac/release-notes/#stable-releases-of-2018)
-- Windows, from [version 18.06.0-ce](https://docs.docker.com/docker-for-windows/release-notes/#docker-community-edition-18060-ce-win70-2018-07-25)
-
-First, make sure that Kubernetes is enabled in the Docker settings. The command `kubectl get nodes` should show a
-single node called `docker-desktop`.
-
-The ingress controller can be installed on Docker Desktop using the default [quick start](#quick-start) instructions.
-
-On most systems, if you don't have any other service of type `LoadBalancer` bound to port 80, the ingress controller
-will be assigned the `EXTERNAL-IP` of `localhost`, which means that it will be reachable on localhost:80. If that
-doesn't work, you might have to fall back to the `kubectl port-forward` method described in the
-[local testing section](#local-testing).
-
-#### Rancher Desktop
-
-Rancher Desktop provides Kubernetes and Container Management on the desktop. Kubernetes is enabled by default in Rancher Desktop.
-
-Rancher Desktop uses K3s under the hood, which in turn uses Traefik as the default ingress controller for the Kubernetes cluster. To use Ingress-Nginx Controller in place of the default Traefik, disable Traefik from Preference > Kubernetes menu.
-
-Once traefik is disabled, the Ingress-Nginx Controller can be installed on Rancher Desktop using the default [quick start](#quick-start) instructions. Follow the instructions described in the [local testing section](#local-testing) to try a sample.
-
-### Cloud deployments
-
-If the load balancers of your cloud provider do active healthchecks on their backends (most do), you can change the
-`externalTrafficPolicy` of the ingress controller Service to `Local` (instead of the default `Cluster`) to save an
-extra hop in some cases. If you're installing with Helm, this can be done by adding
-`--set controller.service.externalTrafficPolicy=Local` to the `helm install` or `helm upgrade` command.
-
-Furthermore, if the load balancers of your cloud provider support the PROXY protocol, you can enable it, and it will
-let the ingress controller see the real IP address of the clients. Otherwise, it will generally see the IP address of
-the upstream load balancer. This must be done both in the ingress controller
-(with e.g. `--set controller.config.use-proxy-protocol=true`) and in the cloud provider's load balancer configuration
-to function correctly.
-
-In the following sections, we provide YAML manifests that enable these options when possible, using the specific
-options of various cloud providers.
-
-#### AWS
-
-In AWS, we use a Network load balancer (NLB) to expose the Ingress-Nginx Controller behind a Service of `Type=LoadBalancer`.
-
-!!! info
- The provided templates illustrate the setup for legacy in-tree service load balancer for AWS NLB.
- AWS provides the documentation on how to use
- [Network load balancing on Amazon EKS](https://docs.aws.amazon.com/eks/latest/userguide/network-load-balancing.html)
- with [AWS Load Balancer Controller](https://github.com/kubernetes-sigs/aws-load-balancer-controller).
-
-##### Network Load Balancer (NLB)
-
-```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/aws/deploy.yaml
-```
-
-##### TLS termination in AWS Load Balancer (NLB)
-
-By default, TLS is terminated in the ingress controller. But it is also possible to terminate TLS in the Load Balancer.
-This section explains how to do that on AWS using an NLB.
-
-1. Download the [deploy.yaml](https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/aws/nlb-with-tls-termination/deploy.yaml) template
-
- ```console
- wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/aws/nlb-with-tls-termination/deploy.yaml
- ```
-
-2. Edit the file and change the VPC CIDR in use for the Kubernetes cluster:
-
- ```
- proxy-real-ip-cidr: XXX.XXX.XXX/XX
- ```
-
-3. Change the AWS Certificate Manager (ACM) ID as well:
-
- ```
- arn:aws:acm:us-west-2:XXXXXXXX:certificate/XXXXXX-XXXXXXX-XXXXXXX-XXXXXXXX
- ```
-
-4. Deploy the manifest:
-
- ```console
- kubectl apply -f deploy.yaml
- ```
-
-##### NLB Idle Timeouts
-
-Idle timeout value for TCP flows is 350 seconds and
-[cannot be modified](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#connection-idle-timeout).
-
-For this reason, you need to ensure the
-[keepalive_timeout](https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout)
-value is configured less than 350 seconds to work as expected.
-
-By default, NGINX `keepalive_timeout` is set to `75s`.
-
-More information with regard to timeouts can be found in the
-[official AWS documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#connection-idle-timeout)
-
-#### GCE-GKE
-
-First, your user needs to have `cluster-admin` permissions on the cluster. This can be done with the following command:
-
-```console
-kubectl create clusterrolebinding cluster-admin-binding \
- --clusterrole cluster-admin \
- --user $(gcloud config get-value account)
-```
-
-Then, the ingress controller can be installed like this:
-
-```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/cloud/deploy.yaml
-```
+ To change this behavior use the flag `--watch-namespace` to limit the scope to a particular namespace.
!!! warning
- For private clusters, you will need to either add a firewall rule that allows master nodes access to
- port `8443/tcp` on worker nodes, or change the existing rule that allows access to port `80/tcp`, `443/tcp` and
- `10254/tcp` to also allow access to port `8443/tcp`. More information can be found in the
- [Official GCP Documentation](https://cloud.google.com/load-balancing/docs/tcp/setting-up-tcp#config-hc-firewall).
+ If multiple Ingresses define paths for the same host, the ingress controller **merges the definitions**.
- See the [GKE documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#add_firewall_rules)
- on adding rules and the [Kubernetes issue](https://github.com/kubernetes/kubernetes/issues/79739) for more detail.
+!!! danger
+ The [admission webhook](https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/) requires connectivity between Kubernetes API server and the ingress controller.
-Proxy-protocol is supported in GCE check the [Official Documentations on how to enable.](https://cloud.google.com/load-balancing/docs/tcp/setting-up-tcp#proxy-protocol)
-
-#### Azure
-
-```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/cloud/deploy.yaml
-```
-
-More information with regard to Azure annotations for ingress controller can be found in the [official AKS documentation](https://docs.microsoft.com/en-us/azure/aks/ingress-internal-ip#create-an-ingress-controller).
-
-#### Digital Ocean
-
-```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/do/deploy.yaml
-```
-
-- By default the service object of the ingress-nginx-controller for Digital-Ocean, only configures one annotation. Its this one `service.beta.kubernetes.io/do-loadbalancer-enable-proxy-protocol: "true"`. While this makes the service functional, it was reported that the Digital-Ocean LoadBalancer graphs shows `no data`, unless a few other annotations are also configured. Some of these other annotations require values that can not be generic and hence not forced in a out-of-the-box installation. These annotations and a discussion on them is well documented in [this issue](https://github.com/kubernetes/ingress-nginx/issues/8965). Please refer to the issue to add annotations, with values specific to user, to get graphs of the DO-LB populated with data.
-
-#### Scaleway
-
-```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/scw/deploy.yaml
-```
-
-Refer to the [dedicated tutorial](https://www.scaleway.com/en/docs/tutorials/proxy-protocol-v2-load-balancer/#configuring-proxy-protocol-for-ingress-nginx) in the Scaleway documentation for configuring the proxy protocol for ingress-nginx with the Scaleway load balancer.
-
-#### Exoscale
-
-```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/exoscale/deploy.yaml
-```
-
-The full list of annotations supported by Exoscale is available in the Exoscale Cloud Controller Manager
-[documentation](https://github.com/exoscale/exoscale-cloud-controller-manager/blob/master/docs/service-loadbalancer.md).
-
-#### Oracle Cloud Infrastructure
-
-```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/cloud/deploy.yaml
-```
-
-A
-[complete list of available annotations for Oracle Cloud Infrastructure](https://github.com/oracle/oci-cloud-controller-manager/blob/master/docs/load-balancer-annotations.md)
-can be found in the [OCI Cloud Controller Manager](https://github.com/oracle/oci-cloud-controller-manager) documentation.
-
-#### OVHcloud
-
-```console
-helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
-helm repo update
-helm -n ingress-nginx install ingress-nginx ingress-nginx/ingress-nginx --create-namespace
-```
-
-You can find the [complete tutorial](https://docs.ovh.com/gb/en/kubernetes/installing-nginx-ingress/).
-
-### Bare metal clusters
-
-This section is applicable to Kubernetes clusters deployed on bare metal servers, as well as "raw" VMs where Kubernetes
-was installed manually, using generic Linux distros (like CentOS, Ubuntu...)
-
-For quick testing, you can use a
-[NodePort](https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport).
-This should work on almost every cluster, but it will typically use a port in the range 30000-32767.
-
-```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/baremetal/deploy.yaml
-```
-
-For more information about bare metal deployments (and how to use port 80 instead of a random port in the 30000-32767 range),
-see [bare-metal considerations](./baremetal.md).
-
-## Miscellaneous
-
-### Checking ingress controller version
-
-Run `/nginx-ingress-controller --version` within the pod, for instance with `kubectl exec`:
-
-```console
-POD_NAMESPACE=ingress-nginx
-POD_NAME=$(kubectl get pods -n $POD_NAMESPACE -l app.kubernetes.io/name=ingress-nginx --field-selector=status.phase=Running -o name)
-kubectl exec $POD_NAME -n $POD_NAMESPACE -- /nginx-ingress-controller --version
-```
-
-### Scope
-
-By default, the controller watches Ingress objects from all namespaces. If you want to change this behavior,
-use the flag `--watch-namespace` or check the Helm chart value `controller.scope` to limit the controller to a single
-namespace. Although the use of this flag is not popular, one important fact to note is that the secret containing the default-ssl-certificate needs to also be present in the watched namespace(s).
-
-See also
-[“How to easily install multiple instances of the Ingress NGINX controller in the same cluster”](https://kubernetes.github.io/ingress-nginx/#how-to-easily-install-multiple-instances-of-the-ingress-nginx-controller-in-the-same-cluster)
-for more details.
-
-### Webhook network access
-
-!!! warning
- The controller uses an [admission webhook](https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/)
- to validate Ingress definitions. Make sure that you don't have
- [Network policies](https://kubernetes.io/docs/concepts/services-networking/network-policies/)
- or additional firewalls preventing connections from the API server to the `ingress-nginx-controller-admission` service.
-
-### Certificate generation
+ In case [Network policies](https://kubernetes.io/docs/concepts/services-networking/network-policies/) or additional firewalls, please allow access to port `8443`.
!!! attention
The first time the ingress controller starts, two [Jobs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/) create the SSL Certificate used by the admission webhook.
-
-This can cause an initial delay of up to two minutes until it is possible to create and validate Ingress definitions.
+ For this reason, there is an initial delay of up to two minutes until it is possible to create and validate Ingress definitions.
You can wait until it is ready to run the next command:
@@ -462,26 +26,218 @@ You can wait until it is ready to run the next command:
--timeout=120s
```
-### Running on Kubernetes versions older than 1.19
+## Contents
-Ingress resources evolved over time. They started with `apiVersion: extensions/v1beta1`,
-then moved to `apiVersion: networking.k8s.io/v1beta1` and more recently to `apiVersion: networking.k8s.io/v1`.
+- [Provider Specific Steps](#provider-specific-steps)
+ - [Docker Desktop](#docker-desktop)
+ - [minikube](#minikube)
+ - [microk8s](#microk8s)
+ - [AWS](#aws)
+ - [GCE - GKE](#gce-gke)
+ - [Azure](#azure)
+ - [Digital Ocean](#digital-ocean)
+ - [Scaleway](#scaleway)
+ - [Exoscale](#exoscale)
+ - [Oracle Cloud Infrastructure](#oracle-cloud-infrastructure)
+ - [Bare-metal](#bare-metal)
+ - [Verify installation](#verify-installation)
+ - [Detect installed version](#detect-installed-version)
+- [Using Helm](#using-helm)
-Here is how these Ingress versions are supported in Kubernetes:
+### Provider Specific Steps
-- before Kubernetes 1.19, only `v1beta1` Ingress resources are supported
-- from Kubernetes 1.19 to 1.21, both `v1beta1` and `v1` Ingress resources are supported
-- in Kubernetes 1.22 and above, only `v1` Ingress resources are supported
+#### Docker Desktop
-And here is how these Ingress versions are supported in Ingress-Nginx Controller:
+Kubernetes is available in Docker Desktop
-- before version 1.0, only `v1beta1` Ingress resources are supported
-- in version 1.0 and above, only `v1` Ingress resources are
+- Mac, from [version 18.06.0-ce](https://docs.docker.com/docker-for-mac/release-notes/#stable-releases-of-2018)
+- Windows, from [version 18.06.0-ce](https://docs.docker.com/docker-for-windows/release-notes/#docker-community-edition-18060-ce-win70-2018-07-25)
-As a result, if you're running Kubernetes 1.19 or later, you should be able to use the latest version of the NGINX
-Ingress Controller; but if you're using an old version of Kubernetes (1.18 or earlier) you will have to use version 0.X
-of the Ingress-Nginx Controller (e.g. version 0.49).
+```console
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.47.0/deploy/static/provider/cloud/deploy.yaml
+```
-The Helm chart of the Ingress-Nginx Controller switched to version 1 in version 4 of the chart. In other words, if
-you're running Kubernetes 1.19 or earlier, you should use version 3.X of the chart (this can be done by adding
-`--version='<4'` to the `helm install` command ).
+#### minikube
+
+For standard usage:
+
+```console
+minikube addons enable ingress
+```
+
+#### microk8s
+
+For standard usage:
+
+```console
+microk8s enable ingress
+```
+
+Please check the microk8s [documentation page](https://microk8s.io/docs/addon-ingress)
+
+#### AWS
+
+In AWS we use a Network load balancer (NLB) to expose the NGINX Ingress controller behind a Service of `Type=LoadBalancer`.
+
+##### Network Load Balancer (NLB)
+
+```console
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.47.0/deploy/static/provider/aws/deploy.yaml
+```
+
+##### TLS termination in AWS Load Balancer (ELB)
+
+In some scenarios is required to terminate TLS in the Load Balancer and not in the ingress controller.
+
+For this purpose we provide a template:
+
+- Download [deploy-tls-termination.yaml](https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.47.0/deploy/static/provider/aws/deploy-tls-termination.yaml)
+
+```console
+wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.47.0/deploy/static/provider/aws/deploy-tls-termination.yaml
+```
+
+- Edit the file and change:
+
+ - VPC CIDR in use for the Kubernetes cluster:
+
+ `proxy-real-ip-cidr: XXX.XXX.XXX/XX`
+
+ - AWS Certificate Manager (ACM) ID
+
+ `arn:aws:acm:us-west-2:XXXXXXXX:certificate/XXXXXX-XXXXXXX-XXXXXXX-XXXXXXXX`
+
+- Deploy the manifest:
+
+```console
+kubectl apply -f deploy-tls-termination.yaml
+```
+
+##### NLB Idle Timeouts
+
+Idle timeout value for TCP flows is 350 seconds and [cannot be modified](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#connection-idle-timeout).
+
+For this reason, you need to ensure the [keepalive_timeout](http://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout) value is configured less than 350 seconds to work as expected.
+
+By default NGINX `keepalive_timeout` is set to `75s`.
+
+More information with regards to timeouts can be found in the [official AWS documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#connection-idle-timeout)
+
+#### GCE-GKE
+
+!!! info
+ Initialize your user as a cluster-admin with the following command:
+ ```console
+ kubectl create clusterrolebinding cluster-admin-binding \
+ --clusterrole cluster-admin \
+ --user $(gcloud config get-value account)
+ ```
+
+!!! danger
+ For private clusters, you will need to either add an additional firewall rule that allows master nodes access to port `8443/tcp` on worker nodes, or change the existing rule that allows access to ports `80/tcp`, `443/tcp` and `10254/tcp` to also allow access to port `8443/tcp`.
+
+ See the [GKE documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#add_firewall_rules) on adding rules and the [Kubernetes issue](https://github.com/kubernetes/kubernetes/issues/79739) for more detail.
+
+
+```console
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.47.0/deploy/static/provider/cloud/deploy.yaml
+```
+
+!!! failure Important
+ Proxy protocol is not supported in GCE/GKE
+
+#### Azure
+
+```console
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.47.0/deploy/static/provider/cloud/deploy.yaml
+```
+
+More information with regards to Azure annotations for ingress controller can be found in the [official AKS documentation](https://docs.microsoft.com/en-us/azure/aks/ingress-internal-ip#create-an-ingress-controller).
+
+#### Digital Ocean
+
+```console
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.47.0/deploy/static/provider/do/deploy.yaml
+```
+
+#### Scaleway
+
+```console
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.47.0/deploy/static/provider/scw/deploy.yaml
+```
+
+#### Exoscale
+
+```console
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/exoscale/deploy.yaml
+```
+
+The full list of annotations supported by Exoscale is available in the Exoscale Cloud Controller Manager [documentation](https://github.com/exoscale/exoscale-cloud-controller-manager/blob/master/docs/service-loadbalancer.md).
+
+#### Oracle Cloud Infrastructure
+
+```console
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.44.0/deploy/static/provider/cloud/deploy.yaml
+```
+
+A [complete list of available annotations for Oracle Cloud Infrastructure](https://github.com/oracle/oci-cloud-controller-manager/blob/master/docs/load-balancer-annotations.md) can be found in the [OCI Cloud Controller Manager](https://github.com/oracle/oci-cloud-controller-manager) documentation.
+
+#### Bare-metal
+
+Using [NodePort](https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport):
+
+```console
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.47.0/deploy/static/provider/baremetal/deploy.yaml
+```
+
+!!! tip
+ Applicable on kubernetes clusters deployed on bare-metal with generic Linux distro(Such as CentOs, Ubuntu ...).
+
+!!! info
+ For extended notes regarding deployments on bare-metal, see [Bare-metal considerations](./baremetal.md).
+
+### Verify installation
+
+To check if the ingress controller pods have started, run the following command:
+
+```console
+kubectl get pods -n ingress-nginx \
+ -l app.kubernetes.io/name=ingress-nginx --watch
+```
+
+Once the ingress controller pods are running, you can cancel the command typing `Ctrl+C`.
+
+Now, you are ready to create your first ingress.
+
+### Detect installed version
+
+To detect which version of the ingress controller is running, exec into the pod and run `nginx-ingress-controller --version`.
+
+```console
+POD_NAMESPACE=ingress-nginx
+POD_NAME=$(kubectl get pods -n $POD_NAMESPACE -l app.kubernetes.io/name=ingress-nginx --field-selector=status.phase=Running -o jsonpath='{.items[0].metadata.name}')
+
+kubectl exec -it $POD_NAME -n $POD_NAMESPACE -- /nginx-ingress-controller --version
+```
+
+## Using Helm
+
+!!! attention
+ Only Helm v3 is supported
+
+NGINX Ingress controller can be installed via [Helm](https://helm.sh/) using the chart from the project repository.
+To install the chart with the release name `ingress-nginx`:
+
+```console
+helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
+helm repo update
+
+helm install ingress-nginx ingress-nginx/ingress-nginx
+```
+
+## Detect installed version:
+
+```console
+POD_NAME=$(kubectl get pods -l app.kubernetes.io/name=ingress-nginx -o jsonpath='{.items[0].metadata.name}')
+kubectl exec -it $POD_NAME -- /nginx-ingress-controller --version
+```
diff --git a/docs/deploy/rbac.md b/docs/deploy/rbac.md
index 70af8ba92..08c1a0291 100644
--- a/docs/deploy/rbac.md
+++ b/docs/deploy/rbac.md
@@ -2,7 +2,7 @@
## Overview
-This example applies to ingress-nginx-controllers being deployed in an environment with RBAC enabled.
+This example applies to nginx-ingress-controllers being deployed in an environment with RBAC enabled.
Role Based Access Control is comprised of four layers:
@@ -11,65 +11,66 @@ Role Based Access Control is comprised of four layers:
3. `Role` - permissions assigned to a role that apply to a specific namespace
4. `RoleBinding` - binding a Role to a specific account
-In order for RBAC to be applied to an ingress-nginx-controller, that controller
+In order for RBAC to be applied to an nginx-ingress-controller, that controller
should be assigned to a `ServiceAccount`. That `ServiceAccount` should be
-bound to the `Role`s and `ClusterRole`s defined for the ingress-nginx-controller.
+bound to the `Role`s and `ClusterRole`s defined for the nginx-ingress-controller.
## Service Accounts created in this example
-One ServiceAccount is created in this example, `ingress-nginx`.
+One ServiceAccount is created in this example, `nginx-ingress-serviceaccount`.
## Permissions Granted in this example
There are two sets of permissions defined in this example. Cluster-wide
-permissions defined by the `ClusterRole` named `ingress-nginx`, and
-namespace specific permissions defined by the `Role` named `ingress-nginx`.
+permissions defined by the `ClusterRole` named `nginx-ingress-clusterrole`, and
+namespace specific permissions defined by the `Role` named `nginx-ingress-role`.
### Cluster Permissions
-These permissions are granted in order for the ingress-nginx-controller to be
+These permissions are granted in order for the nginx-ingress-controller to be
able to function as an ingress across the cluster. These permissions are
-granted to the `ClusterRole` named `ingress-nginx`
+granted to the ClusterRole named `nginx-ingress-clusterrole`
* `configmaps`, `endpoints`, `nodes`, `pods`, `secrets`: list, watch
* `nodes`: get
-* `services`, `ingresses`, `ingressclasses`, `endpointslices`: get, list, watch
+* `services`, `ingresses`: get, list, watch
* `events`: create, patch
* `ingresses/status`: update
-* `leases`: list, watch
### Namespace Permissions
-These permissions are granted specific to the ingress-nginx namespace. These
-permissions are granted to the `Role` named `ingress-nginx`
+These permissions are granted specific to the nginx-ingress namespace. These
+permissions are granted to the Role named `nginx-ingress-role`
* `configmaps`, `pods`, `secrets`: get
* `endpoints`: get
-Furthermore to support leader-election, the ingress-nginx-controller needs to
-have access to a `leases` using the resourceName `ingress-nginx-leader`
+Furthermore to support leader-election, the nginx-ingress-controller needs to
+have access to a `configmap` using the resourceName `ingress-controller-leader-nginx`
> Note that resourceNames can NOT be used to limit requests using the “create”
> verb because authorizers only have access to information that can be obtained
> from the request URL, method, and headers (resource names in a “create” request
> are part of the request body).
-* `leases`: get, update (for resourceName `ingress-controller-leader`)
-* `leases`: create
+* `configmaps`: get, update (for resourceName `ingress-controller-leader-nginx`)
+* `configmaps`: create
-This resourceName is the `election-id` defined by the ingress-controller, which defaults to:
+This resourceName is the concatenation of the `election-id` and the
+`ingress-class` as defined by the ingress-controller, which defaults to:
* `election-id`: `ingress-controller-leader`
-* `resourceName` : ``
+* `ingress-class`: `nginx`
+* `resourceName` : `-`
Please adapt accordingly if you overwrite either parameter when launching the
-ingress-nginx-controller.
+nginx-ingress-controller.
### Bindings
-The ServiceAccount `ingress-nginx` is bound to the Role
-`ingress-nginx` and the ClusterRole `ingress-nginx`.
+The ServiceAccount `nginx-ingress-serviceaccount` is bound to the Role
+`nginx-ingress-role` and the ClusterRole `nginx-ingress-clusterrole`.
The serviceAccountName associated with the containers in the deployment must
match the serviceAccount. The namespace references in the Deployment metadata,
-container arguments, and POD_NAMESPACE should be in the ingress-nginx namespace.
+container arguments, and POD_NAMESPACE should be in the nginx-ingress namespace.
diff --git a/docs/deploy/upgrade.md b/docs/deploy/upgrade.md
index e16992612..6d28f11eb 100644
--- a/docs/deploy/upgrade.md
+++ b/docs/deploy/upgrade.md
@@ -14,7 +14,7 @@ I.e. if your deployment resource looks like (partial example):
```yaml
kind: Deployment
metadata:
- name: ingress-nginx-controller
+ name: nginx-ingress-controller
namespace: ingress-nginx
spec:
replicas: 1
@@ -23,31 +23,31 @@ spec:
metadata: ...
spec:
containers:
- - name: ingress-nginx-controller
- image: registry.k8s.io/ingress-nginx/controller:v1.0.4@sha256:545cff00370f28363dad31e3b59a94ba377854d3a11f18988f5f9e56841ef9ef
+ - name: nginx-ingress-controller
+ image: k8s.gcr.io/ingress-nginx/controller:v0.34.0@sha256:56633bd00dab33d92ba14c6e709126a762d54a75a6e72437adefeaaca0abb069
args: ...
```
-simply change the `v1.0.4` tag to the version you wish to upgrade to.
+simply change the `0.34.0` tag to the version you wish to upgrade to.
The easiest way to do this is e.g. (do note you may need to change the name parameter according to your installation):
```
-kubectl set image deployment/ingress-nginx-controller \
- controller=registry.k8s.io/ingress-nginx/controller:v1.0.5@sha256:55a1fcda5b7657c372515fe402c3e39ad93aa59f6e4378e82acd99912fe6028d \
+kubectl set image deployment/nginx-ingress-controller \
+ nginx-ingress-controller=k8s.gcr.io/ingress-nginx/controller:v0.34.1@sha256:0e072dddd1f7f8fc8909a2ca6f65e76c5f0d2fcfb8be47935ae3457e8bbceb20 \
-n ingress-nginx
```
-For interactive editing, use `kubectl edit deployment ingress-nginx-controller -n ingress-nginx`.
+For interactive editing, use `kubectl edit deployment nginx-ingress-controller -n ingress-nginx`.
## With Helm
-If you installed ingress-nginx using the Helm command in the deployment docs so its name is `ingress-nginx`,
+If you installed ingress-nginx using the Helm command in the deployment docs so its name is `ngx-ingress`,
you should be able to upgrade using
```shell
-helm upgrade --reuse-values ingress-nginx ingress-nginx/ingress-nginx
+helm upgrade --reuse-values ngx-ingress ingress-nginx/ingress-nginx
```
### Migrating from stable/nginx-ingress
-See detailed steps in the upgrading section of the `ingress-nginx` chart [README](https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/README.md#migrating-from-stablenginx-ingress).
+See detailed steps in the upgrading section of the `ingress-nginx` chart [README](https://github.com/kubernetes/ingress-nginx/blob/master/charts/ingress-nginx/README.md#migrating-from-stablenginx-ingress).
diff --git a/docs/developer-guide/code-overview.md b/docs/developer-guide/code-overview.md
index 8e872211d..f75f948d7 100644
--- a/docs/developer-guide/code-overview.md
+++ b/docs/developer-guide/code-overview.md
@@ -11,10 +11,7 @@ This part of the code is responsible for the main logic of Ingress NGINX. It con
### Core Sync Logics:
-Ingress-nginx has an internal model of the ingresses, secrets and endpoints in a given cluster. It maintains two copies of that:
-
-1. One copy is the currently running configuration model
-2. Second copy is the one generated in response to some changes in the cluster
+Ingress-nginx has an internal model of the ingresses, secrets and endpoints in a given cluster. It maintains two copy of that (1) currently running configuration model and (2) the one generated in response to some changes in the cluster.
The sync logic diffs the two models and if there's a change it tries to converge the running configuration to the new one.
@@ -28,41 +25,43 @@ The following parts of the code can be found:
### Entrypoint
-The `main` package is responsible for starting ingress-nginx program, which can be found in [cmd/nginx](https://github.com/kubernetes/ingress-nginx/tree/main/cmd/nginx) directory.
+Is the `main` package, responsible for starting ingress-nginx program.
+
+It can be found in [cmd/nginx](https://github.com/kubernetes/ingress-nginx/tree/master/cmd/nginx) directory.
### Version
-Is the package of the code responsible for adding `version` subcommand, and can be found in [version](https://github.com/kubernetes/ingress-nginx/tree/main/version) directory.
+Is the package of the code responsible for adding `version` subcommand, and can be found in [version](https://github.com/kubernetes/ingress-nginx/tree/master/version) directory.
### Internal code
-This part of the code contains the internal logics that compose Ingress NGINX Controller, and it's split into:
+This part of the code contains the internal logics that compose Ingress NGINX Controller, and it's split in:
#### Admission Controller
Contains the code of [Kubernetes Admission Controller](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/) which validates the syntax of ingress objects before accepting it.
-This code can be found in [internal/admission/controller](https://github.com/kubernetes/ingress-nginx/tree/main/internal/admission/controller) directory.
+This code can be found in [internal/admission/controller](https://github.com/kubernetes/ingress-nginx/tree/master/internal/admission/controller) directory.
#### File functions
Contains auxiliary codes that deal with files, such as generating the SHA1 checksum of a file, or creating required directories.
-This code can be found in [internal/file](https://github.com/kubernetes/ingress-nginx/blob/main/internal/file) directory.
+This code can be found in [internal/file](https://github.com/kubernetes/ingress-nginx/blob/master/internal/file) directory.
#### Ingress functions
-Contains all the logics from Ingress-Nginx Controller, with some examples being:
+Contains all the logics from NGINX Ingress Controller, with some examples being:
-* Expected Golang structures that will be used in templates and other parts of the code - [internal/ingress/types.go](https://github.com/kubernetes/ingress-nginx/blob/main/internal/ingress/types.go).
-* supported annotations and its parsing logics - [internal/ingress/annotations](https://github.com/kubernetes/ingress-nginx/tree/main/internal/ingress/annotations).
-* reconciliation loops and logics - [internal/ingress/controller](https://github.com/kubernetes/ingress-nginx/tree/main/internal/ingress/controller)
-* defaults - define the default struct - [internal/ingress/defaults](https://github.com/kubernetes/ingress-nginx/tree/main/internal/ingress/defaults).
-* Error interface and types implementation - [internal/ingress/errors](https://github.com/kubernetes/ingress-nginx/tree/main/internal/ingress/errors)
-* Metrics collectors for Prometheus exporting - [internal/ingress/metric](https://github.com/kubernetes/ingress-nginx/tree/main/internal/ingress/metric).
-* Resolver - Extracts information from a controller - [internal/ingress/resolver](https://github.com/kubernetes/ingress-nginx/tree/main/internal/ingress/resolver).
-* Ingress Object status publisher - [internal/ingress/status](https://github.com/kubernetes/ingress-nginx/tree/main/internal/ingress/status).
+* Expected Golang structures that will be used in templates and other parts of the codes - [internal/ingress/types.go](https://github.com/kubernetes/ingress-nginx/blob/master/internal/ingress/types.go).
+* supported annotations and its parsing logics - [internal/ingress/annotations](https://github.com/kubernetes/ingress-nginx/tree/master/internal/ingress/annotations).
+* reconciliation loops and logics - [internal/ingress/controller](https://github.com/kubernetes/ingress-nginx/tree/master/internal/ingress/controller)
+* Defaults - define the default struct.
+* Error interface and types implementation - [internal/ingress/errors](https://github.com/kubernetes/ingress-nginx/tree/master/internal/ingress/errors)
+* Metrics collectors for Prometheus exporting - [internal/ingress/metric](https://github.com/kubernetes/ingress-nginx/tree/master/internal/ingress/metric).
+* Resolver - Extracts information from a controller.
+* Ingress Object status publisher - [internal/ingress/status](https://github.com/kubernetes/ingress-nginx/tree/master/internal/ingress/status).
And other parts of the code that will be written in this document in a future.
@@ -70,25 +69,25 @@ And other parts of the code that will be written in this document in a future.
Contains helper functions for parsing Kubernetes objects.
-This part of the code can be found in [internal/k8s](https://github.com/kubernetes/ingress-nginx/tree/main/internal/k8s) directory.
+This part of the code can be found in [internal/k8s](https://github.com/kubernetes/ingress-nginx/tree/master/internal/k8s) directory.
#### Networking functions
Contains helper functions for networking, such as IPv4 and IPv6 parsing, SSL certificate parsing, etc.
-This part of the code can be found in [internal/net](https://github.com/kubernetes/ingress-nginx/tree/main/internal/net) directory.
+This part of the code can be found in [internal/net](https://github.com/kubernetes/ingress-nginx/tree/master/internal/net) directory.
#### NGINX functions
Contains helper function to deal with NGINX, such as verify if it's running and reading it's configuration file parts.
-This part of the code can be found in [internal/nginx](https://github.com/kubernetes/ingress-nginx/tree/main/internal/nginx) directory.
+This part of the code can be found in [internal/nginx](https://github.com/kubernetes/ingress-nginx/tree/master/internal/nginx) directory.
#### Tasks / Queue
Contains the functions responsible for the sync queue part of the controller.
-This part of the code can be found in [internal/task](https://github.com/kubernetes/ingress-nginx/tree/main/internal/task) directory.
+This part of the code can be found in [internal/task](https://github.com/kubernetes/ingress-nginx/tree/master/internal/task) directory.
#### Other parts of internal
@@ -96,35 +95,29 @@ Other parts of internal code might not be covered here, like runtime and watch b
## E2E Test
-The e2e tests code is in [test](https://github.com/kubernetes/ingress-nginx/tree/main/test) directory.
+The e2e tests code is in [test](https://github.com/kubernetes/ingress-nginx/tree/master/test) directory.
## Other programs
Describe here `kubectl plugin`, `dbg`, `waitshutdown` and cover the hack scripts.
-### kubectl plugin
-
-It contains kubectl plugin for inspecting your ingress-nginx deployments.
-This part of code can be found in [cmd/plugin](https://github.com/kubernetes/ingress-nginx/tree/main/cmd/plugin) directory
-Detail functions flow and available flow can be found in [kubectl-plugin](https://github.com/kubernetes/ingress-nginx/blob/main/docs/kubectl-plugin.md)
-
## Deploy files
-This directory contains the `yaml` deploy files used as examples or references in the docs to deploy Ingress NGINX and other components.
+This directory contains the `yaml` deploy files used as examples or references in the docs to deploy Ingress NGINX and other componentes.
-Those files are in [deploy](https://github.com/kubernetes/ingress-nginx/tree/main/deploy) directory.
+Those files are in [deploy](https://github.com/kubernetes/ingress-nginx/tree/master/deploy) directory.
## Helm Chart
Used to generate the Helm chart published.
-Code is in [charts/ingress-nginx](https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx).
+Code is in [charts/ingress-nginx](https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx).
## Documentation/Website
The documentation used to generate the website https://kubernetes.github.io/ingress-nginx/
-This code is available in [docs](https://github.com/kubernetes/ingress-nginx/tree/main/docs) and it's main "language" is `Markdown`, used by [mkdocs](https://github.com/kubernetes/ingress-nginx/blob/main/mkdocs.yml) file to generate static pages.
+This code is available in [docs](https://github.com/kubernetes/ingress-nginx/tree/master/docs) and it's main "language" is `Markdown`, used by [mkdocs](https://github.com/kubernetes/ingress-nginx/blob/master/mkdocs.yml) file to generate static pages.
## Container Images
@@ -132,9 +125,9 @@ Container images used to run ingress-nginx, or to build the final image.
### Base Images
-Contains the `Dockerfiles` and scripts used to build base images that are used in other parts of the repo. They are present in [images](https://github.com/kubernetes/ingress-nginx/tree/main/images) repo. Some examples:
-* [nginx](https://github.com/kubernetes/ingress-nginx/tree/main/images/nginx) - The base NGINX image ingress-nginx uses is not a vanilla NGINX. It bundles many libraries together and it is a job in itself to maintain that and keep things up-to-date.
-* [custom-error-pages](https://github.com/kubernetes/ingress-nginx/tree/main/images/custom-error-pages) - Used on the custom error page examples.
+Contains the `Dockerfiles` and scripts used to build base images that are used in other parts of the repo. They are present in [images](https://github.com/kubernetes/ingress-nginx/tree/master/images) repo. Some examples:
+* [nginx](https://github.com/kubernetes/ingress-nginx/tree/master/images/nginx) - The base NGINX image ingress-nginx uses is not a vanilla NGINX. It bundles many libraries together and it is a job in itself to maintain that and keep things up-to-date.
+* [custom-error-pages](https://github.com/kubernetes/ingress-nginx/tree/master/images/custom-error-pages) - Used on the custom error page examples.
There are other images inside this directory.
@@ -144,20 +137,20 @@ The image used to build the final ingress controller, used in deploy scripts and
This is NGINX with some Lua enhancement. We do dynamic certificate, endpoints handling, canary traffic split, custom load balancing etc at this component. One can also add new functionalities using Lua plugin system.
-The files are in [rootfs](https://github.com/kubernetes/ingress-nginx/tree/main/rootfs) directory and contains:
+The files are in [rootfs](https://github.com/kubernetes/ingress-nginx/tree/master/rootfs) directory and contains:
* The Dockerfile
-* [nginx config](https://github.com/kubernetes/ingress-nginx/tree/main/rootfs/etc/nginx)
+* [Auxiliary scripts](https://github.com/kubernetes/ingress-nginx/tree/master/rootfs/ingress-controller)
#### Ingress NGINX Lua Scripts
Ingress NGINX uses Lua Scripts to enable features like hot reloading, rate limiting and monitoring. Some are written using the [OpenResty](https://openresty.org/en/) helper.
-The directory containing Lua scripts is [rootfs/etc/nginx/lua](https://github.com/kubernetes/ingress-nginx/tree/main/rootfs/etc/nginx/lua).
+The directory containing Lua scripts is [rootfs/etc/nginx/lua](https://github.com/kubernetes/ingress-nginx/tree/master/rootfs/etc/nginx/lua).
#### Nginx Go template file
One of the functions of Ingress NGINX is to turn [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/) objects into nginx.conf file.
-To do so, the final step is to apply those configurations in [nginx.tmpl](https://github.com/kubernetes/ingress-nginx/tree/main/rootfs/etc/nginx/template) turning it into a final nginx.conf file.
+To do so, the final step is to apply those configurations in [nginx.tmpl](https://github.com/kubernetes/ingress-nginx/tree/master/rootfs/etc/nginx/template) turning it into a final nginx.conf file.
diff --git a/docs/developer-guide/getting-started.md b/docs/developer-guide/getting-started.md
index e4bb661d4..eb5e7cae5 100644
--- a/docs/developer-guide/getting-started.md
+++ b/docs/developer-guide/getting-started.md
@@ -1,14 +1,6 @@
- Developing for Ingress-Nginx Controller
+# Developing for NGINX Ingress Controller
-This document explains how to get started with developing for Ingress-Nginx Controller.
-
-For the really new contributors, who want to contribute to the INGRESS-NGINX project, but need help with understanding some basic concepts,
-that are needed to work with the Kubernetes ingress resource, here is a link to the [New Contributors Guide](https://github.com/kubernetes/ingress-nginx/blob/main/NEW_CONTRIBUTOR.md).
-This guide contains tips on how a http/https request travels, from a browser or a curl command,
-to the webserver process running inside a container, in a pod, in a Kubernetes cluster, but enters the cluster via a ingress resource.
-For those who are familiar with those basic networking concepts like routing of a packet with regards to a
-http request, termination of connection, reverseproxy etc. etc., you can skip this and move on to the sections below.
-(or read it anyways just for context and also provide feedbacks if any)
+This document explains how to get started with developing for NGINX Ingress controller.
## Prerequisites
@@ -19,10 +11,6 @@ Install [Go 1.14](https://golang.org/dl/) or later.
Install [Docker](https://docs.docker.com/engine/install/) (v19.03.0 or later with experimental feature on)
-Install [kubectl](https://kubernetes.io/docs/tasks/tools/) (1.24.0 or higher)
-
-Install [Kind](https://kind.sigs.k8s.io/)
-
!!! important
The majority of make tasks run as docker containers
@@ -41,7 +29,6 @@ Start a local Kubernetes cluster using [kind](https://kind.sigs.k8s.io/), build
```console
make dev-env
```
-- If you are working on the v1.x.x version of this controller, and you want to create a cluster with kubernetes version 1.22, then please visit the [documentation for kind](https://kind.sigs.k8s.io/docs/user/configuration/#a-note-on-cli-parameters-and-configuration-files), and look for how to set a custom image for the kind node (image: kindest/node...), in the kind config file.
### Testing
@@ -78,9 +65,9 @@ FOCUS="no-auth-locations" make kind-e2e-test
!!! note
The variable `FOCUS` defines Ginkgo [Focused Specs](https://onsi.github.io/ginkgo/#focused-specs)
-Valid values are defined in the describe definition of the e2e tests like [Default Backend](https://github.com/kubernetes/ingress-nginx/blob/main/test/e2e/defaultbackend/default_backend.go#L29)
+Valid values are defined in the describe definition of the e2e tests like [Default Backend](https://github.com/kubernetes/ingress-nginx/blob/master/test/e2e/defaultbackend/default_backend.go#L29)
-The complete list of tests can be found [here](../e2e-tests.md)
+The complete list of tests can be found [here](e2e-tests.md)
### Custom docker image
diff --git a/docs/e2e-tests.md b/docs/e2e-tests.md
index 43726f5a1..0a92e8ad1 100644
--- a/docs/e2e-tests.md
+++ b/docs/e2e-tests.md
@@ -1,563 +1,574 @@
-
-
-# e2e test suite for [Ingress NGINX Controller](https://github.com/kubernetes/ingress-nginx/tree/main/)
-### [[Admission] admission controller](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L39)
-- [should not allow overlaps of host and paths without canary annotations](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L47)
-- [should allow overlaps of host and paths with canary annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L64)
-- [should block ingress with invalid path](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L85)
-- [should return an error if there is an error validating the ingress definition](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L102)
-- [should return an error if there is an invalid value in some annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L116)
-- [should return an error if there is a forbidden value in some annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L130)
-- [should return an error if there is an invalid path and wrong pathType is set](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L144)
-- [should not return an error if the Ingress V1 definition is valid with Ingress Class](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L178)
-- [should not return an error if the Ingress V1 definition is valid with IngressClass annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L194)
-- [should return an error if the Ingress V1 definition contains invalid annotations](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L210)
-- [should not return an error for an invalid Ingress when it has unknown class](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/admission/admission.go#L224)
-### [affinity session-cookie-name](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L43)
-- [should set sticky cookie SERVERID](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L50)
-- [should change cookie name on ingress definition change](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L72)
-- [should set the path to /something on the generated cookie](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L107)
-- [does not set the path to / on the generated cookie if there's more than one rule referring to the same backend](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L129)
-- [should set cookie with expires](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L202)
-- [should set cookie with domain](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L234)
-- [should not set cookie without domain annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L257)
-- [should work with use-regex annotation and session-cookie-path](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L279)
-- [should warn user when use-regex is true and session-cookie-path is not set](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L303)
-- [should not set affinity across all server locations when using separate ingresses](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L329)
-- [should set sticky cookie without host](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L361)
-- [should work with server-alias annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L381)
-- [should set secure in cookie with provided true annotation on http](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L421)
-- [should not set secure in cookie with provided false annotation on http](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L444)
-- [should set secure in cookie with provided false annotation on https](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinity.go#L467)
-### [affinitymode](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinitymode.go#L33)
-- [Balanced affinity mode should balance](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinitymode.go#L36)
-- [Check persistent affinity mode](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/affinitymode.go#L69)
-### [server-alias](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/alias.go#L31)
-- [should return status code 200 for host 'foo' and 404 for 'bar'](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/alias.go#L38)
-- [should return status code 200 for host 'foo' and 'bar'](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/alias.go#L64)
-- [should return status code 200 for hosts defined in two ingresses, different path with one alias](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/alias.go#L89)
-### [app-root](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/approot.go#L28)
-- [should redirect to /foo](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/approot.go#L35)
-### [auth-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L45)
-- [should return status code 200 when no authentication is configured](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L52)
-- [should return status code 503 when authentication is configured with an invalid secret](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L71)
-- [should return status code 401 when authentication is configured but Authorization header is not configured](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L95)
-- [should return status code 401 when authentication is configured and Authorization header is sent with invalid credentials](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L122)
-- [should return status code 401 and cors headers when authentication and cors is configured but Authorization header is not configured](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L150)
-- [should return status code 200 when authentication is configured and Authorization header is sent](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L178)
-- [should return status code 200 when authentication is configured with a map and Authorization header is sent](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L205)
-- [should return status code 401 when authentication is configured with invalid content and Authorization header is sent](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L233)
-- [proxy_set_header My-Custom-Header 42;](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L272)
-- [proxy_set_header My-Custom-Header 42;](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L292)
-- [proxy_set_header 'My-Custom-Header' '42';](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L311)
-- [user retains cookie by default](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L420)
-- [user does not retain cookie if upstream returns error status code](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L431)
-- [user with annotated ingress retains cookie if upstream returns error status code](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L442)
-- [should return status code 200 when signed in](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L481)
-- [should redirect to signin url when not signed in](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L490)
-- [keeps processing new ingresses even if one of the existing ingresses is misconfigured](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L501)
-- [should overwrite Foo header with auth response](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L525)
-- [should return status code 200 when signed in](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L701)
-- [should redirect to signin url when not signed in](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L710)
-- [keeps processing new ingresses even if one of the existing ingresses is misconfigured](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L721)
-- [should return status code 200 when signed in after auth backend is deleted ](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L780)
-- [should deny login for different location on same server](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L800)
-- [should deny login for different servers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L828)
-- [should redirect to signin url when not signed in](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L857)
-- [should return 503 (location was denied)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L887)
-- [should add error to the config](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/auth.go#L895)
-### [auth-tls-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/authtls.go#L31)
-- [should set sslClientCertificate, sslVerifyClient and sslVerifyDepth with auth-tls-secret](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/authtls.go#L38)
-- [should set valid auth-tls-secret, sslVerify to off, and sslVerifyDepth to 2](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/authtls.go#L86)
-- [should 302 redirect to error page instead of 400 when auth-tls-error-page is set](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/authtls.go#L116)
-- [should pass URL-encoded certificate to upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/authtls.go#L163)
-- [should validate auth-tls-verify-client](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/authtls.go#L208)
-- [should return 403 using auth-tls-match-cn with no matching CN from client](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/authtls.go#L267)
-- [should return 200 using auth-tls-match-cn with matching CN from client](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/authtls.go#L296)
-- [should reload the nginx config when auth-tls-match-cn is updated](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/authtls.go#L325)
-- [should return 200 using auth-tls-match-cn where atleast one of the regex options matches CN from client](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/authtls.go#L368)
-### [backend-protocol](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/backendprotocol.go#L29)
-- [should set backend protocol to https:// and use proxy_pass](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/backendprotocol.go#L36)
-- [should set backend protocol to https:// and use proxy_pass with lowercase annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/backendprotocol.go#L51)
-- [should set backend protocol to $scheme:// and use proxy_pass](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/backendprotocol.go#L66)
-- [should set backend protocol to grpc:// and use grpc_pass](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/backendprotocol.go#L81)
-- [should set backend protocol to grpcs:// and use grpc_pass](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/backendprotocol.go#L96)
-- [should set backend protocol to '' and use fastcgi_pass](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/backendprotocol.go#L111)
-### [canary-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L36)
-- [should response with a 200 status from the mainline upstream when requests are made to the mainline ingress](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L45)
-- [should return 404 status for requests to the canary if no matching ingress is found](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L89)
-- [should return the correct status codes when endpoints are unavailable](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L120)
-- [should route requests to the correct upstream if mainline ingress is created before the canary ingress](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L174)
-- [should route requests to the correct upstream if mainline ingress is created after the canary ingress](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L232)
-- [should route requests to the correct upstream if the mainline ingress is modified](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L289)
-- [should route requests to the correct upstream if the canary ingress is modified](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L363)
-- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L445)
-- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L513)
-- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L594)
-- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L647)
-- [should routes to mainline upstream when the given Regex causes error](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L692)
-- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L741)
-- [respects always and never values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L790)
-- [should route requests only to mainline if canary weight is 0](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L862)
-- [should route requests only to canary if canary weight is 100](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L910)
-- [should route requests only to canary if canary weight is equal to canary weight total](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L952)
-- [should route requests split between mainline and canary if canary weight is 50](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L995)
-- [should route requests split between mainline and canary if canary weight is 100 and weight total is 200](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L1031)
-- [should not use canary as a catch-all server](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L1070)
-- [should not use canary with domain as a server](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L1104)
-- [does not crash when canary ingress has multiple paths to the same non-matching backend](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L1138)
-- [always routes traffic to canary if first request was affinitized to canary (default behavior)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L1175)
-- [always routes traffic to canary if first request was affinitized to canary (explicit sticky behavior)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L1242)
-- [routes traffic to either mainline or canary backend (legacy behavior)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/canary.go#L1310)
-### [client-body-buffer-size](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/clientbodybuffersize.go#L30)
-- [should set client_body_buffer_size to 1000](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/clientbodybuffersize.go#L37)
-- [should set client_body_buffer_size to 1K](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/clientbodybuffersize.go#L59)
-- [should set client_body_buffer_size to 1k](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/clientbodybuffersize.go#L81)
-- [should set client_body_buffer_size to 1m](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/clientbodybuffersize.go#L103)
-- [should set client_body_buffer_size to 1M](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/clientbodybuffersize.go#L125)
-- [should not set client_body_buffer_size to invalid 1b](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/clientbodybuffersize.go#L147)
-### [connection-proxy-header](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/connection.go#L28)
-- [set connection header to keep-alive](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/connection.go#L35)
-### [cors-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L33)
-- [should enable cors](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L40)
-- [should set cors methods to only allow POST, GET](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L67)
-- [should set cors max-age](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L83)
-- [should disable cors allow credentials](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L99)
-- [should allow origin for cors](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L115)
-- [should allow headers for cors](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L142)
-- [should expose headers for cors](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L158)
-- [should allow - single origin for multiple cors values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L174)
-- [should not allow - single origin for multiple cors values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L201)
-- [should allow correct origins - single origin for multiple cors values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L221)
-- [should not break functionality](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L272)
-- [should not break functionality - without `*`](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L296)
-- [should not break functionality with extra domain](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L319)
-- [should not match](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L343)
-- [should allow - single origin with required port](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L363)
-- [should not allow - single origin with port and origin without port](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L391)
-- [should not allow - single origin without port and origin with required port](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L410)
-- [should allow - matching origin with wildcard origin (2 subdomains)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L430)
-- [should not allow - unmatching origin with wildcard origin (2 subdomains)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L473)
-- [should allow - matching origin+port with wildcard origin](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L493)
-- [should not allow - portless origin with wildcard origin](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L520)
-- [should allow correct origins - missing subdomain + origin with wildcard origin and correct origin](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L540)
-- [should allow - missing origins (should allow all origins)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L576)
-- [should allow correct origin but not others - cors allow origin annotations contain trailing comma](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L636)
-- [should allow - origins with non-http[s] protocols](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/cors.go#L673)
-### [custom-headers-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/customheaders.go#L33)
-- [should return status code 200 when no custom-headers is configured](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/customheaders.go#L40)
-- [should return status code 503 when custom-headers is configured with an invalid secret](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/customheaders.go#L57)
-- [more_set_headers 'My-Custom-Header' '42';](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/customheaders.go#L78)
-### [custom-http-errors](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/customhttperrors.go#L34)
-- [configures Nginx correctly](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/customhttperrors.go#L41)
-### [default-backend](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/default_backend.go#L29)
-- [should use a custom default backend as upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/default_backend.go#L37)
-### [disable-access-log disable-http-access-log disable-stream-access-log](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/disableaccesslog.go#L28)
-- [disable-access-log set access_log off](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/disableaccesslog.go#L35)
-- [disable-http-access-log set access_log off](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/disableaccesslog.go#L53)
-- [disable-stream-access-log set access_log off](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/disableaccesslog.go#L71)
-### [disable-proxy-intercept-errors](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/disableproxyintercepterrors.go#L31)
-- [configures Nginx correctly](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/disableproxyintercepterrors.go#L39)
-### [backend-protocol - FastCGI](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/fastcgi.go#L30)
-- [should use fastcgi_pass in the configuration file](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/fastcgi.go#L37)
-- [should add fastcgi_index in the configuration file](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/fastcgi.go#L54)
-- [should add fastcgi_param in the configuration file](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/fastcgi.go#L71)
-- [should return OK for service with backend protocol FastCGI](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/fastcgi.go#L102)
-### [force-ssl-redirect](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/forcesslredirect.go#L27)
-- [should redirect to https](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/forcesslredirect.go#L34)
-### [from-to-www-redirect](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/fromtowwwredirect.go#L31)
-- [should redirect from www HTTP to HTTP](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/fromtowwwredirect.go#L38)
-- [should redirect from www HTTPS to HTTPS](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/fromtowwwredirect.go#L64)
-### [backend-protocol - GRPC](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/grpc.go#L45)
-- [should use grpc_pass in the configuration file](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/grpc.go#L48)
-- [should return OK for service with backend protocol GRPC](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/grpc.go#L71)
-- [authorization metadata should be overwritten by external auth response headers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/grpc.go#L132)
-- [should return OK for service with backend protocol GRPCS](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/grpc.go#L193)
-- [should return OK when request not exceed timeout](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/grpc.go#L260)
-- [should return Error when request exceed timeout](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/grpc.go#L303)
-### [http2-push-preload](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/http2pushpreload.go#L27)
-- [enable the http2-push-preload directive](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/http2pushpreload.go#L34)
-### [allowlist-source-range](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/ipallowlist.go#L27)
-- [should set valid ip allowlist range](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/ipallowlist.go#L34)
-### [denylist-source-range](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/ipdenylist.go#L28)
-- [only deny explicitly denied IPs, allow all others](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/ipdenylist.go#L35)
-- [only allow explicitly allowed IPs, deny all others](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/ipdenylist.go#L86)
-### [Annotation - limit-connections](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/limitconnections.go#L31)
-- [should limit-connections](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/limitconnections.go#L38)
-### [limit-rate](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/limitrate.go#L29)
-- [Check limit-rate annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/limitrate.go#L37)
-### [enable-access-log enable-rewrite-log](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/log.go#L27)
-- [set access_log off](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/log.go#L34)
-- [set rewrite_log on](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/log.go#L49)
-### [mirror-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/mirror.go#L28)
-- [should set mirror-target to http://localhost/mirror](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/mirror.go#L36)
-- [should set mirror-target to https://test.env.com/$request_uri](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/mirror.go#L51)
-- [should disable mirror-request-body](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/mirror.go#L67)
-### [modsecurity owasp](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L39)
-- [should enable modsecurity](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L46)
-- [should enable modsecurity with transaction ID and OWASP rules](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L64)
-- [should disable modsecurity](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L85)
-- [should enable modsecurity with snippet](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L102)
-- [should enable modsecurity without using 'modsecurity on;'](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L124)
-- [should disable modsecurity using 'modsecurity off;'](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L147)
-- [should enable modsecurity with snippet and block requests](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L169)
-- [should enable modsecurity globally and with modsecurity-snippet block requests](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L202)
-- [should enable modsecurity when enable-owasp-modsecurity-crs is set to true](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L235)
-- [should enable modsecurity through the config map](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L269)
-- [should enable modsecurity through the config map but ignore snippet as disabled by admin](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L309)
-- [should disable default modsecurity conf setting when modsecurity-snippet is specified](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/modsecurity/modsecurity.go#L354)
-### [preserve-trailing-slash](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/preservetrailingslash.go#L27)
-- [should allow preservation of trailing slashes](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/preservetrailingslash.go#L34)
-### [proxy-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L30)
-- [should set proxy_redirect to off](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L38)
-- [should set proxy_redirect to default](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L54)
-- [should set proxy_redirect to hello.com goodbye.com](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L70)
-- [should set proxy client-max-body-size to 8m](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L87)
-- [should not set proxy client-max-body-size to incorrect value](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L102)
-- [should set valid proxy timeouts](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L117)
-- [should not set invalid proxy timeouts](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L138)
-- [should turn on proxy-buffering](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L159)
-- [should turn off proxy-request-buffering](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L184)
-- [should build proxy next upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L199)
-- [should setup proxy cookies](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L220)
-- [should change the default proxy HTTP version](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxy.go#L238)
-### [proxy-ssl-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxyssl.go#L32)
-- [should set valid proxy-ssl-secret](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxyssl.go#L39)
-- [should set valid proxy-ssl-secret, proxy-ssl-verify to on, proxy-ssl-verify-depth to 2, and proxy-ssl-server-name to on](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxyssl.go#L66)
-- [should set valid proxy-ssl-secret, proxy-ssl-ciphers to HIGH:!AES](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxyssl.go#L96)
-- [should set valid proxy-ssl-secret, proxy-ssl-protocols](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxyssl.go#L124)
-- [proxy-ssl-location-only flag should change the nginx config server part](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/proxyssl.go#L152)
-### [permanent-redirect permanent-redirect-code](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/redirect.go#L30)
-- [should respond with a standard redirect code](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/redirect.go#L33)
-- [should respond with a custom redirect code](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/redirect.go#L61)
-### [relative-redirects](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/relativeredirects.go#L35)
-- [configures Nginx correctly](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/relativeredirects.go#L43)
-- [should respond with absolute URL in Location](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/relativeredirects.go#L61)
-- [should respond with relative URL in Location](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/relativeredirects.go#L85)
-### [rewrite-target use-regex enable-rewrite-log](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/rewrite.go#L32)
-- [should write rewrite logs](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/rewrite.go#L39)
-- [should use correct longest path match](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/rewrite.go#L68)
-- [should use ~* location modifier if regex annotation is present](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/rewrite.go#L113)
-- [should fail to use longest match for documented warning](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/rewrite.go#L160)
-- [should allow for custom rewrite parameters](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/rewrite.go#L192)
-### [satisfy](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/satisfy.go#L33)
-- [should configure satisfy directive correctly](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/satisfy.go#L40)
-- [should allow multiple auth with satisfy any](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/satisfy.go#L82)
-### [server-snippet](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/serversnippet.go#L28)
-### [service-upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/serviceupstream.go#L32)
-- [should use the Service Cluster IP and Port ](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/serviceupstream.go#L41)
-- [should use the Service Cluster IP and Port ](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/serviceupstream.go#L69)
-- [should not use the Service Cluster IP and Port](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/serviceupstream.go#L97)
-### [configuration-snippet](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/snippet.go#L28)
-- [set snippet more_set_headers in all locations](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/snippet.go#L34)
-- [drops snippet more_set_header in all locations if disabled by admin](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/snippet.go#L66)
-### [ssl-ciphers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/sslciphers.go#L28)
-- [should change ssl ciphers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/sslciphers.go#L35)
-- [should keep ssl ciphers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/sslciphers.go#L58)
-### [stream-snippet](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/streamsnippet.go#L34)
-- [should add value of stream-snippet to nginx config](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/streamsnippet.go#L41)
-- [should add stream-snippet and drop annotations per admin config](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/streamsnippet.go#L88)
-### [upstream-hash-by-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/upstreamhashby.go#L79)
-- [should connect to the same pod](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/upstreamhashby.go#L86)
-- [should connect to the same subset of pods](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/upstreamhashby.go#L95)
-### [upstream-vhost](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/upstreamvhost.go#L27)
-- [set host to upstreamvhost.bar.com](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/upstreamvhost.go#L34)
-### [x-forwarded-prefix](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/xforwardedprefix.go#L28)
-- [should set the X-Forwarded-Prefix to the annotation value](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/xforwardedprefix.go#L35)
-- [should not add X-Forwarded-Prefix if the annotation value is empty](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/annotations/xforwardedprefix.go#L57)
-### [[CGroups] cgroups](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/cgroups/cgroups.go#L32)
-- [detects cgroups version v1](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/cgroups/cgroups.go#L40)
-- [detect cgroups version v2](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/cgroups/cgroups.go#L83)
-### [Debug CLI](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/dbg/main.go#L29)
-- [should list the backend servers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/dbg/main.go#L37)
-- [should get information for a specific backend server](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/dbg/main.go#L56)
-- [should produce valid JSON for /dbg general](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/dbg/main.go#L85)
-### [[Default Backend] custom service](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/defaultbackend/custom_default_backend.go#L33)
-- [uses custom default backend that returns 200 as status code](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/defaultbackend/custom_default_backend.go#L36)
-### [[Default Backend]](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/defaultbackend/default_backend.go#L30)
-- [should return 404 sending requests when only a default backend is running](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/defaultbackend/default_backend.go#L33)
-- [enables access logging for default backend](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/defaultbackend/default_backend.go#L88)
-- [disables access logging for default backend](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/defaultbackend/default_backend.go#L105)
-### [[Default Backend] SSL](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/defaultbackend/ssl.go#L26)
-- [should return a self generated SSL certificate](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/defaultbackend/ssl.go#L29)
-### [[Default Backend] change default settings](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/defaultbackend/with_hosts.go#L30)
-- [should apply the annotation to the default backend](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/defaultbackend/with_hosts.go#L38)
-### [[Disable Leader] Routing works when leader election was disabled](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/disableleaderelection/disable_leader.go#L28)
-- [should create multiple ingress routings rules when leader election has disabled](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/disableleaderelection/disable_leader.go#L35)
-### [[Endpointslices] long service name](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/endpointslices/longname.go#L29)
-- [should return 200 when service name has max allowed number of characters 63](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/endpointslices/longname.go#L38)
-### [[TopologyHints] topology aware routing](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/endpointslices/topology.go#L34)
-- [should return 200 when service has topology hints](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/endpointslices/topology.go#L42)
-### [[Shutdown] Grace period shutdown](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/gracefulshutdown/grace_period.go#L32)
-- [/healthz should return status code 500 during shutdown grace period](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/gracefulshutdown/grace_period.go#L35)
-### [[Shutdown] ingress controller](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/gracefulshutdown/shutdown.go#L30)
-- [should shutdown in less than 60 seconds without pending connections](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/gracefulshutdown/shutdown.go#L40)
-### [[Shutdown] Graceful shutdown with pending request](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/gracefulshutdown/slow_requests.go#L25)
-- [should let slow requests finish before shutting down](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/gracefulshutdown/slow_requests.go#L33)
-### [[Ingress] DeepInspection](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/deep_inspection.go#L27)
-- [should drop whole ingress if one path matches invalid regex](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/deep_inspection.go#L34)
-### [single ingress - multiple hosts](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/multiple_rules.go#L30)
-- [should set the correct $service_name NGINX variable](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/multiple_rules.go#L38)
-### [[Ingress] [PathType] exact](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/pathtype_exact.go#L30)
-- [should choose exact location for /exact](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/pathtype_exact.go#L37)
-### [[Ingress] [PathType] mix Exact and Prefix paths](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/pathtype_mixed.go#L30)
-- [should choose the correct location](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/pathtype_mixed.go#L39)
-### [[Ingress] [PathType] prefix checks](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/pathtype_prefix.go#L28)
-- [should return 404 when prefix /aaa does not match request /aaaccc](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/pathtype_prefix.go#L35)
-- [should test prefix path using simple regex pattern for /id/{int}](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/pathtype_prefix.go#L72)
-- [should test prefix path using regex pattern for /id/{int} ignoring non-digits characters at end of string](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/pathtype_prefix.go#L113)
-- [should test prefix path using fixed path size regex pattern /id/{int}{3}](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/pathtype_prefix.go#L142)
-- [should correctly route multi-segment path patterns](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/pathtype_prefix.go#L177)
-### [[Ingress] definition without host](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/without_host.go#L31)
-- [should set ingress details variables for ingresses without a host](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/without_host.go#L34)
-- [should set ingress details variables for ingresses with host without IngressRuleValue, only Backend](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ingress/without_host.go#L55)
-### [[Memory Leak] Dynamic Certificates](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/leaks/lua_ssl.go#L35)
-- [should not leak memory from ingress SSL certificates or configuration updates](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/leaks/lua_ssl.go#L42)
-### [[Load Balancer] load-balance](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/loadbalance/configmap.go#L30)
-- [should apply the configmap load-balance setting](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/loadbalance/configmap.go#L37)
-### [[Load Balancer] EWMA](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/loadbalance/ewma.go#L31)
-- [does not fail requests](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/loadbalance/ewma.go#L43)
-### [[Load Balancer] round-robin](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/loadbalance/round_robin.go#L31)
-- [should evenly distribute requests with round-robin (default algorithm)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/loadbalance/round_robin.go#L39)
-### [[Lua] dynamic certificates](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_certificates.go#L37)
-- [picks up the certificate when we add TLS spec to existing ingress](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_certificates.go#L45)
-- [picks up the previously missing secret for a given ingress without reloading](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_certificates.go#L70)
-- [supports requests with domain with trailing dot](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_certificates.go#L145)
-- [picks up the updated certificate without reloading](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_certificates.go#L149)
-- [falls back to using default certificate when secret gets deleted without reloading](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_certificates.go#L185)
-- [picks up a non-certificate only change](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_certificates.go#L218)
-- [removes HTTPS configuration when we delete TLS spec](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_certificates.go#L233)
-### [[Lua] dynamic configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_configuration.go#L41)
-- [configures balancer Lua middleware correctly](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_configuration.go#L49)
-- [handles endpoints only changes](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_configuration.go#L56)
-- [handles endpoints only changes (down scaling of replicas)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_configuration.go#L81)
-- [handles endpoints only changes consistently (down scaling of replicas vs. empty service)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_configuration.go#L119)
-- [handles an annotation change](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/lua/dynamic_configuration.go#L165)
-### [[metrics] exported prometheus metrics](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/metrics/metrics.go#L36)
-- [exclude socket request metrics are absent](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/metrics/metrics.go#L51)
-- [exclude socket request metrics are present](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/metrics/metrics.go#L73)
-- [request metrics per undefined host are present when flag is set](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/metrics/metrics.go#L95)
-- [request metrics per undefined host are not present when flag is not set](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/metrics/metrics.go#L128)
-### [nginx-configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/nginx/nginx.go#L99)
-- [start nginx with default configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/nginx/nginx.go#L102)
-- [fails when using alias directive](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/nginx/nginx.go#L114)
-- [fails when using root directive](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/nginx/nginx.go#L121)
-### [[Security] request smuggling](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/security/request_smuggling.go#L32)
-- [should not return body content from error_page](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/security/request_smuggling.go#L39)
-### [[Service] backend status code 503](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_backend.go#L34)
-- [should return 503 when backend service does not exist](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_backend.go#L37)
-- [should return 503 when all backend service endpoints are unavailable](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_backend.go#L55)
-### [[Service] Type ExternalName](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_externalname.go#L38)
-- [works with external name set to incomplete fqdn](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_externalname.go#L41)
-- [should return 200 for service type=ExternalName without a port defined](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_externalname.go#L78)
-- [should return 200 for service type=ExternalName with a port defined](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_externalname.go#L118)
-- [should return status 502 for service type=ExternalName with an invalid host](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_externalname.go#L148)
-- [should return 200 for service type=ExternalName using a port name](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_externalname.go#L184)
-- [should return 200 for service type=ExternalName using FQDN with trailing dot](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_externalname.go#L225)
-- [should update the external name after a service update](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_externalname.go#L261)
-- [should sync ingress on external name service addition/deletion](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_externalname.go#L344)
-### [[Service] Nil Service Backend](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_nil_backend.go#L31)
-- [should return 404 when backend service is nil](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/servicebackend/service_nil_backend.go#L38)
-### [access-log](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/access_log.go#L27)
-- [use the default configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/access_log.go#L31)
-- [use the specified configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/access_log.go#L41)
-- [use the specified configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/access_log.go#L52)
-- [use the specified configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/access_log.go#L64)
-- [use the specified configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/access_log.go#L76)
-### [aio-write](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/aio_write.go#L27)
-- [should be enabled by default](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/aio_write.go#L30)
-- [should be enabled when setting is true](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/aio_write.go#L37)
-- [should be disabled when setting is false](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/aio_write.go#L46)
-### [Bad annotation values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/badannotationvalues.go#L29)
-- [[BAD_ANNOTATIONS] should drop an ingress if there is an invalid character in some annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/badannotationvalues.go#L36)
-- [[BAD_ANNOTATIONS] should drop an ingress if there is a forbidden word in some annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/badannotationvalues.go#L68)
-- [[BAD_ANNOTATIONS] should allow an ingress if there is a default blocklist config in place](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/badannotationvalues.go#L105)
-- [[BAD_ANNOTATIONS] should drop an ingress if there is a custom blocklist config in place and allow others to pass](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/badannotationvalues.go#L138)
-### [brotli](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/brotli.go#L30)
-- [should only compress responses that meet the `brotli-min-length` condition](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/brotli.go#L38)
-### [Configmap change](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/configmap_change.go#L29)
-- [should reload after an update in the configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/configmap_change.go#L36)
-### [add-headers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/custom_header.go#L30)
-- [Add a custom header](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/custom_header.go#L40)
-- [Add multiple custom headers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/custom_header.go#L65)
-### [[SSL] [Flag] default-ssl-certificate](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/default_ssl_certificate.go#L35)
-- [uses default ssl certificate for catch-all ingress](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/default_ssl_certificate.go#L66)
-- [uses default ssl certificate for host based ingress when configured certificate does not match host](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/default_ssl_certificate.go#L82)
-### [[Flag] disable-catch-all](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_catch_all.go#L33)
-- [should ignore catch all Ingress with backend](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_catch_all.go#L50)
-- [should ignore catch all Ingress with backend and rules](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_catch_all.go#L69)
-- [should delete Ingress updated to catch-all](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_catch_all.go#L81)
-- [should allow Ingress with rules](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_catch_all.go#L123)
-### [[Flag] disable-service-external-name](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_service_external_name.go#L35)
-- [should ignore services of external-name type](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_service_external_name.go#L55)
-### [[Flag] disable-sync-events](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_sync_events.go#L32)
-- [should create sync events (default)](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_sync_events.go#L35)
-- [should create sync events](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_sync_events.go#L55)
-- [should not create sync events](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/disable_sync_events.go#L83)
-### [enable-real-ip](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/enable_real_ip.go#L30)
-- [trusts X-Forwarded-For header only when setting is true](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/enable_real_ip.go#L40)
-- [should not trust X-Forwarded-For header when setting is false](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/enable_real_ip.go#L79)
-### [use-forwarded-headers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/forwarded_headers.go#L31)
-- [should trust X-Forwarded headers when setting is true](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/forwarded_headers.go#L41)
-- [should not trust X-Forwarded headers when setting is false](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/forwarded_headers.go#L93)
-### [Geoip2](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/geoip2.go#L36)
-- [should include geoip2 line in config when enabled and db file exists](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/geoip2.go#L45)
-- [should only allow requests from specific countries](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/geoip2.go#L69)
-- [should up and running nginx controller using autoreload flag](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/geoip2.go#L122)
-### [[Security] block-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_access_block.go#L28)
-- [should block CIDRs defined in the ConfigMap](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_access_block.go#L38)
-- [should block User-Agents defined in the ConfigMap](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_access_block.go#L55)
-- [should block Referers defined in the ConfigMap](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_access_block.go#L88)
-### [[Security] global-auth-url](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_external_auth.go#L39)
-- [should return status code 401 when request any protected service](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_external_auth.go#L91)
-- [should return status code 200 when request whitelisted (via no-auth-locations) service and 401 when request protected service](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_external_auth.go#L107)
-- [should return status code 200 when request whitelisted (via ingress annotation) service and 401 when request protected service](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_external_auth.go#L130)
-- [should still return status code 200 after auth backend is deleted using cache](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_external_auth.go#L158)
-- [user retains cookie by default](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_external_auth.go#L322)
-- [user does not retain cookie if upstream returns error status code](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_external_auth.go#L333)
-- [user with global-auth-always-set-cookie key in configmap retains cookie if upstream returns error status code](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_external_auth.go#L344)
-### [global-options](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_options.go#L28)
-- [should have worker_rlimit_nofile option](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_options.go#L31)
-- [should have worker_rlimit_nofile option and be independent on amount of worker processes](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/global_options.go#L37)
-### [GRPC](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/grpc.go#L39)
-- [should set the correct GRPC Buffer Size](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/grpc.go#L42)
-### [gzip](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/gzip.go#L30)
-- [should be disabled by default](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/gzip.go#L40)
-- [should be enabled with default settings](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/gzip.go#L56)
-- [should set gzip_comp_level to 4](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/gzip.go#L82)
-- [should set gzip_disable to msie6](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/gzip.go#L102)
-- [should set gzip_min_length to 100](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/gzip.go#L132)
-- [should set gzip_types to text/html](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/gzip.go#L164)
-### [hash size](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/hash-size.go#L27)
-- [should set server_names_hash_bucket_size](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/hash-size.go#L39)
-- [should set server_names_hash_max_size](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/hash-size.go#L47)
-- [should set proxy-headers-hash-bucket-size](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/hash-size.go#L57)
-- [should set proxy-headers-hash-max-size](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/hash-size.go#L65)
-- [should set variables-hash-bucket-size](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/hash-size.go#L75)
-- [should set variables-hash-max-size](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/hash-size.go#L83)
-- [should set vmap-hash-bucket-size](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/hash-size.go#L93)
-### [[Flag] ingress-class](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L41)
-- [should ignore Ingress with a different class annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L70)
-- [should ignore Ingress with different controller class](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L106)
-- [should accept both Ingresses with default IngressClassName and IngressClass annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L134)
-- [should ignore Ingress without IngressClass configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L166)
-- [should delete Ingress when class is removed](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L194)
-- [should serve Ingress when class is added](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L259)
-- [should serve Ingress when class is updated between annotation and ingressClassName](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L325)
-- [should ignore Ingress with no class and accept the correctly configured Ingresses](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L414)
-- [should watch Ingress with no class and ignore ingress with a different class](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L482)
-- [should watch Ingress that uses the class name even if spec is different](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L538)
-- [should watch Ingress with correct annotation](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L628)
-- [should ignore Ingress with only IngressClassName](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ingress_class.go#L648)
-### [keep-alive keep-alive-requests](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/keep-alive.go#L28)
-- [should set keepalive_timeout](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/keep-alive.go#L40)
-- [should set keepalive_requests](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/keep-alive.go#L48)
-- [should set keepalive connection to upstream server](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/keep-alive.go#L58)
-- [should set keep alive connection timeout to upstream server](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/keep-alive.go#L68)
-- [should set keepalive time to upstream server](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/keep-alive.go#L78)
-- [should set the request count to upstream server through one keep alive connection](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/keep-alive.go#L88)
-### [Configmap - limit-rate](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/limit_rate.go#L28)
-- [Check limit-rate config](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/limit_rate.go#L36)
-### [[Flag] custom HTTP and HTTPS ports](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/listen_nondefault_ports.go#L30)
-- [should set X-Forwarded-Port headers accordingly when listening on a non-default HTTP port](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/listen_nondefault_ports.go#L45)
-- [should set X-Forwarded-Port header to 443](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/listen_nondefault_ports.go#L65)
-- [should set the X-Forwarded-Port header to 443](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/listen_nondefault_ports.go#L93)
-### [log-format-*](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/log-format.go#L28)
-- [should not configure log-format escape by default](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/log-format.go#L39)
-- [should enable the log-format-escape-json](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/log-format.go#L46)
-- [should disable the log-format-escape-json](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/log-format.go#L54)
-- [should enable the log-format-escape-none](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/log-format.go#L62)
-- [should disable the log-format-escape-none](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/log-format.go#L70)
-- [log-format-escape-json enabled](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/log-format.go#L80)
-- [log-format default escape](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/log-format.go#L103)
-- [log-format-escape-none enabled](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/log-format.go#L126)
-### [[Lua] lua-shared-dicts](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/lua_shared_dicts.go#L26)
-- [configures lua shared dicts](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/lua_shared_dicts.go#L29)
-### [main-snippet](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/main_snippet.go#L27)
-- [should add value of main-snippet setting to nginx config](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/main_snippet.go#L31)
-### [[Security] modsecurity-snippet](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/modsecurity/modsecurity_snippet.go#L27)
-- [should add value of modsecurity-snippet setting to nginx config](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/modsecurity/modsecurity_snippet.go#L30)
-### [enable-multi-accept](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/multi_accept.go#L27)
-- [should be enabled by default](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/multi_accept.go#L31)
-- [should be enabled when set to true](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/multi_accept.go#L39)
-- [should be disabled when set to false](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/multi_accept.go#L49)
-### [[Flag] watch namespace selector](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/namespace_selector.go#L30)
-- [should ignore Ingress of namespace without label foo=bar and accept those of namespace with label foo=bar](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/namespace_selector.go#L62)
-### [[Security] no-auth-locations](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/no_auth_locations.go#L33)
-- [should return status code 401 when accessing '/' unauthentication](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/no_auth_locations.go#L54)
-- [should return status code 200 when accessing '/' authentication](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/no_auth_locations.go#L68)
-- [should return status code 200 when accessing '/noauth' unauthenticated](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/no_auth_locations.go#L82)
-### [Add no tls redirect locations](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/no_tls_redirect_locations.go#L27)
-- [Check no tls redirect locations config](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/no_tls_redirect_locations.go#L30)
-### [OCSP](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ocsp/ocsp.go#L43)
-- [should enable OCSP and contain stapling information in the connection](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ocsp/ocsp.go#L50)
-### [Configure Opentelemetry](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/opentelemetry.go#L39)
-- [should not exists opentelemetry directive](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/opentelemetry.go#L49)
-- [should exists opentelemetry directive when is enabled](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/opentelemetry.go#L62)
-- [should include opentelemetry_trust_incoming_spans on directive when enabled](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/opentelemetry.go#L76)
-- [should not exists opentelemetry_operation_name directive when is empty](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/opentelemetry.go#L91)
-- [should exists opentelemetry_operation_name directive when is configured](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/opentelemetry.go#L106)
-### [proxy-connect-timeout](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_connect_timeout.go#L29)
-- [should set valid proxy timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_connect_timeout.go#L37)
-- [should not set invalid proxy timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_connect_timeout.go#L53)
-### [Dynamic $proxy_host](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_host.go#L28)
-- [should exist a proxy_host](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_host.go#L36)
-- [should exist a proxy_host using the upstream-vhost annotation value](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_host.go#L60)
-### [proxy-next-upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_next_upstream.go#L28)
-- [should build proxy next upstream using configmap values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_next_upstream.go#L36)
-### [use-proxy-protocol](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_protocol.go#L38)
-- [should respect port passed by the PROXY Protocol](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_protocol.go#L48)
-- [should respect proto passed by the PROXY Protocol server port](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_protocol.go#L85)
-- [should enable PROXY Protocol for HTTPS](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_protocol.go#L121)
-- [should enable PROXY Protocol for TCP](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_protocol.go#L164)
-### [proxy-read-timeout](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_read_timeout.go#L29)
-- [should set valid proxy read timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_read_timeout.go#L37)
-- [should not set invalid proxy read timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_read_timeout.go#L53)
-### [proxy-send-timeout](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_send_timeout.go#L29)
-- [should set valid proxy send timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_send_timeout.go#L37)
-- [should not set invalid proxy send timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/proxy_send_timeout.go#L53)
-### [reuse-port](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/reuse-port.go#L27)
-- [reuse port should be enabled by default](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/reuse-port.go#L38)
-- [reuse port should be disabled](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/reuse-port.go#L44)
-- [reuse port should be enabled](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/reuse-port.go#L52)
-### [configmap server-snippet](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/server_snippet.go#L28)
-- [should add value of server-snippet setting to all ingress config](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/server_snippet.go#L35)
-- [should add global server-snippet and drop annotations per admin config](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/server_snippet.go#L100)
-### [server-tokens](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/server_tokens.go#L29)
-- [should not exists Server header in the response](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/server_tokens.go#L38)
-- [should exists Server header in the response when is enabled](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/server_tokens.go#L50)
-### [ssl-ciphers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ssl_ciphers.go#L28)
-- [Add ssl ciphers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ssl_ciphers.go#L31)
-### [[Flag] enable-ssl-passthrough](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ssl_passthrough.go#L36)
-### [With enable-ssl-passthrough enabled](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ssl_passthrough.go#L55)
-- [should enable ssl-passthrough-proxy-port on a different port](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ssl_passthrough.go#L56)
-- [should pass unknown traffic to default backend and handle known traffic](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/ssl_passthrough.go#L78)
-### [configmap stream-snippet](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/stream_snippet.go#L35)
-- [should add value of stream-snippet via config map to nginx config](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/stream_snippet.go#L42)
-### [[SSL] TLS protocols, ciphers and headers](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/tls.go#L32)
-- [setting cipher suite](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/tls.go#L66)
-- [setting max-age parameter](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/tls.go#L110)
-- [setting includeSubDomains parameter](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/tls.go#L127)
-- [setting preload parameter](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/tls.go#L147)
-- [overriding what's set from the upstream](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/tls.go#L168)
-- [should not use ports during the HTTP to HTTPS redirection](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/tls.go#L190)
-- [should not use ports or X-Forwarded-Host during the HTTP to HTTPS redirection](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/tls.go#L208)
-### [annotation validations](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/validations/validations.go#L30)
-- [should allow ingress based on their risk on webhooks](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/validations/validations.go#L33)
-- [should allow ingress based on their risk on webhooks](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/settings/validations/validations.go#L68)
-### [[SSL] redirect to HTTPS](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ssl/http_redirect.go#L29)
-- [should redirect from HTTP to HTTPS when secret is missing](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ssl/http_redirect.go#L36)
-### [[SSL] secret update](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ssl/secret_update.go#L33)
-- [should not appear references to secret updates not used in ingress rules](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ssl/secret_update.go#L40)
-- [should return the fake SSL certificate if the secret is invalid](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/ssl/secret_update.go#L83)
-### [[Status] status update](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/status/update.go#L38)
-- [should update status field after client-go reconnection](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/status/update.go#L43)
-### [[TCP] tcp-services](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/tcpudp/tcp.go#L38)
-- [should expose a TCP service](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/tcpudp/tcp.go#L46)
-- [should expose an ExternalName TCP service](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/tcpudp/tcp.go#L80)
-- [should reload after an update in the configuration](https://github.com/kubernetes/ingress-nginx/tree/main//test/e2e/tcpudp/tcp.go#L169)
\ No newline at end of file
+# e2e test suite for [NGINX Ingress Controller](https://github.com/kubernetes/ingress-nginx/tree/master/)
+
+
+
+### [[Default Backend] change default settings](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/defaultbackend/with_hosts.go#L31)
+
+- [should apply the annotation to the default backend](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/defaultbackend/with_hosts.go#L39)
+
+### [[Default Backend]](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/defaultbackend/default_backend.go#L29)
+
+- [should return 404 sending requests when only a default backend is running](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/defaultbackend/default_backend.go#L32)
+- [enables access logging for default backend](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/defaultbackend/default_backend.go#L89)
+- [disables access logging for default backend](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/defaultbackend/default_backend.go#L106)
+
+### [[Default Backend] custom service](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/defaultbackend/custom_default_backend.go#L33)
+
+- [uses custom default backend that returns 200 as status code](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/defaultbackend/custom_default_backend.go#L36)
+
+### [[Default Backend] SSL](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/defaultbackend/ssl.go#L26)
+
+- [should return a self generated SSL certificate](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/defaultbackend/ssl.go#L29)
+
+### [[TCP] tcp-services](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/tcpudp/tcp.go#L37)
+
+- [should expose a TCP service](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/tcpudp/tcp.go#L40)
+- [should expose an ExternalName TCP service](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/tcpudp/tcp.go#L98)
+
+### [auth-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L39)
+
+- [should return status code 200 when no authentication is configured](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L46)
+- [should return status code 503 when authentication is configured with an invalid secret](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L65)
+- [should return status code 401 when authentication is configured but Authorization header is not configured](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L89)
+- [should return status code 401 when authentication is configured and Authorization header is sent with invalid credentials](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L116)
+- [should return status code 200 when authentication is configured and Authorization header is sent](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L144)
+- [should return status code 200 when authentication is configured with a map and Authorization header is sent](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L171)
+- [should return status code 401 when authentication is configured with invalid content and Authorization header is sent](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L199)
+- [proxy_set_header My-Custom-Header 42;](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L238)
+- [proxy_set_header My-Custom-Header 42;](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L256)
+- [proxy_set_header 'My-Custom-Header' '42';](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L273)
+- [](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L294)
+- [retains cookie set by external authentication server](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L316)
+- [should return status code 200 when signed in](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L413)
+- [should redirect to signin url when not signed in](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L422)
+- [keeps processing new ingresses even if one of the existing ingresses is misconfigured](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L433)
+- [should return status code 200 when signed in](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L490)
+- [should redirect to signin url when not signed in](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L499)
+- [keeps processing new ingresses even if one of the existing ingresses is misconfigured](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L510)
+- [should return status code 200 when signed in after auth backend is deleted ](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L584)
+- [should deny login for different location on same server](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L604)
+- [should deny login for different servers](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L632)
+- [should redirect to signin url when not signed in](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/auth.go#L661)
+
+### [affinitymode](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinitymode.go#L31)
+
+- [Balanced affinity mode should balance](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinitymode.go#L34)
+- [Check persistent affinity mode](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinitymode.go#L64)
+
+### [proxy-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L28)
+
+- [should set proxy_redirect to off](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L36)
+- [should set proxy_redirect to default](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L52)
+- [should set proxy_redirect to hello.com goodbye.com](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L68)
+- [should set proxy client-max-body-size to 8m](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L85)
+- [should not set proxy client-max-body-size to incorrect value](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L100)
+- [should set valid proxy timeouts](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L115)
+- [should not set invalid proxy timeouts](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L136)
+- [should turn on proxy-buffering](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L157)
+- [should turn off proxy-request-buffering](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L179)
+- [should build proxy next upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L194)
+- [should setup proxy cookies](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L215)
+- [should change the default proxy HTTP version](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxy.go#L233)
+
+### [affinity session-cookie-name](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L35)
+
+- [should set sticky cookie SERVERID](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L42)
+- [should change cookie name on ingress definition change](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L64)
+- [should set the path to /something on the generated cookie](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L99)
+- [does not set the path to / on the generated cookie if there's more than one rule referring to the same backend](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L121)
+- [should set cookie with expires](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L182)
+- [should work with use-regex annotation and session-cookie-path](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L213)
+- [should warn user when use-regex is true and session-cookie-path is not set](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L237)
+- [should not set affinity across all server locations when using separate ingresses](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L263)
+- [should set sticky cookie without host](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L295)
+- [should work with server-alias annotation](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/affinity.go#L315)
+
+### [mirror-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/mirror.go#L28)
+
+- [should set mirror-target to http://localhost/mirror](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/mirror.go#L36)
+- [should set mirror-target to https://test.env.com/$request_uri](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/mirror.go#L51)
+- [should disable mirror-request-body](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/mirror.go#L67)
+
+### [canary-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L35)
+
+- [should response with a 200 status from the mainline upstream when requests are made to the mainline ingress](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L47)
+- [should return 404 status for requests to the canary if no matching ingress is found](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L79)
+- [should return the correct status codes when endpoints are unavailable](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L106)
+- [should route requests to the correct upstream if mainline ingress is created before the canary ingress](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L160)
+- [should route requests to the correct upstream if mainline ingress is created after the canary ingress](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L205)
+- [should route requests to the correct upstream if the mainline ingress is modified](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L249)
+- [should route requests to the correct upstream if the canary ingress is modified](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L306)
+- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L361)
+- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L415)
+- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L479)
+- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L521)
+- [should routes to mainline upstream when the given Regex causes error](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L555)
+- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L593)
+- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L632)
+- [should route requests to the correct upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L687)
+- [should not use canary as a catch-all server](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L743)
+- [should not use canary with domain as a server](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L771)
+- [does not crash when canary ingress has multiple paths to the same non-matching backend](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/canary.go#L795)
+
+### [limit-rate](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/limitrate.go#L29)
+
+- [Check limit-rate annotation](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/limitrate.go#L37)
+
+### [force-ssl-redirect](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/forcesslredirect.go#L27)
+
+- [should redirect to https](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/forcesslredirect.go#L34)
+
+### [http2-push-preload](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/http2pushpreload.go#L27)
+
+- [enable the http2-push-preload directive](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/http2pushpreload.go#L34)
+
+### [proxy-ssl-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxyssl.go#L30)
+
+- [should set valid proxy-ssl-secret](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxyssl.go#L37)
+- [should set valid proxy-ssl-secret, proxy-ssl-verify to on, proxy-ssl-verify-depth to 2, and proxy-ssl-server-name to on](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxyssl.go#L64)
+- [should set valid proxy-ssl-secret, proxy-ssl-ciphers to HIGH:!AES](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxyssl.go#L94)
+- [should set valid proxy-ssl-secret, proxy-ssl-protocols](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxyssl.go#L122)
+- [proxy-ssl-location-only flag should change the nginx config server part](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/proxyssl.go#L150)
+
+### [modsecurity owasp](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/modsecurity.go#L27)
+
+- [should enable modsecurity](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/modsecurity.go#L34)
+- [should enable modsecurity with transaction ID and OWASP rules](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/modsecurity.go#L52)
+- [should disable modsecurity](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/modsecurity.go#L73)
+- [should enable modsecurity with snippet](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/modsecurity.go#L90)
+- [should enable modsecurity without using 'modsecurity on;'](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/modsecurity.go#L109)
+- [should disable modsecurity using 'modsecurity off;'](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/modsecurity.go#L131)
+- [should enable modsecurity with snippet and block requests](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/modsecurity.go#L152)
+- [should enable modsecurity globally and with modsecurity-snippet block requests](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/modsecurity.go#L186)
+
+### [backend-protocol - GRPC](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/grpc.go#L38)
+
+- [should use grpc_pass in the configuration file](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/grpc.go#L41)
+- [should return OK for service with backend protocol GRPC](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/grpc.go#L66)
+- [should return OK for service with backend protocol GRPCS](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/grpc.go#L124)
+
+### [cors-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/cors.go#L28)
+
+- [should enable cors](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/cors.go#L35)
+- [should set cors methods to only allow POST, GET](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/cors.go#L60)
+- [should set cors max-age](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/cors.go#L76)
+- [should disable cors allow credentials](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/cors.go#L92)
+- [should allow origin for cors](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/cors.go#L108)
+- [should allow headers for cors](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/cors.go#L124)
+- [should expose headers for cors](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/cors.go#L140)
+
+### [influxdb-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/influxdb.go#L39)
+
+- [should send the request metric to the influxdb server](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/influxdb.go#L48)
+
+### [Annotation - limit-connections](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/limitconnections.go#L31)
+
+- [should limit-connections](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/limitconnections.go#L38)
+
+### [client-body-buffer-size](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/clientbodybuffersize.go#L28)
+
+- [should set client_body_buffer_size to 1000](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/clientbodybuffersize.go#L35)
+- [should set client_body_buffer_size to 1K](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/clientbodybuffersize.go#L51)
+- [should set client_body_buffer_size to 1k](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/clientbodybuffersize.go#L67)
+- [should set client_body_buffer_size to 1m](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/clientbodybuffersize.go#L83)
+- [should set client_body_buffer_size to 1M](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/clientbodybuffersize.go#L99)
+- [should not set client_body_buffer_size to invalid 1b](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/clientbodybuffersize.go#L115)
+
+### [default-backend](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/default_backend.go#L29)
+
+- [should use a custom default backend as upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/default_backend.go#L37)
+
+### [connection-proxy-header](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/connection.go#L29)
+
+- [set connection header to keep-alive](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/connection.go#L36)
+
+### [upstream-vhost](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/upstreamvhost.go#L27)
+
+- [set host to upstreamvhost.bar.com](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/upstreamvhost.go#L34)
+
+### [custom-http-errors](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/customhttperrors.go#L34)
+
+- [configures Nginx correctly](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/customhttperrors.go#L41)
+
+### [disable-access-log disable-http-access-log disable-stream-access-log](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/disableaccesslog.go#L27)
+
+- [disable-access-log set access_log off](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/disableaccesslog.go#L34)
+- [disable-http-access-log set access_log off](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/disableaccesslog.go#L46)
+
+### [server-snippet](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/serversnippet.go#L27)
+
+- [](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/serversnippet.go#L34)
+
+### [rewrite-target use-regex enable-rewrite-log](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/rewrite.go#L30)
+
+- [should write rewrite logs](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/rewrite.go#L37)
+- [should use correct longest path match](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/rewrite.go#L66)
+- [should use ~* location modifier if regex annotation is present](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/rewrite.go#L111)
+- [should fail to use longest match for documented warning](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/rewrite.go#L158)
+- [should allow for custom rewrite parameters](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/rewrite.go#L190)
+
+### [app-root](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/approot.go#L28)
+
+- [should redirect to /foo](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/approot.go#L35)
+
+### [whitelist-source-range](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/ipwhitelist.go#L26)
+
+- [should set valid ip whitelist range](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/ipwhitelist.go#L33)
+
+### [enable-access-log enable-rewrite-log](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/log.go#L27)
+
+- [set access_log off](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/log.go#L34)
+- [set rewrite_log on](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/log.go#L49)
+
+### [x-forwarded-prefix](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/xforwardedprefix.go#L28)
+
+- [should set the X-Forwarded-Prefix to the annotation value](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/xforwardedprefix.go#L35)
+- [should not add X-Forwarded-Prefix if the annotation value is empty](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/xforwardedprefix.go#L57)
+
+### [configuration-snippet](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/snippet.go#L27)
+
+- [ in all locations](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/snippet.go#L34)
+
+### [backend-protocol - FastCGI](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/fastcgi.go#L31)
+
+- [should use fastcgi_pass in the configuration file](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/fastcgi.go#L38)
+- [should add fastcgi_index in the configuration file](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/fastcgi.go#L55)
+- [should add fastcgi_param in the configuration file](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/fastcgi.go#L72)
+- [should return OK for service with backend protocol FastCGI](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/fastcgi.go#L105)
+
+### [from-to-www-redirect](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/fromtowwwredirect.go#L31)
+
+- [should redirect from www HTTP to HTTP](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/fromtowwwredirect.go#L38)
+- [should redirect from www HTTPS to HTTPS](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/fromtowwwredirect.go#L64)
+
+### [permanent-redirect permanent-redirect-code](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/redirect.go#L30)
+
+- [should respond with a standard redirect code](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/redirect.go#L33)
+- [should respond with a custom redirect code](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/redirect.go#L61)
+
+### [upstream-hash-by-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/upstreamhashby.go#L76)
+
+- [should connect to the same pod](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/upstreamhashby.go#L83)
+- [should connect to the same subset of pods](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/upstreamhashby.go#L92)
+
+### [annotation-global-rate-limit](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/globalratelimit.go#L30)
+
+- [generates correct configuration](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/globalratelimit.go#L38)
+
+### [backend-protocol](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/backendprotocol.go#L27)
+
+- [should set backend protocol to https:// and use proxy_pass](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/backendprotocol.go#L34)
+- [should set backend protocol to grpc:// and use grpc_pass](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/backendprotocol.go#L49)
+- [should set backend protocol to grpcs:// and use grpc_pass](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/backendprotocol.go#L64)
+- [should set backend protocol to '' and use fastcgi_pass](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/backendprotocol.go#L79)
+- [should set backend protocol to '' and use ajp_pass](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/backendprotocol.go#L94)
+
+### [satisfy](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/satisfy.go#L35)
+
+- [should configure satisfy directive correctly](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/satisfy.go#L42)
+- [should allow multiple auth with satisfy any](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/satisfy.go#L84)
+
+### [server-alias](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/alias.go#L29)
+
+- [should return status code 200 for host 'foo' and 404 for 'bar'](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/alias.go#L36)
+- [should return status code 200 for host 'foo' and 'bar'](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/alias.go#L62)
+- [should return status code 200 for hosts defined in two ingresses, different path with one alias](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/alias.go#L87)
+
+### [ssl-ciphers](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/sslciphers.go#L27)
+
+- [should change ssl ciphers](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/sslciphers.go#L34)
+
+### [auth-tls-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/authtls.go#L30)
+
+- [should set valid auth-tls-secret](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/authtls.go#L37)
+- [should set valid auth-tls-secret, sslVerify to off, and sslVerifyDepth to 2](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/authtls.go#L73)
+- [should set valid auth-tls-secret, pass certificate to upstream, and error page](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/authtls.go#L103)
+- [should validate auth-tls-verify-client](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/annotations/authtls.go#L153)
+
+### [[Status] status update](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/status/update.go#L38)
+
+- [should update status field after client-go reconnection](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/status/update.go#L43)
+
+### [Debug CLI](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/dbg/main.go#L29)
+
+- [should list the backend servers](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/dbg/main.go#L37)
+- [should get information for a specific backend server](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/dbg/main.go#L56)
+- [should produce valid JSON for /dbg general](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/dbg/main.go#L85)
+
+### [[Memory Leak] Dynamic Certificates](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/leaks/lua_ssl.go#L35)
+
+- [should not leak memory from ingress SSL certificates or configuration updates](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/leaks/lua_ssl.go#L42)
+
+### [[Ingress] [PathType] mix Exact and Prefix paths](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/pathtype_mixed.go#L30)
+
+- [should choose the correct location](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/pathtype_mixed.go#L39)
+
+### [[Ingress] definition without host](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/without_host.go#L32)
+
+- [should set ingress details variables for ingresses without a host](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/without_host.go#L35)
+- [should set ingress details variables for ingresses with host without IngressRuleValue, only Backend](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/without_host.go#L56)
+
+### [single ingress - multiple hosts](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/multiple_rules.go#L31)
+
+- [should set the correct $service_name NGINX variable](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/multiple_rules.go#L39)
+
+### [[Ingress] [PathType] exact](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/pathtype_exact.go#L30)
+
+- [should choose exact location for /exact](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/pathtype_exact.go#L37)
+
+### [[Ingress] [PathType] prefix checks](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/pathtype_prefix.go#L28)
+
+- [should return 404 when prefix /aaa does not match request /aaaccc](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/ingress/pathtype_prefix.go#L35)
+
+### [[Security] request smuggling](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/security/request_smuggling.go#L32)
+
+- [should not return body content from error_page](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/security/request_smuggling.go#L39)
+
+### [[SSL] [Flag] default-ssl-certificate](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/default_ssl_certificate.go#L33)
+
+- [uses default ssl certificate for catch-all ingress](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/default_ssl_certificate.go#L64)
+- [uses default ssl certificate for host based ingress when configured certificate does not match host](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/default_ssl_certificate.go#L80)
+
+### [enable-real-ip](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/enable_real_ip.go#L30)
+
+- [trusts X-Forwarded-For header only when setting is true](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/enable_real_ip.go#L40)
+- [should not trust X-Forwarded-For header when setting is false](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/enable_real_ip.go#L78)
+
+### [access-log](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/access_log.go#L26)
+
+- [use the default configuration](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/access_log.go#L31)
+- [use the specified configuration](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/access_log.go#L39)
+- [use the specified configuration](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/access_log.go#L51)
+- [use the specified configuration](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/access_log.go#L63)
+- [use the specified configuration](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/access_log.go#L75)
+
+### [[Lua] lua-shared-dicts](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/lua_shared_dicts.go#L26)
+
+- [configures lua shared dicts](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/lua_shared_dicts.go#L29)
+
+### [server-tokens](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/server_tokens.go#L30)
+
+- [should not exists Server header in the response](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/server_tokens.go#L38)
+- [should exists Server header in the response when is enabled](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/server_tokens.go#L50)
+
+### [use-proxy-protocol](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_protocol.go#L36)
+
+- [should respect port passed by the PROXY Protocol](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_protocol.go#L46)
+- [should respect proto passed by the PROXY Protocol server port](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_protocol.go#L79)
+- [should enable PROXY Protocol for HTTPS](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_protocol.go#L112)
+- [should enable PROXY Protocol for TCP](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_protocol.go#L155)
+
+### [[Flag] custom HTTP and HTTPS ports](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/listen_nondefault_ports.go#L32)
+
+- [should set X-Forwarded-Port headers accordingly when listening on a non-default HTTP port](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/listen_nondefault_ports.go#L48)
+- [should set X-Forwarded-Port header to 443](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/listen_nondefault_ports.go#L70)
+- [should set the X-Forwarded-Port header to 443](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/listen_nondefault_ports.go#L100)
+
+### [[Security] no-auth-locations](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/no_auth_locations.go#L34)
+
+- [should return status code 401 when accessing '/' unauthentication](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/no_auth_locations.go#L55)
+- [should return status code 200 when accessing '/' authentication](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/no_auth_locations.go#L69)
+- [should return status code 200 when accessing '/noauth' unauthenticated](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/no_auth_locations.go#L83)
+
+### [Dynamic $proxy_host](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_host.go#L28)
+
+- [should exist a proxy_host](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_host.go#L36)
+- [should exist a proxy_host using the upstream-vhost annotation value](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_host.go#L57)
+
+### [proxy-connect-timeout](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_connect_timeout.go#L28)
+
+- [should set valid proxy timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_connect_timeout.go#L36)
+- [should not set invalid proxy timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_connect_timeout.go#L52)
+
+### [[Security] Pod Security Policies](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/pod_security_policy.go#L40)
+
+- [should be running with a Pod Security Policy](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/pod_security_policy.go#L43)
+
+### [Geoip2](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/geoip2.go#L29)
+
+- [should only allow requests from specific countries](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/geoip2.go#L38)
+
+### [[Security] Pod Security Policies with volumes](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/pod_security_policy_volumes.go#L36)
+
+- [should be running with a Pod Security Policy](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/pod_security_policy_volumes.go#L39)
+
+### [enable-multi-accept](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/multi_accept.go#L27)
+
+- [should be enabled by default](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/multi_accept.go#L31)
+- [should be enabled when set to true](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/multi_accept.go#L39)
+- [should be disabled when set to false](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/multi_accept.go#L49)
+
+### [log-format-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/log-format.go#L28)
+
+- [should disable the log-format-escape-json by default](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/log-format.go#L40)
+- [should enable the log-format-escape-json](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/log-format.go#L47)
+- [should disable the log-format-escape-json](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/log-format.go#L55)
+- [log-format-escape-json enabled](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/log-format.go#L66)
+- [log-format-escape-json disabled](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/log-format.go#L89)
+
+### [[Flag] ingress-class](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/ingress_class.go#L39)
+
+- [should ignore Ingress with class](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/ingress_class.go#L91)
+- [should ignore Ingress with no class](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/ingress_class.go#L143)
+- [should delete Ingress when class is removed](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/ingress_class.go#L177)
+- [check scenarios for IngressClass and ingress.class annotation](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/ingress_class.go#L216)
+
+### [ssl-ciphers](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/ssl_ciphers.go#L28)
+
+- [Add ssl ciphers](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/ssl_ciphers.go#L31)
+
+### [proxy-next-upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_next_upstream.go#L28)
+
+- [should build proxy next upstream using configmap values](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_next_upstream.go#L36)
+
+### [[Security] global-auth-url](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_external_auth.go#L32)
+
+- [should return status code 401 when request any protected service](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_external_auth.go#L83)
+- [should return status code 200 when request whitelisted (via no-auth-locations) service and 401 when request protected service](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_external_auth.go#L100)
+- [should return status code 200 when request whitelisted (via ingress annotation) service and 401 when request protected service](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_external_auth.go#L124)
+- [should still return status code 200 after auth backend is deleted using cache ](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_external_auth.go#L153)
+- [](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_external_auth.go#L195)
+- [](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_external_auth.go#L208)
+- [](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_external_auth.go#L221)
+- [](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_external_auth.go#L235)
+- [](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_external_auth.go#L248)
+
+### [[Security] block-*](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_access_block.go#L28)
+
+- [should block CIDRs defined in the ConfigMap](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_access_block.go#L38)
+- [should block User-Agents defined in the ConfigMap](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_access_block.go#L55)
+- [should block Referers defined in the ConfigMap](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/global_access_block.go#L88)
+
+### [plugins](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/plugins.go#L28)
+
+- [should exist a x-hello-world header](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/plugins.go#L35)
+
+### [Configmap - limit-rate](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/limit_rate.go#L28)
+
+- [Check limit-rate config](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/limit_rate.go#L36)
+
+### [Configure OpenTracing](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L47)
+
+- [should not exists opentracing directive](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L57)
+- [should exists opentracing directive when is enabled](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L70)
+- [should not exists opentracing_operation_name directive when is empty](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L84)
+- [should exists opentracing_operation_name directive when is configured](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L99)
+- [should not exists opentracing_location_operation_name directive when is empty](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L114)
+- [should exists opentracing_location_operation_name directive when is configured](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L129)
+- [should enable opentracing using zipkin](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L144)
+- [should enable opentracing using jaeger](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L156)
+- [should enable opentracing using jaeger with sampler host](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L168)
+- [should propagate the w3c header when configured with jaeger](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L181)
+- [should enable opentracing using datadog](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/opentracing.go#L225)
+
+### [use-forwarded-headers](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/forwarded_headers.go#L30)
+
+- [should trust X-Forwarded headers when setting is true](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/forwarded_headers.go#L40)
+- [should not trust X-Forwarded headers when setting is false](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/forwarded_headers.go#L90)
+
+### [proxy-send-timeout](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_send_timeout.go#L28)
+
+- [should set valid proxy send timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_send_timeout.go#L36)
+- [should not set invalid proxy send timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_send_timeout.go#L52)
+
+### [Add no tls redirect locations](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/no_tls_redirect_locations.go#L28)
+
+- [Check no tls redirect locations config](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/no_tls_redirect_locations.go#L31)
+
+### [settings-global-rate-limit](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/globalratelimit.go#L30)
+
+- [generates correct NGINX configuration](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/globalratelimit.go#L38)
+
+### [add-headers](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/custom_header.go#L30)
+
+- [Add a custom header](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/custom_header.go#L40)
+- [Add multiple custom headers](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/custom_header.go#L65)
+
+### [hash size](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/hash-size.go#L27)
+
+- [should set server_names_hash_bucket_size](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/hash-size.go#L40)
+- [should set server_names_hash_max_size](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/hash-size.go#L48)
+- [should set proxy-headers-hash-bucket-size](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/hash-size.go#L60)
+- [should set proxy-headers-hash-max-size](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/hash-size.go#L68)
+- [should set variables-hash-bucket-size](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/hash-size.go#L80)
+- [should set variables-hash-max-size](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/hash-size.go#L88)
+- [should set vmap-hash-bucket-size](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/hash-size.go#L100)
+
+### [keep-alive keep-alive-requests](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/keep-alive.go#L28)
+
+- [should set keepalive_timeout](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/keep-alive.go#L40)
+- [should set keepalive_requests](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/keep-alive.go#L48)
+- [should set keepalive connection to upstream server](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/keep-alive.go#L59)
+- [should set keep alive connection timeout to upstream server](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/keep-alive.go#L68)
+- [should set the request count to upstream server through one keep alive connection](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/keep-alive.go#L77)
+
+### [[Flag] disable-catch-all](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/disable_catch_all.go#L34)
+
+- [should ignore catch all Ingress](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/disable_catch_all.go#L51)
+- [should delete Ingress updated to catch-all](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/disable_catch_all.go#L70)
+- [should allow Ingress with both a default backend and rules](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/disable_catch_all.go#L108)
+
+### [main-snippet](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/main_snippet.go#L27)
+
+- [should add value of main-snippet setting to nginx config](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/main_snippet.go#L31)
+
+### [[SSL] TLS protocols, ciphers and headers)](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/tls.go#L31)
+
+- [setting cipher suite](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/tls.go#L65)
+- [enforcing TLS v1.0](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/tls.go#L87)
+- [setting max-age parameter](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/tls.go#L133)
+- [setting includeSubDomains parameter](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/tls.go#L149)
+- [setting preload parameter](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/tls.go#L168)
+- [overriding what's set from the upstream](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/tls.go#L188)
+- [should not use ports during the HTTP to HTTPS redirection](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/tls.go#L209)
+- [should not use ports or X-Forwarded-Host during the HTTP to HTTPS redirection](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/tls.go#L227)
+
+### [Configmap change](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/configmap_change.go#L29)
+
+- [should reload after an update in the configuration](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/configmap_change.go#L36)
+
+### [proxy-read-timeout](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_read_timeout.go#L28)
+
+- [should set valid proxy read timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_read_timeout.go#L36)
+- [should not set invalid proxy read timeouts using configmap values](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/proxy_read_timeout.go#L52)
+
+### [[Security] modsecurity-snippet](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/modsecurity_snippet.go#L27)
+
+- [should add value of modsecurity-snippet setting to nginx config](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/modsecurity_snippet.go#L30)
+
+### [OCSP](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/ocsp/ocsp.go#L42)
+
+- [should enable OCSP and contain stapling information in the connection](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/ocsp/ocsp.go#L49)
+
+### [reuse-port](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/reuse-port.go#L27)
+
+- [reuse port should be enabled by default](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/reuse-port.go#L38)
+- [reuse port should be disabled](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/reuse-port.go#L44)
+- [reuse port should be enabled](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/settings/reuse-port.go#L52)
+
+### [[Shutdown] Graceful shutdown with pending request](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/gracefulshutdown/slow_requests.go#L28)
+
+- [should let slow requests finish before shutting down](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/gracefulshutdown/slow_requests.go#L36)
+
+### [[Shutdown] ingress controller](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/gracefulshutdown/shutdown.go#L33)
+
+- [should shutdown in less than 60 secons without pending connections](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/gracefulshutdown/shutdown.go#L43)
+- [should shutdown after waiting 60 seconds for pending connections to be closed](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/gracefulshutdown/shutdown.go#L64)
+- [should shutdown after waiting 150 seconds for pending connections to be closed](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/gracefulshutdown/shutdown.go#L109)
+
+### [[Service] backend status code 503](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_backend.go#L32)
+
+- [should return 503 when backend service does not exist](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_backend.go#L35)
+- [should return 503 when all backend service endpoints are unavailable](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_backend.go#L53)
+
+### [[Service] Type ExternalName](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_externalname.go#L37)
+
+- [works with external name set to incomplete fqdn](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_externalname.go#L40)
+- [should return 200 for service type=ExternalName without a port defined](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_externalname.go#L73)
+- [should return 200 for service type=ExternalName with a port defined](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_externalname.go#L107)
+- [should return status 502 for service type=ExternalName with an invalid host](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_externalname.go#L148)
+- [should return 200 for service type=ExternalName using a port name](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_externalname.go#L179)
+- [should return 200 for service type=ExternalName using FQDN with trailing dot](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_externalname.go#L221)
+- [should update the external name after a service update](https://github.com/kubernetes/ingress-nginx/tree/master/test/e2e/servicebackend/service_externalname.go#L252)
diff --git a/docs/enhancements/20190815-zone-aware-routing.md b/docs/enhancements/20190815-zone-aware-routing.md
index 7000fb6fd..357e8ad92 100644
--- a/docs/enhancements/20190815-zone-aware-routing.md
+++ b/docs/enhancements/20190815-zone-aware-routing.md
@@ -17,15 +17,13 @@ status: implementable
## Table of Contents
-- [Availability zone aware routing](#availability-zone-aware-routing)
- - [Table of Contents](#table-of-contents)
- - [Summary](#summary)
- - [Motivation](#motivation)
- - [Goals](#goals)
- - [Non-Goals](#non-goals)
- - [Proposal](#proposal)
- - [Implementation History](#implementation-history)
- - [Drawbacks [optional]](#drawbacks-optional)
+- [Summary](#summary)
+- [Motivation](#motivation)
+ - [Goals](#goals)
+ - [Non-Goals](#non-goals)
+- [Proposal](#proposal)
+- [Implementation History](#implementation-history)
+- [Drawbacks [optional]](#drawbacks-optional)
## Summary
@@ -41,7 +39,7 @@ inter-zone traffic and usually costs extra money.
At the time of this writing, GCP charges $0.01 per GB of inter-zone egress traffic according to https://cloud.google.com/compute/network-pricing.
-According to [https://datapath.io/resources/blog/what-are-aws-data-transfer-costs-and-how-to-minimize-them/](https://web.archive.org/web/20201008160149/https://datapath.io/resources/blog/what-are-aws-data-transfer-costs-and-how-to-minimize-them/) Amazon also charges the same amount of money as GCP for cross-zone, egress traffic.
+According to https://datapath.io/resources/blog/what-are-aws-data-transfer-costs-and-how-to-minimize-them/ Amazon also charges the same amount of money as GCP for cross-zone, egress traffic.
This can be a lot of money depending on once's traffic. By teaching ingress-nginx about zones we can eliminate or at least decrease this cost.
diff --git a/docs/enhancements/20231001-split-containers.md b/docs/enhancements/20231001-split-containers.md
deleted file mode 100644
index 3c2e85094..000000000
--- a/docs/enhancements/20231001-split-containers.md
+++ /dev/null
@@ -1,110 +0,0 @@
-# Proposal to split containers
-
-* All the NGINX files should live on one container
- * No file other than NGINX files should exist on this container
- * This includes not mounting the service account
-* All the controller files should live on a different container
- * Controller container should have bare minimum to work (just go program)
- * ServiceAccount should be mounted just on controller
-
-* Inside nginx container, there should be a really small http listener just able
-to start, stop and reload NGINX
-
-## Roadmap (what needs to be done)
-* Map what needs to be done to mount the SA just on controller container
-* Map all the required files for NGINX to work
-* Map all the required network calls between controller and NGINX
- * eg.: Dynamic lua reconfiguration
-* Map problematic features that will need attention
- * SSLPassthrough today happens on controller process and needs to happen on NGINX
-
-### Ports and endpoints on NGINX container
-* Public HTTP/HTTPs port - 80 and 443
-* Lua configuration port - 10246 (HTTP) and 10247 (Stream)
-* 3333 (temp) - Dataplane controller http server
- * /reload - (POST) Reloads the configuration.
- * "config" argument is the location of temporary file that should be used / moved to nginx.conf
- * /test - (POST) Test the configuration of a given file location
- * "config" argument is the location of temporary file that should be tested
-
-### Mounting empty SA on controller container
-
-```yaml
-kind: Pod
-apiVersion: v1
-metadata:
- name: test
-spec:
- containers:
- - name: nginx
- image: nginx:latest
- ports:
- - containerPort: 80
- - name: othernginx
- image: alpine:latest
- command: ["/bin/sh"]
- args: ["-c", "while true; do date; sleep 3; done"]
- volumeMounts:
- - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
- name: emptysecret
- volumes:
- - name: emptysecret
- emptyDir:
- sizeLimit: 1Mi
-```
-
-### Mapped folders on NGINX configuration
-**WARNING** We need to be aware of inter mount containers and inode problems. If we
-mount a file instead of a directory, it may take time to reflect the file value on
-the target container
-
-* "/etc/nginx/lua/?.lua;/etc/nginx/lua/vendor/?.lua;;"; - Lua scripts
-* "/var/log/nginx" - NGINX logs
-* "/tmp/nginx (nginx.pid)" - NGINX pid directory / file, fcgi socket, etc
-* " /etc/nginx/geoip" - GeoIP database directory - OK - /etc/ingress-controller/geoip
-* /etc/nginx/mime.types - Mime types
-* /etc/ingress-controller/ssl - SSL directory (fake cert, auth cert)
-* /etc/ingress-controller/auth - Authentication files
-* /etc/nginx/modsecurity - Modsecurity configuration
-* /etc/nginx/owasp-modsecurity-crs - Modsecurity rules
-* /etc/nginx/tickets.key - SSL tickets - OK - /etc/ingress-controller/tickets.key
-* /etc/nginx/opentelemetry.toml - OTEL config - OK - /etc/ingress-controller/telemetry
-* /etc/nginx/opentracing.json - Opentracing config - OK - /etc/ingress-controller/telemetry
-* /etc/nginx/modules - NGINX modules
-* /etc/nginx/fastcgi_params (maybe) - fcgi params
-* /etc/nginx/template - Template, may be used by controller only
-
-##### List of modules
-```
-ngx_http_auth_digest_module.so ngx_http_modsecurity_module.so
-ngx_http_brotli_filter_module.so ngx_http_opentracing_module.so
-ngx_http_brotli_static_module.so ngx_stream_geoip2_module.so
-ngx_http_geoip2_module.so
-```
-
-##### List of files that may be removed
-```
--rw-r--r-- 1 www-data www-data 1077 Jun 23 19:44 fastcgi.conf
--rw-r--r-- 1 www-data www-data 1077 Jun 23 19:44 fastcgi.conf.default
--rw-r--r-- 1 www-data www-data 1007 Jun 23 19:44 fastcgi_params
--rw-r--r-- 1 www-data www-data 1007 Jun 23 19:44 fastcgi_params.default
-drwxr-xr-x 2 www-data www-data 4096 Jun 23 19:34 geoip
--rw-r--r-- 1 www-data www-data 2837 Jun 23 19:44 koi-utf
--rw-r--r-- 1 www-data www-data 2223 Jun 23 19:44 koi-win
-drwxr-xr-x 6 www-data www-data 4096 Sep 19 14:13 lua
--rw-r--r-- 1 www-data www-data 5349 Jun 23 19:44 mime.types
--rw-r--r-- 1 www-data www-data 5349 Jun 23 19:44 mime.types.default
-drwxr-xr-x 2 www-data www-data 4096 Jun 23 19:44 modsecurity
-drwxr-xr-x 2 www-data www-data 4096 Jun 23 19:44 modules
--rw-r--r-- 1 www-data www-data 18275 Oct 1 21:28 nginx.conf
--rw-r--r-- 1 www-data www-data 2656 Jun 23 19:44 nginx.conf.default
--rwx------ 1 www-data www-data 420 Oct 1 21:28 opentelemetry.toml
--rw-r--r-- 1 www-data www-data 2 Oct 1 21:28 opentracing.json
-drwxr-xr-x 7 www-data www-data 4096 Jun 23 19:44 owasp-modsecurity-crs
--rw-r--r-- 1 www-data www-data 636 Jun 23 19:44 scgi_params
--rw-r--r-- 1 www-data www-data 636 Jun 23 19:44 scgi_params.default
-drwxr-xr-x 2 www-data www-data 4096 Sep 19 14:13 template
--rw-r--r-- 1 www-data www-data 664 Jun 23 19:44 uwsgi_params
--rw-r--r-- 1 www-data www-data 664 Jun 23 19:44 uwsgi_params.default
--rw-r--r-- 1 www-data www-data 3610 Jun 23 19:44 win-utf
-```
diff --git a/docs/examples/PREREQUISITES.md b/docs/examples/PREREQUISITES.md
index 4f9f80baf..c03dd095e 100644
--- a/docs/examples/PREREQUISITES.md
+++ b/docs/examples/PREREQUISITES.md
@@ -26,7 +26,7 @@ Note: If using CA Authentication, described below, you will need to sign the ser
CA Authentication also known as Mutual Authentication allows both the server and client to verify each others
identity via a common CA.
-We have a CA Certificate which we usually obtain from a Certificate Authority and use that to sign
+We have a CA Certificate which we obtain usually from a Certificate Authority and use that to sign
both our server certificate and client certificate. Then every time we want to access our backend, we must
pass the client certificate.
@@ -54,15 +54,13 @@ openssl x509 -req -sha256 -days 365 -in client.csr -CA ca.crt -CAkey ca.key -set
Once this is complete you can continue to follow the instructions [here](./auth/client-certs/README.md#creating-certificate-secrets)
-
-
## Test HTTP Service
All examples that require a test HTTP Service use the standard http-svc pod,
which you can deploy as follows
```console
-$ kubectl create -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/http-svc.yaml
+$ kubectl create -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/http-svc.yaml
service "http-svc" created
replicationcontroller "http-svc" created
diff --git a/docs/examples/affinity/cookie/README.md b/docs/examples/affinity/cookie/README.md
index e66503dd7..670d345e3 100644
--- a/docs/examples/affinity/cookie/README.md
+++ b/docs/examples/affinity/cookie/README.md
@@ -10,18 +10,15 @@ Session affinity can be configured using the following annotations:
| --- | --- | --- |
|nginx.ingress.kubernetes.io/affinity|Type of the affinity, set this to `cookie` to enable session affinity|string (NGINX only supports `cookie`)|
|nginx.ingress.kubernetes.io/affinity-mode|The affinity mode defines how sticky a session is. Use `balanced` to redistribute some sessions when scaling pods or `persistent` for maximum stickiness.|`balanced` (default) or `persistent`|
-|nginx.ingress.kubernetes.io/affinity-canary-behavior|Defines session affinity behavior of canaries. By default the behavior is `sticky`, and canaries respect session affinity configuration. Set this to `legacy` to restore original canary behavior, when session affinity parameters were not respected.|`sticky` (default) or `legacy`|
|nginx.ingress.kubernetes.io/session-cookie-name|Name of the cookie that will be created|string (defaults to `INGRESSCOOKIE`)|
-|nginx.ingress.kubernetes.io/session-cookie-secure|Set the cookie as secure regardless the protocol of the incoming request|`"true"` or `"false"`|
|nginx.ingress.kubernetes.io/session-cookie-path|Path that will be set on the cookie (required if your [Ingress paths][ingress-paths] use regular expressions)|string (defaults to the currently [matched path][ingress-paths])|
-|nginx.ingress.kubernetes.io/session-cookie-domain|Domain that will be set on the cookie|string|
-|nginx.ingress.kubernetes.io/session-cookie-samesite|`SameSite` attribute to apply to the cookie|Browser accepted values are `None`, `Lax`, and `Strict`|
+|nginx.ingress.kubernetes.io/session-cookie-samesite|SameSite attribute to apply to the cookie|Browser accepted values are `None`, `Lax`, and `Strict`|
|nginx.ingress.kubernetes.io/session-cookie-conditional-samesite-none|Will omit `SameSite=None` attribute for older browsers which reject the more-recently defined `SameSite=None` value|`"true"` or `"false"`
|nginx.ingress.kubernetes.io/session-cookie-max-age|Time until the cookie expires, corresponds to the `Max-Age` cookie directive|number of seconds|
|nginx.ingress.kubernetes.io/session-cookie-expires|Legacy version of the previous annotation for compatibility with older browsers, generates an `Expires` cookie directive by adding the seconds to the current date|number of seconds|
|nginx.ingress.kubernetes.io/session-cookie-change-on-failure|When set to `false` nginx ingress will send request to upstream pointed by sticky cookie even if previous attempt failed. When set to `true` and previous attempt failed, sticky cookie will be changed to point to another upstream.|`true` or `false` (defaults to `false`)|
-You can create the [session affinity example Ingress](ingress.yaml) to test this:
+You can create the [example Ingress](ingress.yaml) to test this:
```console
kubectl create -f ingress.yaml
@@ -50,7 +47,7 @@ Annotations:
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
- 7s 7s 1 {ingress-nginx-controller } Normal CREATE default/nginx-test
+ 7s 7s 1 {nginx-ingress-controller } Normal CREATE default/nginx-test
$ curl -I http://stickyingress.example.com
@@ -67,15 +64,13 @@ Accept-Ranges: bytes
```
In the example above, you can see that the response contains a `Set-Cookie` header with the settings we have defined.
-This cookie is created by the Ingress-Nginx Controller, it contains a randomly generated key corresponding to the upstream used for that request (selected using [consistent hashing][consistent-hashing]) and has an `Expires` directive.
-If a client sends a cookie that doesn't correspond to an upstream, NGINX selects an upstream and creates a corresponding cookie.
+This cookie is created by NGINX, it contains a randomly generated key corresponding to the upstream used for that request (selected using [consistent hashing][consistent-hashing]) and has an `Expires` directive.
+If the user changes this cookie, NGINX creates a new one and redirects the user to another upstream.
If the backend pool grows NGINX will keep sending the requests through the same server of the first request, even if it's overloaded.
When the backend server is removed, the requests are re-routed to another upstream server. This does not require the cookie to be updated because the key's [consistent hash][consistent-hashing] will change.
-## Caveats
-
When you have a Service pointing to more than one Ingress, with only one containing affinity configuration, the first created Ingress will be used.
This means that you can face the situation that you've configured session affinity on one Ingress and it doesn't work because the Service is pointing to another Ingress that doesn't configure this.
diff --git a/docs/examples/affinity/cookie/ingress-samesite.yaml b/docs/examples/affinity/cookie/ingress-samesite.yaml
index 2f7022ef7..42d1c2e2d 100644
--- a/docs/examples/affinity/cookie/ingress-samesite.yaml
+++ b/docs/examples/affinity/cookie/ingress-samesite.yaml
@@ -1,30 +1,25 @@
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: cookie-samesite-none
annotations:
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "SSNONE"
- nginx.ingress.kubernetes.io/session-cookie-secure: "true"
nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
nginx.ingress.kubernetes.io/session-cookie-samesite: "None"
nginx.ingress.kubernetes.io/session-cookie-conditional-samesite-none: "true" # omits SameSite=None for older browsers which reject cookies with SameSite=None
spec:
- ingressClassName: nginx
rules:
- host: stickyingress-samesite-none.example.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: http-svc
- port:
- number: 80
+ - backend:
+ serviceName: http-svc
+ servicePort: 80
+ path: /
---
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: cookie-samesite-strict
@@ -35,15 +30,11 @@ metadata:
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
nginx.ingress.kubernetes.io/session-cookie-samesite: "Strict"
spec:
- ingressClassName: nginx
rules:
- host: stickyingress-samesite-strict.example.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: http-svc
- port:
- number: 80
+ - backend:
+ serviceName: http-svc
+ servicePort: 80
+ path: /
diff --git a/docs/examples/affinity/cookie/ingress.yaml b/docs/examples/affinity/cookie/ingress.yaml
index 4ca9fbc09..57edbdbd3 100644
--- a/docs/examples/affinity/cookie/ingress.yaml
+++ b/docs/examples/affinity/cookie/ingress.yaml
@@ -1,4 +1,4 @@
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: nginx-test
@@ -9,15 +9,11 @@ metadata:
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
spec:
- ingressClassName: nginx
rules:
- host: stickyingress.example.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: http-svc
- port:
- number: 80
+ - backend:
+ serviceName: http-svc
+ servicePort: 80
+ path: /
diff --git a/docs/examples/auth/basic/README.md b/docs/examples/auth/basic/README.md
index 5e890df80..194bacb3b 100644
--- a/docs/examples/auth/basic/README.md
+++ b/docs/examples/auth/basic/README.md
@@ -3,8 +3,6 @@
This example shows how to add authentication in a Ingress rule using a secret that contains a file generated with `htpasswd`.
It's important the file generated is named `auth` (actually - that the secret has a key `data.auth`), otherwise the ingress-controller returns a 503.
-## Create htpasswd file
-
```console
$ htpasswd -c auth foo
New password:
@@ -13,15 +11,11 @@ Re-type new password:
Adding password for user foo
```
-## Convert htpasswd into a secret
-
```console
$ kubectl create secret generic basic-auth --from-file=auth
secret "basic-auth" created
```
-## Examine secret
-
```console
$ kubectl get secret basic-auth -o yaml
apiVersion: v1
@@ -34,11 +28,9 @@ metadata:
type: Opaque
```
-## Using kubectl, create an ingress tied to the basic-auth secret
-
```console
-$ echo "
-apiVersion: networking.k8s.io/v1
+echo "
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: ingress-with-auth
@@ -50,23 +42,17 @@ metadata:
# message to display with an appropriate context why the authentication is required
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - foo'
spec:
- ingressClassName: nginx
rules:
- host: foo.bar.com
http:
paths:
- path: /
- pathType: Prefix
backend:
- service:
- name: http-svc
- port:
- number: 80
+ serviceName: http-svc
+ servicePort: 80
" | kubectl create -f -
```
-## Use curl to confirm authorization is required by the ingress
-
```
$ curl -v http://10.2.29.4/ -H 'Host: foo.bar.com'
* Trying 10.2.29.4...
@@ -94,8 +80,6 @@ $ curl -v http://10.2.29.4/ -H 'Host: foo.bar.com'
* Connection #0 to host 10.2.29.4 left intact
```
-## Use curl with the correct credentials to connect to the ingress
-
```
$ curl -v http://10.2.29.4/ -H 'Host: foo.bar.com' -u 'foo:bar'
* Trying 10.2.29.4...
diff --git a/docs/examples/auth/client-certs/README.md b/docs/examples/auth/client-certs/README.md
index 94cf6c697..a60aa14e7 100644
--- a/docs/examples/auth/client-certs/README.md
+++ b/docs/examples/auth/client-certs/README.md
@@ -1,12 +1,11 @@
# Client Certificate Authentication
It is possible to enable Client-Certificate Authentication by adding additional annotations to your Ingress Resource.
+Before getting started you must have the following Certificates Setup:
-Before getting started you must have the following Certificates configured:
-
-1. CA certificate and Key (Intermediate Certs need to be in CA)
-2. Server Certificate (Signed by CA) and Key (CN should be equal the hostname you will use)
-3. Client Certificate (Signed by CA) and Key
+1. CA certificate and Key(Intermediate Certs need to be in CA)
+2. Server Certificate(Signed by CA) and Key (CN should be equal the hostname you will use)
+3. Client Certificate(Signed by CA) and Key
For more details on the generation process, checkout the Prerequisite [docs](../../PREREQUISITES.md#client-certificate-authentication).
@@ -16,13 +15,13 @@ You can have as many certificates as you want. If they're in the binary DER form
openssl x509 -in certificate.der -inform der -out certificate.crt -outform pem
```
-Then, you can concatenate them all into one file, named 'ca.crt' with the following:
+Then, you can concatenate them all in only one file, named 'ca.crt' as the following:
```bash
cat certificate1.crt certificate2.crt certificate3.crt >> ca.crt
```
-**Note:** Make sure that the Key Size is greater than 1024 and Hashing Algorithm (Digest) is something better than md5
+**Note:** Make sure that the Key Size is greater than 1024 and Hashing Algorithm(Digest) is something better than md5
for each certificate generated. Otherwise you will receive an error.
## Creating Certificate Secrets
@@ -30,7 +29,7 @@ for each certificate generated. Otherwise you will receive an error.
There are many different ways of configuring your secrets to enable Client-Certificate
Authentication to work properly.
-* You can create a secret containing just the CA certificate and another
+1. You can create a secret containing just the CA certificate and another
Secret containing the Server Certificate which is Signed by the CA.
```bash
@@ -38,14 +37,14 @@ Authentication to work properly.
kubectl create secret generic tls-secret --from-file=tls.crt=server.crt --from-file=tls.key=server.key
```
-* You can create a secret containing CA certificate along with the Server
- Certificate that can be used for both TLS and Client Auth.
+2. You can create a secret containing CA certificate along with the Server
+ Certificate, that can be used for both TLS and Client Auth.
```bash
kubectl create secret generic ca-secret --from-file=tls.crt=server.crt --from-file=tls.key=server.key --from-file=ca.crt=ca.crt
```
-* If you want to also enable Certificate Revocation List verification you can
+3. If you want to also enable Certificate Revocation List verification you can
create the secret also containing the CRL file in PEM format:
```bash
kubectl create secret generic ca-secret --from-file=ca.crt=ca.crt --from-file=ca.crl=ca.crl
diff --git a/docs/examples/auth/client-certs/ingress.yaml b/docs/examples/auth/client-certs/ingress.yaml
index 0cd56fcbf..cf5f701b2 100644
--- a/docs/examples/auth/client-certs/ingress.yaml
+++ b/docs/examples/auth/client-certs/ingress.yaml
@@ -1,4 +1,4 @@
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
@@ -15,18 +15,14 @@ metadata:
name: nginx-test
namespace: default
spec:
- ingressClassName: nginx
rules:
- host: mydomain.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: http-svc
- port:
- number: 80
+ - backend:
+ serviceName: http-svc
+ servicePort: 80
+ path: /
tls:
- hosts:
- mydomain.com
diff --git a/docs/examples/auth/external-auth/README.md b/docs/examples/auth/external-auth/README.md
index ad3ee8b09..a08138373 100644
--- a/docs/examples/auth/external-auth/README.md
+++ b/docs/examples/auth/external-auth/README.md
@@ -1,6 +1,6 @@
# External Basic Authentication
-### Example 1
+### Example 1:
Use an external service (Basic Auth) located in `https://httpbin.org`
@@ -13,7 +13,7 @@ NAME HOSTS ADDRESS PORTS AGE
external-auth external-auth-01.sample.com 172.17.4.99 80 13s
$ kubectl get ing external-auth -o yaml
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
@@ -23,20 +23,17 @@ metadata:
name: external-auth
namespace: default
resourceVersion: "2068378"
- selfLink: /apis/networking/v1/namespaces/default/ingresses/external-auth
+ selfLink: /apis/networking/v1beta1/namespaces/default/ingresses/external-auth
uid: 5c388f1d-8970-11e6-9004-080027d2dc94
spec:
rules:
- host: external-auth-01.sample.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: http-svc
- port:
- number: 80
+ - backend:
+ serviceName: http-svc
+ servicePort: 80
+ path: /
status:
loadBalancer:
ingress:
@@ -44,7 +41,7 @@ status:
$
```
-## Test 1: no username/password (expect code 401)
+Test 1: no username/password (expect code 401)
```console
$ curl -k http://172.17.4.99 -v -H 'Host: external-auth-01.sample.com'
@@ -74,8 +71,7 @@ $ curl -k http://172.17.4.99 -v -H 'Host: external-auth-01.sample.com'
* Connection #0 to host 172.17.4.99 left intact
```
-## Test 2: valid username/password (expect code 200)
-
+Test 2: valid username/password (expect code 200)
```
$ curl -k http://172.17.4.99 -v -H 'Host: external-auth-01.sample.com' -u 'user:passwd'
* Rebuilt URL to: http://172.17.4.99/
@@ -122,8 +118,7 @@ BODY:
-no body in request-
```
-## Test 3: invalid username/password (expect code 401)
-
+Test 3: invalid username/password (expect code 401)
```
curl -k http://172.17.4.99 -v -H 'Host: external-auth-01.sample.com' -u 'user:user'
* Rebuilt URL to: http://172.17.4.99/
diff --git a/docs/examples/auth/external-auth/ingress.yaml b/docs/examples/auth/external-auth/ingress.yaml
index 1aa2f36e9..c7a87a240 100644
--- a/docs/examples/auth/external-auth/ingress.yaml
+++ b/docs/examples/auth/external-auth/ingress.yaml
@@ -1,19 +1,15 @@
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/auth-url: "https://httpbin.org/basic-auth/user/passwd"
name: external-auth
spec:
- ingressClassName: nginx
rules:
- host: external-auth-01.sample.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: http-svc
- port:
- number: 80
+ - backend:
+ serviceName: http-svc
+ servicePort: 80
+ path: /
\ No newline at end of file
diff --git a/docs/examples/auth/oauth-external-auth/README.md b/docs/examples/auth/oauth-external-auth/README.md
index b64b0e70a..00f8d45dc 100644
--- a/docs/examples/auth/oauth-external-auth/README.md
+++ b/docs/examples/auth/oauth-external-auth/README.md
@@ -6,7 +6,7 @@ The `auth-url` and `auth-signin` annotations allow you to use an external
authentication provider to protect your Ingress resources.
!!! Important
- This annotation requires `ingress-nginx-controller v0.9.0` or greater.
+ This annotation requires `nginx-ingress-controller v0.9.0` or greater.)
### Key Detail
@@ -32,94 +32,45 @@ metadata:
### Example: OAuth2 Proxy + Kubernetes-Dashboard
This example will show you how to deploy [`oauth2_proxy`](https://github.com/pusher/oauth2_proxy)
-into a Kubernetes cluster and use it to protect the Kubernetes Dashboard using GitHub as the OAuth2 provider.
+into a Kubernetes cluster and use it to protect the Kubernetes Dashboard using github as oAuth2 provider
#### Prepare
1. Install the kubernetes dashboard
- ```console
- kubectl create -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/kubernetes-dashboard/v1.10.1.yaml
- ```
+```console
+kubectl create -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/kubernetes-dashboard/v1.10.1.yaml
+```
-2. Create a [custom GitHub OAuth application](https://github.com/settings/applications/new)
+2. Create a [custom Github OAuth application](https://github.com/settings/applications/new)
- 
+
- - Homepage URL is the FQDN in the Ingress rule, like `https://foo.bar.com`
- - Authorization callback URL is the same as the base FQDN plus `/oauth2/callback`, like `https://foo.bar.com/oauth2/callback`
+- Homepage URL is the FQDN in the Ingress rule, like `https://foo.bar.com`
+- Authorization callback URL is the same as the base FQDN plus `/oauth2/callback`, like `https://foo.bar.com/oauth2/callback`
- 
+
-3. Configure values in the file [`oauth2-proxy.yaml`](https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/auth/oauth-external-auth/oauth2-proxy.yaml) with the values:
+3. Configure oauth2_proxy values in the file [`oauth2-proxy.yaml`](https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/auth/oauth-external-auth/oauth2-proxy.yaml) with the values:
- - OAUTH2_PROXY_CLIENT_ID with the github ``
- - OAUTH2_PROXY_CLIENT_SECRET with the github ``
- - OAUTH2_PROXY_COOKIE_SECRET with value of `python -c 'import os,base64; print(base64.b64encode(os.urandom(16)).decode("ascii"))'`
- - (optional, but recommended) OAUTH2_PROXY_GITHUB_USERS with GitHub usernames to allow to login
- - `__INGRESS_HOST__` with a valid FQDN (e.g. `foo.bar.com`)
- - `__INGRESS_SECRET__` with a Secret with a valid SSL certificate
+- OAUTH2_PROXY_CLIENT_ID with the github ``
+- OAUTH2_PROXY_CLIENT_SECRET with the github ``
+- OAUTH2_PROXY_COOKIE_SECRET with value of `python -c 'import os,base64; print(base64.b64encode(os.urandom(16)).decode("ascii"))'`
-4. Deploy the oauth2 proxy and the ingress rules by running:
+4. Customize the contents of the file [`dashboard-ingress.yaml`](https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/auth/oauth-external-auth/dashboard-ingress.yaml):
- ```console
- $ kubectl create -f oauth2-proxy.yaml
- ```
+Replace `__INGRESS_HOST__` with a valid FQDN and `__INGRESS_SECRET__` with a Secret with a valid SSL certificate.
-#### Test
+5. Deploy the oauth2 proxy and the ingress rules running:
-Test the integration by accessing the configured URL, e.g. `https://foo.bar.com`
+```console
+$ kubectl create -f oauth2-proxy.yaml,dashboard-ingress.yaml
+```
+
+Test the oauth integration accessing the configured URL, like `https://foo.bar.com`

-
-
-
-
-
-### Example: Vouch Proxy + Kubernetes-Dashboard
-
-This example will show you how to deploy [`Vouch Proxy`](https://github.com/vouch/vouch-proxy)
-into a Kubernetes cluster and use it to protect the Kubernetes Dashboard using GitHub as the OAuth2 provider.
-
-#### Prepare
-
-1. Install the kubernetes dashboard
-
- ```console
- kubectl create -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/kubernetes-dashboard/v1.10.1.yaml
- ```
-
-2. Create a [custom GitHub OAuth application](https://github.com/settings/applications/new)
-
- 
-
- - Homepage URL is the FQDN in the Ingress rule, like `https://foo.bar.com`
- - Authorization callback URL is the same as the base FQDN plus `/oauth2/auth`, like `https://foo.bar.com/oauth2/auth`
-
- 
-
-3. Configure Vouch Proxy values in the file [`vouch-proxy.yaml`](https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/auth/oauth-external-auth/vouch-proxy.yaml) with the values:
-
- - VOUCH_COOKIE_DOMAIN with value of ``
- - OAUTH_CLIENT_ID with the github ``
- - OAUTH_CLIENT_SECRET with the github ``
- - (optional, but recommended) VOUCH_WHITELIST with GitHub usernames to allow to login
- - `__INGRESS_HOST__` with a valid FQDN (e.g. `foo.bar.com`)
- - `__INGRESS_SECRET__` with a Secret with a valid SSL certificate
-
-4. Deploy Vouch Proxy and the ingress rules by running:
-
- ```console
- $ kubectl create -f vouch-proxy.yaml
- ```
-
-#### Test
-
-Test the integration by accessing the configured URL, e.g. `https://foo.bar.com`
-
-
-
-
+

diff --git a/docs/examples/auth/oauth-external-auth/dashboard-ingress.yaml b/docs/examples/auth/oauth-external-auth/dashboard-ingress.yaml
new file mode 100644
index 000000000..ade56a9e6
--- /dev/null
+++ b/docs/examples/auth/oauth-external-auth/dashboard-ingress.yaml
@@ -0,0 +1,38 @@
+apiVersion: networking.k8s.io/v1beta1
+kind: Ingress
+metadata:
+ annotations:
+ nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
+ nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$escaped_request_uri"
+ name: external-auth-oauth2
+ namespace: kube-system
+spec:
+ rules:
+ - host: __INGRESS_HOST__
+ http:
+ paths:
+ - backend:
+ serviceName: kubernetes-dashboard
+ servicePort: 80
+ path: /
+
+---
+
+apiVersion: networking.k8s.io/v1beta1
+kind: Ingress
+metadata:
+ name: oauth2-proxy
+ namespace: kube-system
+spec:
+ rules:
+ - host: __INGRESS_HOST__
+ http:
+ paths:
+ - backend:
+ serviceName: oauth2-proxy
+ servicePort: 4180
+ path: /oauth2
+ tls:
+ - hosts:
+ - __INGRESS_HOST__
+ secretName: __INGRESS_SECRET__
diff --git a/docs/examples/auth/oauth-external-auth/oauth2-proxy.yaml b/docs/examples/auth/oauth-external-auth/oauth2-proxy.yaml
index 3d6d41297..b383ab95e 100644
--- a/docs/examples/auth/oauth-external-auth/oauth2-proxy.yaml
+++ b/docs/examples/auth/oauth-external-auth/oauth2-proxy.yaml
@@ -31,9 +31,6 @@ spec:
# docker run -ti --rm python:3-alpine python -c 'import secrets,base64; print(base64.b64encode(base64.b64encode(secrets.token_bytes(16))));'
- name: OAUTH2_PROXY_COOKIE_SECRET
value: SECRET
- # Recommended: remove email-domain=* in args and set an allowlist
- # - name: OAUTH2_PROXY_GITHUB_USERS
- # value: alice,bob
image: quay.io/oauth2-proxy/oauth2-proxy:latest
imagePullPolicy: Always
name: oauth2-proxy
@@ -58,52 +55,3 @@ spec:
targetPort: 4180
selector:
k8s-app: oauth2-proxy
-
----
-
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- name: oauth2-proxy
- namespace: kube-system
-spec:
- ingressClassName: nginx
- rules:
- - host: __INGRESS_HOST__
- http:
- paths:
- - path: /oauth2
- pathType: Prefix
- backend:
- service:
- name: oauth2-proxy
- port:
- number: 4180
- tls:
- - hosts:
- - __INGRESS_HOST__
- secretName: __INGRESS_SECRET__
-
----
-
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- annotations:
- nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
- nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$escaped_request_uri"
- name: external-auth-oauth2
- namespace: kube-system
-spec:
- ingressClassName: nginx
- rules:
- - host: __INGRESS_HOST__
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: kubernetes-dashboard
- port:
- number: 80
diff --git a/docs/examples/auth/oauth-external-auth/vouch-proxy.yaml b/docs/examples/auth/oauth-external-auth/vouch-proxy.yaml
deleted file mode 100644
index 05eae6d11..000000000
--- a/docs/examples/auth/oauth-external-auth/vouch-proxy.yaml
+++ /dev/null
@@ -1,110 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- labels:
- k8s-app: vouch-proxy
- name: vouch-proxy
- namespace: kube-system
-spec:
- replicas: 1
- selector:
- matchLabels:
- k8s-app: vouch-proxy
- template:
- metadata:
- labels:
- k8s-app: vouch-proxy
- spec:
- containers:
- - env:
- - name: VOUCH_ALLOWALLUSERS
- value: true
- # Recommended: remove VOUCH_ALLOWALLUSERS and set an allowlist
- # - name: VOUCH_WHITELIST
- # value: alice,bob
- - name: VOUCH_COOKIE_DOMAIN
- value:
- - name: VOUCH_LISTEN
- value: 0.0.0.0
- - name: VOUCH_DOCUMENT_ROOT
- value: oauth2
- # See https://github.com/vouch/vouch-proxy/tree/master/config for different provider examples
- - name: OAUTH_PROVIDER
- value: github
- - name: OAUTH_CLIENT_ID
- value:
- - name: OAUTH_CLIENT_SECRET
- value:
- image: quay.io/vouch/vouch-proxy:latest
- imagePullPolicy: Always
- name: vouch-proxy
- ports:
- - containerPort: 9090
- protocol: TCP
-
----
-
-apiVersion: v1
-kind: Service
-metadata:
- labels:
- k8s-app: vouch-proxy
- name: vouch-proxy
- namespace: kube-system
-spec:
- ports:
- - name: http
- port: 9090
- protocol: TCP
- targetPort: 9090
- selector:
- k8s-app: vouch-proxy
-
----
-
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- name: vouch-proxy
- namespace: kube-system
-spec:
- ingressClassName: nginx
- rules:
- - host: __INGRESS_HOST__
- http:
- paths:
- - path: /oauth2
- pathType: Prefix
- backend:
- service:
- name: vouch-proxy
- port:
- number: 9090
- tls:
- - hosts:
- - __INGRESS_HOST__
- secretName: __INGRESS_SECRET__
-
----
-
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- annotations:
- nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/validate"
- nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/login?url=$scheme://$http_host$request_uri"
- name: external-auth-oauth2
- namespace: kube-system
-spec:
- ingressClassName: nginx
- rules:
- - host: __INGRESS_HOST__
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: kubernetes-dashboard
- port:
- number: 80
diff --git a/docs/examples/canary/README.md b/docs/examples/canary/README.md
deleted file mode 100644
index 885991a3b..000000000
--- a/docs/examples/canary/README.md
+++ /dev/null
@@ -1,231 +0,0 @@
-# Canary
-
-Ingress Nginx Has the ability to handle canary routing by setting specific
-annotations, the following is an example of how to configure a canary
-deployment with weighted canary routing.
-
-## Create your main deployment and service
-
-This is the main deployment of your application with the service that will be
-used to route to it
-
-```bash
-echo "
----
-# Deployment
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: production
- labels:
- app: production
-spec:
- replicas: 1
- selector:
- matchLabels:
- app: production
- template:
- metadata:
- labels:
- app: production
- spec:
- containers:
- - name: production
- image: registry.k8s.io/ingress-nginx/e2e-test-echo:v1.1.1@sha256:a1e0152e2eeab26e3f6fd3986f3d82b17bc7711717cae5392dcd18dd447ba6ef
- ports:
- - containerPort: 80
- env:
- - name: NODE_NAME
- valueFrom:
- fieldRef:
- fieldPath: spec.nodeName
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: POD_IP
- valueFrom:
- fieldRef:
- fieldPath: status.podIP
----
-# Service
-apiVersion: v1
-kind: Service
-metadata:
- name: production
- labels:
- app: production
-spec:
- ports:
- - port: 80
- targetPort: 80
- protocol: TCP
- name: http
- selector:
- app: production
-" | kubectl apply -f -
-```
-
-## Create the canary deployment and service
-
-This is the canary deployment that will take a weighted amount of requests
-instead of the main deployment
-
-```bash
-echo "
----
-# Deployment
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: canary
- labels:
- app: canary
-spec:
- replicas: 1
- selector:
- matchLabels:
- app: canary
- template:
- metadata:
- labels:
- app: canary
- spec:
- containers:
- - name: canary
- image: registry.k8s.io/ingress-nginx/e2e-test-echo:v1.1.1@sha256:a1e0152e2eeab26e3f6fd3986f3d82b17bc7711717cae5392dcd18dd447ba6ef
- ports:
- - containerPort: 80
- env:
- - name: NODE_NAME
- valueFrom:
- fieldRef:
- fieldPath: spec.nodeName
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: POD_IP
- valueFrom:
- fieldRef:
- fieldPath: status.podIP
----
-# Service
-apiVersion: v1
-kind: Service
-metadata:
- name: canary
- labels:
- app: canary
-spec:
- ports:
- - port: 80
- targetPort: 80
- protocol: TCP
- name: http
- selector:
- app: canary
-" | kubectl apply -f -
-```
-
-## Create Ingress Pointing To Your Main Deployment
-
-Next you will need to expose your main deployment with an ingress resource,
-note there are no canary specific annotations on this ingress
-
-```bash
-echo "
----
-# Ingress
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- name: production
- annotations:
-spec:
- ingressClassName: nginx
- rules:
- - host: echo.prod.mydomain.com
- http:
- paths:
- - pathType: Prefix
- path: /
- backend:
- service:
- name: production
- port:
- number: 80
-" | kubectl apply -f -
-```
-
-## Create Ingress Pointing To Your Canary Deployment
-
-You will then create an Ingress that has the canary specific configuration,
-please pay special notice of the following:
-
-- The host name is identical to the main ingress host name
-- The `nginx.ingress.kubernetes.io/canary: "true"` annotation is required and
- defines this as a canary annotation (if you do not have this the Ingresses
- will clash)
-- The `nginx.ingress.kubernetes.io/canary-weight: "50"` annotation dictates the
- weight of the routing, in this case there is a "50%" chance a request will
- hit the canary deployment over the main deployment
-```bash
-echo "
----
-# Ingress
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- name: canary
- annotations:
- nginx.ingress.kubernetes.io/canary: \"true\"
- nginx.ingress.kubernetes.io/canary-weight: \"50\"
-spec:
- ingressClassName: nginx
- rules:
- - host: echo.prod.mydomain.com
- http:
- paths:
- - pathType: Prefix
- path: /
- backend:
- service:
- name: canary
- port:
- number: 80
-" | kubectl apply -f -
-```
-
-## Testing your setup
-
-You can use the following command to test your setup (replacing
-INGRESS_CONTROLLER_IP with your ingresse controllers IP Address)
-
-```bash
-for i in $(seq 1 10); do curl -s --resolve echo.prod.mydomain.com:80:$INGRESS_CONTROLLER_IP echo.prod.mydomain.com | grep "Hostname"; done
-```
-
-You will get the following output showing that your canary setup is working as
-expected:
-
-```bash
-Hostname: production-5c5f65d859-phqzc
-Hostname: canary-6697778457-zkfjf
-Hostname: canary-6697778457-zkfjf
-Hostname: production-5c5f65d859-phqzc
-Hostname: canary-6697778457-zkfjf
-Hostname: production-5c5f65d859-phqzc
-Hostname: production-5c5f65d859-phqzc
-Hostname: production-5c5f65d859-phqzc
-Hostname: canary-6697778457-zkfjf
-Hostname: production-5c5f65d859-phqzc
-```
diff --git a/docs/examples/chashsubset/deployment.yaml b/docs/examples/chashsubset/deployment.yaml
index 7eb7613ba..9b1bafcb1 100644
--- a/docs/examples/chashsubset/deployment.yaml
+++ b/docs/examples/chashsubset/deployment.yaml
@@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: nginxhello
- image: registry.k8s.io/e2e-test-images/echoserver:2.3
+ image: gcr.io/kubernetes-e2e-test-images/echoserver:2.2
ports:
- containerPort: 8080
env:
@@ -54,7 +54,7 @@ spec:
targetPort: 8080
---
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
@@ -64,15 +64,7 @@ metadata:
name: nginxhello-ingress
namespace: default
spec:
- ingressClassName: nginx
- rules:
- - host: foo.bar.com
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: nginxhello
- port:
- number: 80
+ backend:
+ serviceName: nginxhello
+ servicePort: 80
+
diff --git a/docs/examples/customization/configuration-snippets/README.md b/docs/examples/customization/configuration-snippets/README.md
index 33e7c4bf0..d60a3d1a0 100644
--- a/docs/examples/customization/configuration-snippets/README.md
+++ b/docs/examples/customization/configuration-snippets/README.md
@@ -2,16 +2,13 @@
## Ingress
-The Ingress in [this example](ingress.yaml) adds a custom header to Nginx configuration that only applies to that specific Ingress. If you want to add headers that apply globally to all Ingresses, please have a look at [an example of specifying custom headers](../custom-headers/README.md).
+The Ingress in [this example](ingress.yaml) adds a custom header to Nginx configuration that only applies to that specific Ingress. If you want to add headers that apply globally to all Ingresses, please have a look at [this example](../custom-headers/README.md).
```console
-kubectl apply -f ingress.yaml
+$ kubectl apply -f ingress.yaml
```
## Test
Check if the contents of the annotation are present in the nginx.conf file using:
-
-```console
-kubectl exec ingress-nginx-controller-873061567-4n3k2 -n kube-system -- cat /etc/nginx/nginx.conf
-```
+`kubectl exec ingress-nginx-controller-873061567-4n3k2 -n kube-system -- cat /etc/nginx/nginx.conf`
diff --git a/docs/examples/customization/configuration-snippets/ingress.yaml b/docs/examples/customization/configuration-snippets/ingress.yaml
index 1f0c4f24a..07af3552f 100644
--- a/docs/examples/customization/configuration-snippets/ingress.yaml
+++ b/docs/examples/customization/configuration-snippets/ingress.yaml
@@ -1,4 +1,4 @@
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: nginx-configuration-snippet
@@ -6,15 +6,11 @@ metadata:
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "Request-Id: $req_id";
spec:
- ingressClassName: nginx
rules:
- host: custom.configuration.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: http-svc
- port:
- number: 80
+ - backend:
+ serviceName: http-svc
+ servicePort: 80
+ path: /
diff --git a/docs/examples/customization/custom-configuration/README.md b/docs/examples/customization/custom-configuration/README.md
index 3fc6bbaf6..3ddefe245 100644
--- a/docs/examples/customization/custom-configuration/README.md
+++ b/docs/examples/customization/custom-configuration/README.md
@@ -17,7 +17,7 @@ metadata:
```
```
-curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/customization/custom-configuration/configmap.yaml \
+curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/customization/custom-configuration/configmap.yaml \
| kubectl apply -f -
```
diff --git a/docs/examples/customization/custom-errors/README.md b/docs/examples/customization/custom-errors/README.md
index 2d6e124bb..3a925bed7 100644
--- a/docs/examples/customization/custom-errors/README.md
+++ b/docs/examples/customization/custom-errors/README.md
@@ -2,15 +2,10 @@
This example demonstrates how to use a custom backend to render custom error pages.
-If you are using the Helm Chart, look at [example values](https://github.com/kubernetes/ingress-nginx/blob/main/docs/examples/customization/custom-errors/custom-default-backend.helm.values.yaml) and don't forget to add the [ConfigMap](https://github.com/kubernetes/ingress-nginx/blob/main/docs/examples/customization/custom-errors/custom-default-backend-error_pages.configMap.yaml) to your deployment. Otherwise, continue with [Customized default backend](#customized-default-backend) manual deployment.
-
## Customized default backend
First, create the custom `default-backend`. It will be used by the Ingress controller later on.
-To do that, you can take a look at the [example manifest](https://github.com/kubernetes/ingress-nginx/blob/main/docs/examples/customization/custom-errors/custom-default-backend.yaml)
-in this project's GitHub repository.
-
```
$ kubectl create -f custom-default-backend.yaml
service "nginx-errors" created
@@ -30,7 +25,7 @@ service/nginx-errors ClusterIP 10.0.0.12 80/TCP 10s
## Ingress controller configuration
-If you do not already have an instance of the Ingress-Nginx Controller running, deploy it according to the
+If you do not already have an instance of the NGINX Ingress controller running, deploy it according to the
[deployment guide][deploy], then follow these steps:
1. Edit the `ingress-nginx-controller` Deployment and set the value of the `--default-backend-service` flag to the name of the
@@ -38,12 +33,12 @@ If you do not already have an instance of the Ingress-Nginx Controller running,
2. Edit the `ingress-nginx-controller` ConfigMap and create the key `custom-http-errors` with a value of `404,503`.
-3. Take note of the IP address assigned to the Ingress-Nginx Controller Service.
- ```
- $ kubectl get svc ingress-nginx
- NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
- ingress-nginx ClusterIP 10.0.0.13 80/TCP,443/TCP 10m
- ```
+3. Take note of the IP address assigned to the NGINX Ingress controller Service.
+ ```
+ $ kubectl get svc ingress-nginx
+ NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
+ ingress-nginx ClusterIP 10.0.0.13 80/TCP,443/TCP 10m
+ ```
!!! note
The `ingress-nginx` Service is of type `ClusterIP` in this example. This may vary depending on your environment.
@@ -86,16 +81,3 @@ Vary: Accept-Encoding
To go further with this example, feel free to deploy your own applications and Ingress objects, and validate that the
responses are still in the correct format when a backend returns 503 (eg. if you scale a Deployment down to 0 replica).
-
-## Maintenance page
-
-You can also leverage custom error pages to set a **"_Service under maintenance_" page** for the whole cluster, useful to prevent users from accessing your services while you are performing planned scheduled maintenance.
-
-When enabled, the maintenance page is served to the clients with an HTTP [**503 Service Unavailable**](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) response **status code**.
-
-To do that:
-
-- Enable a **custom error page for the 503 HTTP error**, by following the guide above
-- Set the value of the `--watch-namespace-selector` flag to the name of some non-existent namespace, e.g. `nonexistent-namespace`
- - This effectively prevents the NGINX Ingress Controller from reading `Ingress` resources from any namespace in the Kubernetes cluster
-- Set your `location-snippet` to `return 503;`, to make the NGINX Ingress Controller always return the 503 HTTP error page for all the requests
diff --git a/docs/examples/customization/custom-errors/custom-default-backend-error_pages.configMap.yaml b/docs/examples/customization/custom-errors/custom-default-backend-error_pages.configMap.yaml
deleted file mode 100644
index 303734c90..000000000
--- a/docs/examples/customization/custom-errors/custom-default-backend-error_pages.configMap.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-# Custom error page configMap
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: custom-error-pages
-data:
- 404: |
-
-
- PAGE NOT FOUND
- PAGE NOT FOUND
-
- 503: |
-
-
- CUSTOM SERVICE UNAVAILABLE
- CUSTOM SERVICE UNAVAILABLE
-
diff --git a/docs/examples/customization/custom-errors/custom-default-backend.helm.values.yaml b/docs/examples/customization/custom-errors/custom-default-backend.helm.values.yaml
deleted file mode 100644
index d72001d58..000000000
--- a/docs/examples/customization/custom-errors/custom-default-backend.helm.values.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-controller:
- config:
- custom-http-errors: "404,503"
-defaultBackend:
- enabled: true
- image:
- registry: registry.k8s.io
- image: ingress-nginx/custom-error-pages
- tag: v1.1.1@sha256:8c10776191ae44b5c387b8c7696d8bc17ceec90d7184a3a38b89ac8434b6c56b
- extraVolumes:
- - name: custom-error-pages
- configMap:
- name: custom-error-pages
- items:
- - key: "404"
- path: "404.html"
- - key: "503"
- path: "503.html"
- extraVolumeMounts:
- - name: custom-error-pages
- mountPath: /www
diff --git a/docs/examples/customization/custom-errors/custom-default-backend.yaml b/docs/examples/customization/custom-errors/custom-default-backend.yaml
index 088ca1374..70096bdbe 100644
--- a/docs/examples/customization/custom-errors/custom-default-backend.yaml
+++ b/docs/examples/customization/custom-errors/custom-default-backend.yaml
@@ -36,7 +36,7 @@ spec:
spec:
containers:
- name: nginx-error-server
- image: registry.k8s.io/ingress-nginx/custom-error-pages:v1.1.1@sha256:8c10776191ae44b5c387b8c7696d8bc17ceec90d7184a3a38b89ac8434b6c56b
+ image: quay.io/kubernetes-ingress-controller/custom-error-pages-amd64:0.3
ports:
- containerPort: 8080
# Setting the environment variable DEBUG we can see the headers sent
@@ -44,19 +44,3 @@ spec:
# env:
# - name: DEBUG
# value: "true"
-
- # Mounting custom error page from configMap
- # volumeMounts:
- # - name: custom_error_pages
- # mountPath: /www
-
- # Mounting custom error page from configMap
- # volumes:
- # - name: custom_error_pages
- # configMap:
- # name: custom_error_pages
- # items:
- # - key: "404"
- # path: "404.html"
- # - key: "503"
- # path: "503.html"
diff --git a/docs/examples/customization/custom-headers/README.md b/docs/examples/customization/custom-headers/README.md
index 0da12582f..99af78408 100644
--- a/docs/examples/customization/custom-headers/README.md
+++ b/docs/examples/customization/custom-headers/README.md
@@ -1,40 +1,22 @@
# Custom Headers
-## Caveats
-
-Changes to the custom header config maps do not force a reload of the ingress-nginx-controllers.
-
-### Workaround
-
-To work around this limitation, perform a rolling restart of the deployment.
-
-## Example
-
-This example demonstrates configuration of the Ingress-Nginx Controller via
+This example demonstrates configuration of the nginx ingress controller via
a ConfigMap to pass a custom list of headers to the upstream
server.
[custom-headers.yaml](custom-headers.yaml) defines a ConfigMap in the `ingress-nginx` namespace named `custom-headers`, holding several custom X-prefixed HTTP headers.
```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/customization/custom-headers/custom-headers.yaml
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/customization/custom-headers/custom-headers.yaml
```
[configmap.yaml](configmap.yaml) defines a ConfigMap in the `ingress-nginx` namespace named `ingress-nginx-controller`. This controls the [global configuration](../../../user-guide/nginx-configuration/configmap.md) of the ingress controller, and already exists in a standard installation. The key `proxy-set-headers` is set to cite the previously-created `ingress-nginx/custom-headers` ConfigMap.
```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/customization/custom-headers/configmap.yaml
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/customization/custom-headers/configmap.yaml
```
-The Ingress-Nginx Controller will read the `ingress-nginx/ingress-nginx-controller` ConfigMap, find the `proxy-set-headers` key, read HTTP headers from the `ingress-nginx/custom-headers` ConfigMap, and include those HTTP headers in all requests flowing from nginx to the backends.
-
-
-The above example was for passing a custom list of headers to the upstream server.
-To pass the custom headers before sending response traffic to the client, use the add-headers key:
-
-```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/customization/custom-headers/configmap-client-response.yaml
-```
+The nginx ingress controller will read the `ingress-nginx/ingress-nginx-controller` ConfigMap, find the `proxy-set-headers` key, read HTTP headers from the `ingress-nginx/custom-headers` ConfigMap, and include those HTTP headers in all requests flowing from nginx to the backends.
## Test
diff --git a/docs/examples/customization/custom-headers/configmap-client-response.yaml b/docs/examples/customization/custom-headers/configmap-client-response.yaml
deleted file mode 100644
index 3213de3f2..000000000
--- a/docs/examples/customization/custom-headers/configmap-client-response.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-apiVersion: v1
-data:
- add-headers: "ingress-nginx/custom-headers"
-kind: ConfigMap
-metadata:
- name: ingress-nginx-controller
- namespace: ingress-nginx
- labels:
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/part-of: ingress-nginx
\ No newline at end of file
diff --git a/docs/examples/customization/external-auth-headers/Makefile b/docs/examples/customization/external-auth-headers/Makefile
new file mode 100644
index 000000000..1ee7e06ac
--- /dev/null
+++ b/docs/examples/customization/external-auth-headers/Makefile
@@ -0,0 +1,23 @@
+all: push
+
+TAG=0.1
+PREFIX?=electroma/ingress-demo-
+ARCH?=amd64
+GOLANG_VERSION=1.9
+TEMP_DIR:=$(shell mktemp -d)
+
+build: clean
+ CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -o authsvc/authsvc authsvc/authsvc.go
+ CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -o echosvc/echosvc echosvc/echosvc.go
+
+container: build
+ docker build --pull -t $(PREFIX)authsvc-$(ARCH):$(TAG) authsvc
+ docker build --pull -t $(PREFIX)echosvc-$(ARCH):$(TAG) echosvc
+
+push: container
+ docker push $(PREFIX)authsvc-$(ARCH):$(TAG)
+ docker push $(PREFIX)echosvc-$(ARCH):$(TAG)
+
+clean:
+ rm -f authsvc/authsvc echosvc/echosvc
+
diff --git a/docs/examples/customization/external-auth-headers/README.md b/docs/examples/customization/external-auth-headers/README.md
index 946088b4b..9aaf6864b 100644
--- a/docs/examples/customization/external-auth-headers/README.md
+++ b/docs/examples/customization/external-auth-headers/README.md
@@ -1,7 +1,7 @@
# External authentication, authentication service response headers propagation
This example demonstrates propagation of selected authentication service response headers
-to a backend service.
+to backend service.
Sample configuration includes:
@@ -37,7 +37,7 @@ public-demo-echo-service public-demo-echo-service.kube.local 80
secure-demo-echo-service secure-demo-echo-service.kube.local 80 1m
```
-## Test 1: public service with no auth header
+Test 1: public service with no auth header
```console
$ curl -H 'Host: public-demo-echo-service.kube.local' -v 192.168.99.100
@@ -60,7 +60,7 @@ $ curl -H 'Host: public-demo-echo-service.kube.local' -v 192.168.99.100
UserID: , UserRole:
```
-## Test 2: secure service with no auth header
+Test 2: secure service with no auth header
```console
$ curl -H 'Host: secure-demo-echo-service.kube.local' -v 192.168.99.100
@@ -89,7 +89,7 @@ $ curl -H 'Host: secure-demo-echo-service.kube.local' -v 192.168.99.100
* Connection #0 to host 192.168.99.100 left intact
```
-## Test 3: public service with valid auth header
+Test 3: public service with valid auth header
```console
$ curl -H 'Host: public-demo-echo-service.kube.local' -H 'User:internal' -v 192.168.99.100
@@ -113,7 +113,7 @@ $ curl -H 'Host: public-demo-echo-service.kube.local' -H 'User:internal' -v 192.
UserID: 1443635317331776148, UserRole: admin
```
-## Test 4: secure service with valid auth header
+Test 4: secure service with valid auth header
```console
$ curl -H 'Host: secure-demo-echo-service.kube.local' -H 'User:internal' -v 192.168.99.100
diff --git a/docs/examples/customization/external-auth-headers/authsvc/Dockerfile b/docs/examples/customization/external-auth-headers/authsvc/Dockerfile
new file mode 100644
index 000000000..90e6ec2cb
--- /dev/null
+++ b/docs/examples/customization/external-auth-headers/authsvc/Dockerfile
@@ -0,0 +1,5 @@
+FROM alpine:3.10
+MAINTAINER Roman Safronov
+COPY authsvc /
+EXPOSE 8080
+ENTRYPOINT ["/authsvc"]
diff --git a/images/ext-auth-example-authsvc/rootfs/authsvc.go b/docs/examples/customization/external-auth-headers/authsvc/authsvc.go
similarity index 100%
rename from images/ext-auth-example-authsvc/rootfs/authsvc.go
rename to docs/examples/customization/external-auth-headers/authsvc/authsvc.go
diff --git a/docs/examples/customization/external-auth-headers/auth-service.yaml b/docs/examples/customization/external-auth-headers/deploy/auth-service.yaml
similarity index 90%
rename from docs/examples/customization/external-auth-headers/auth-service.yaml
rename to docs/examples/customization/external-auth-headers/deploy/auth-service.yaml
index faa345921..3a5dff12c 100644
--- a/docs/examples/customization/external-auth-headers/auth-service.yaml
+++ b/docs/examples/customization/external-auth-headers/deploy/auth-service.yaml
@@ -18,7 +18,7 @@ spec:
terminationGracePeriodSeconds: 60
containers:
- name: auth-service
- image: gcr.io/k8s-staging-ingress-nginx/ext-auth-example-authsvc:v1.0.0
+ image: electroma/ingress-demo-authsvc-amd64:0.1
ports:
- containerPort: 8080
resources:
diff --git a/docs/examples/customization/external-auth-headers/echo-service.yaml b/docs/examples/customization/external-auth-headers/deploy/echo-service.yaml
similarity index 72%
rename from docs/examples/customization/external-auth-headers/echo-service.yaml
rename to docs/examples/customization/external-auth-headers/deploy/echo-service.yaml
index 10244458d..1c3667c7c 100644
--- a/docs/examples/customization/external-auth-headers/echo-service.yaml
+++ b/docs/examples/customization/external-auth-headers/deploy/echo-service.yaml
@@ -18,7 +18,7 @@ spec:
terminationGracePeriodSeconds: 60
containers:
- name: echo-service
- image: registry.k8s.io/ingress-nginx/e2e-test-echo:v1.1.1@sha256:a1e0152e2eeab26e3f6fd3986f3d82b17bc7711717cae5392dcd18dd447ba6ef
+ image: electroma/ingress-demo-echosvc-amd64:0.1
ports:
- containerPort: 8080
resources:
@@ -43,7 +43,7 @@ spec:
selector:
k8s-app: demo-echo-service
---
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: public-demo-echo-service
@@ -52,20 +52,16 @@ metadata:
nginx.ingress.kubernetes.io/auth-response-headers: UserID, UserRole
namespace: default
spec:
- ingressClassName: nginx
rules:
- host: public-demo-echo-service.kube.local
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: demo-echo-service
- port:
- number: 80
+ - backend:
+ serviceName: demo-echo-service
+ servicePort: 80
+ path: /
---
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: secure-demo-echo-service
@@ -74,15 +70,11 @@ metadata:
nginx.ingress.kubernetes.io/auth-response-headers: UserID, UserRole
namespace: default
spec:
- ingressClassName: nginx
rules:
- host: secure-demo-echo-service.kube.local
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: demo-echo-service
- port:
- number: 80
+ - backend:
+ serviceName: demo-echo-service
+ servicePort: 80
+ path: /
diff --git a/docs/examples/customization/external-auth-headers/echosvc/Dockerfile b/docs/examples/customization/external-auth-headers/echosvc/Dockerfile
new file mode 100644
index 000000000..04e4ead42
--- /dev/null
+++ b/docs/examples/customization/external-auth-headers/echosvc/Dockerfile
@@ -0,0 +1,5 @@
+FROM alpine:3.10
+MAINTAINER Roman Safronov
+COPY echosvc /
+EXPOSE 8080
+ENTRYPOINT ["/echosvc"]
diff --git a/magefiles/exec.go b/docs/examples/customization/external-auth-headers/echosvc/echosvc.go
similarity index 60%
rename from magefiles/exec.go
rename to docs/examples/customization/external-auth-headers/echosvc/echosvc.go
index 0acd557c6..ba9702aa0 100644
--- a/magefiles/exec.go
+++ b/docs/examples/customization/external-auth-headers/echosvc/echosvc.go
@@ -1,7 +1,5 @@
-//go:build ignore
-
/*
-Copyright 2023 The Kubernetes Authors.
+Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -19,9 +17,16 @@ limitations under the License.
package main
import (
- "os"
-
- "github.com/magefile/mage/mage"
+ "fmt"
+ "net/http"
)
-func main() { os.Exit(mage.Main()) }
+func handler(w http.ResponseWriter, r *http.Request) {
+ fmt.Fprintf(w, "UserID: %s, UserRole: %s", r.Header.Get("UserID"), r.Header.Get("UserRole"))
+}
+
+// Sample "echo" service displaying UserID and UserRole HTTP request headers
+func main() {
+ http.HandleFunc("/", handler)
+ http.ListenAndServe(":8080", nil)
+}
diff --git a/docs/examples/customization/jwt/README.md b/docs/examples/customization/jwt/README.md
deleted file mode 100644
index a751ccb7b..000000000
--- a/docs/examples/customization/jwt/README.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# Accommodation for JWT
-
-JWT (short for Json Web Token) is an authentication method widely used. Basically an authentication server generates
-a JWT and you then use this token in every request you make to a backend service. The JWT can be quite big and is
-present in every http headers. This means you may have to adapt the max-header size of your nginx-ingress in order
-to support it.
-
-## Symptoms
-
-If you use JWT and you get http 502 error from your ingress, it may be a sign that the buffer size is not big enough.
-
-To be 100% sure look at the logs of the `ingress-nginx-controller` pod, you should see something like this:
-
-```
-upstream sent too big header while reading response header from upstream...
-```
-
-
-## Increase buffer size for headers
-
-In nginx, we want to modify the property `proxy-buffer-size`. The size is arbitrary. It depends on your needs. Be aware
-that a high value can lower the performance of your ingress proxy. In general a value of 16k should get you covered.
-
-### Using helm
-If you're using helm you can simply use the [`config` properties](https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/values.yaml#L37).
-```yaml
- # -- Will add custom configuration options to Nginx https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/
- config:
- proxy-buffer-size: 16k
-```
-
-## Manually in kubernetes config files
-
-If you use an already generated config from for a provider, you will have to change the `controller-configmap.yaml`
-
-```yaml
----
-# Source: ingress-nginx/templates/controller-configmap.yaml
-apiVersion: v1
-kind: ConfigMap
-# ...
-data:
- #...
- proxy-buffer-size: "16k"
-```
-
-References:
- * [Custom Configuration](../custom-configuration/)
\ No newline at end of file
diff --git a/docs/examples/customization/ssl-dh-param/README.md b/docs/examples/customization/ssl-dh-param/README.md
index fcd80757b..9029b834b 100644
--- a/docs/examples/customization/ssl-dh-param/README.md
+++ b/docs/examples/customization/ssl-dh-param/README.md
@@ -1,7 +1,7 @@
# Custom DH parameters for perfect forward secrecy
-This example aims to demonstrate the deployment of an Ingress-Nginx Controller and
-use a ConfigMap to configure a custom Diffie-Hellman parameters file to help with
+This example aims to demonstrate the deployment of an nginx ingress controller and
+use a ConfigMap to configure custom Diffie-Hellman parameters file to help with
"Perfect Forward Secrecy".
## Custom configuration
@@ -27,7 +27,7 @@ $ kubectl create -f configmap.yaml
## Custom DH parameters secret
```console
-$ openssl dhparam 4096 2> /dev/null | base64
+$> openssl dhparam 4096 2> /dev/null | base64
LS0tLS1CRUdJTiBESCBQQVJBTUVURVJ...
```
@@ -52,6 +52,4 @@ $ kubectl create -f ssl-dh-param.yaml
## Test
Check the contents of the configmap is present in the nginx.conf file using:
-```console
-$ kubectl exec ingress-nginx-controller-873061567-4n3k2 -n kube-system -- cat /etc/nginx/nginx.conf
-```
+`kubectl exec ingress-nginx-controller-873061567-4n3k2 -n kube-system -- cat /etc/nginx/nginx.conf`
diff --git a/docs/examples/customization/sysctl/README.md b/docs/examples/customization/sysctl/README.md
index 54fbe4355..2de45b2da 100644
--- a/docs/examples/customization/sysctl/README.md
+++ b/docs/examples/customization/sysctl/README.md
@@ -1,10 +1,10 @@
# Sysctl tuning
-This example aims to demonstrate the use of an Init Container to adjust sysctl default values using `kubectl patch`.
+This example aims to demonstrate the use of an Init Container to adjust sysctl default values using `kubectl patch`
```console
-kubectl patch deployment -n ingress-nginx ingress-nginx-controller \
- --patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/customization/sysctl/patch.json)"
+kubectl patch deployment -n ingress-nginx nginx-ingress-controller \
+ --patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/customization/sysctl/patch.json)"
```
**Changes:**
diff --git a/docs/examples/customization/sysctl/patch.json b/docs/examples/customization/sysctl/patch.json
index 69482c7be..d0cf1f9ae 100644
--- a/docs/examples/customization/sysctl/patch.json
+++ b/docs/examples/customization/sysctl/patch.json
@@ -4,7 +4,7 @@
"spec": {
"initContainers": [{
"name": "sysctl",
- "image": "alpine:3.21",
+ "image": "alpine:3.13",
"securityContext": {
"privileged": true
},
@@ -13,4 +13,4 @@
}
}
}
-}
+}
\ No newline at end of file
diff --git a/docs/examples/docker-registry/README.md b/docs/examples/docker-registry/README.md
index 8ba230f2c..495297a84 100644
--- a/docs/examples/docker-registry/README.md
+++ b/docs/examples/docker-registry/README.md
@@ -1,13 +1,13 @@
# Docker registry
-This example demonstrates how to deploy a [docker registry](https://github.com/docker/distribution) in the cluster and configure Ingress to enable access from the Internet.
+This example demonstrates how to deploy a [docker registry](https://github.com/docker/distribution) in the cluster and configure Ingress enable access from Internet
## Deployment
First we deploy the docker registry in the cluster:
```console
-kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/docker-registry/deployment.yaml
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/docker-registry/deployment.yaml
```
!!! Important
@@ -22,7 +22,7 @@ The next required step is creation of the ingress rules. To do this we have two
Download and edit the yaml deployment replacing `registry.` with a valid DNS name pointing to the ingress controller:
```console
-wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/docker-registry/ingress-without-tls.yaml
+wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/docker-registry/ingress-without-tls.yaml
```
!!! Important
@@ -35,7 +35,7 @@ Please check [deploy a plain http registry](https://docs.docker.com/registry/ins
Download and edit the yaml deployment replacing `registry.` with a valid DNS name pointing to the ingress controller:
```console
-wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/docs/examples/docker-registry/ingress-with-tls.yaml
+wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/docker-registry/ingress-with-tls.yaml
```
Deploy [kube lego](https://github.com/jetstack/kube-lego) use [Let's Encrypt](https://letsencrypt.org/) certificates or edit the ingress rule to use a secret with an existing SSL certificate.
diff --git a/docs/examples/docker-registry/ingress-with-tls.yaml b/docs/examples/docker-registry/ingress-with-tls.yaml
index 1bdd9ed7a..fc277b20f 100644
--- a/docs/examples/docker-registry/ingress-with-tls.yaml
+++ b/docs/examples/docker-registry/ingress-with-tls.yaml
@@ -1,4 +1,4 @@
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
@@ -9,7 +9,6 @@ metadata:
name: docker-registry
namespace: docker-registry
spec:
- ingressClassName: nginx
tls:
- hosts:
- registry.
@@ -18,10 +17,7 @@ spec:
- host: registry.
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: docker-registry
- port:
- number: 5000
+ - backend:
+ serviceName: docker-registry
+ servicePort: 5000
+ path: /
diff --git a/docs/examples/docker-registry/ingress-without-tls.yaml b/docs/examples/docker-registry/ingress-without-tls.yaml
index d0ffc8baf..1ce1b98fb 100644
--- a/docs/examples/docker-registry/ingress-without-tls.yaml
+++ b/docs/examples/docker-registry/ingress-without-tls.yaml
@@ -1,4 +1,4 @@
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
@@ -8,15 +8,11 @@ metadata:
name: docker-registry
namespace: docker-registry
spec:
- ingressClassName: nginx
rules:
- host: registry.
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: docker-registry
- port:
- number: 5000
\ No newline at end of file
+ - backend:
+ serviceName: docker-registry
+ servicePort: 5000
+ path: /
diff --git a/docs/examples/grpc/README.md b/docs/examples/grpc/README.md
index 23126c345..60e696bfd 100644
--- a/docs/examples/grpc/README.md
+++ b/docs/examples/grpc/README.md
@@ -1,157 +1,98 @@
# gRPC
-This example demonstrates how to route traffic to a gRPC service through the Ingress-NGINX controller.
+This example demonstrates how to route traffic to a gRPC service through the
+nginx controller.
## Prerequisites
1. You have a kubernetes cluster running.
-2. You have a domain name such as `example.com` that is configured to route traffic to the Ingress-NGINX controller.
-3. You have the ingress-nginx-controller installed as per docs.
-4. You have a backend application running a gRPC server listening for TCP traffic. If you want, you can use as an example.
-5. You're also responsible for provisioning an SSL certificate for the ingress. So you need to have a valid SSL certificate, deployed as a Kubernetes secret of type `tls`, in the same namespace as the gRPC application.
+2. You have a domain name such as `example.com` that is configured to route
+ traffic to the ingress controller. Replace references to
+ `fortune-teller.stack.build` (the domain name used in this example) to your
+ own domain name (you're also responsible for provisioning an SSL certificate
+ for the ingress).
+3. You have the nginx-ingress controller installed in typical fashion (must be
+ at least
+ [quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.30.0](https://quay.io/kubernetes-ingress-controller/nginx-ingress-controller)
+ for grpc support.
+4. You have a backend application running a gRPC server and listening for TCP
+ traffic. If you prefer, you can use the
+ [fortune-teller](https://github.com/kubernetes/ingress-nginx/tree/master/images/grpc-fortune-teller)
+ application provided here as an example.
-### Step 1: Create a Kubernetes `Deployment` for gRPC app
+### Step 1: kubernetes `Deployment`
-- Make sure your gRPC application pod is running and listening for connections. For example you can try a kubectl command like this below:
- ```console
- $ kubectl get po -A -o wide | grep go-grpc-greeter-server
- ```
-- If you have a gRPC app deployed in your cluster, then skip further notes in this Step 1, and continue from Step 2 below.
+```sh
+$ kubectl create -f app.yaml
+```
-- As an example gRPC application, we can use this app .
+This is a standard kubernetes deployment object. It is running a grpc service
+listening on port `50051`.
-- To create a container image for this app, you can use [this Dockerfile](https://github.com/kubernetes/ingress-nginx/blob/main/images/go-grpc-greeter-server/rootfs/Dockerfile).
+The sample application
+[fortune-teller-app](https://github.com/kubernetes/ingress-nginx/tree/master/images/grpc-fortune-teller)
+is a grpc server implemented in go. Here's the stripped-down implementation:
-- If you use the Dockerfile mentioned above, to create a image, then you can use the following example Kubernetes manifest to create a deployment resource that uses that image. If necessary edit this manifest to suit your needs.
+```go
+func main() {
+ grpcServer := grpc.NewServer()
+ fortune.RegisterFortuneTellerServer(grpcServer, &FortuneTeller{})
+ lis, _ := net.Listen("tcp", ":50051")
+ grpcServer.Serve(lis)
+}
+```
- ```
- cat </go-grpc-greeter-server # Edit this for your reponame
- resources:
- limits:
- cpu: 100m
- memory: 100Mi
- requests:
- cpu: 50m
- memory: 50Mi
- name: go-grpc-greeter-server
- ports:
- - containerPort: 50051
- EOF
- ```
+The takeaway is that we are not doing any TLS configuration on the server (as we
+are terminating TLS at the ingress level, grpc traffic will travel unencrypted
+inside the cluster and arrive "insecure").
-### Step 2: Create the Kubernetes `Service` for the gRPC app
+For your own application you may or may not want to do this. If you prefer to
+forward encrypted traffic to your POD and terminate TLS at the gRPC server
+itself, add the ingress annotation `nginx.ingress.kubernetes.io/backend-protocol: "GRPCS"`.
-- You can use the following example manifest to create a service of type ClusterIP. Edit the name/namespace/label/port to match your deployment/pod.
- ```
- cat < https://proto.stack.build, a protocol buffer / gRPC build service that can use
> to help make it easier for your users to consume your API.
-> See also the specific gRPC settings of NGINX: https://nginx.org/en/docs/http/ngx_http_grpc_module.html
+> See also the specific GRPC settings of NGINX: https://nginx.org/en/docs/http/ngx_http_grpc_module.html
### Notes on using response/request streams
-> `grpc_read_timeout` and `grpc_send_timeout` will be set as `proxy_read_timeout` and `proxy_send_timeout` when you set backend protocol to `GRPC` or `GRPCS`.
-
-1. If your server only does response streaming and you expect a stream to be open longer than 60 seconds, you will have to change the `grpc_read_timeout` to accommodate this.
-2. If your service only does request streaming and you expect a stream to be open longer than 60 seconds, you have to change the
+1. If your server does only response streaming and you expect a stream to be open longer than 60 seconds, you will have to change the `grpc_read_timeout` to accommodate for this.
+2. If your service does only request streaming and you expect a stream to be open longer than 60 seconds, you have to change the
`grpc_send_timeout` and the `client_body_timeout`.
3. If you do both response and request streaming with an open stream longer than 60 seconds, you have to change all three timeouts: `grpc_read_timeout`, `grpc_send_timeout` and `client_body_timeout`.
+
+Values for the timeouts must be specified as e.g. `"1200s"`.
+
+> On the most recent versions of nginx-ingress, changing these timeouts requires using the `nginx.ingress.kubernetes.io/server-snippet` annotation. There are plans for future releases to allow using the Kubernetes annotations to define each timeout separately.
diff --git a/docs/examples/grpc/app.yaml b/docs/examples/grpc/app.yaml
new file mode 100644
index 000000000..acc4060d0
--- /dev/null
+++ b/docs/examples/grpc/app.yaml
@@ -0,0 +1,23 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: fortune-teller-app
+ labels:
+ k8s-app: fortune-teller-app
+ namespace: default
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ k8s-app: fortune-teller-app
+ template:
+ metadata:
+ labels:
+ k8s-app: fortune-teller-app
+ spec:
+ containers:
+ - name: fortune-teller-app
+ image: quay.io/kubernetes-ingress-controller/grpc-fortune-teller:0.1
+ ports:
+ - containerPort: 50051
+ name: grpc
diff --git a/docs/examples/grpc/cert.yaml b/docs/examples/grpc/cert.yaml
new file mode 100644
index 000000000..562c30313
--- /dev/null
+++ b/docs/examples/grpc/cert.yaml
@@ -0,0 +1,7 @@
+apiVersion: "stable.k8s.psg.io/v1"
+kind: "Certificate"
+metadata:
+ name: fortune-teller.stack.build
+ namespace: default
+spec:
+ domain: "fortune-teller.stack.build"
diff --git a/docs/examples/grpc/ingress.yaml b/docs/examples/grpc/ingress.yaml
new file mode 100644
index 000000000..1d76476d1
--- /dev/null
+++ b/docs/examples/grpc/ingress.yaml
@@ -0,0 +1,24 @@
+apiVersion: networking.k8s.io/v1beta1
+kind: Ingress
+metadata:
+ annotations:
+ kubernetes.io/ingress.class: "nginx"
+ nginx.ingress.kubernetes.io/ssl-redirect: "true"
+ nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
+ name: fortune-ingress
+ namespace: default
+spec:
+ rules:
+ - host: fortune-teller.stack.build
+ http:
+ paths:
+ - backend:
+ serviceName: fortune-teller-service
+ servicePort: grpc
+ tls:
+ # This secret must exist beforehand
+ # The cert must also contain the subj-name fortune-teller.stack.build
+ # https://github.com/kubernetes/ingress-nginx/blob/master/docs/examples/PREREQUISITES.md#tls-certificates
+ - secretName: fortune-teller.stack.build
+ hosts:
+ - fortune-teller.stack.build
diff --git a/docs/examples/grpc/svc.yaml b/docs/examples/grpc/svc.yaml
new file mode 100644
index 000000000..7bfa789fd
--- /dev/null
+++ b/docs/examples/grpc/svc.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: fortune-teller-service
+ namespace: default
+spec:
+ selector:
+ k8s-app: fortune-teller-app
+ ports:
+ - port: 50051
+ targetPort: 50051
+ name: grpc
diff --git a/docs/examples/http-svc.yaml b/docs/examples/http-svc.yaml
index 46815fa5d..bd2b34ce9 100644
--- a/docs/examples/http-svc.yaml
+++ b/docs/examples/http-svc.yaml
@@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: http-svc
- image: registry.k8s.io/e2e-test-images/echoserver:2.3
+ image: gcr.io/kubernetes-e2e-test-images/echoserver:2.1
ports:
- containerPort: 8080
env:
diff --git a/docs/examples/index.md b/docs/examples/index.md
index 4efdae39f..04f42ea60 100644
--- a/docs/examples/index.md
+++ b/docs/examples/index.md
@@ -1,12 +1,8 @@
# Ingress examples
-This directory contains a catalog of examples on how to run, configure and scale Ingress.
+This directory contains a catalog of examples on how to run, configure and scale Ingress.
Please review the [prerequisites](PREREQUISITES.md) before trying them.
-The examples on these pages include the `spec.ingressClassName` field which replaces the deprecated `kubernetes.io/ingress.class: nginx` annotation. Users of ingress-nginx < 1.0.0 (Helm chart < 4.0.0) should use the [legacy documentation](https://github.com/kubernetes/ingress-nginx/tree/legacy/docs/examples).
-
-For more information, check out the [Migration to apiVersion networking.k8s.io/v1](../#faq-migration-to-apiversion-networkingk8siov1) guide.
-
Category | Name | Description | Complexity Level
---------| ---- | ----------- | ----------------
Apps | [Docker Registry](docker-registry/README.md) | TODO | TODO
@@ -18,12 +14,11 @@ Customization | [Configuration snippets](customization/configuration-snippets/RE
Customization | [Custom configuration](customization/custom-configuration/README.md) | TODO | TODO
Customization | [Custom DH parameters for perfect forward secrecy](customization/ssl-dh-param/README.md) | TODO | TODO
Customization | [Custom errors](customization/custom-errors/README.md) | serve custom error pages from the default backend | Intermediate
-Customization | [Custom headers](customization/custom-headers/README.md) | set custom headers before sending traffic to backends | Advanced
+Customization | [Custom headers](customization/custom-headers/README.md) | set custom headers before sending traffic to backends | Advanced
Customization | [External authentication with response header propagation](customization/external-auth-headers/README.md) | TODO | TODO
Customization | [Sysctl tuning](customization/sysctl/README.md) | TODO | TODO
Features | [Rewrite](rewrite/README.md) | TODO | TODO
Features | [Session stickiness](affinity/cookie/README.md) | route requests consistently to the same endpoint | Advanced
-Features | [Canary Deployments](canary/README.md) | weighted canary routing to a separate deployment | Intermediate
Scaling | [Static IP](static-ip/README.md) | a single ingress gets a single static IP | Intermediate
TLS | [Multi TLS certificate termination](multi-tls/README.md) | TODO | TODO
TLS | [TLS termination](tls-termination/README.md) | TODO | TODO
diff --git a/docs/examples/multi-tls/README.md b/docs/examples/multi-tls/README.md
index cc990151b..d1e7295d9 100644
--- a/docs/examples/multi-tls/README.md
+++ b/docs/examples/multi-tls/README.md
@@ -2,12 +2,13 @@
This example uses 2 different certificates to terminate SSL for 2 hostnames.
-1. Create tls secrets for foo.bar.com and bar.baz.com as indicated in the yaml
-2. Create [multi-tls.yaml](multi-tls.yaml)
+1. Deploy the controller by creating the rc in the parent dir
+2. Create tls secrets for foo.bar.com and bar.baz.com as indicated in the yaml
+3. Create [multi-tls.yaml](multi-tls.yaml)
This should generate a segment like:
```console
-$ kubectl exec -it ingress-nginx-controller-6vwd1 -- cat /etc/nginx/nginx.conf | grep "foo.bar.com" -B 7 -A 35
+$ kubectl exec -it nginx-ingress-controller-6vwd1 -- cat /etc/nginx/nginx.conf | grep "foo.bar.com" -B 7 -A 35
server {
listen 80;
listen 443 ssl http2;
diff --git a/docs/examples/multi-tls/multi-tls.yaml b/docs/examples/multi-tls/multi-tls.yaml
index d52971326..c616501be 100644
--- a/docs/examples/multi-tls/multi-tls.yaml
+++ b/docs/examples/multi-tls/multi-tls.yaml
@@ -70,7 +70,7 @@ spec:
spec:
containers:
- name: http-svc
- image: registry.k8s.io/e2e-test-images/echoserver:2.3
+ image: gcr.io/kubernetes-e2e-test-images/echoserver:2.1
ports:
- containerPort: 8080
env:
@@ -92,44 +92,37 @@ spec:
fieldPath: status.podIP
---
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: foo-tls
namespace: default
spec:
- ingressClassName: nginx
tls:
- hosts:
- foo.bar.com
# This secret must exist beforehand
# The cert must also contain the subj-name foo.bar.com
- # https://github.com/kubernetes/ingress-nginx/blob/main/docs/examples/PREREQUISITES.md#tls-certificates
+ # https://github.com/kubernetes/ingress-nginx/blob/master/docs/examples/PREREQUISITES.md#tls-certificates
secretName: foobar
- hosts:
- bar.baz.com
# This secret must exist beforehand
# The cert must also contain the subj-name bar.baz.com
- # https://github.com/kubernetes/ingress-nginx/blob/main/docs/examples/PREREQUISITES.md#tls-certificates
+ # https://github.com/kubernetes/ingress-nginx/blob/master/docs/examples/PREREQUISITES.md#tls-certificates
secretName: barbaz
rules:
- host: foo.bar.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: http-svc
- port:
- number: 80
+ - backend:
+ serviceName: http-svc
+ servicePort: 80
+ path: /
- host: bar.baz.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: nginx
- port:
- number: 80
+ - backend:
+ serviceName: nginx
+ servicePort: 80
+ path: /
diff --git a/docs/examples/openpolicyagent/README.md b/docs/examples/openpolicyagent/README.md
deleted file mode 100644
index 8d6337a38..000000000
--- a/docs/examples/openpolicyagent/README.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# OpenPolicyAgent and pathType enforcing
-
-Ingress API allows users to specify different [pathType](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types)
-on Ingress object.
-
-While pathType `Exact` and `Prefix` should allow only a small set of characters, pathType `ImplementationSpecific`
-allows any characters, as it may contain regexes, variables and other features that may be specific of the Ingress
-Controller being used.
-
-This means that the Ingress Admins (the persona who deployed the Ingress Controller) should trust the users
-allowed to use `pathType: ImplementationSpecific`, as this may allow arbitrary configuration, and this
-configuration may end on the proxy (aka Nginx) configuration.
-
-## Example
-The example in this repo uses [Gatekeeper](https://open-policy-agent.github.io/gatekeeper/website/) to block the usage of `pathType: ImplementationSpecific`,
-allowing just a specific list of namespaces to use it.
-
-It is recommended that the admin modifies this rules to enforce a specific set of characters when the usage of ImplementationSpecific
-is allowed, or in ways that best suits their needs.
-
-First, the `ConstraintTemplate` from [template.yaml](template.yaml) will define a rule that validates if the Ingress object
-is being created on an exempted namespace, and case not, will validate its pathType.
-
-Then, the rule `K8sBlockIngressPathType` contained in [rule.yaml](rule.yaml) will define the parameters: what kind of
-object should be verified (Ingress), what are the exempted namespaces, and what kinds of pathType are blocked.
diff --git a/docs/examples/openpolicyagent/rule.yaml b/docs/examples/openpolicyagent/rule.yaml
deleted file mode 100644
index fce305241..000000000
--- a/docs/examples/openpolicyagent/rule.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-apiVersion: constraints.gatekeeper.sh/v1beta1
-kind: K8sBlockIngressPathType
-metadata:
- name: implspecificisblocked
-spec:
- match:
- kinds:
- - apiGroups: ["networking.k8s.io"]
- kinds: ["Ingress"]
- parameters:
- namespacesExceptions:
- - "privileged"
- blockedTypes:
- - "ImplementationSpecific"
diff --git a/docs/examples/openpolicyagent/template.yaml b/docs/examples/openpolicyagent/template.yaml
deleted file mode 100644
index 4302415a2..000000000
--- a/docs/examples/openpolicyagent/template.yaml
+++ /dev/null
@@ -1,40 +0,0 @@
-apiVersion: templates.gatekeeper.sh/v1
-kind: ConstraintTemplate
-metadata:
- name: k8sblockingresspathtype
- annotations:
- metadata.gatekeeper.sh/title: "Block a pathType usage"
- description: >-
- Users should not be able to use specific pathTypes
-spec:
- crd:
- spec:
- names:
- kind: K8sBlockIngressPathType
- validation:
- openAPIV3Schema:
- type: object
- properties:
- blockedTypes:
- type: array
- items:
- type: string
- namespacesExceptions:
- type: array
- items:
- type: string
- targets:
- - target: admission.k8s.gatekeeper.sh
- rego: |
- package K8sBlockIngressPathType
-
- violation[{"msg": msg}] {
- input.review.kind.kind == "Ingress"
- ns := input.review.object.metadata.namespace
- exemptNS := [good | exempts = input.parameters.namespacesExceptions[_] ; good = exempts == ns]
- not any(exemptNS)
- pathType := object.get(input.review.object.spec.rules[_].http.paths[_], "pathType", "")
- blockedPath := [blocked | blockedTypes = input.parameters.blockedTypes[_] ; blocked = blockedTypes == pathType]
- any(blockedPath)
- msg := sprintf("pathType '%v' is not allowed in this namespace", [pathType])
- }
diff --git a/docs/examples/openpolicyagent/tests/should-allow-ns-except.yaml b/docs/examples/openpolicyagent/tests/should-allow-ns-except.yaml
deleted file mode 100644
index 974e83555..000000000
--- a/docs/examples/openpolicyagent/tests/should-allow-ns-except.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- creationTimestamp: null
- name: simple
- namespace: privileged
-spec:
- rules:
- - host: foo1.com
- http:
- paths:
- - backend:
- service:
- name: svc1
- port:
- number: 8080
- path: /bar
- pathType: ImplementationSpecific
diff --git a/docs/examples/openpolicyagent/tests/should-allow.yaml b/docs/examples/openpolicyagent/tests/should-allow.yaml
deleted file mode 100644
index 854aff14c..000000000
--- a/docs/examples/openpolicyagent/tests/should-allow.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- creationTimestamp: null
- name: simple
-spec:
- rules:
- - host: foo.com
- http:
- paths:
- - backend:
- service:
- name: svc1
- port:
- number: 8080
- path: /bar
- pathType: Exact
diff --git a/docs/examples/openpolicyagent/tests/should-deny.yaml b/docs/examples/openpolicyagent/tests/should-deny.yaml
deleted file mode 100644
index b732fdc89..000000000
--- a/docs/examples/openpolicyagent/tests/should-deny.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- creationTimestamp: null
- name: simple
-spec:
- rules:
- - host: foo2.com
- http:
- paths:
- - backend:
- service:
- name: svc1
- port:
- number: 8080
- path: /bar
- pathType: ImplementationSpecific
diff --git a/docs/examples/psp/README.md b/docs/examples/psp/README.md
new file mode 100644
index 000000000..4064ed218
--- /dev/null
+++ b/docs/examples/psp/README.md
@@ -0,0 +1,17 @@
+# Pod Security Policy (PSP)
+
+In most clusters today, by default, all resources (e.g. Deployments and ReplicatSets)
+have permissions to create pods.
+Kubernetes however provides a more fine-grained authorization policy called
+[Pod Security Policy (PSP)](https://kubernetes.io/docs/concepts/policy/pod-security-policy/).
+
+PSP allows the cluster owner to define the permission of each object, for example creating a pod.
+If you have PSP enabled on the cluster, and you deploy ingress-nginx,
+you will need to provide the Deployment with the permissions to create pods.
+
+Before applying any objects, first apply the PSP permissions by running:
+```console
+kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/psp/psp.yaml
+```
+
+Note: PSP permissions must be granted before to the creation of the Deployment and the ReplicaSet.
diff --git a/docs/examples/psp/psp.yaml b/docs/examples/psp/psp.yaml
new file mode 100644
index 000000000..0f859dece
--- /dev/null
+++ b/docs/examples/psp/psp.yaml
@@ -0,0 +1,75 @@
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: ingress-nginx
+
+---
+
+apiVersion: policy/v1beta1
+kind: PodSecurityPolicy
+metadata:
+ name: ingress-nginx
+ namespace: ingress-nginx
+spec:
+ allowedCapabilities:
+ - NET_BIND_SERVICE
+ privileged: false
+ allowPrivilegeEscalation: true
+ # Allow core volume types.
+ volumes:
+ - configMap
+ - secret
+ hostIPC: false
+ hostPID: false
+ runAsUser:
+ # Require the container to run without root privileges.
+ rule: MustRunAsNonRoot
+ supplementalGroups:
+ rule: MustRunAs
+ ranges:
+ # Forbid adding the root group.
+ - min: 1
+ max: 65535
+ fsGroup:
+ rule: MustRunAs
+ ranges:
+ # Forbid adding the root group.
+ - min: 1
+ max: 65535
+ readOnlyRootFilesystem: false
+ seLinux:
+ rule: RunAsAny
+
+---
+
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ name: ingress-nginx-psp
+ namespace: ingress-nginx
+rules:
+- apiGroups: [policy]
+ resources: [podsecuritypolicies]
+ verbs: [use]
+ resourceNames: [ingress-nginx]
+
+---
+
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: ingress-nginx-psp
+ namespace: ingress-nginx
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: ingress-nginx-psp
+subjects:
+- kind: ServiceAccount
+ name: default
+- kind: ServiceAccount
+ name: ingress-nginx
+ namespace: ingress-nginx
+- kind: ServiceAccount
+ name: ingress-nginx-admission
+ namespace: ingress-nginx
diff --git a/docs/examples/rewrite/README.md b/docs/examples/rewrite/README.md
index 16889e0bc..3ad5e4fcd 100644
--- a/docs/examples/rewrite/README.md
+++ b/docs/examples/rewrite/README.md
@@ -1,6 +1,6 @@
# Rewrite
-This example demonstrates how to use `Rewrite` annotations.
+This example demonstrates how to use the Rewrite annotations
## Prerequisites
@@ -15,9 +15,9 @@ Rewriting can be controlled using the following annotations:
|Name|Description|Values|
| --- | --- | --- |
|nginx.ingress.kubernetes.io/rewrite-target|Target URI where the traffic must be redirected|string|
-|nginx.ingress.kubernetes.io/ssl-redirect|Indicates if the location section is only accessible via SSL (defaults to True when Ingress contains a Certificate)|bool|
+|nginx.ingress.kubernetes.io/ssl-redirect|Indicates if the location section is accessible SSL only (defaults to True when Ingress contains a Certificate)|bool|
|nginx.ingress.kubernetes.io/force-ssl-redirect|Forces the redirection to HTTPS even if the Ingress is not TLS Enabled|bool|
-|nginx.ingress.kubernetes.io/app-root|Defines the Application Root that the Controller must redirect if it's in `/` context|string|
+|nginx.ingress.kubernetes.io/app-root|Defines the Application Root that the Controller must redirect if it's in '/' context|string|
|nginx.ingress.kubernetes.io/use-regex|Indicates if the paths defined on an Ingress use regular expressions|bool|
## Examples
@@ -30,34 +30,26 @@ Rewriting can be controlled using the following annotations:
!!! note
[Captured groups](https://www.regular-expressions.info/refcapture.html) are saved in numbered placeholders, chronologically, in the form `$1`, `$2` ... `$n`. These placeholders can be used as parameters in the `rewrite-target` annotation.
-!!! note
- Please see the [FAQ](../../faq.md#validation-of-path) for Validation Of __`path`__
-
Create an Ingress rule with a rewrite annotation:
```console
$ echo '
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
- nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
name: rewrite
namespace: default
spec:
- ingressClassName: nginx
rules:
- host: rewrite.bar.com
http:
paths:
- - path: /something(/|$)(.*)
- pathType: ImplementationSpecific
- backend:
- service:
- name: http-svc
- port:
- number: 80
+ - backend:
+ serviceName: http-svc
+ servicePort: 80
+ path: /something(/|$)(.*)
' | kubectl create -f -
```
@@ -74,7 +66,7 @@ For example, the ingress definition above will result in the following rewrites:
Create an Ingress rule with an app-root annotation:
```
$ echo "
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
@@ -82,18 +74,14 @@ metadata:
name: approot
namespace: default
spec:
- ingressClassName: nginx
rules:
- host: approot.bar.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: http-svc
- port:
- number: 80
+ - backend:
+ serviceName: http-svc
+ servicePort: 80
+ path: /
" | kubectl create -f -
```
@@ -106,6 +94,6 @@ Server: nginx/1.11.10
Date: Mon, 13 Mar 2017 14:57:15 GMT
Content-Type: text/html
Content-Length: 162
-Location: http://approot.bar.com/app1
+Location: http://stickyingress.example.com/app1
Connection: keep-alive
```
diff --git a/docs/examples/static-ip/README.md b/docs/examples/static-ip/README.md
index 992839a24..1f9ea5c96 100644
--- a/docs/examples/static-ip/README.md
+++ b/docs/examples/static-ip/README.md
@@ -1,6 +1,6 @@
# Static IPs
-This example demonstrates how to assign a static-ip to an Ingress on through the Ingress-NGINX controller.
+This example demonstrates how to assign a static-ip to an Ingress on through the Nginx controller.
## Prerequisites
@@ -11,46 +11,46 @@ and that you have an ingress controller [running](../../deploy/) in your cluster
## Acquiring an IP
-Since instances of the ingress nginx controller actually run on nodes in your cluster,
+Since instances of the nginx controller actually run on nodes in your cluster,
by default nginx Ingresses will only get static IPs if your cloudprovider
supports static IP assignments to nodes. On GKE/GCE for example, even though
-nodes get static IPs, the IPs are not retained across upgrades.
+nodes get static IPs, the IPs are not retained across upgrade.
-To acquire a static IP for the ingress-nginx-controller, simply put it
+To acquire a static IP for the nginx ingress controller, simply put it
behind a Service of `Type=LoadBalancer`.
-First, create a loadbalancer Service and wait for it to acquire an IP:
+First, create a loadbalancer Service and wait for it to acquire an IP
```console
$ kubectl create -f static-ip-svc.yaml
-service "ingress-nginx-lb" created
+service "nginx-ingress-lb" created
-$ kubectl get svc ingress-nginx-lb
+$ kubectl get svc nginx-ingress-lb
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
-ingress-nginx-lb 10.0.138.113 104.154.109.191 80:31457/TCP,443:32240/TCP 15m
+nginx-ingress-lb 10.0.138.113 104.154.109.191 80:31457/TCP,443:32240/TCP 15m
```
-Then, update the ingress controller so it adopts the static IP of the Service
+then, update the ingress controller so it adopts the static IP of the Service
by passing the `--publish-service` flag (the example yaml used in the next step
-already has it set to "ingress-nginx-lb").
+already has it set to "nginx-ingress-lb").
```console
-$ kubectl create -f ingress-nginx-controller.yaml
-deployment "ingress-nginx-controller" created
+$ kubectl create -f nginx-ingress-controller.yaml
+deployment "nginx-ingress-controller" created
```
## Assigning the IP to an Ingress
From here on every Ingress created with the `ingress.class` annotation set to
-`nginx` will get the IP allocated in the previous step.
+`nginx` will get the IP allocated in the previous step
```console
-$ kubectl create -f ingress-nginx.yaml
-ingress "ingress-nginx" created
+$ kubectl create -f nginx-ingress.yaml
+ingress "nginx-ingress" created
$ kubectl get ing ingress-nginx
NAME HOSTS ADDRESS PORTS AGE
-ingress-nginx * 104.154.109.191 80, 443 13m
+nginx-ingress * 104.154.109.191 80, 443 13m
$ curl 104.154.109.191 -kL
CLIENT VALUES:
@@ -65,18 +65,18 @@ request_uri=http://104.154.109.191:8080/
## Retaining the IP
-You can test retention by deleting the Ingress:
+You can test retention by deleting the Ingress
```console
-$ kubectl delete ing ingress-nginx
-ingress "ingress-nginx" deleted
+$ kubectl delete ing nginx-ingress
+ingress "nginx-ingress" deleted
-$ kubectl create -f ingress-nginx.yaml
-ingress "ingress-nginx" created
+$ kubectl create -f nginx-ingress.yaml
+ingress "nginx-ingress" created
-$ kubectl get ing ingress-nginx
+$ kubectl get ing nginx-ingress
NAME HOSTS ADDRESS PORTS AGE
-ingress-nginx * 104.154.109.191 80, 443 13m
+nginx-ingress * 104.154.109.191 80, 443 13m
```
> Note that unlike the GCE Ingress, the same loadbalancer IP is shared amongst all
@@ -85,28 +85,28 @@ ingress-nginx * 104.154.109.191 80, 443 13m
## Promote ephemeral to static IP
-To promote the allocated IP to static, you can update the Service manifest:
+To promote the allocated IP to static, you can update the Service manifest
```console
-$ kubectl patch svc ingress-nginx-lb -p '{"spec": {"loadBalancerIP": "104.154.109.191"}}'
-"ingress-nginx-lb" patched
+$ kubectl patch svc nginx-ingress-lb -p '{"spec": {"loadBalancerIP": "104.154.109.191"}}'
+"nginx-ingress-lb" patched
```
-... and promote the IP to static (promotion works differently for cloudproviders,
-provided example is for GKE/GCE):
-
+and promote the IP to static (promotion works differently for cloudproviders,
+provided example is for GKE/GCE)
+`
```console
-$ gcloud compute addresses create ingress-nginx-lb --addresses 104.154.109.191 --region us-central1
-Created [https://www.googleapis.com/compute/v1/projects/kubernetesdev/regions/us-central1/addresses/ingress-nginx-lb].
+$ gcloud compute addresses create nginx-ingress-lb --addresses 104.154.109.191 --region us-central1
+Created [https://www.googleapis.com/compute/v1/projects/kubernetesdev/regions/us-central1/addresses/nginx-ingress-lb].
---
address: 104.154.109.191
creationTimestamp: '2017-01-31T16:34:50.089-08:00'
description: ''
id: '5208037144487826373'
kind: compute#address
-name: ingress-nginx-lb
+name: nginx-ingress-lb
region: us-central1
-selfLink: https://www.googleapis.com/compute/v1/projects/kubernetesdev/regions/us-central1/addresses/ingress-nginx-lb
+selfLink: https://www.googleapis.com/compute/v1/projects/kubernetesdev/regions/us-central1/addresses/nginx-ingress-lb
status: IN_USE
users:
- us-central1/forwardingRules/a09f6913ae80e11e6a8c542010af0000
@@ -114,3 +114,4 @@ users:
Now even if the Service is deleted, the IP will persist, so you can recreate the
Service with `spec.loadBalancerIP` set to `104.154.109.191`.
+
diff --git a/docs/examples/static-ip/nginx-ingress-controller.yaml b/docs/examples/static-ip/nginx-ingress-controller.yaml
index cf7759e1c..30885ec54 100644
--- a/docs/examples/static-ip/nginx-ingress-controller.yaml
+++ b/docs/examples/static-ip/nginx-ingress-controller.yaml
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
- name: ingress-nginx-controller
+ name: nginx-ingress-controller
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
@@ -18,14 +18,14 @@ spec:
app.kubernetes.io/part-of: ingress-nginx
spec:
# hostNetwork makes it possible to use ipv6 and to preserve the source IP correctly regardless of docker configuration
- # however, it is not a hard dependency of the ingress-nginx-controller itself and it may cause issues if port 10254 already is taken on the host
+ # however, it is not a hard dependency of the nginx-ingress-controller itself and it may cause issues if port 10254 already is taken on the host
# that said, since hostPort is broken on CNI (https://github.com/kubernetes/kubernetes/issues/31307) we have to use hostNetwork where CNI is used
# like with kubeadm
# hostNetwork: true
terminationGracePeriodSeconds: 60
containers:
- - image: registry.k8s.io/ingress-nginx/controller:v1.0.5
- name: controller
+ - image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.33.0
+ name: nginx-ingress-controller
readinessProbe:
httpGet:
path: /healthz
@@ -54,4 +54,4 @@ spec:
fieldPath: metadata.namespace
args:
- /nginx-ingress-controller
- - --publish-service=$(POD_NAMESPACE)/ingress-nginx-lb
+ - --publish-service=$(POD_NAMESPACE)/nginx-ingress-lb
diff --git a/docs/examples/static-ip/nginx-ingress.yaml b/docs/examples/static-ip/nginx-ingress.yaml
index 5c8a3c920..aa4877e56 100644
--- a/docs/examples/static-ip/nginx-ingress.yaml
+++ b/docs/examples/static-ip/nginx-ingress.yaml
@@ -1,20 +1,15 @@
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: ingress-nginx
spec:
- ingressClassName: nginx
tls:
# This assumes tls-secret exists.
- secretName: tls-secret
rules:
- http:
paths:
- - path: /
- pathType: Prefix
- backend:
+ - backend:
# This assumes http-svc exists and routes to healthy endpoints.
- service:
- name: http-svc
- port:
- number: 80
+ serviceName: http-svc
+ servicePort: 80
diff --git a/docs/examples/static-ip/static-ip-svc.yaml b/docs/examples/static-ip/static-ip-svc.yaml
index ee803951f..b64cf96cb 100644
--- a/docs/examples/static-ip/static-ip-svc.yaml
+++ b/docs/examples/static-ip/static-ip-svc.yaml
@@ -2,7 +2,7 @@
apiVersion: v1
kind: Service
metadata:
- name: ingress-nginx-lb
+ name: nginx-ingress-lb
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
@@ -18,6 +18,6 @@ spec:
name: https
targetPort: 443
selector:
- # Selects ingress-nginx-controller pods
+ # Selects nginx-ingress-controller pods
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
diff --git a/docs/examples/tls-termination/README.md b/docs/examples/tls-termination/README.md
index 25139b381..1a17d6d21 100644
--- a/docs/examples/tls-termination/README.md
+++ b/docs/examples/tls-termination/README.md
@@ -1,6 +1,6 @@
# TLS termination
-This example demonstrates how to terminate TLS through the Ingress-Nginx Controller.
+This example demonstrates how to terminate TLS through the nginx Ingress controller.
## Prerequisites
@@ -11,7 +11,7 @@ You need a [TLS cert](../PREREQUISITES.md#tls-certificates) and a [test HTTP ser
Create a `ingress.yaml` file.
```yaml
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: nginx-test
@@ -22,19 +22,15 @@ spec:
# This assumes tls-secret exists and the SSL
# certificate contains a CN for foo.bar.com
secretName: tls-secret
- ingressClassName: nginx
rules:
- host: foo.bar.com
http:
paths:
- path: /
- pathType: Prefix
backend:
# This assumes http-svc exists and routes to healthy endpoints
- service:
- name: http-svc
- port:
- number: 80
+ serviceName: http-svc
+ servicePort: 80
```
The following command instructs the controller to terminate traffic using the provided
@@ -65,10 +61,10 @@ Annotations:
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
- 7s 7s 1 {ingress-nginx-controller } Normal CREATE default/nginx-test
- 7s 7s 1 {ingress-nginx-controller } Normal UPDATE default/nginx-test
- 7s 7s 1 {ingress-nginx-controller } Normal CREATE ip: 104.198.183.6
- 7s 7s 1 {ingress-nginx-controller } Warning MAPPING Ingress rule 'default/nginx-test' contains no path definition. Assuming /
+ 7s 7s 1 {nginx-ingress-controller } Normal CREATE default/nginx-test
+ 7s 7s 1 {nginx-ingress-controller } Normal UPDATE default/nginx-test
+ 7s 7s 1 {nginx-ingress-controller } Normal CREATE ip: 104.198.183.6
+ 7s 7s 1 {nginx-ingress-controller } Warning MAPPING Ingress rule 'default/nginx-test' contains no path definition. Assuming /
$ curl 104.198.183.6 -L
curl: (60) SSL certificate problem: self signed certificate
diff --git a/docs/examples/tls-termination/ingress.yaml b/docs/examples/tls-termination/ingress.yaml
index 890247fd3..fc97b3707 100644
--- a/docs/examples/tls-termination/ingress.yaml
+++ b/docs/examples/tls-termination/ingress.yaml
@@ -1,9 +1,8 @@
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: nginx-test
spec:
- ingressClassName: nginx
tls:
- hosts:
- foo.bar.com
@@ -15,10 +14,7 @@ spec:
http:
paths:
- path: /
- pathType: Prefix
backend:
# This assumes http-svc exists and routes to healthy endpoints
- service:
- name: http-svc
- port:
- number: 80
+ serviceName: http-svc
+ servicePort: 80
diff --git a/docs/faq.md b/docs/faq.md
deleted file mode 100644
index ea1e4d308..000000000
--- a/docs/faq.md
+++ /dev/null
@@ -1,200 +0,0 @@
-
-# FAQ
-
-## Multi-tenant Kubernetes
-
-Do not use in multi-tenant Kubernetes production installations. This project assumes that users that can create Ingress objects are administrators of the cluster.
-
-For example, the Ingress NGINX control plane has global and per Ingress configuration options that make it insecure, if enabled, in a multi-tenant environment.
-
-For example, enabling snippets, a global configuration, allows any Ingress object to run arbitrary Lua code that could affect the security of all Ingress objects that a controller is running.
-
-We changed the default to allow snippets to `false` in https://github.com/kubernetes/ingress-nginx/pull/10393.
-
-## Multiple controller in one cluster
-
-Question - How can I easily install multiple instances of the ingress-nginx controller in the same cluster?
-
-You can install them in different namespaces.
-
-- Create a new namespace
-
- ```
- kubectl create namespace ingress-nginx-2
- ```
-
-- Use Helm to install the additional instance of the ingress controller
-- Ensure you have Helm working (refer to the [Helm documentation](https://helm.sh/docs/))
-- We have to assume that you have the helm repo for the ingress-nginx controller already added to your Helm config.
- But, if you have not added the helm repo then you can do this to add the repo to your helm config;
-
- ```
- helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
- ```
-
-- Make sure you have updated the helm repo data;
-
- ```
- helm repo update
- ```
-
-- Now, install an additional instance of the ingress-nginx controller like this:
-
- ```
- helm install ingress-nginx-2 ingress-nginx/ingress-nginx \
- --namespace ingress-nginx-2 \
- --set controller.ingressClassResource.name=nginx-two \
- --set controller.ingressClass=nginx-two \
- --set controller.ingressClassResource.controllerValue="example.com/ingress-nginx-2" \
- --set controller.ingressClassResource.enabled=true \
- --set controller.ingressClassByName=true
- ```
-
-If you need to install yet another instance, then repeat the procedure to create a new namespace,
-change the values such as names & namespaces (for example from "-2" to "-3"), or anything else that meets your needs.
-
-Note that `controller.ingressClassResource.name` and `controller.ingressClass` have to be set correctly.
-The first is to create the IngressClass object and the other is to modify the deployment of the actual ingress controller pod.
-
-### I can't use multiple namespaces, what should I do?
-
-If you need to install all instances in the same namespace, then you need to specify a different **election id**, like this:
-
-```
-helm install ingress-nginx-2 ingress-nginx/ingress-nginx \
---namespace kube-system \
---set controller.electionID=nginx-two-leader \
---set controller.ingressClassResource.name=nginx-two \
---set controller.ingressClass=nginx-two \
---set controller.ingressClassResource.controllerValue="example.com/ingress-nginx-2" \
---set controller.ingressClassResource.enabled=true \
---set controller.ingressClassByName=true
-```
-
-## Retaining Client IPAddress
-
-Question - How to obtain the real-client-ipaddress ?
-
-The goto solution for retaining the real-client IPaddress is to enable PROXY protocol.
-
-Enabling PROXY protocol has to be done on both, the Ingress NGINX controller, as well as the L4 load balancer, in front of the controller.
-
-The real-client IP address is lost by default, when traffic is forwarded over the network. But enabling PROXY protocol ensures that the connection details are retained and hence the real-client IP address doesn't get lost.
-
-Enabling proxy-protocol on the controller is documented [here](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#use-proxy-protocol) .
-
-For enabling proxy-protocol on the LoadBalancer, please refer to the documentation of your infrastructure provider because that is where the LB is provisioned.
-
-Some more info available [here](https://kubernetes.github.io/ingress-nginx/user-guide/miscellaneous/#source-ip-address)
-
-Some more info on proxy-protocol is [here](https://kubernetes.github.io/ingress-nginx/user-guide/miscellaneous/#proxy-protocol)
-
-### client-ipaddress on single-node cluster
-
-Single node clusters are created for dev & test uses with tools like "kind" or "minikube". A trick to simulate a real use network with these clusters (kind or minikube) is to install Metallb and configure the ipaddress of the kind container or the minikube vm/container, as the starting and ending of the pool for Metallb in L2 mode. Then the host ip becomes a real client ipaddress, for curl requests sent from the host.
-
-After installing ingress-nginx controller on a kind or a minikube cluster with helm, you can configure it for real-client-ip with a simple change to the service that ingress-nginx controller creates. The service object of --type LoadBalancer has a field service.spec.externalTrafficPolicy. If you set the value of this field to "Local" then the real-ipaddress of a client is visible to the controller.
-
-```
-% kubectl explain service.spec.externalTrafficPolicy
-KIND: Service
-VERSION: v1
-
-FIELD: externalTrafficPolicy
-
-DESCRIPTION:
- externalTrafficPolicy describes how nodes distribute service traffic they
- receive on one of the Service's "externally-facing" addresses (NodePorts,
- ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will
- configure the service in a way that assumes that external load balancers
- will take care of balancing the service traffic between nodes, and so each
- node will deliver traffic only to the node-local endpoints of the service,
- without masquerading the client source IP. (Traffic mistakenly sent to a
- node with no endpoints will be dropped.) The default value, "Cluster", uses
- the standard behavior of routing to all endpoints evenly (possibly modified
- by topology and other features). Note that traffic sent to an External IP or
- LoadBalancer IP from within the cluster will always get "Cluster" semantics,
- but clients sending to a NodePort from within the cluster may need to take
- traffic policy into account when picking a node.
-
- Possible enum values:
- - `"Cluster"` routes traffic to all endpoints.
- - `"Local"` preserves the source IP of the traffic by routing only to
- endpoints on the same node as the traffic was received on (dropping the
- traffic if there are no local endpoints).
-```
-
-### client-ipaddress L7
-
-The solution is to get the real client IPaddress from the ["X-Forward-For" HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For)
-
-Example : If your application pod behind Ingress NGINX controller, uses the NGINX webserver and the reverseproxy inside it, then you can do the following to preserve the remote client IP.
-
-- First you need to make sure that the X-Forwarded-For header reaches the backend pod. This is done by using a Ingress NGINX conftroller ConfigMap key. Its documented [here](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#use-forwarded-headers)
-
-- Next, edit `nginx.conf` file inside your app pod, to contain the directives shown below:
-
-```
-set_real_ip_from 0.0.0.0/0; # Trust all IPs (use your VPC CIDR block in production)
-real_ip_header X-Forwarded-For;
-real_ip_recursive on;
-
-log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" '
- 'host=$host x-forwarded-for=$http_x_forwarded_for';
-
-access_log /var/log/nginx/access.log main;
-
-```
-
-## Kubernetes v1.22 Migration
-
-If you are using Ingress objects in your cluster (running Kubernetes older than
-version 1.22), and you plan to upgrade your Kubernetes version to K8S 1.22 or
-above, then please read [the migration guide here](./user-guide/k8s-122-migration.md).
-
-## Validation Of **`path`**
-
-- For improving security and also following desired standards on Kubernetes API
-spec, the next release, scheduled for v1.8.0, will include a new & optional
-feature of validating the value for the key `ingress.spec.rules.http.paths.path`.
-
-- This behavior will be disabled by default on the 1.8.0 release and enabled by
-default on the next breaking change release, set for 2.0.0.
-
-- When "`ingress.spec.rules.http.pathType=Exact`" or "`pathType=Prefix`", this
-validation will limit the characters accepted on the field "`ingress.spec.rules.http.paths.path`",
-to "`alphanumeric characters`", and "`/`", "`_`", "`-`". Also, in this case,
-the path should start with "`/`".
-
-- When the ingress resource path contains other characters (like on rewrite
-configurations), the pathType value should be "`ImplementationSpecific`".
-
-- API Spec on pathType is documented [here](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types)
-
-- When this option is enabled, the validation will happen on the Admission
-Webhook. So if any new ingress object contains characters other than
-alphanumeric characters, and, "`/`", "`_`", "`-`", in the `path` field, but
-is not using `pathType` value as `ImplementationSpecific`, then the ingress
-object will be denied admission.
-
-- The cluster admin should establish validation rules using mechanisms like
-"`Open Policy Agent`", to validate that only authorized users can use
-ImplementationSpecific pathType and that only the authorized characters can be
-used. [The configmap value is here](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#strict-validate-path-type)
-
-- A complete example of an Openpolicyagent gatekeeper rule is available [here](https://kubernetes.github.io/ingress-nginx/examples/openpolicyagent/)
-
-- If you have any issues or concerns, please do one of the following:
- - Open a GitHub issue
- - Comment in our Dev Slack Channel
- - Open a thread in our Google Group
-
-## Why is chunking not working since controller v1.10 ?
-
-- If your code is setting the HTTP header `"Transfer-Encoding: chunked"` and
-the controller log messages show an error about duplicate header, it is
-because of this change
-
-- More details are available in this issue
diff --git a/docs/how-it-works.md b/docs/how-it-works.md
index 161803210..81d4ec2d6 100644
--- a/docs/how-it-works.md
+++ b/docs/how-it-works.md
@@ -1,6 +1,6 @@
# How it works
-The objective of this document is to explain how the Ingress-NGINX controller works, in particular how the NGINX model is built and why we need one.
+The objective of this document is to explain how the NGINX Ingress controller works, in particular how the NGINX model is built and why we need one.
## NGINX configuration
@@ -10,7 +10,7 @@ The goal of this Ingress controller is the assembly of a configuration file (ngi
Usually, a Kubernetes Controller utilizes the [synchronization loop pattern][1] to check if the desired state in the controller is updated or a change is required. To this purpose, we need to build a model using different objects from the cluster, in particular (in no special order) Ingresses, Services, Endpoints, Secrets, and Configmaps to generate a point in time configuration file that reflects the state of the cluster.
-To get this object from the cluster, we use [Kubernetes Informers][2], in particular, `FilteredSharedInformer`. These informers allow reacting to change in using [callbacks][3] to individual changes when a new object is added, modified or removed. Unfortunately, there is no way to know if a particular change is going to affect the final configuration file. Therefore on every change, we have to rebuild a new model from scratch based on the state of cluster and compare it to the current model. If the new model equals to the current one, then we avoid generating a new NGINX configuration and triggering a reload. Otherwise, we check if the difference is only about Endpoints. If so we then send the new list of Endpoints to a Lua handler running inside Nginx using HTTP POST request and again avoid generating a new NGINX configuration and triggering a reload. If the difference between running and new model is about more than just Endpoints we create a new NGINX configuration based on the new model, replace the current model and trigger a reload.
+To get this object from the cluster, we use [Kubernetes Informers][2], in particular, `FilteredSharedInformer`. This informers allows reacting to changes in using [callbacks][3] to individual changes when a new object is added, modified or removed. Unfortunately, there is no way to know if a particular change is going to affect the final configuration file. Therefore on every change, we have to rebuild a new model from scratch based on the state of cluster and compare it to the current model. If the new model equals to the current one, then we avoid generating a new NGINX configuration and triggering a reload. Otherwise, we check if the difference is only about Endpoints. If so we then send the new list of Endpoints to a Lua handler running inside Nginx using HTTP POST request and again avoid generating a new NGINX configuration and triggering a reload. If the difference between running and new model is about more than just Endpoints we create a new NGINX configuration based on the new model, replace the current model and trigger a reload.
One of the uses of the model is to avoid unnecessary reloads when there's no change in the state and to detect conflicts in definitions.
@@ -60,15 +60,15 @@ In a relatively big cluster with frequently deploying apps this feature saves si
Because the ingress controller works using the [synchronization loop pattern](https://coreos.com/kubernetes/docs/latest/replication-controller.html#the-reconciliation-loop-in-detail), it is applying the configuration for all matching objects. In case some Ingress objects have a broken configuration, for example a syntax error in the `nginx.ingress.kubernetes.io/configuration-snippet` annotation, the generated configuration becomes invalid, does not reload and hence no more ingresses will be taken into account.
-To prevent this situation to happen, the Ingress-Nginx Controller optionally exposes a [validating admission webhook server][8] to ensure the validity of incoming ingress objects.
+To prevent this situation to happen, the nginx ingress controller optionally exposes a [validating admission webhook server][8] to ensure the validity of incoming ingress objects.
This webhook appends the incoming ingress objects to the list of ingresses, generates the configuration and calls nginx to ensure the configuration has no syntax errors.
[0]: https://github.com/openresty/lua-nginx-module/pull/1259
[1]: https://coreos.com/kubernetes/docs/latest/replication-controller.html#the-reconciliation-loop-in-detail
[2]: https://godoc.org/k8s.io/client-go/informers#NewFilteredSharedInformerFactory
[3]: https://godoc.org/k8s.io/client-go/tools/cache#ResourceEventHandlerFuncs
-[4]: https://github.com/kubernetes/ingress-nginx/blob/main/internal/task/queue.go#L38
+[4]: https://github.com/kubernetes/ingress-nginx/blob/master/internal/task/queue.go#L38
[5]: https://golang.org/pkg/sync/#Mutex
-[6]: https://github.com/kubernetes/ingress-nginx/blob/main/rootfs/etc/nginx/template/nginx.tmpl
-[7]: https://nginx.org/en/docs/beginners_guide.html#control
+[6]: https://github.com/kubernetes/ingress-nginx/blob/master/rootfs/etc/nginx/template/nginx.tmpl
+[7]: http://nginx.org/en/docs/beginners_guide.html#control
[8]: https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#validatingadmissionwebhook
diff --git a/docs/images/grafana-dashboard1.png b/docs/images/grafana-dashboard1.png
deleted file mode 100644
index a4dfd81a7..000000000
Binary files a/docs/images/grafana-dashboard1.png and /dev/null differ
diff --git a/docs/images/otel-grafana-demo.png b/docs/images/otel-grafana-demo.png
deleted file mode 100644
index 61b50c861..000000000
Binary files a/docs/images/otel-grafana-demo.png and /dev/null differ
diff --git a/docs/images/otel-jaeger-demo.png b/docs/images/otel-jaeger-demo.png
deleted file mode 100644
index 006b23c34..000000000
Binary files a/docs/images/otel-jaeger-demo.png and /dev/null differ
diff --git a/docs/images/otel-zipkin-demo.png b/docs/images/otel-zipkin-demo.png
deleted file mode 100644
index a3af04e46..000000000
Binary files a/docs/images/otel-zipkin-demo.png and /dev/null differ
diff --git a/docs/images/prometheus-dashboard1.png b/docs/images/prometheus-dashboard1.png
deleted file mode 100644
index 86c76cbf2..000000000
Binary files a/docs/images/prometheus-dashboard1.png and /dev/null differ
diff --git a/docs/index.md b/docs/index.md
index bd6a825e1..8eeaaa080 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,12 +1,11 @@
-# Overview
+# Welcome
-This is the documentation for the Ingress NGINX Controller.
+This is the documentation for the NGINX Ingress Controller.
-It is built around the [Kubernetes Ingress resource](https://kubernetes.io/docs/concepts/services-networking/ingress/), using a [ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/) to store the controller configuration.
+It is built around the [Kubernetes Ingress resource](http://kubernetes.io/docs/user-guide/ingress/), using a [ConfigMap](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#understanding-configmaps-and-pods) to store the NGINX configuration.
-You can learn more about using [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/) in the official [Kubernetes documentation](https://docs.k8s.io).
+Learn more about using Ingress on [k8s.io](http://kubernetes.io/docs/user-guide/ingress/).
-# Getting Started
+## Getting Started
See [Deployment](./deploy/) for a whirlwind tour that will get you started.
-
diff --git a/docs/kubectl-plugin.md b/docs/kubectl-plugin.md
index 9e5a5dcc6..801a187b7 100644
--- a/docs/kubectl-plugin.md
+++ b/docs/kubectl-plugin.md
@@ -1,7 +1,7 @@
@@ -68,7 +68,7 @@ Use "ingress-nginx [command] --help" for more information about a command.
## Common Flags
- Every subcommand supports the basic `kubectl` configuration flags like `--namespace`, `--context`, `--client-key` and so on.
-- Subcommands that act on a particular `ingress-nginx` pod (`backends`, `certs`, `conf`, `exec`, `general`, `logs`, `ssh`), support the `--deployment `, `--pod `, and `--container ` flags to select either a pod from a deployment with the given name, or a pod with the given name (and the given container name). The `--deployment` flag defaults to `ingress-nginx-controller`, and the `--container` flag defaults to `controller`.
+- Subcommands that act on a particular `ingress-nginx` pod (`backends`, `certs`, `conf`, `exec`, `general`, `logs`, `ssh`), support the `--deployment ` and `--pod ` flags to select either a pod from a deployment with the given name, or a pod with the given name. The `--deployment` flag defaults to `nginx-ingress-controller`.
- Subcommands that inspect resources (`ingresses`, `lint`) support the `--all-namespaces` flag, which causes them to inspect resources in every namespace.
## Subcommands
@@ -208,7 +208,6 @@ modsecurity
modules
nginx.conf
opentracing.json
-opentelemetry.toml
owasp-modsecurity-crs
template
```
@@ -227,9 +226,7 @@ Use the `--service ` flag if your `ingress-nginx` `LoadBalancer` servic
### ingresses
-`kubectl ingress-nginx ingresses`, alternately `kubectl ingress-nginx ing`, shows a more detailed view of the ingress definitions in a namespace.
-
-Compare:
+`kubectl ingress-nginx ingresses`, alternately `kubectl ingress-nginx ing`, shows a more detailed view of the ingress definitions in a namespace. Compare:
```console
$ kubectl get ingresses --all-namespaces
@@ -238,7 +235,7 @@ default example-ingress1 testaddr.local,testaddr2.local localhost 80
default test-ingress-2 * localhost 80 5d
```
-vs.
+vs
```console
$ kubectl ingress-nginx ingresses --all-namespaces
@@ -266,7 +263,7 @@ Checking ingresses...
https://github.com/kubernetes/ingress-nginx/issues/3174
Checking deployments...
-✗ namespace2/ingress-nginx-controller
+✗ namespace2/nginx-ingress-controller
- Uses removed config flag --sort-backends
Lint added for version 0.22.0
https://github.com/kubernetes/ingress-nginx/issues/3655
@@ -275,7 +272,7 @@ Checking deployments...
https://github.com/kubernetes/ingress-nginx/issues/3808
```
-To show the lints added **only** for a particular `ingress-nginx` release, use the `--from-version` and `--to-version` flags:
+to show the lints added **only** for a particular `ingress-nginx` release, use the `--from-version` and `--to-version` flags:
```console
$ kubectl ingress-nginx lint --all-namespaces --verbose --from-version 0.24.0 --to-version 0.24.0
@@ -286,7 +283,7 @@ Checking ingresses...
https://github.com/kubernetes/ingress-nginx/issues/3743
Checking deployments...
-✗ namespace2/ingress-nginx-controller
+✗ namespace2/nginx-ingress-controller
- Uses removed config flag --enable-dynamic-certificates
Lint added for version 0.24.0
https://github.com/kubernetes/ingress-nginx/issues/3808
@@ -321,5 +318,5 @@ I0405 16:53:46.193913 7 event.go:209] Event(v1.ObjectReference{Kind:"Confi
```console
$ kubectl ingress-nginx ssh -n ingress-nginx
-www-data@ingress-nginx-controller-7cbf77c976-wx5pn:/etc/nginx$
+www-data@nginx-ingress-controller-7cbf77c976-wx5pn:/etc/nginx$
```
diff --git a/docs/lua_tests.md b/docs/lua_tests.md
deleted file mode 100644
index 4d3d1fe70..000000000
--- a/docs/lua_tests.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Lua Tests
-
-## Running the Lua Tests
-
-To run the Lua tests you can run the following from the root directory:
-
-```bash
-make lua-test
-```
-
-This command makes use of docker hence does not need any dependency
-installations besides docker
-
-## Where are the Lua Tests?
-
-Lua Tests can be found in the [rootfs/etc/nginx/lua/test](../rootfs/etc/nginx/lua/test) directory
-
-
-[1]: https://openresty.org/en/installation.html
diff --git a/docs/requirements.txt b/docs/requirements.txt
deleted file mode 100644
index 5d5943b84..000000000
--- a/docs/requirements.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-mkdocs-material==9.4.5
-mkdocs-awesome-pages-plugin==2.9.2
-mkdocs-minify-plugin==0.7.1
-mkdocs-redirects==1.2.1
\ No newline at end of file
diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md
index ffd8f839f..1707aa0e2 100644
--- a/docs/troubleshooting.md
+++ b/docs/troubleshooting.md
@@ -1,7 +1,7 @@
@@ -13,7 +13,7 @@ Do not move it without providing redirects.
There are many ways to troubleshoot the ingress-controller. The following are basic troubleshooting
methods to obtain more information.
-### Check the Ingress Resource Events
+Check the Ingress Resource Events
```console
$ kubectl get ing -n
@@ -32,23 +32,23 @@ Rules:
/tea tea-svc:80 ()
/coffee coffee-svc:80 ()
Annotations:
- kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"networking.k8s.io/v1","kind":"Ingress","metadata":{"annotations":{},"name":"cafe-ingress","namespace":"default","selfLink":"/apis/networking/v1/namespaces/default/ingresses/cafe-ingress"},"spec":{"rules":[{"host":"cafe.com","http":{"paths":[{"backend":{"serviceName":"tea-svc","servicePort":80},"path":"/tea"},{"backend":{"serviceName":"coffee-svc","servicePort":80},"path":"/coffee"}]}}]},"status":{"loadBalancer":{"ingress":[{"ip":"169.48.142.110"}]}}}
+ kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"networking.k8s.io/v1beta1","kind":"Ingress","metadata":{"annotations":{},"name":"cafe-ingress","namespace":"default","selfLink":"/apis/networking/v1beta1/namespaces/default/ingresses/cafe-ingress"},"spec":{"rules":[{"host":"cafe.com","http":{"paths":[{"backend":{"serviceName":"tea-svc","servicePort":80},"path":"/tea"},{"backend":{"serviceName":"coffee-svc","servicePort":80},"path":"/coffee"}]}}]},"status":{"loadBalancer":{"ingress":[{"ip":"169.48.142.110"}]}}}
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
- Normal CREATE 1m ingress-nginx-controller Ingress default/cafe-ingress
- Normal UPDATE 58s ingress-nginx-controller Ingress default/cafe-ingress
+ Normal CREATE 1m nginx-ingress-controller Ingress default/cafe-ingress
+ Normal UPDATE 58s nginx-ingress-controller Ingress default/cafe-ingress
```
-### Check the Ingress Controller Logs
+Check the Ingress Controller Logs
```console
$ kubectl get pods -n
NAME READY STATUS RESTARTS AGE
-ingress-nginx-controller-67956bf89d-fv58j 1/1 Running 0 1m
+nginx-ingress-controller-67956bf89d-fv58j 1/1 Running 0 1m
-$ kubectl logs -n ingress-nginx-controller-67956bf89d-fv58j
+$ kubectl logs -n nginx-ingress-controller-67956bf89d-fv58j
-------------------------------------------------------------------------------
NGINX Ingress controller
Release: 0.14.0
@@ -58,14 +58,14 @@ NGINX Ingress controller
....
```
-### Check the Nginx Configuration
+Check the Nginx Configuration
```console
$ kubectl get pods -n
NAME READY STATUS RESTARTS AGE
-ingress-nginx-controller-67956bf89d-fv58j 1/1 Running 0 1m
+nginx-ingress-controller-67956bf89d-fv58j 1/1 Running 0 1m
-$ kubectl exec -it -n ingress-nginx-controller-67956bf89d-fv58j -- cat /etc/nginx/nginx.conf
+$ kubectl exec -it -n nginx-ingress-controller-67956bf89d-fv58j -- cat /etc/nginx/nginx.conf
daemon off;
worker_processes 2;
pid /run/nginx.pid;
@@ -80,7 +80,7 @@ http {
....
```
-### Check if used Services Exist
+Check if used Services Exist
```console
$ kubectl get svc --all-namespaces
@@ -102,15 +102,15 @@ the deployment.
$ kubectl get deploy -n
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
default-http-backend 1 1 1 1 35m
-ingress-nginx-controller 1 1 1 1 35m
+nginx-ingress-controller 1 1 1 1 35m
-$ kubectl edit deploy -n ingress-nginx-controller
+$ kubectl edit deploy -n nginx-ingress-controller
# Add --v=X to "- args", where X is an integer
```
- `--v=2` shows details using `diff` about the changes in the configuration in nginx
- `--v=3` shows details about the service, Ingress rule, endpoint changes and it dumps the nginx configuration in JSON format
-- `--v=5` configures NGINX in [debug mode](https://nginx.org/en/docs/debugging_log.html)
+- `--v=5` configures NGINX in [debug mode](http://nginx.org/en/docs/debugging_log.html)
## Authentication to the Kubernetes API Server
@@ -130,14 +130,14 @@ Both authentications must work:
**Service authentication**
-The Ingress controller needs information from apiserver. Therefore, authentication is required, which can be achieved in a couple of ways:
+The Ingress controller needs information from apiserver. Therefore, authentication is required, which can be achieved in two different ways:
-* _Service Account:_ This is recommended, because nothing has to be configured. The Ingress controller will use information provided by the system to communicate with the API server. See 'Service Account' section for details.
+1. _Service Account:_ This is recommended, because nothing has to be configured. The Ingress controller will use information provided by the system to communicate with the API server. See 'Service Account' section for details.
-* _Kubeconfig file:_ In some Kubernetes environments service accounts are not available. In this case a manual configuration is required. The Ingress controller binary can be started with the `--kubeconfig` flag. The value of the flag is a path to a file specifying how to connect to the API server. Using the `--kubeconfig` does not requires the flag `--apiserver-host`.
+2. _Kubeconfig file:_ In some Kubernetes environments service accounts are not available. In this case a manual configuration is required. The Ingress controller binary can be started with the `--kubeconfig` flag. The value of the flag is a path to a file specifying how to connect to the API server. Using the `--kubeconfig` does not requires the flag `--apiserver-host`.
The format of the file is identical to `~/.kube/config` which is used by kubectl to connect to the API server. See 'kubeconfig' section for details.
-* _Using the flag `--apiserver-host`:_ Using this flag `--apiserver-host=http://localhost:8080` it is possible to specify an unsecured API server or reach a remote kubernetes cluster using [kubectl proxy](https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#proxy).
+3. _Using the flag `--apiserver-host`:_ Using this flag `--apiserver-host=http://localhost:8080` it is possible to specify an unsecured API server or reach a remote kubernetes cluster using [kubectl proxy](https://kubernetes.io/docs/user-guide/kubectl/kubectl_proxy/).
Please do not use this approach in production.
In the diagram below you can see the full authentication flow with all options, starting with the browser
@@ -173,47 +173,68 @@ Verify with the following commands:
```console
# start a container that contains curl
-$ kubectl run -it --rm test --image=curlimages/curl --restart=Never -- /bin/sh
+$ kubectl run test --image=tutum/curl -- sleep 10000
+
+# check that container is running
+$ kubectl get pods
+NAME READY STATUS RESTARTS AGE
+test-701078429-s5kca 1/1 Running 0 16s
# check if secret exists
-/ $ ls /var/run/secrets/kubernetes.io/serviceaccount/
-ca.crt namespace token
-/ $
+$ kubectl exec test-701078429-s5kca -- ls /var/run/secrets/kubernetes.io/serviceaccount/
+ca.crt
+namespace
+token
+
+# get service IP of master
+$ kubectl get services
+NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
+kubernetes 10.0.0.1 443/TCP 1d
# check base connectivity from cluster inside
-/ $ curl -k https://kubernetes.default.svc.cluster.local
-{
- "kind": "Status",
- "apiVersion": "v1",
- "metadata": {
-
- },
- "status": "Failure",
- "message": "forbidden: User \"system:anonymous\" cannot get path \"/\"",
- "reason": "Forbidden",
- "details": {
-
- },
- "code": 403
-}/ $
+$ kubectl exec test-701078429-s5kca -- curl -k https://10.0.0.1
+Unauthorized
# connect using tokens
-}/ $ curl --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" https://kubernetes.default.svc.cluster.local
-&& echo
+$ TOKEN_VALUE=$(kubectl exec test-701078429-s5kca -- cat /var/run/secrets/kubernetes.io/serviceaccount/token)
+$ echo $TOKEN_VALUE
+eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3Mi....9A
+$ kubectl exec test-701078429-s5kca -- curl --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt -H "Authorization: Bearer $TOKEN_VALUE" https://10.0.0.1
{
"paths": [
"/api",
"/api/v1",
"/apis",
- "/apis/",
- ... TRUNCATED
- "/readyz/shutdown",
+ "/apis/apps",
+ "/apis/apps/v1alpha1",
+ "/apis/authentication.k8s.io",
+ "/apis/authentication.k8s.io/v1beta1",
+ "/apis/authorization.k8s.io",
+ "/apis/authorization.k8s.io/v1beta1",
+ "/apis/autoscaling",
+ "/apis/autoscaling/v1",
+ "/apis/batch",
+ "/apis/batch/v1",
+ "/apis/batch/v2alpha1",
+ "/apis/certificates.k8s.io",
+ "/apis/certificates.k8s.io/v1alpha1",
+ "/apis/networking",
+ "/apis/networking/v1beta1",
+ "/apis/policy",
+ "/apis/policy/v1alpha1",
+ "/apis/rbac.authorization.k8s.io",
+ "/apis/rbac.authorization.k8s.io/v1alpha1",
+ "/apis/storage.k8s.io",
+ "/apis/storage.k8s.io/v1beta1",
+ "/healthz",
+ "/healthz/ping",
+ "/logs",
+ "/metrics",
+ "/swaggerapi/",
+ "/ui/",
"/version"
]
}
-/ $
-
-# when you type `exit` or `^D` the test pod will be deleted.
```
If it is not working, there are two possible reasons:
@@ -230,7 +251,7 @@ If it is not working, there are two possible reasons:
More information:
-- [User Guide: Service Accounts](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/)
+- [User Guide: Service Accounts](http://kubernetes.io/docs/user-guide/service-accounts/)
- [Cluster Administrator Guide: Managing Service Accounts](http://kubernetes.io/docs/admin/service-accounts-admin/)
## Kube-Config
@@ -247,235 +268,72 @@ Note: The below is based on the nginx [documentation](https://docs.nginx.com/ngi
1. SSH into the worker
- ```console
- $ ssh user@workerIP
- ```
+```console
+$ ssh user@workerIP
+```
2. Obtain the Docker Container Running nginx
- ```console
- $ docker ps | grep ingress-nginx-controller
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- d9e1d243156a registry.k8s.io/ingress-nginx/controller "/usr/bin/dumb-init …" 19 minutes ago Up 19 minutes k8s_ingress-nginx-controller_ingress-nginx-controller-67956bf89d-mqxzt_kube-system_079f31ec-aa37-11e8-ad39-080027a227db_0
- ```
+```console
+$ docker ps | grep nginx-ingress-controller
+CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
+d9e1d243156a quay.io/kubernetes-ingress-controller/nginx-ingress-controller "/usr/bin/dumb-init …" 19 minutes ago Up 19 minutes k8s_nginx-ingress-controller_nginx-ingress-controller-67956bf89d-mqxzt_kube-system_079f31ec-aa37-11e8-ad39-080027a227db_0
+```
3. Exec into the container
- ```console
- $ docker exec -it --user=0 --privileged d9e1d243156a bash
- ```
+```console
+$ docker exec -it --user=0 --privileged d9e1d243156a bash
+```
4. Make sure nginx is running in `--with-debug`
- ```console
- $ nginx -V 2>&1 | grep -- '--with-debug'
- ```
+```console
+$ nginx -V 2>&1 | grep -- '--with-debug'
+```
5. Get list of processes running on container
- ```console
- $ ps -ef
- UID PID PPID C STIME TTY TIME CMD
- root 1 0 0 20:23 ? 00:00:00 /usr/bin/dumb-init /nginx-ingres
- root 5 1 0 20:23 ? 00:00:05 /ingress-nginx-controller --defa
- root 21 5 0 20:23 ? 00:00:00 nginx: master process /usr/sbin/
- nobody 106 21 0 20:23 ? 00:00:00 nginx: worker process
- nobody 107 21 0 20:23 ? 00:00:00 nginx: worker process
- root 172 0 0 20:43 pts/0 00:00:00 bash
- ```
-
-6. Attach gdb to the nginx master process
-
- ```console
- $ gdb -p 21
- ....
- Attaching to process 21
- Reading symbols from /usr/sbin/nginx...done.
- ....
- (gdb)
- ```
-
-7. Copy and paste the following:
-
- ```console
- set $cd = ngx_cycle->config_dump
- set $nelts = $cd.nelts
- set $elts = (ngx_conf_dump_t*)($cd.elts)
- while ($nelts-- > 0)
- set $name = $elts[$nelts]->name.data
- printf "Dumping %s to nginx_conf.txt\n", $name
- append memory nginx_conf.txt \
- $elts[$nelts]->buffer.start $elts[$nelts]->buffer.end
- end
- ```
-
-8. Quit GDB by pressing CTRL+D
-
-9. Open nginx_conf.txt
-
- ```console
- cat nginx_conf.txt
- ```
-
-## Image related issues faced on Nginx 4.2.5 or other versions (Helm chart versions)
-
-1. Incase you face below error while installing Nginx using helm chart (either by helm commands or helm_release terraform provider )
-```
-Warning Failed 5m5s (x4 over 6m34s) kubelet Failed to pull image "registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.3.0@sha256:549e71a6ca248c5abd51cdb73dbc3083df62cf92ed5e6147c780e30f7e007a47": rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/ingress-nginx/kube-webhook-certgen@sha256:549e71a6ca248c5abd51cdb73dbc3083df62cf92ed5e6147c780e30f7e007a47": failed to resolve reference "registry.k8s.io/ingress-nginx/kube-webhook-certgen@sha256:549e71a6ca248c5abd51cdb73dbc3083df62cf92ed5e6147c780e30f7e007a47": failed to do request: Head "https://eu.gcr.io/v2/k8s-artifacts-prod/ingress-nginx/kube-webhook-certgen/manifests/sha256:549e71a6ca248c5abd51cdb73dbc3083df62cf92ed5e6147c780e30f7e007a47": EOF
-```
- Then please follow the below steps.
-
-2. During troubleshooting you can also execute the below commands to test the connectivities from you local machines and repositories details
-
- a. curl registry.k8s.io/ingress-nginx/kube-webhook-certgen@sha256:549e71a6ca248c5abd51cdb73dbc3083df62cf92ed5e6147c780e30f7e007a47 > /dev/null
- ```
- (⎈ |myprompt)➜ ~ curl registry.k8s.io/ingress-nginx/kube-webhook-certgen@sha256:549e71a6ca248c5abd51cdb73dbc3083df62cf92ed5e6147c780e30f7e007a47 > /dev/null
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
- (⎈ |myprompt)➜ ~
- ```
- b. curl -I https://eu.gcr.io/v2/k8s-artifacts-prod/ingress-nginx/kube-webhook-certgen/manifests/sha256:549e71a6ca248c5abd51cdb73dbc3083df62cf92ed5e6147c780e30f7e007a47
- ```
- (⎈ |myprompt)➜ ~ curl -I https://eu.gcr.io/v2/k8s-artifacts-prod/ingress-nginx/kube-webhook-certgen/manifests/sha256:549e71a6ca248c5abd51cdb73dbc3083df62cf92ed5e6147c780e30f7e007a47
- HTTP/2 200
- docker-distribution-api-version: registry/2.0
- content-type: application/vnd.docker.distribution.manifest.list.v2+json
- docker-content-digest: sha256:549e71a6ca248c5abd51cdb73dbc3083df62cf92ed5e6147c780e30f7e007a47
- content-length: 1384
- date: Wed, 28 Sep 2022 16:46:28 GMT
- server: Docker Registry
- x-xss-protection: 0
- x-frame-options: SAMEORIGIN
- alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
-
- (⎈ |myprompt)➜ ~
- ```
- Redirection in the proxy is implemented to ensure the pulling of the images.
-
-3. This is the solution recommended to whitelist the below image repositories :
- ```
- *.appspot.com
- *.k8s.io
- *.pkg.dev
- *.gcr.io
-
- ```
- More details about the above repos :
- a. *.k8s.io -> To ensure you can pull any images from registry.k8s.io
- b. *.gcr.io -> GCP services are used for image hosting. This is part of the domains suggested by GCP to allow and ensure users can pull images from their container registry services.
- c. *.appspot.com -> This a Google domain. part of the domain used for GCR.
-
-## Unable to listen on port (80/443)
-One possible reason for this error is lack of permission to bind to the port. Ports 80, 443, and any other port < 1024 are Linux privileged ports which historically could only be bound by root. The ingress-nginx-controller uses the CAP_NET_BIND_SERVICE [linux capability](https://man7.org/linux/man-pages/man7/capabilities.7.html) to allow binding these ports as a normal user (www-data / 101). This involves two components:
-1. In the image, the /nginx-ingress-controller file has the cap_net_bind_service capability added (e.g. via [setcap](https://man7.org/linux/man-pages/man8/setcap.8.html))
-2. The NET_BIND_SERVICE capability is added to the container in the containerSecurityContext of the deployment.
-
-If encountering this on one/some node(s) and not on others, try to purge and pull a fresh copy of the image to the affected node(s), in case there has been corruption of the underlying layers to lose the capability on the executable.
-
-### Create a test pod
-The /nginx-ingress-controller process exits/crashes when encountering this error, making it difficult to troubleshoot what is happening inside the container. To get around this, start an equivalent container running "sleep 3600", and exec into it for further troubleshooting. For example:
-```yaml
-apiVersion: v1
-kind: Pod
-metadata:
- name: ingress-nginx-sleep
- namespace: default
- labels:
- app: nginx
-spec:
- containers:
- - name: nginx
- image: ##_CONTROLLER_IMAGE_##
- resources:
- requests:
- memory: "512Mi"
- cpu: "500m"
- limits:
- memory: "1Gi"
- cpu: "1"
- command: ["sleep"]
- args: ["3600"]
- ports:
- - containerPort: 80
- name: http
- protocol: TCP
- - containerPort: 443
- name: https
- protocol: TCP
- securityContext:
- allowPrivilegeEscalation: true
- capabilities:
- add:
- - NET_BIND_SERVICE
- drop:
- - ALL
- runAsUser: 101
- restartPolicy: Never
- nodeSelector:
- kubernetes.io/hostname: ##_NODE_NAME_##
- tolerations:
- - key: "node.kubernetes.io/unschedulable"
- operator: "Exists"
- effect: NoSchedule
-```
-* update the namespace if applicable/desired
-* replace `##_NODE_NAME_##` with the problematic node (or remove nodeSelector section if problem is not confined to one node)
-* replace `##_CONTROLLER_IMAGE_##` with the same image as in use by your ingress-nginx deployment
-* confirm the securityContext section matches what is in place for ingress-nginx-controller pods in your cluster
-
-Apply the YAML and open a shell into the pod.
-Try to manually run the controller process:
```console
-$ /nginx-ingress-controller
+$ ps -ef
+UID PID PPID C STIME TTY TIME CMD
+root 1 0 0 20:23 ? 00:00:00 /usr/bin/dumb-init /nginx-ingres
+root 5 1 0 20:23 ? 00:00:05 /nginx-ingress-controller --defa
+root 21 5 0 20:23 ? 00:00:00 nginx: master process /usr/sbin/
+nobody 106 21 0 20:23 ? 00:00:00 nginx: worker process
+nobody 107 21 0 20:23 ? 00:00:00 nginx: worker process
+root 172 0 0 20:43 pts/0 00:00:00 bash
```
-You should get the same error as from the ingress controller pod logs.
-Confirm the capabilities are properly surfacing into the pod:
+7. Attach gdb to the nginx master process
+
```console
-$ grep CapBnd /proc/1/status
-CapBnd: 0000000000000400
+$ gdb -p 21
+....
+Attaching to process 21
+Reading symbols from /usr/sbin/nginx...done.
+....
+(gdb)
```
-The above value has only net_bind_service enabled (per security context in YAML which adds that and drops all). If you get a different value, then you can decode it on another linux box (capsh not available in this container) like below, and then figure out why specified capabilities are not propagating into the pod/container.
+
+8. Copy and paste the following:
+
```console
-$ capsh --decode=0000000000000400
-0x0000000000000400=cap_net_bind_service
+set $cd = ngx_cycle->config_dump
+set $nelts = $cd.nelts
+set $elts = (ngx_conf_dump_t*)($cd.elts)
+while ($nelts-- > 0)
+set $name = $elts[$nelts]->name.data
+printf "Dumping %s to nginx_conf.txt\n", $name
+append memory nginx_conf.txt \
+ $elts[$nelts]->buffer.start $elts[$nelts]->buffer.end
+end
```
-## Create a test pod as root
-(Note, this may be restricted by PodSecurityAdmission/Standards, OPA Gatekeeper, etc. in which case you will need to do the appropriate workaround for testing, e.g. deploy in a new namespace without the restrictions.)
-To test further you may want to install additional utilities, etc. Modify the pod yaml by:
-* changing runAsUser from 101 to 0
-* removing the "drop..ALL" section from the capabilities.
+9. Quit GDB by pressing CTRL+D
-Some things to try after shelling into this container:
+10. Open nginx_conf.txt
-Try running the controller as the www-data (101) user:
```console
-$ chmod 4755 /nginx-ingress-controller
-$ /nginx-ingress-controller
-```
-Examine the errors to see if there is still an issue listening on the port or if it passed that and moved on to other expected errors due to running out of context.
-
-Install the libcap package and check capabilities on the file:
-```console
-$ apk add libcap
-(1/1) Installing libcap (2.50-r0)
-Executing busybox-1.33.1-r7.trigger
-OK: 26 MiB in 41 packages
-$ getcap /nginx-ingress-controller
-/nginx-ingress-controller cap_net_bind_service=ep
-```
-(if missing, see above about purging image on the server and re-pulling)
-
-Strace the executable to see what system calls are being executed when it fails:
-```console
-$ apk add strace
-(1/1) Installing strace (5.12-r0)
-Executing busybox-1.33.1-r7.trigger
-OK: 28 MiB in 42 packages
-$ strace /nginx-ingress-controller
-execve("/nginx-ingress-controller", ["/nginx-ingress-controller"], 0x7ffeb9eb3240 /* 131 vars */) = 0
-arch_prctl(ARCH_SET_FS, 0x29ea690) = 0
-...
+cat nginx_conf.txt
```
diff --git a/docs/user-guide/basic-usage.md b/docs/user-guide/basic-usage.md
index aee0c0fd3..82019d978 100644
--- a/docs/user-guide/basic-usage.md
+++ b/docs/user-guide/basic-usage.md
@@ -1,20 +1,18 @@
# Basic usage - host based routing
-ingress-nginx can be used for many use cases, inside various cloud providers and supports a lot of configurations. In this section you can find a common usage scenario where a single load balancer powered by ingress-nginx will route traffic to 2 different HTTP backend services based on the host name.
+ingress-nginx can be used for many use cases, inside various cloud provider and supports a lot of configurations. In this section you can find a common usage scenario where a single load balancer powered by ingress-nginx will route traffic to 2 different HTTP backend services based on the host name.
-First of all follow the instructions to install ingress-nginx. Then imagine that you need to expose 2 HTTP services already installed, `myServiceA`, `myServiceB`, and configured as `type: ClusterIP`.
-
-Let's say that you want to expose the first at `myServiceA.foo.org` and the second at `myServiceB.foo.org`.
-
-If the cluster version is < 1.19, you can create two **ingress** resources like this:
+First of all follow the instructions to install ingress-nginx. Then imagine that you need to expose 2 HTTP services already installed: `myServiceA`, `myServiceB`. Let's say that you want to expose the first at `myServiceA.foo.org` and the second at `myServiceB.foo.org`. One possible solution is to create two **ingress** resources:
```
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: ingress-myservicea
+ annotations:
+ # use the shared ingress-nginx
+ kubernetes.io/ingress.class: "nginx"
spec:
- ingressClassName: nginx
rules:
- host: myservicea.foo.org
http:
@@ -42,53 +40,11 @@ spec:
servicePort: 80
```
-If the cluster uses Kubernetes version >= 1.19.x, then its suggested to create 2 ingress resources, using yaml examples shown below. These examples are in conformity with the `networking.kubernetes.io/v1` api.
-
-```
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- name: ingress-myservicea
-spec:
- rules:
- - host: myservicea.foo.org
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: myservicea
- port:
- number: 80
- ingressClassName: nginx
----
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- name: ingress-myserviceb
-spec:
- rules:
- - host: myserviceb.foo.org
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: myserviceb
- port:
- number: 80
- ingressClassName: nginx
-```
-
-When you apply this yaml, 2 ingress resources will be created managed by the **ingress-nginx** instance. Nginx is configured to automatically discover all ingress with the `kubernetes.io/ingress.class: "nginx"` annotation or where `ingressClassName: nginx` is present.
+When you apply this yaml, 2 ingress resources will be created managed by the **ingress-nginx** instance. Nginx is configured to automatically discover all ingress with the `kubernetes.io/ingress.class: "nginx"` annotation.
Please note that the ingress resource should be placed inside the same namespace of the backend resource.
-On many cloud providers ingress-nginx will also create the corresponding Load Balancer resource. All you have to do is get the external IP and add a DNS `A record` inside your DNS provider that point myservicea.foo.org and myserviceb.foo.org to the nginx external IP. Get the external IP by running:
+On many cloud providers ingress-nginx will also create the corresponding Load Balancer resource. All you have to do is get the external IP and add a DNS `A record` inside your DNS provider that point myServiceA.foo.org and myServiceB.foo.org to the nginx external IP. Get the external IP by running:
```
kubectl get services -n ingress-nginx
```
-
-To test inside minikube refer to this documentation: [Set up Ingress on Minikube with the NGINX Ingress Controller](https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/)
diff --git a/docs/user-guide/cli-arguments.md b/docs/user-guide/cli-arguments.md
index a33e75159..799ce7324 100644
--- a/docs/user-guide/cli-arguments.md
+++ b/docs/user-guide/cli-arguments.md
@@ -2,79 +2,62 @@
The following command line arguments are accepted by the Ingress controller executable.
-They are set in the container spec of the `ingress-nginx-controller` Deployment manifest
+They are set in the container spec of the `nginx-ingress-controller` Deployment manifest
| Argument | Description |
|----------|-------------|
+| `--add_dir_header` | If true, adds the file directory to the header |
+| `--alsologtostderr` | log to standard error as well as files |
| `--annotations-prefix` | Prefix of the Ingress annotations specific to the NGINX controller. (default "nginx.ingress.kubernetes.io") |
| `--apiserver-host` | Address of the Kubernetes API server. Takes the form "protocol://address:port". If not specified, it is assumed the program runs inside a Kubernetes cluster and local discovery is attempted. |
-| `--bucket-factor` | Bucket factor for native histograms. Value must be > 1 for enabling native histograms. (default 0) |
| `--certificate-authority` | Path to a cert file for the certificate authority. This certificate is used only when the flag --apiserver-host is specified. |
| `--configmap` | Name of the ConfigMap containing custom global configurations for the controller. |
-| `--controller-class` | Ingress Class Controller value this Ingress satisfies. The class of an Ingress object is set using the field IngressClassName in Kubernetes clusters version v1.19.0 or higher. The .spec.controller value of the IngressClass referenced in an Ingress Object should be the same value specified here to make this object be watched. |
-| `--deep-inspect` | Enables ingress object security deep inspector. (default true) |
| `--default-backend-service` | Service used to serve HTTP requests not matching any known server name (catch-all). Takes the form "namespace/name". The controller configures NGINX to forward requests to the first port of this Service. |
| `--default-server-port` | Port to use for exposing the default server (catch-all). (default 8181) |
| `--default-ssl-certificate` | Secret containing a SSL certificate to be used by the default HTTPS server (catch-all). Takes the form "namespace/name". |
-| `--enable-annotation-validation` | If true, will enable the annotation validation feature. Defaults to true |
-| `--disable-catch-all` | Disable support for catch-all Ingresses. (default false) |
-| `--disable-full-test` | Disable full test of all merged ingresses at the admission stage and tests the template of the ingress being created or updated (full test of all ingresses is enabled by default). |
-| `--disable-svc-external-name` | Disable support for Services of type ExternalName. (default false) |
-| `--disable-sync-events` | Disables the creation of 'Sync' Event resources, but still logs them |
-| `--dynamic-configuration-retries` | Number of times to retry failed dynamic configuration before failing to sync an ingress. (default 15) |
+| `--disable-catch-all` | Disable support for catch-all Ingresses |
| `--election-id` | Election id to use for Ingress status updates. (default "ingress-controller-leader") |
-| `--election-ttl` | Duration a leader election is valid before it's getting re-elected, e.g. `15s`, `10m` or `1h`. (Default: 30s) |
-| `--enable-metrics` | Enables the collection of NGINX metrics. (Default: false) |
-| `--enable-ssl-chain-completion` | Autocomplete SSL certificate chains with missing intermediate CA certificates. Certificates uploaded to Kubernetes must have the "Authority Information Access" X.509 v3 extension for this to succeed. (default false)|
-| `--enable-ssl-passthrough` | Enable SSL Passthrough. (default false) |
-| `--disable-leader-election` | Disable Leader Election on Nginx Controller. (default false) |
-| `--enable-topology-aware-routing` | Enable topology aware routing feature, needs service object annotation service.kubernetes.io/topology-mode sets to auto. (default false) |
-| `--exclude-socket-metrics` | Set of socket request metrics to exclude which won't be exported nor being calculated. The possible socket request metrics to exclude are documented in the monitoring guide e.g. 'nginx_ingress_controller_request_duration_seconds,nginx_ingress_controller_response_size'|
+| `--enable-metrics` | Enables the collection of NGINX metrics (default true) |
+| `--enable-ssl-chain-completion` | Autocomplete SSL certificate chains with missing intermediate CA certificates. Certificates uploaded to Kubernetes must have the "Authority Information Access" X.509 v3 extension for this to succeed. |
+| `--enable-ssl-passthrough` | Enable SSL Passthrough. |
| `--health-check-path` | URL path of the health check endpoint. Configured inside the NGINX status server. All requests received on the port defined by the healthz-port parameter are forwarded internally to this path. (default "/healthz") |
| `--health-check-timeout` | Time limit, in seconds, for a probe to health-check-path to succeed. (default 10) |
| `--healthz-port` | Port to use for the healthz endpoint. (default 10254) |
-| `--healthz-host` | Address to bind the healthz endpoint. |
| `--http-port` | Port to use for servicing HTTP traffic. (default 80) |
| `--https-port` | Port to use for servicing HTTPS traffic. (default 443) |
| `--ingress-class` | Name of the ingress class this controller satisfies. The class of an Ingress object is set using the field IngressClassName in Kubernetes clusters version v1.18.0 or higher or the annotation "kubernetes.io/ingress.class" (deprecated). If this parameter is not set, or set to the default value of "nginx", it will handle ingresses with either an empty or "nginx" class name. |
-| `--ingress-class-by-name` | Define if Ingress Controller should watch for Ingress Class by Name together with Controller Class. (default false). |
-| `--internal-logger-address` | Address to be used when binding internal syslogger. (default 127.0.0.1:11514) |
| `--kubeconfig` | Path to a kubeconfig file containing authorization and API server information. |
-| `--length-buckets` | Set of buckets which will be used for prometheus histogram metrics such as RequestLength, ResponseLength. (default `[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]`) |
-| `--max-buckets` | Maximum number of buckets for native histograms. (default 100) |
+| `--log_backtrace_at` | when logging hits line file:N, emit a stack trace (default :0) |
+| `--log_dir` | If non-empty, write log files in this directory |
+| `--log_file` | If non-empty, use this log file |
+| `--log_file_max_size` | Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800) |
+| `--logtostderr` | log to standard error instead of files (default true) |
| `--maxmind-edition-ids` | Maxmind edition ids to download GeoLite2 Databases. (default "GeoLite2-City,GeoLite2-ASN") |
-| `--maxmind-retries-timeout` | Maxmind downloading delay between 1st and 2nd attempt, 0s - do not retry to download if something went wrong. (default 0s) |
-| `--maxmind-retries-count` | Number of attempts to download the GeoIP DB. (default 1) |
-| `--maxmind-license-key` | Maxmind license key to download GeoLite2 Databases. https://blog.maxmind.com/2019/12/significant-changes-to-accessing-and-using-geolite2-databases/ . |
-| `--maxmind-mirror` | Maxmind mirror url (example: http://geoip.local/databases. |
-| `--metrics-per-host` | Export metrics per-host. (default true) |
-| `--metrics-per-undefined-host` | Export metrics per-host even if the host is not defined in an ingress. Requires --metrics-per-host to be set to true. (default false) |
-| `--monitor-max-batch-size` | Max batch size of NGINX metrics. (default 10000)|
-| `--post-shutdown-grace-period` | Additional delay in seconds before controller container exits. (default 10) |
+| `--maxmind-license-key` | Maxmind license key to download GeoLite2 Databases. https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases |
+| `--metrics-per-host` | Export metrics per-host (default true) |
| `--profiler-port` | Port to use for expose the ingress controller Go profiler when it is enabled. (default 10245) |
-| `--profiling` | Enable profiling via web interface host:port/debug/pprof/ . (default true) |
+| `--profiling` | Enable profiling via web interface host:port/debug/pprof/ (default true) |
| `--publish-service` | Service fronting the Ingress controller. Takes the form "namespace/name". When used together with update-status, the controller mirrors the address of this service's endpoints to the load-balancer status of all Ingress objects it satisfies. |
| `--publish-status-address` | Customized address (or addresses, separated by comma) to set as the load-balancer status of Ingress objects this controller satisfies. Requires the update-status parameter. |
-| `--report-node-internal-ip-address`| Set the load-balancer status of Ingress objects to internal Node addresses instead of external. Requires the update-status parameter. (default false) |
-| `--report-status-classes` | If true, report status classes in metrics (2xx, 3xx, 4xx and 5xx) instead of full status codes. (default false) |
+| `--report-node-internal-ip-address`| Set the load-balancer status of Ingress objects to internal Node addresses instead of external. Requires the update-status parameter. |
+| `--skip_headers` | If true, avoid header prefixes in the log messages |
+| `--skip_log_headers` | If true, avoid headers when opening log files |
| `--ssl-passthrough-proxy-port` | Port to use internally for SSL Passthrough. (default 442) |
| `--status-port` | Port to use for the lua HTTP endpoint configuration. (default 10246) |
-| `--status-update-interval` | Time interval in seconds in which the status should check if an update is required. Default is 60 seconds. (default 60) |
+| `--status-update-interval` | Time interval in seconds in which the status should check if an update is required. Default is 60 seconds (default 60) |
+| `--stderrthreshold` | logs at or above this threshold go to stderr (default 2) |
| `--stream-port` | Port to use for the lua TCP/UDP endpoint configuration. (default 10247) |
| `--sync-period` | Period at which the controller forces the repopulation of its local object stores. Disabled by default. |
-| `--sync-rate-limit` | Define the sync frequency upper limit. (default 0.3) |
+| `--sync-rate-limit` | Define the sync frequency upper limit (default 0.3) |
| `--tcp-services-configmap` | Name of the ConfigMap containing the definition of the TCP services to expose. The key in the map indicates the external port to be used. The value is a reference to a Service in the form "namespace/name:port", where "port" can either be a port number or name. TCP ports 80 and 443 are reserved by the controller for servicing HTTP traffic. |
-| `--time-buckets` | Set of buckets which will be used for prometheus histogram metrics such as RequestTime, ResponseTime. (default `[0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10]`) |
| `--udp-services-configmap` | Name of the ConfigMap containing the definition of the UDP services to expose. The key in the map indicates the external port to be used. The value is a reference to a Service in the form "namespace/name:port", where "port" can either be a port name or number. |
| `--update-status` | Update the load-balancer status of Ingress objects this controller satisfies. Requires setting the publish-service parameter to a valid Service reference. (default true) |
| `--update-status-on-shutdown` | Update the load-balancer status of Ingress objects when the controller shuts down. Requires the update-status parameter. (default true) |
-| `--shutdown-grace-period` | Seconds to wait after receiving the shutdown signal, before stopping the nginx process. (default 0) |
-| `--size-buckets` | Set of buckets which will be used for prometheus histogram metrics such as BytesSent. (default `[10, 100, 1000, 10000, 100000, 1e+06, 1e+07]`) |
+| `--shutdown-grace-period` | Seconds to wait after receiving the shutdown signal, before stopping the nginx process. |
| `-v, --v Level` | number for the log level verbosity |
| `--validating-webhook` | The address to start an admission controller on to validate incoming ingresses. Takes the form ":port". If not provided, no admission controller is started. |
| `--validating-webhook-certificate` | The path of the validating webhook certificate PEM. |
| `--validating-webhook-key` | The path of the validating webhook key PEM. |
-| `--version` | Show release information about the Ingress-Nginx Controller and exit. |
-| `--watch-ingress-without-class` | Define if Ingress Controller should also watch for Ingresses without an IngressClass or the annotation specified. (default false) |
+| `--version` | Show release information about the NGINX Ingress controller and exit. |
+| `--vmodule` | comma-separated list of pattern=N settings for file-filtered logging |
| `--watch-namespace` | Namespace the controller watches for updates to Kubernetes objects. This includes Ingresses, Services and all configuration resources. All namespaces are watched if this parameter is left empty. |
-| `--watch-namespace-selector` | The controller will watch namespaces whose labels match the given selector. This flag only takes effective when `--watch-namespace` is empty. |
diff --git a/docs/user-guide/convert_arguments_to_doc.py b/docs/user-guide/convert_arguments_to_doc.py
index acd5ffc7b..e23e5693a 100755
--- a/docs/user-guide/convert_arguments_to_doc.py
+++ b/docs/user-guide/convert_arguments_to_doc.py
@@ -15,7 +15,7 @@
# limitations under the License.
"""
-Convert the output of `ingress-nginx-controller --help` to
+Convert the output of `nginx-ingress-controller --help` to
a Markdown table.
"""
diff --git a/docs/user-guide/custom-errors.md b/docs/user-guide/custom-errors.md
index 159a82078..05678f9e6 100644
--- a/docs/user-guide/custom-errors.md
+++ b/docs/user-guide/custom-errors.md
@@ -27,5 +27,5 @@ An example of such custom backend is available inside the source repository at [
See also the [Custom errors][example-custom-errors] example.
[cm-custom-http-errors]: ./nginx-configuration/configmap.md#custom-http-errors
-[img-custom-error-pages]: https://github.com/kubernetes/ingress-nginx/tree/main/images/custom-error-pages
+[img-custom-error-pages]: https://github.com/kubernetes/ingress-nginx/tree/master/images/custom-error-pages
[example-custom-errors]: ../../examples/customization/custom-errors
diff --git a/docs/user-guide/default-backend.md b/docs/user-guide/default-backend.md
index f15561086..ccf11bb44 100644
--- a/docs/user-guide/default-backend.md
+++ b/docs/user-guide/default-backend.md
@@ -1,6 +1,6 @@
# Default backend
-The default backend is a service which handles all URL paths and hosts the Ingress-NGINX controller doesn't understand
+The default backend is a service which handles all URL paths and hosts the nginx controller doesn't understand
(i.e., all the requests that are not mapped with an Ingress).
Basically a default backend exposes two URLs:
@@ -9,5 +9,5 @@ Basically a default backend exposes two URLs:
- `/` that returns 404
!!! example
- The sub-directory [`/images/custom-error-pages`](https://github.com/kubernetes/ingress-nginx/tree/main/images/custom-error-pages)
+ The sub-directory [`/images/custom-error-pages`](https://github.com/kubernetes/ingress-nginx/tree/master/images/custom-error-pages)
provides an additional service for the purpose of customizing the error pages served via the default backend.
diff --git a/docs/user-guide/exposing-tcp-udp-services.md b/docs/user-guide/exposing-tcp-udp-services.md
index 9c14a7c39..6b595ffae 100644
--- a/docs/user-guide/exposing-tcp-udp-services.md
+++ b/docs/user-guide/exposing-tcp-udp-services.md
@@ -1,9 +1,7 @@
# Exposing TCP and UDP services
-While the Kubernetes Ingress resource only officially supports routing external HTTP(s) traffic to services, ingress-nginx can be configured to receive external TCP/UDP traffic from non-HTTP protocols and route them to internal services using TCP/UDP port mappings that are specified within a ConfigMap.
-
-To support this, the `--tcp-services-configmap` and `--udp-services-configmap` flags can be used to point to an existing config map where the key is the external port to use and the value indicates the service to expose using the format:
-`:::[PROXY]:[PROXY]`
+Ingress does not support TCP or UDP services. For this reason this Ingress controller uses the flags `--tcp-services-configmap` and `--udp-services-configmap` to point to an existing config map where the key is the external port to use and the value indicates the service to expose using the format:
+`::[PROXY]:[PROXY]`
It is also possible to use a number or the name of the port. The two last fields are optional.
Adding `PROXY` in either or both of the two last fields we can use [Proxy Protocol](https://www.nginx.com/resources/admin-guide/proxy-protocol) decoding (listen) and/or encoding (proxy_pass) in a TCP service.
@@ -65,9 +63,3 @@ spec:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
```
-Then, the configmap should be added into ingress controller's deployment args.
-```
- args:
- - /nginx-ingress-controller
- - --tcp-services-configmap=ingress-nginx/tcp-services
-```
diff --git a/docs/user-guide/external-articles.md b/docs/user-guide/external-articles.md
index 8a60ad567..d9fd828b8 100644
--- a/docs/user-guide/external-articles.md
+++ b/docs/user-guide/external-articles.md
@@ -2,6 +2,5 @@
- [Pain(less) NGINX Ingress](http://danielfm.me/posts/painless-nginx-ingress.html)
- [Accessing Kubernetes Pods from Outside of the Cluster](http://alesnosek.com/blog/2017/02/14/accessing-kubernetes-pods-from-outside-of-the-cluster)
-- [Kubernetes - Redirect HTTP to HTTPS with ELB and the Ingress-Nginx Controller](https://dev.to/tomhoule/kubernetes---redirect-http-to-https-with-elb-and-the-nginx-ingress-controller)
+- [Kubernetes - Redirect HTTP to HTTPS with ELB and the nginx ingress controller](https://dev.to/tomhoule/kubernetes---redirect-http-to-https-with-elb-and-the-nginx-ingress-controller)
- [Configure Nginx Ingress Controller for TLS termination on Kubernetes on Azure](https://blogs.technet.microsoft.com/livedevopsinjapan/2017/02/28/configure-nginx-ingress-controller-for-tls-termination-on-kubernetes-on-azure-2/)
-- [Secure your Nginx Ingress controller behind Google Cloud Armor or Identity-Aware Proxy (IAP)](https://medium.com/google-cloud/secure-your-nginx-ingress-controller-behind-cloud-armor-805d6109af86?sk=f64029bb5624b4ad5cd2828f4c358af3)
diff --git a/docs/user-guide/fcgi-services.md b/docs/user-guide/fcgi-services.md
index 9c222d9ad..7c9dd6138 100644
--- a/docs/user-guide/fcgi-services.md
+++ b/docs/user-guide/fcgi-services.md
@@ -1,3 +1,5 @@
+
+
# Exposing FastCGI Servers
> **FastCGI** is a [binary protocol](https://en.wikipedia.org/wiki/Binary_protocol "Binary protocol") for interfacing interactive programs with a [web server](https://en.wikipedia.org/wiki/Web_server "Web server"). [...] (It's) aim is to reduce the overhead related to interfacing between web server and CGI programs, allowing a server to handle more web page requests per unit of time.
@@ -6,60 +8,27 @@
The _ingress-nginx_ ingress controller can be used to directly expose [FastCGI](https://en.wikipedia.org/wiki/FastCGI) servers. Enabling FastCGI in your Ingress only requires setting the _backend-protocol_ annotation to `FCGI`, and with a couple more annotations you can customize the way _ingress-nginx_ handles the communication with your FastCGI _server_.
-For most practical use-cases, php applications are a good example. PHP is not HTML so a FastCGI server like php-fpm processes a index.php script for the response to a request. See a working example below.
-This [post in a FactCGI feature issue](https://github.com/kubernetes/ingress-nginx/issues/8207#issuecomment-2161405468) describes a test for the FastCGI feature. The same test is described below here.
+## Example Objects to Expose a FastCGI Pod
-## Example Objects to expose a FastCGI server pod
-
-### The FasctCGI server pod
-
-The _Pod_ object example below exposes port `9000`, which is the conventional FastCGI port.
+The _Pod_ example object below exposes port `9000`, which is the conventional FastCGI port.
```yaml
apiVersion: v1
kind: Pod
metadata:
name: example-app
- labels:
- app: example-app
+labels:
+ app: example-app
spec:
containers:
- name: example-app
- image: php:fpm-alpine
+ image: example-app:1.0
ports:
- containerPort: 9000
name: fastcgi
```
-- For this example to work, a HTML response should be received from the FastCGI server being exposed
-- A HTTP request to the FastCGI server pod should be sent
-- The response should be generated by a php script as that is what we are demonstrating here
-
-The image we are using here `php:fpm-alpine` does not ship with a ready to use php script inside it. So we need to provide the image with a simple php-script for this example to work.
-
-- Use `kubectl exec` to get into the example-app pod
-- You will land at the path `/var/www/html`
-- Create a simple php script there at the path /var/www/html called index.php
-- Make the index.php file look like this
-
-```
-
-
-
- PHP Test
-
-
- FastCGI Test Worked!
'; ?>
-
-
-```
-
-- Save and exit from the shell in the pod
-- If you delete the pod, then you will have to recreate the file as this method is not persistent
-
-### The FastCGI service
-
The _Service_ object example below matches port `9000` from the _Pod_ object above.
```yaml
@@ -76,100 +45,38 @@ spec:
name: fastcgi
```
-### The configMap object and the ingress object
-
-The _Ingress_ and _ConfigMap_ objects below demonstrate the supported _FastCGI_ specific annotations.
-
-!!! Important
- NGINX actually has 50 [FastCGI directives](https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#directives)
- All of the nginx directives have not been exposed in the ingress yet
-
-### The ConfigMap object
-
-This configMap object is required to set the parameters of [FastCGI directives](https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#directives)
-
-!!! Attention
- - The _ConfigMap_ **must** be created before creating the ingress object
-
-- The _Ingress Controller_ needs to find the configMap when the _Ingress_ object with the FastCGI annotations is created
-- So create the configMap before the ingress
-- If the configMap is created after the ingress is created, then you will need to restart the _Ingress Controller_ pods.
+And the _Ingress_ and _ConfigMap_ objects below demonstrates the supported _FastCGI_ specific annotations (NGINX actually has 50 FastCGI directives, all of which have not been exposed in the ingress yet), and matches the service `example-service`, and the port named `fastcgi` from above. The _ConfigMap_ **must** be created first for the _Ingress Controller_ to be able to find it when the _Ingress_ object is created, otherwise you will need to restart the _Ingress Controller_ pods.
```yaml
+# The ConfigMap MUST be created first for the ingress controller to be able to
+# find it when the Ingress object is created.
+
apiVersion: v1
kind: ConfigMap
metadata:
name: example-cm
data:
- SCRIPT_FILENAME: "/var/www/html/index.php"
+ SCRIPT_FILENAME: "/example/index.php"
-```
+---
-### The ingress object
-
-- Do not create the ingress shown below until you have created the configMap seen above.
-- You can see that this ingress matches the service `example-service`, and the port named `fastcgi` from above.
-
-```
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
+ kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/backend-protocol: "FCGI"
nginx.ingress.kubernetes.io/fastcgi-index: "index.php"
nginx.ingress.kubernetes.io/fastcgi-params-configmap: "example-cm"
name: example-app
spec:
- ingressClassName: nginx
rules:
- host: app.example.com
http:
paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: example-service
- port:
- name: fastcgi
-```
-
-## Send a request to the exposed FastCGI server
-
-You will have to look at the external-ip of the ingress or you have to send the HTTP request to the ClusterIP address of the ingress-nginx controller pod.
-
-```
-% curl 172.19.0.2 -H "Host: app.example.com" -vik
-* Trying 172.19.0.2:80...
-* Connected to 172.19.0.2 (172.19.0.2) port 80
-> GET / HTTP/1.1
-> Host: app.example.com
-> User-Agent: curl/8.6.0
-> Accept: */*
->
-< HTTP/1.1 200 OK
-HTTP/1.1 200 OK
-< Date: Wed, 12 Jun 2024 07:11:59 GMT
-Date: Wed, 12 Jun 2024 07:11:59 GMT
-< Content-Type: text/html; charset=UTF-8
-Content-Type: text/html; charset=UTF-8
-< Transfer-Encoding: chunked
-Transfer-Encoding: chunked
-< Connection: keep-alive
-Connection: keep-alive
-< X-Powered-By: PHP/8.3.8
-X-Powered-By: PHP/8.3.8
-
-<
-
-
-
- PHP Test
-
-
-
FastCGI Test Worked
-
-
+ - backend:
+ serviceName: example-service
+ servicePort: fastcgi
```
## FastCGI Ingress Annotations
@@ -182,13 +89,13 @@ To enable FastCGI, the `nginx.ingress.kubernetes.io/backend-protocol` annotation
### The `nginx.ingress.kubernetes.io/fastcgi-index` Annotation
-To specify an index file, the `fastcgi-index` annotation value can optionally be set. In the example below, the value is set to `index.php`. This annotation corresponds to [the _NGINX_ `fastcgi_index` directive](https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_index).
+To specify an index file, the `fastcgi-index` annotation value can optionally be set. In the example below, the value is set to `index.php`. This annotation corresponds to [the _NGINX_ `fastcgi_index` directive](http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_index).
> `nginx.ingress.kubernetes.io/fastcgi-index: "index.php"`
### The `nginx.ingress.kubernetes.io/fastcgi-params-configmap` Annotation
-To specify [_NGINX_ `fastcgi_param` directives](https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_param), the `fastcgi-params-configmap` annotation is used, which in turn must lead to a _ConfigMap_ object containing the _NGINX_ `fastcgi_param` directives as key/values.
+To specify [_NGINX_ `fastcgi_param` directives](http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_param), the `fastcgi-params-configmap` annotation is used, which in turn must lead to a _ConfigMap_ object containing the _NGINX_ `fastcgi_param` directives as key/values.
> `nginx.ingress.kubernetes.io/fastcgi-params-configmap: "example-configmap"`
@@ -203,7 +110,6 @@ data:
SCRIPT_FILENAME: "/example/index.php"
HTTP_PROXY: ""
```
-
Using the _namespace/_ prefix is also supported, for example:
> `nginx.ingress.kubernetes.io/fastcgi-params-configmap: "example-namespace/example-configmap"`
diff --git a/docs/user-guide/ingress-path-matching.md b/docs/user-guide/ingress-path-matching.md
index 43d049043..092cf9264 100644
--- a/docs/user-guide/ingress-path-matching.md
+++ b/docs/user-guide/ingress-path-matching.md
@@ -3,10 +3,7 @@
## Regular Expression Support
!!! important
- Regular expressions is not supported in the `spec.rules.host` field. The wildcard character '\*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "\*").
-
-!!! note
- Please see the [FAQ](../faq.md#validation-of-path) for Validation Of __`path`__
+ Regular expressions and wild cards are not supported in the `spec.rules.host` field. Full hostnames must be used.
The ingress controller supports **case insensitive** regular expressions in the `spec.rules.http.paths.path` field.
This can be enabled by setting the `nginx.ingress.kubernetes.io/use-regex` annotation to `true` (the default is false).
@@ -18,25 +15,21 @@ This can be enabled by setting the `nginx.ingress.kubernetes.io/use-regex` annot
See the [description](./nginx-configuration/annotations.md#use-regex) of the `use-regex` annotation for more details.
```yaml
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: test-ingress
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
- ingressClassName: nginx
rules:
- host: test.com
http:
paths:
- path: /foo/.*
- pathType: ImplementationSpecific
backend:
- service:
- name: test
- port:
- number: 80
+ serviceName: test
+ servicePort: 80
```
The preceding ingress definition would translate to the following location block within the NGINX configuration for the `test.com` server:
@@ -58,52 +51,41 @@ In NGINX, regular expressions follow a **first match** policy. In order to enabl
Let the following two ingress definitions be created:
```yaml
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: test-ingress-1
spec:
- ingressClassName: nginx
rules:
- host: test.com
http:
paths:
- path: /foo/bar
- pathType: Prefix
backend:
- service:
- name: service1
- port:
- number: 80
+ serviceName: service1
+ servicePort: 80
- path: /foo/bar/
- pathType: Prefix
backend:
- service:
- name: service2
- port:
- number: 80
+ serviceName: service2
+ servicePort: 80
```
```yaml
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: test-ingress-2
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
- ingressClassName: nginx
rules:
- host: test.com
http:
paths:
- path: /foo/bar/(.+)
- pathType: ImplementationSpecific
backend:
- service:
- name: service3
- port:
- number: 80
+ serviceName: service3
+ servicePort: 80
```
The ingress controller would define the following location blocks, in order of descending length, within the NGINX template for the `test.com` server:
@@ -143,32 +125,25 @@ This case is expected and a result of NGINX's a first match policy for paths tha
Let the following ingress be defined:
```yaml
-apiVersion: networking.k8s.io/v1
+apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: test-ingress-3
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
- ingressClassName: nginx
rules:
- host: test.com
http:
paths:
- path: /foo/bar/bar
- pathType: Prefix
backend:
- service:
- name: test
- port:
- number: 80
+ serviceName: test
+ servicePort: 80
- path: /foo/bar/[A-Z0-9]{3}
- pathType: ImplementationSpecific
backend:
- service:
- name: test
- port:
- number: 80
+ serviceName: test
+ servicePort: 80
```
The ingress controller would define the following location blocks (in this order) within the NGINX template for the `test.com` server:
diff --git a/docs/user-guide/k8s-122-migration.md b/docs/user-guide/k8s-122-migration.md
deleted file mode 100644
index 0880f020e..000000000
--- a/docs/user-guide/k8s-122-migration.md
+++ /dev/null
@@ -1,194 +0,0 @@
-# FAQ - Migration to Kubernetes 1.22 and apiVersion `networking.k8s.io/v1`
-
-If you are using Ingress objects in your cluster (running Kubernetes older than v1.22),
-and you plan to upgrade to Kubernetes v1.22, this page is relevant to you.
-
-- Please read this [official blog on deprecated Ingress API versions](https://kubernetes.io/blog/2021/07/26/update-with-ingress-nginx/)
-- Please read this [official documentation on the IngressClass object](https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class)
-
-## What is an IngressClass and why is it important for users of ingress-nginx controller now?
-
-IngressClass is a Kubernetes resource. See the description below.
-It's important because until now, a default install of the ingress-nginx controller did not require a IngressClass object.
-From version 1.0.0 of the ingress-nginx controller, an IngressClass object is required.
-
-On clusters with more than one instance of the ingress-nginx controller, all instances of the controllers must be aware of which Ingress objects they serve.
-The `ingressClassName` field of an Ingress is the way to let the controller know about that.
-
-```console
-kubectl explain ingressclass
-```
-
-```
-KIND: IngressClass
-VERSION: networking.k8s.io/v1
-DESCRIPTION:
- IngressClass represents the class of the Ingress, referenced by the Ingress
- Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be
- used to indicate that an IngressClass should be considered default. When a
- single IngressClass resource has this annotation set to true, new Ingress
- resources without a class specified will be assigned this default class.
-FIELDS:
- apiVersion
- APIVersion defines the versioned schema of this representation of an
- object. Servers should convert recognized schemas to the latest internal
- value, and may reject unrecognized values. More info:
- https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- kind
- Kind is a string value representing the REST resource this object
- represents. Servers may infer this from the endpoint the client submits
- requests to. Cannot be updated. In CamelCase. More info:
- https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- metadata