aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-01-18 18:53:09 -0500
committerXe Iaso <me@xeiaso.net>2025-01-18 18:53:09 -0500
commit0f70403dd227ecbf6a5cf19406094aab55f0d5a9 (patch)
treed35792c332e48ccc2173f5aba10a1daf65dd8bd2
parent2309654e616d934b87279c070697c559221717d1 (diff)
downloadx-0f70403dd227ecbf6a5cf19406094aab55f0d5a9.tar.xz
x-0f70403dd227ecbf6a5cf19406094aab55f0d5a9.zip
kube/alrest/gitea: deploy anubis
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--kube/alrest/gitea/deployment.yaml31
-rw-r--r--kube/alrest/gitea/ingress.yaml11
-rw-r--r--kube/alrest/gitea/kustomization.yaml1
-rw-r--r--kube/alrest/gitea/service.yaml4
4 files changed, 42 insertions, 5 deletions
diff --git a/kube/alrest/gitea/deployment.yaml b/kube/alrest/gitea/deployment.yaml
index f58fab2..3ac894d 100644
--- a/kube/alrest/gitea/deployment.yaml
+++ b/kube/alrest/gitea/deployment.yaml
@@ -145,3 +145,34 @@ spec:
- name: "internal-certs"
mountPath: "/xe/pki"
readOnly: true
+ - name: anubis
+ image: ghcr.io/xe/x/anubis:latest
+ imagePullPolicy: Always
+ env:
+ - name: "BIND"
+ value: ":8080"
+ - name: "DIFFICULTY"
+ value: "3"
+ - name: "METRICS_BIND"
+ value: ":9090"
+ - name: "SERVE_ROBOTS_TXT"
+ value: "true"
+ - name: "TARGET"
+ value: "http://localhost:3000"
+ resources:
+ limits:
+ cpu: 500m
+ memory: 128Mi
+ requests:
+ cpu: 250m
+ memory: 128Mi
+ securityContext:
+ runAsUser: 1000
+ runAsGroup: 1000
+ runAsNonRoot: true
+ allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ seccompProfile:
+ type: RuntimeDefault
diff --git a/kube/alrest/gitea/ingress.yaml b/kube/alrest/gitea/ingress.yaml
index 98842b6..88caf59 100644
--- a/kube/alrest/gitea/ingress.yaml
+++ b/kube/alrest/gitea/ingress.yaml
@@ -7,6 +7,7 @@ metadata:
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/limit-rpm: "30"
+ nginx.ingress.kubernetes.io/proxy-body-size: 2048g
# nginx.ingress.kubernetes.io/configuration-snippet: |
# if ($http_user_agent ~* "(Amazon)" ){
# return 444;
@@ -15,10 +16,10 @@ metadata:
# if ($http_user_agent ~* "(Amazon)" ){
# proxy_pass http://uncle-ted.default.svc.alrest.xeserv.us:80/gzip-bomb?url=$request_uri;
# }
- nginx.ingress.kubernetes.io/configuration-snippet: |
- if ($http_user_agent ~* "(Amazon)" ){
- proxy_pass http://uncle-ted.default.svc.alrest.xeserv.us:80/bee-movie?url=$request_uri;
- }
+ # nginx.ingress.kubernetes.io/configuration-snippet: |
+ # if ($http_user_agent ~* "(Amazon)" ){
+ # proxy_pass http://uncle-ted.default.svc.alrest.xeserv.us:80/bee-movie?url=$request_uri;
+ # }
spec:
ingressClassName: nginx
tls:
@@ -35,4 +36,4 @@ spec:
service:
name: git
port:
- name: http
+ name: anubis
diff --git a/kube/alrest/gitea/kustomization.yaml b/kube/alrest/gitea/kustomization.yaml
index e903410..0703ade 100644
--- a/kube/alrest/gitea/kustomization.yaml
+++ b/kube/alrest/gitea/kustomization.yaml
@@ -5,5 +5,6 @@ resources:
- deployment.yaml
- service.yaml
- runner.yaml
+ #- external-dns.yaml
- ingress.yaml
namespace: gitea
diff --git a/kube/alrest/gitea/service.yaml b/kube/alrest/gitea/service.yaml
index 7d150c2..18f65c7 100644
--- a/kube/alrest/gitea/service.yaml
+++ b/kube/alrest/gitea/service.yaml
@@ -18,4 +18,8 @@ spec:
port: 443
targetPort: 8443
protocol: TCP
+ - name: anubis
+ port: 8080
+ targetPort: 8080
+ protocol: TCP
type: ClusterIP