Compare commits
2 Commits
3df789ef65
...
292c558f56
| Author | SHA1 | Date | |
|---|---|---|---|
|
292c558f56
|
|||
|
558922b90d
|
@@ -13,7 +13,6 @@ jobs:
|
||||
node-labels: ${{ steps.filter.outputs.node-labels }}
|
||||
coredns: ${{ steps.filter.outputs.coredns }}
|
||||
traefik: ${{ steps.filter.outputs.traefik }}
|
||||
crowdsec: ${{ steps.filter.outputs.crowdsec }}
|
||||
steps:
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
||||
with:
|
||||
@@ -28,8 +27,6 @@ jobs:
|
||||
- 'coredns/**'
|
||||
traefik:
|
||||
- 'traefik/**'
|
||||
crowdsec:
|
||||
- 'crowdsec/**'
|
||||
|
||||
deploy-node-labels:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -95,16 +92,6 @@ jobs:
|
||||
{
|
||||
"auth": "${{ secrets.ADMIN_BASIC_AUTH_CREDENTIALS }}"
|
||||
}
|
||||
- name: Set crowdsec bouncer api key
|
||||
uses: azure/k8s-create-secret@6e0ba8047235646753f2a3a3b359b4d0006ff218 # v5
|
||||
with:
|
||||
namespace: kube-system
|
||||
secret-name: crowdsec-bouncer-api-key
|
||||
secret-type: generic
|
||||
data: |
|
||||
{
|
||||
"api-key": "${{ secrets.CROWDSEC_BOUNCER_API_KEY }}"
|
||||
}
|
||||
- name: Deploy
|
||||
uses: azure/k8s-deploy@6f7c489cecd8da05646259d9fa3daae92e095c7b # v5.0.4
|
||||
with:
|
||||
@@ -113,30 +100,6 @@ jobs:
|
||||
strategy: basic
|
||||
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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
||||
- uses: https://gitea.t000-n.de/t.behrendt/k_deploy_workflows/.gitea/actions/extract-namespace-from-repo-name@v0
|
||||
id: namespace
|
||||
with:
|
||||
repo: ${{ github.repository }}
|
||||
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4
|
||||
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
|
||||
with:
|
||||
version: "3.15.0"
|
||||
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4
|
||||
with:
|
||||
method: kubeconfig
|
||||
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||
- name: Deploy helm
|
||||
uses: helmfile/helmfile-action@37b026692c13757b2852cd7449e6e82eccc345d3 # v2.1.1
|
||||
with:
|
||||
helmfile-args: apply
|
||||
helmfile-workdirectory: "crowdsec"
|
||||
|
||||
deploy-docker-registry-secret:
|
||||
runs-on: ubuntu-latest
|
||||
needs: check-changes
|
||||
|
||||
@@ -47,23 +47,3 @@ jobs:
|
||||
namespace: kube-system
|
||||
lintType: dryrun
|
||||
manifests: "traefik/"
|
||||
|
||||
validate-crowdsec:
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
- linux_amd64
|
||||
steps:
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
||||
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4
|
||||
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
|
||||
with:
|
||||
version: "3.15.0"
|
||||
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4
|
||||
with:
|
||||
method: kubeconfig
|
||||
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||
- name: Validate Helm
|
||||
uses: helmfile/helmfile-action@37b026692c13757b2852cd7449e6e82eccc345d3 # v2.1.1
|
||||
with:
|
||||
helmfile-args: diff
|
||||
helmfile-workdirectory: "crowdsec"
|
||||
|
||||
@@ -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.20.0
|
||||
values:
|
||||
- values.yaml
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user