From 0add0f1434056684df5239ab225faabcf32305ec Mon Sep 17 00:00:00 2001 From: Aaron Batilo Date: Thu, 28 Dec 2023 22:27:27 -0700 Subject: [PATCH] Remove blog.yaml Deployments are managed by argocd now --- blog.yaml | 168 ------------------------------------------------------ 1 file changed, 168 deletions(-) delete mode 100644 blog.yaml diff --git a/blog.yaml b/blog.yaml deleted file mode 100644 index 25f6602..0000000 --- a/blog.yaml +++ /dev/null @@ -1,168 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: blog - labels: - app: blog -spec: - selector: - matchLabels: - app: blog - template: - metadata: - labels: - app: blog - spec: - topologySpreadConstraints: - - maxSkew: 1 - topologyKey: topology.kubernetes.io/zone - whenUnsatisfiable: ScheduleAnyway - labelSelector: - matchLabels: - app: blog - - maxSkew: 1 - topologyKey: kubernetes.io/hostname - whenUnsatisfiable: ScheduleAnyway - labelSelector: - matchLabels: - app: blog - containers: - - name: blog - image: ghcr.io/abatilo/blog:DOCKER_TAG - ports: - - containerPort: 80 ---- -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: blog -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: blog - minReplicas: 1 - maxReplicas: 5 - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 60 ---- -apiVersion: v1 -kind: Service -metadata: - name: blog -spec: - selector: - app: blog - ports: - - protocol: TCP - port: 80 - targetPort: 80 ---- -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: blog -spec: - dnsNames: - - aaronbatilo.dev - - www.aaronbatilo.dev - issuerRef: - name: letsencrypt-cloudflare - kind: ClusterIssuer - secretName: blog-cert ---- -apiVersion: "traefik.io/v1alpha1" -kind: "IngressRoute" -metadata: - name: blog-secure -spec: - entryPoints: ["web"] - routes: - - match: "Host(`aaronbatilo.dev`, `www.aaronbatilo.dev`)" - kind: "Rule" - middlewares: - - name: security-headers - namespace: traefik - services: - - name: blog - port: 80 ---- -apiVersion: "traefik.io/v1alpha1" -kind: "Middleware" -metadata: - name: borabora -spec: - redirectRegex: - regex: .* - replacement: https://photos.app.goo.gl/Sbttz9nDzN2SzVYw6 - permanent: true ---- -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: readme -spec: - dnsNames: - - readme.aaronbatilo.dev - issuerRef: - name: letsencrypt-cloudflare - kind: ClusterIssuer - secretName: readme-cert ---- -apiVersion: "traefik.io/v1alpha1" -kind: "IngressRoute" -metadata: - name: borabora -spec: - entryPoints: ["web"] - routes: - - match: "Host(`borabora.aaronbatilo.dev`)" - kind: "Rule" - middlewares: - - name: borabora - services: - - name: noop@internal - kind: TraefikService ---- -apiVersion: "traefik.io/v1alpha1" -kind: "Middleware" -metadata: - name: whoareyou -spec: - redirectRegex: - regex: .* - replacement: https://abatilo.notion.site/Hi-there-I-m-Aaron-57c6fd6736954b4e93303d8b9d48d789 - permanent: true ---- -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: whoareyou -spec: - dnsNames: - - whoareyou.aaronbatilo.dev - issuerRef: - name: letsencrypt-cloudflare - kind: ClusterIssuer - secretName: whoareyou-cert ---- -apiVersion: "traefik.io/v1alpha1" -kind: "IngressRoute" -metadata: - name: whoareyou -spec: - entryPoints: ["web"] - routes: - - match: "Host(`whoareyou.aaronbatilo.dev`)" - kind: "Rule" - middlewares: - - name: whoareyou - services: - - name: noop@internal - kind: TraefikService