| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: anubis-docs
- spec:
- selector:
- matchLabels:
- app: anubis-docs
- template:
- metadata:
- labels:
- app: anubis-docs
- spec:
- volumes:
- - name: anubis
- configMap:
- name: anubis-cfg
- - name: nginx
- configMap:
- name: nginx-cfg
- - name: temporary-data
- emptyDir: {}
- containers:
- - name: anubis-docs
- image: ghcr.io/techarohq/anubis/docs:main
- imagePullPolicy: Always
- resources:
- limits:
- memory: "128Mi"
- cpu: "500m"
- requests:
- cpu: 250m
- memory: 128Mi
- volumeMounts:
- - name: nginx
- mountPath: /conf
- ports:
- - containerPort: 80
- readinessProbe:
- httpGet:
- path: /
- port: 80
- initialDelaySeconds: 1
- periodSeconds: 10
- livenessProbe:
- httpGet:
- path: /
- port: 80
- initialDelaySeconds: 10
- periodSeconds: 20
- - name: anubis
- image: ghcr.io/techarohq/anubis:main
- imagePullPolicy: Always
- env:
- - name: "BIND"
- value: ":8081"
- - name: "DIFFICULTY"
- value: "4"
- - name: "METRICS_BIND"
- value: ":9090"
- - name: "OG_PASSTHROUGH"
- value: "true"
- - name: "POLICY_FNAME"
- value: "/xe/cfg/anubis/botPolicies.yaml"
- - name: "SERVE_ROBOTS_TXT"
- value: "false"
- - name: "TARGET"
- value: "http://localhost:80"
- # - name: "SLOG_LEVEL"
- # value: "debug"
- volumeMounts:
- - name: anubis
- mountPath: /xe/cfg/anubis
- - name: temporary-data
- mountPath: /xe/data/anubis
- 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
- envFrom:
- - secretRef:
- name: anubis-docs-thoth
- readinessProbe:
- httpGet:
- path: /healthz
- port: 9090
- initialDelaySeconds: 1
- periodSeconds: 10
- livenessProbe:
- httpGet:
- path: /healthz
- port: 9090
- initialDelaySeconds: 10
- periodSeconds: 20
|