From 200ad9a7bada618f28aa96f91f1bbf6963cfad49 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 23 Mar 2024 12:52:39 +0100 Subject: [PATCH] clean up cyberchef k3s stack --- kubernetes/{mysite.yaml => cyberchef.yaml} | 20 +++++++++----------- kubernetes/freshrss.yaml | 3 +-- 2 files changed, 10 insertions(+), 13 deletions(-) rename kubernetes/{mysite.yaml => cyberchef.yaml} (64%) diff --git a/kubernetes/mysite.yaml b/kubernetes/cyberchef.yaml similarity index 64% rename from kubernetes/mysite.yaml rename to kubernetes/cyberchef.yaml index 6db87a6..ad935c0 100644 --- a/kubernetes/mysite.yaml +++ b/kubernetes/cyberchef.yaml @@ -1,20 +1,19 @@ --- -# https://opensource.com/article/20/3/kubernetes-traefik apiVersion: apps/v1 kind: Deployment metadata: - name: mysite-cyberchef + name: cyberchef labels: - app: mysite-cyberchef + app: cyberchef spec: replicas: 1 selector: matchLabels: - app: mysite-cyberchef + app: cyberchef template: metadata: labels: - app: mysite-cyberchef + app: cyberchef spec: containers: - name: cyberchef @@ -25,10 +24,10 @@ spec: apiVersion: v1 kind: Service metadata: - name: mysite-cyberchef-service + name: cyberchef spec: selector: - app: mysite-cyberchef + app: cyberchef ports: - protocol: TCP port: 80 @@ -37,10 +36,9 @@ spec: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: mysite-cyberchef-ingress - annotations: - kubernetes.io/ingress.class: "traefik" + name: cyberchef spec: + ingressClassName: traefik rules: - host: cyberchef.kun.is http: @@ -49,6 +47,6 @@ spec: pathType: Prefix backend: service: - name: mysite-cyberchef-service + name: cyberchef port: number: 80 diff --git a/kubernetes/freshrss.yaml b/kubernetes/freshrss.yaml index 9360b1e..23a54dc 100644 --- a/kubernetes/freshrss.yaml +++ b/kubernetes/freshrss.yaml @@ -73,9 +73,8 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: freshrss - annotations: - kubernetes.io/ingress.class: "traefik" spec: + ingressClassName: traefik rules: - host: freshrss.k3s.kun.is http: