aboutsummaryrefslogtreecommitdiff
path: root/docs/manifest
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-03-20 15:06:58 -0400
committerGitHub <noreply@github.com>2025-03-20 15:06:58 -0400
commitc47347ff76f115f56676f5ecad0032bfcb98a03d (patch)
tree53b17e30a83dab1f96acf64ba83655340d8e1a5f /docs/manifest
parent240159e921449236c79e3ae8c7160dfe8ee1b40c (diff)
downloadanubis-c47347ff76f115f56676f5ecad0032bfcb98a03d.tar.xz
anubis-c47347ff76f115f56676f5ecad0032bfcb98a03d.zip
add docs site based on docusarus (#35)
* add docs site based on docusarus Closes #2 Signed-off-by: Xe Iaso <me@xeiaso.net> * docs: deploy to aeacus Signed-off-by: Xe Iaso <me@xeiaso.net> * ready for merge Signed-off-by: Xe Iaso <me@xeiaso.net> * docs: fix anubis port Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'docs/manifest')
-rw-r--r--docs/manifest/deployment.yaml57
-rw-r--r--docs/manifest/ingress.yaml24
-rw-r--r--docs/manifest/kustomization.yaml5
-rw-r--r--docs/manifest/onionservice.yaml14
-rw-r--r--docs/manifest/service.yaml14
5 files changed, 114 insertions, 0 deletions
diff --git a/docs/manifest/deployment.yaml b/docs/manifest/deployment.yaml
new file mode 100644
index 0000000..a8d33cb
--- /dev/null
+++ b/docs/manifest/deployment.yaml
@@ -0,0 +1,57 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: anubis-docs
+spec:
+ selector:
+ matchLabels:
+ app: anubis-docs
+ template:
+ metadata:
+ labels:
+ app: anubis-docs
+ spec:
+ containers:
+ - name: anubis-docs
+ image: ghcr.io/techarohq/anubis/docs:main
+ resources:
+ limits:
+ memory: "128Mi"
+ cpu: "500m"
+ ports:
+ - containerPort: 80
+ - name: anubis
+ image: ghcr.io/techarohq/anubis:latest
+ imagePullPolicy: Always
+ env:
+ - name: "BIND"
+ value: ":8081"
+ - name: "DIFFICULTY"
+ value: "4"
+ - name: "METRICS_BIND"
+ value: ":9090"
+ - name: "POLICY_FNAME"
+ value: ""
+ - name: "SERVE_ROBOTS_TXT"
+ value: "false"
+ - name: "TARGET"
+ value: "http://localhost:80"
+ # - name: "SLOG_LEVEL"
+ # value: "debug"
+ 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/docs/manifest/ingress.yaml b/docs/manifest/ingress.yaml
new file mode 100644
index 0000000..5247836
--- /dev/null
+++ b/docs/manifest/ingress.yaml
@@ -0,0 +1,24 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: anubis-docs
+ annotations:
+ cert-manager.io/cluster-issuer: "letsencrypt-prod"
+ nginx.ingress.kubernetes.io/limit-rps: "10"
+spec:
+ ingressClassName: nginx
+ tls:
+ - hosts:
+ - anubis.techaro.lol
+ secretName: anubis-techaro-lol-public-tls
+ rules:
+ - host: anubis.techaro.lol
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: anubis-docs
+ port:
+ name: anubis \ No newline at end of file
diff --git a/docs/manifest/kustomization.yaml b/docs/manifest/kustomization.yaml
new file mode 100644
index 0000000..8f9b88e
--- /dev/null
+++ b/docs/manifest/kustomization.yaml
@@ -0,0 +1,5 @@
+resources:
+ - deployment.yaml
+ - ingress.yaml
+ - onionservice.yaml
+ - service.yaml \ No newline at end of file
diff --git a/docs/manifest/onionservice.yaml b/docs/manifest/onionservice.yaml
new file mode 100644
index 0000000..81ab972
--- /dev/null
+++ b/docs/manifest/onionservice.yaml
@@ -0,0 +1,14 @@
+apiVersion: tor.k8s.torproject.org/v1alpha2
+kind: OnionService
+metadata:
+ name: anubis-docs
+spec:
+ version: 3
+ rules:
+ - port:
+ number: 80
+ backend:
+ service:
+ name: anubis-docs
+ port:
+ number: 80 \ No newline at end of file
diff --git a/docs/manifest/service.yaml b/docs/manifest/service.yaml
new file mode 100644
index 0000000..dadac05
--- /dev/null
+++ b/docs/manifest/service.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: anubis-docs
+spec:
+ selector:
+ app: anubis-docs
+ ports:
+ - port: 80
+ targetPort: 80
+ name: http
+ - port: 8081
+ targetPort: 8081
+ name: anubis