Compare commits

..

6 Commits

Author SHA1 Message Date
9a01da0367 chore(deps): update azure/k8s-set-context action to v5 (#64)
All checks were successful
Deploy / check-changes (push) Successful in 7s
Deploy / deploy-node-labels (push) Has been skipped
Deploy / deploy-coredns (push) Has been skipped
Deploy / deploy-traefik (push) Has been skipped
Deploy / deploy-docker-registry-secret (push) Successful in 19s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [azure/k8s-set-context](https://github.com/azure/k8s-set-context) | action | major | `v4.0.2` → `v5.0.0` |

---

### Release Notes

<details>
<summary>azure/k8s-set-context (azure/k8s-set-context)</summary>

### [`v5.0.0`](https://github.com/Azure/k8s-set-context/releases/tag/v5.0.0)

[Compare Source](https://github.com/azure/k8s-set-context/compare/v4.0.2...v5.0.0)

##### Features

- [#&#8203;227](https://github.com/azure/k8s-set-context/issues/227) Migrate to ESM with esbuild, vitest

##### Runtime and platform

- [#&#8203;222](https://github.com/azure/k8s-set-context/issues/222) Update Node version from 20 to 24

##### Dependabot updates

- [#&#8203;231](https://github.com/azure/k8s-set-context/issues/231) Bump github/codeql-action in /.github/workflows in the actions group
- [#&#8203;230](https://github.com/azure/k8s-set-context/issues/230) Bump typescript in the actions group across 1 directory
- [#&#8203;228](https://github.com/azure/k8s-set-context/issues/228) Bump picomatch
- [#&#8203;226](https://github.com/azure/k8s-set-context/issues/226) Bump github/codeql-action in /.github/workflows in the actions group
- [#&#8203;223](https://github.com/azure/k8s-set-context/issues/223) Bump undici from 6.23.0 to 6.24.0
- [#&#8203;221](https://github.com/azure/k8s-set-context/issues/221) Bump the actions group in /.github/workflows with 2 updates
- [#&#8203;218](https://github.com/azure/k8s-set-context/issues/218) Bump the actions group in /.github/workflows with 2 updates
- [#&#8203;219](https://github.com/azure/k8s-set-context/issues/219) Bump minimatch
- [#&#8203;217](https://github.com/azure/k8s-set-context/issues/217) Bump undici and [@&#8203;actions/http-client](https://github.com/actions/http-client)
- [#&#8203;216](https://github.com/azure/k8s-set-context/issues/216) Bump github/codeql-action in /.github/workflows in the actions group
- [#&#8203;214](https://github.com/azure/k8s-set-context/issues/214) Bump the actions group in /.github/workflows with 2 updates
- [#&#8203;212](https://github.com/azure/k8s-set-context/issues/212) Bump the actions group in /.github/workflows with 2 updates
- [#&#8203;211](https://github.com/azure/k8s-set-context/issues/211) Bump the actions group with 3 updates
- [#&#8203;210](https://github.com/azure/k8s-set-context/issues/210) Bump the actions group with 2 updates
- [#&#8203;208](https://github.com/azure/k8s-set-context/issues/208) Bump [@&#8203;types/node](https://github.com/types/node) from 25.0.2 to 25.0.3 in the actions group
- [#&#8203;209](https://github.com/azure/k8s-set-context/issues/209) Bump github/codeql-action in /.github/workflows in the actions group
- [#&#8203;206](https://github.com/azure/k8s-set-context/issues/206) Bump the actions group with 3 updates
- [#&#8203;207](https://github.com/azure/k8s-set-context/issues/207) Bump github/codeql-action in /.github/workflows in the actions group
- [#&#8203;205](https://github.com/azure/k8s-set-context/issues/205) Bump the actions group in /.github/workflows with 4 updates
- [#&#8203;204](https://github.com/azure/k8s-set-context/issues/204) Bump the actions group with 2 updates
- [#&#8203;202](https://github.com/azure/k8s-set-context/issues/202) Bump the actions group in /.github/workflows with 2 updates
- [#&#8203;203](https://github.com/azure/k8s-set-context/issues/203) Bump prettier from 3.6.2 to 3.7.3 in the actions group
- [#&#8203;201](https://github.com/azure/k8s-set-context/issues/201) Bump glob from 10.4.5 to 10.5.0
- [#&#8203;200](https://github.com/azure/k8s-set-context/issues/200) Bump js-yaml from 3.14.1 to 3.14.2
- [#&#8203;198](https://github.com/azure/k8s-set-context/issues/198) Bump js-yaml from 4.1.0 to 4.1.1
- [#&#8203;199](https://github.com/azure/k8s-set-context/issues/199) Bump the actions group with 2 updates

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41LjQiLCJ1cGRhdGVkSW5WZXIiOiI0My41LjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImFjdGlvbiIsImRlcHMiXX0=-->

Reviewed-on: https://gitea.t000-n.de/t.behrendt/k/pulls/64
Reviewed-by: t.behrendt <t.behrendt@noreply.localhost>
Co-authored-by: Renovate Bot <renovate@t00n.de>
Co-committed-by: Renovate Bot <renovate@t00n.de>
2026-04-16 19:31:08 +02:00
a3e9362d56 refactor: to use hostPath (#63)
All checks were successful
Deploy / check-changes (push) Successful in 7s
Deploy / deploy-node-labels (push) Has been skipped
Deploy / deploy-coredns (push) Has been skipped
Deploy / deploy-traefik (push) Successful in 10s
Deploy / deploy-docker-registry-secret (push) Successful in 26s
Reviewed-on: #63
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
2026-04-06 17:30:16 +02:00
1ce061b98f chore: remove crowdsec (#62)
All checks were successful
Deploy / check-changes (push) Successful in 11s
Deploy / deploy-node-labels (push) Has been skipped
Deploy / deploy-coredns (push) Has been skipped
Deploy / deploy-traefik (push) Has been skipped
Deploy / deploy-docker-registry-secret (push) Successful in 18s
Reviewed-on: #62
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
2026-04-06 14:25:24 +02:00
e8071a7e98 chore(deps): update azure/setup-helm action to v5 (#58)
All checks were successful
Deploy / check-changes (push) Successful in 5s
Deploy / deploy-node-labels (push) Has been skipped
Deploy / deploy-coredns (push) Has been skipped
Deploy / deploy-traefik (push) Has been skipped
Deploy / deploy-crowdsec (push) Has been skipped
Deploy / deploy-docker-registry-secret (push) Successful in 29s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [azure/setup-helm](https://github.com/azure/setup-helm) | action | major | `v4` → `v5` |

---

### Release Notes

<details>
<summary>azure/setup-helm (azure/setup-helm)</summary>

### [`v5`](https://github.com/azure/setup-helm/compare/v4...v5)

[Compare Source](https://github.com/azure/setup-helm/compare/v4...v5)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41LjQiLCJ1cGRhdGVkSW5WZXIiOiI0My41LjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImFjdGlvbiIsImRlcHMiXX0=-->

Reviewed-on: #58
Reviewed-by: t.behrendt <t.behrendt@noreply.localhost>
Co-authored-by: Renovate Bot <renovate@t00n.de>
Co-committed-by: Renovate Bot <renovate@t00n.de>
2026-04-03 09:12:38 +02:00
caf741d9df chore(deps): update helmfile/helmfile-action action to v2.4.1 (#61)
All checks were successful
Deploy / check-changes (push) Successful in 11s
Deploy / deploy-node-labels (push) Has been skipped
Deploy / deploy-coredns (push) Has been skipped
Deploy / deploy-traefik (push) Has been skipped
Deploy / deploy-crowdsec (push) Has been skipped
Deploy / deploy-docker-registry-secret (push) Successful in 26s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [helmfile/helmfile-action](https://github.com/helmfile/helmfile-action) | action | patch | `v2.4.0` → `v2.4.1` |

---

### Release Notes

<details>
<summary>helmfile/helmfile-action (helmfile/helmfile-action)</summary>

### [`v2.4.1`](https://github.com/helmfile/helmfile-action/releases/tag/v2.4.1)

[Compare Source](https://github.com/helmfile/helmfile-action/compare/v2.4.0...v2.4.1)

##### What's Changed

- build(deps-dev): bump eslint-plugin-jest from 29.15.0 to 29.15.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;664](https://github.com/helmfile/helmfile-action/pull/664)
- build(deps-dev): bump typescript from 5.9.3 to 6.0.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;663](https://github.com/helmfile/helmfile-action/pull/663)

**Full Changelog**: <https://github.com/helmfile/helmfile-action/compare/v2.4.0...v2.4.1>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41LjQiLCJ1cGRhdGVkSW5WZXIiOiI0My41LjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImFjdGlvbiIsImRlcHMiXX0=-->

Reviewed-on: #61
Reviewed-by: t.behrendt <t.behrendt@noreply.localhost>
Co-authored-by: Renovate Bot <renovate@t00n.de>
Co-committed-by: Renovate Bot <renovate@t00n.de>
2026-04-03 09:11:46 +02:00
c29bee6f33 chore(deps): update helmfile/helmfile-action action to v2.4.0 (#60)
All checks were successful
Deploy / check-changes (push) Successful in 21s
Deploy / deploy-node-labels (push) Has been skipped
Deploy / deploy-coredns (push) Has been skipped
Deploy / deploy-traefik (push) Has been skipped
Deploy / deploy-crowdsec (push) Has been skipped
Deploy / deploy-docker-registry-secret (push) Successful in 36s
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| [helmfile/helmfile-action](https://github.com/helmfile/helmfile-action) | action | minor | `v2.3.1` → `v2.4.0` | `v2.4.1` |

---

### Release Notes

<details>
<summary>helmfile/helmfile-action (helmfile/helmfile-action)</summary>

### [`v2.4.0`](https://github.com/helmfile/helmfile-action/releases/tag/v2.4.0)

[Compare Source](https://github.com/helmfile/helmfile-action/compare/v2.3.1...v2.4.0)

##### What's Changed

- build(deps-dev): bump [@&#8203;types/node](https://github.com/types/node) from 25.3.3 to 25.3.5 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;655](https://github.com/helmfile/helmfile-action/pull/655)
- build(deps-dev): bump [@&#8203;eslint/eslintrc](https://github.com/eslint/eslintrc) from 3.3.4 to 3.3.5 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;657](https://github.com/helmfile/helmfile-action/pull/657)
- build(deps-dev): bump [@&#8203;eslint/js](https://github.com/eslint/js) from 9.39.3 to 9.39.4 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;656](https://github.com/helmfile/helmfile-action/pull/656)
- build(deps-dev): bump jest from 30.2.0 to 30.3.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;659](https://github.com/helmfile/helmfile-action/pull/659)
- Use node24 on runners by [@&#8203;Cardds](https://github.com/Cardds) in [#&#8203;662](https://github.com/helmfile/helmfile-action/pull/662)
- build(deps-dev): bump [@&#8203;types/node](https://github.com/types/node) from 25.3.5 to 25.5.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;660](https://github.com/helmfile/helmfile-action/pull/660)

##### New Contributors

- [@&#8203;Cardds](https://github.com/Cardds) made their first contribution in [#&#8203;662](https://github.com/helmfile/helmfile-action/pull/662)

**Full Changelog**: <https://github.com/helmfile/helmfile-action/compare/v2.3.1...v2.4.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41LjQiLCJ1cGRhdGVkSW5WZXIiOiI0My41LjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImFjdGlvbiIsImRlcHMiXX0=-->

Reviewed-on: #60
Reviewed-by: t.behrendt <t.behrendt@noreply.localhost>
Co-authored-by: Renovate Bot <renovate@t00n.de>
Co-committed-by: Renovate Bot <renovate@t00n.de>
2026-03-28 16:32:28 +01:00
6 changed files with 42 additions and 128 deletions

View File

@@ -13,7 +13,6 @@ jobs:
node-labels: ${{ steps.filter.outputs.node-labels }} node-labels: ${{ steps.filter.outputs.node-labels }}
coredns: ${{ steps.filter.outputs.coredns }} coredns: ${{ steps.filter.outputs.coredns }}
traefik: ${{ steps.filter.outputs.traefik }} traefik: ${{ steps.filter.outputs.traefik }}
crowdsec: ${{ steps.filter.outputs.crowdsec }}
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with: with:
@@ -28,8 +27,6 @@ jobs:
- 'coredns/**' - 'coredns/**'
traefik: traefik:
- 'traefik/**' - 'traefik/**'
crowdsec:
- 'crowdsec/**'
deploy-node-labels: deploy-node-labels:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -38,7 +35,7 @@ jobs:
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0 - uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2 - uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
with: with:
method: kubeconfig method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }} kubeconfig: ${{ secrets.KUBECONFIG }}
@@ -53,7 +50,7 @@ jobs:
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0 - uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2 - uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
with: with:
method: kubeconfig method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }} kubeconfig: ${{ secrets.KUBECONFIG }}
@@ -71,7 +68,7 @@ jobs:
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0 - uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2 - uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
with: with:
method: kubeconfig method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }} kubeconfig: ${{ secrets.KUBECONFIG }}
@@ -95,16 +92,6 @@ jobs:
{ {
"auth": "${{ secrets.ADMIN_BASIC_AUTH_CREDENTIALS }}" "auth": "${{ secrets.ADMIN_BASIC_AUTH_CREDENTIALS }}"
} }
- name: Set crowdsec bouncer api key
uses: azure/k8s-create-secret@6e0ba8047235646753f2a3a3b359b4d0006ff218 # v5.0.1
with:
namespace: kube-system
secret-name: crowdsec-bouncer-api-key
secret-type: generic
data: |
{
"api-key": "${{ secrets.CROWDSEC_BOUNCER_API_KEY }}"
}
- name: Deploy - name: Deploy
uses: azure/k8s-deploy@c8cfec839dc09896b3b8cc40cd13d04792680771 # v5.1.0 uses: azure/k8s-deploy@c8cfec839dc09896b3b8cc40cd13d04792680771 # v5.1.0
with: with:
@@ -113,37 +100,13 @@ jobs:
strategy: basic strategy: basic
namespace: kube-system namespace: kube-system
deploy-crowdsec:
runs-on: ubuntu-latest
needs: check-changes
if: ${{ needs.check-changes.outputs.crowdsec == 'true' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: https://gitea.t000-n.de/t.behrendt/k_deploy_workflows/.gitea/actions/extract-namespace-from-repo-name@c373c34c836716e663e2d6379e686997bfd7746c # 0.0.6
id: namespace
with:
repo: ${{ github.repository }}
- uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
with:
version: "3.15.0"
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
- name: Deploy helm
uses: helmfile/helmfile-action@c58e4737b8a69764d8294a70fcbcb0a63573dae9 # v2.3.1
with:
helmfile-args: apply
helmfile-workdirectory: "crowdsec"
deploy-docker-registry-secret: deploy-docker-registry-secret:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: check-changes needs: check-changes
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0 - uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2 - uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
with: with:
method: kubeconfig method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }} kubeconfig: ${{ secrets.KUBECONFIG }}

View File

@@ -11,7 +11,7 @@ jobs:
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0 - uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2 - uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
with: with:
method: kubeconfig method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }} kubeconfig: ${{ secrets.KUBECONFIG }}
@@ -24,7 +24,7 @@ jobs:
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0 - uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2 - uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
with: with:
method: kubeconfig method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }} kubeconfig: ${{ secrets.KUBECONFIG }}
@@ -37,7 +37,7 @@ jobs:
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0 - uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2 - uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
with: with:
method: kubeconfig method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }} kubeconfig: ${{ secrets.KUBECONFIG }}
@@ -47,23 +47,3 @@ jobs:
namespace: kube-system namespace: kube-system
lintType: dryrun lintType: dryrun
manifests: "traefik/" manifests: "traefik/"
validate-crowdsec:
runs-on:
- ubuntu-latest
- linux_amd64
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: azure/setup-kubectl@15650b3ad78fff148532a140b8a4c821796b2d7b # v5.0.0
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
with:
version: "3.15.0"
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
- name: Validate Helm
uses: helmfile/helmfile-action@c58e4737b8a69764d8294a70fcbcb0a63573dae9 # v2.3.1
with:
helmfile-args: diff
helmfile-workdirectory: "crowdsec"

View File

@@ -1,12 +0,0 @@
repositories:
- name: crowdsec
url: https://crowdsecurity.github.io/helm-charts
releases:
- name: crowdsec
namespace: kube-system
createNamespace: false
chart: crowdsec/crowdsec
version: 0.22.1
values:
- values.yaml

View File

@@ -1,35 +0,0 @@
container_runtime: containerd
agent:
enabled: true
acquisition:
- namespace: kube-system
podName: traefik-*
program: traefik
metrics:
enabled: false
lapi:
enabled: true
replicas: 1
metrics:
enabled: true
persistentVolume:
data:
enabled: true
size: 1Gi
config:
enabled: true
size: 100Mi
config:
config.yaml.local: |
api:
server:
auto_registration:
enabled: true
token: "${REGISTRATION_TOKEN}"
allowed_ranges:
- "10.0.0.0/8"
- "172.16.0.0/12"
- "192.168.0.0/16"

34
traefik/pvc.yaml Normal file
View File

@@ -0,0 +1,34 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-traefik-hostpath-static
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: traefik-certificates
local:
path: /mnt/longhorn1/svc/kube-system/main/traefik/data
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- k3sh0
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-traefik
namespace: kube-system
spec:
accessModes:
- ReadWriteOnce
storageClassName: traefik-certificates
resources:
requests:
storage: 10Gi

View File

@@ -32,11 +32,6 @@ spec:
secretKeyRef: secretKeyRef:
key: apiKey key: apiKey
name: ionos-api-credentials name: ionos-api-credentials
- name: CROWDSEC_BOUNCER_API_KEY
valueFrom:
secretKeyRef:
name: crowdsec-bouncer-api-key
key: api-key
ports: ports:
web: web:
port: 8000 port: 8000
@@ -65,16 +60,5 @@ spec:
persistence: persistence:
enabled: true enabled: true
name: data name: data
accessMode: ReadWriteMany existingClaim: pvc-traefik
size: 1Gi
storageClass: longhorn
path: /data path: /data
#experimental:
# plugins:
# crowdsec-bouncer-traefik-plugin:
# moduleName: github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin
# version: v1.4.6
#additionalArguments:
# - "--providers.kubernetescrd"
# - "--entrypoints.web.http.middlewares=crowdsec-bouncer@kubernetescrd"
# - "--entrypoints.websecure.http.middlewares=kube-system-crowdsec-bouncer@kubernetescrd"