deployment.yaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: anubis-docs
  5. spec:
  6. selector:
  7. matchLabels:
  8. app: anubis-docs
  9. template:
  10. metadata:
  11. labels:
  12. app: anubis-docs
  13. spec:
  14. volumes:
  15. - name: anubis
  16. configMap:
  17. name: anubis-cfg
  18. - name: nginx
  19. configMap:
  20. name: nginx-cfg
  21. - name: temporary-data
  22. emptyDir: {}
  23. containers:
  24. - name: anubis-docs
  25. image: ghcr.io/techarohq/anubis/docs:main
  26. imagePullPolicy: Always
  27. resources:
  28. limits:
  29. memory: "128Mi"
  30. cpu: "500m"
  31. requests:
  32. cpu: 250m
  33. memory: 128Mi
  34. volumeMounts:
  35. - name: nginx
  36. mountPath: /conf
  37. ports:
  38. - containerPort: 80
  39. readinessProbe:
  40. httpGet:
  41. path: /
  42. port: 80
  43. initialDelaySeconds: 1
  44. periodSeconds: 10
  45. livenessProbe:
  46. httpGet:
  47. path: /
  48. port: 80
  49. initialDelaySeconds: 10
  50. periodSeconds: 20
  51. - name: anubis
  52. image: ghcr.io/techarohq/anubis:main
  53. imagePullPolicy: Always
  54. env:
  55. - name: "BIND"
  56. value: ":8081"
  57. - name: "DIFFICULTY"
  58. value: "4"
  59. - name: "METRICS_BIND"
  60. value: ":9090"
  61. - name: "OG_PASSTHROUGH"
  62. value: "true"
  63. - name: "POLICY_FNAME"
  64. value: "/xe/cfg/anubis/botPolicies.yaml"
  65. - name: "SERVE_ROBOTS_TXT"
  66. value: "false"
  67. - name: "TARGET"
  68. value: "http://localhost:80"
  69. # - name: "SLOG_LEVEL"
  70. # value: "debug"
  71. volumeMounts:
  72. - name: anubis
  73. mountPath: /xe/cfg/anubis
  74. - name: temporary-data
  75. mountPath: /xe/data/anubis
  76. resources:
  77. limits:
  78. cpu: 500m
  79. memory: 128Mi
  80. requests:
  81. cpu: 250m
  82. memory: 128Mi
  83. securityContext:
  84. runAsUser: 1000
  85. runAsGroup: 1000
  86. runAsNonRoot: true
  87. allowPrivilegeEscalation: false
  88. capabilities:
  89. drop:
  90. - ALL
  91. seccompProfile:
  92. type: RuntimeDefault
  93. envFrom:
  94. - secretRef:
  95. name: anubis-docs-thoth
  96. readinessProbe:
  97. httpGet:
  98. path: /healthz
  99. port: 9090
  100. initialDelaySeconds: 1
  101. periodSeconds: 10
  102. livenessProbe:
  103. httpGet:
  104. path: /healthz
  105. port: 9090
  106. initialDelaySeconds: 10
  107. periodSeconds: 20