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: {} - name: nginx-tmp emptyDir: {} containers: - name: anubis-docs image: ghcr.io/techarohq/anubis/docs@sha256:f13a7c862bbcba8e19feba9f157120c6f03e23b03367ace4ca55da69dc894e12 imagePullPolicy: IfNotPresent resources: limits: memory: "128Mi" cpu: "500m" requests: cpu: 250m memory: 128Mi volumeMounts: - name: nginx mountPath: /conf - name: nginx-tmp mountPath: /tmp ports: - containerPort: 8080 readinessProbe: httpGet: path: / port: 8080 initialDelaySeconds: 1 periodSeconds: 10 livenessProbe: httpGet: path: / port: 8080 initialDelaySeconds: 10 periodSeconds: 20 securityContext: runAsUser: 101 runAsGroup: 101 runAsNonRoot: true allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: drop: - ALL seccompProfile: type: RuntimeDefault - name: anubis image: ghcr.io/techarohq/anubis@sha256:533e57956ae3afd1612dab16f02dd4db937ca14fad5399208f403686e14feed5 imagePullPolicy: IfNotPresent 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:8080" # - 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