From aebb340f53c964b9a574d410fab64b0e49cfe280 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Thu, 24 Oct 2024 17:06:20 +0200 Subject: [PATCH] add cyberchef --- argocd-applications/base/cyberchef.yaml | 20 ++++++++++++++++++++ argocd-applications/kustomization.yaml | 1 + cert-manager/kustomization.yaml | 2 +- cyberchef/base/cyberchef-deployment.yaml | 21 +++++++++++++++++++++ cyberchef/base/cyberchef-ingress.yaml | 12 ++++++++++++ cyberchef/base/cyberchef-namespace.yaml | 4 ++++ cyberchef/base/cyberchef-svc.yaml | 11 +++++++++++ cyberchef/kustomization.yaml | 10 ++++++++++ 8 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 argocd-applications/base/cyberchef.yaml create mode 100644 cyberchef/base/cyberchef-deployment.yaml create mode 100644 cyberchef/base/cyberchef-ingress.yaml create mode 100644 cyberchef/base/cyberchef-namespace.yaml create mode 100644 cyberchef/base/cyberchef-svc.yaml create mode 100644 cyberchef/kustomization.yaml diff --git a/argocd-applications/base/cyberchef.yaml b/argocd-applications/base/cyberchef.yaml new file mode 100644 index 0000000..82ba59a --- /dev/null +++ b/argocd-applications/base/cyberchef.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argo-app-cyberchef + namespace: argocd +spec: + destination: + name: '' + namespace: default + server: https://kubernetes.default.svc + source: + path: cyberchef + repoURL: https://git.mziesel.nl/mans/argocd-test + targetRevision: HEAD + sources: [] + project: default + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/argocd-applications/kustomization.yaml b/argocd-applications/kustomization.yaml index aaaee64..58c55a9 100644 --- a/argocd-applications/kustomization.yaml +++ b/argocd-applications/kustomization.yaml @@ -9,3 +9,4 @@ resources: - ./base/traefik-application.yaml - ./base/ip-mziesel-nl-application.yaml - ./base/cert-manager.yaml +- ./base/cyberchef.yaml diff --git a/cert-manager/kustomization.yaml b/cert-manager/kustomization.yaml index b17bd78..bb1fc58 100644 --- a/cert-manager/kustomization.yaml +++ b/cert-manager/kustomization.yaml @@ -4,6 +4,6 @@ kind: Kustomization namespace: cert-manager resources: - - https://github.com/cert-manager/cert-manager/releases/download/v1.16.1/cert-manager.yaml + - github.com/cert-manager/cert-manager/releases/download/v1.16.1/cert-manager.yaml - ./base/mziesel-ca.yaml - ./base/cloudflare-clusterissuer.yaml diff --git a/cyberchef/base/cyberchef-deployment.yaml b/cyberchef/base/cyberchef-deployment.yaml new file mode 100644 index 0000000..807e0e0 --- /dev/null +++ b/cyberchef/base/cyberchef-deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cyberchef + namespace: cyberchef +spec: + replicas: 3 + selector: + matchLabels: + app: cyberchef + template: + metadata: + labels: + app: cyberchef + spec: + containers: + - image: ghcr.io/gchq/cyberchef:10.19.4 + name: cyberchef + ports: + - name: web + containerPort: 80 diff --git a/cyberchef/base/cyberchef-ingress.yaml b/cyberchef/base/cyberchef-ingress.yaml new file mode 100644 index 0000000..c00df2f --- /dev/null +++ b/cyberchef/base/cyberchef-ingress.yaml @@ -0,0 +1,12 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: cyberchef-ingressroute +spec: + routes: + - match: Host(`cyberchef.mziesel.nl`) + kind: Rule + services: + - name: cyberchef + port: web + tls: {} diff --git a/cyberchef/base/cyberchef-namespace.yaml b/cyberchef/base/cyberchef-namespace.yaml new file mode 100644 index 0000000..25eb007 --- /dev/null +++ b/cyberchef/base/cyberchef-namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: cyberchef diff --git a/cyberchef/base/cyberchef-svc.yaml b/cyberchef/base/cyberchef-svc.yaml new file mode 100644 index 0000000..ae083ea --- /dev/null +++ b/cyberchef/base/cyberchef-svc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: cyberchef +spec: + ports: + - name: web + port: 80 + targetPort: web + selector: + app: cyberchef diff --git a/cyberchef/kustomization.yaml b/cyberchef/kustomization.yaml new file mode 100644 index 0000000..b7c779b --- /dev/null +++ b/cyberchef/kustomization.yaml @@ -0,0 +1,10 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: cyberchef + +resources: + - ./base/cyberchef-namespace.yaml + - ./base/cyberchef-deployment.yaml + - ./base/cyberchef-svc.yaml + - ./base/cyberchef-ingress.yaml