From 788ac662f83c0b2d0579d0006d12508a95d431b0 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Fri, 2 Sep 2022 14:02:45 -0400 Subject: [PATCH] Initial commit --- Caddyfile | 4 +++ Containerfile | 4 +++ index.html | 40 +++++++++++++++++++++++++++++ nginx.yml | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+) create mode 100644 Caddyfile create mode 100644 Containerfile create mode 100644 index.html create mode 100644 nginx.yml diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..489ea18 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,4 @@ +:8080 { + templates + file_server browse +} diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..3e55cc4 --- /dev/null +++ b/Containerfile @@ -0,0 +1,4 @@ +FROM caddy:latest + +COPY Caddyfile /etc/caddy/Caddyfile +COPY index.html /srv/ diff --git a/index.html b/index.html new file mode 100644 index 0000000..c722293 --- /dev/null +++ b/index.html @@ -0,0 +1,40 @@ + + + + Cult of the Fifth Octet + + + +
+
Expect the Fifth Octet
+
+ + diff --git a/nginx.yml b/nginx.yml new file mode 100644 index 0000000..56b7832 --- /dev/null +++ b/nginx.yml @@ -0,0 +1,70 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: caddy + namespace: cultfifthoctet +spec: + replicas: 3 + selector: + matchLabels: + app: caddy + template: + metadata: + labels: + app: caddy + spec: + containers: + - name: caddy + image: git.shrug.pw/neil/cultfifthoctet:latest + ports: + - name: tcp + containerPort: 8080 +--- +apiVersion: v1 +kind: Service +metadata: + name: caddy + namespace: cultfifthoctet + annotations: + service.beta.kubernetes.io/aws-load-balancer-ip-address-type: dualstack + service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip + service.beta.kubernetes.io/aws-load-balancer-scheme: internal + service.beta.kubernetes.io/aws-load-balancer-type: external +spec: + ports: + - port: 8080 + targetPort: 8080 + protocol: TCP + type: LoadBalancer + selector: + app: caddy + + +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + kubernetes.io/ingress.class: nginx + nginx.ingress.kubernetes.io/client-max-body-size: 20m + nginx.ingress.kubernetes.io/proxy-body-size: 20m + name: caddy + namespace: cultfifthoctet +spec: + rules: + - host: cultfifthoctet.org + http: + paths: + - backend: + service: + name: caddy + port: + number: 8080 + path: / + pathType: Prefix + tls: + - hosts: + - cultfifthoctet.org + secretName: default-cert