infra/kubernetes/atuin/deployment.yaml
Gabriel Simmer 124b319b57
All checks were successful
Lint / lint (push) Successful in 37s
Pulling out more config, secrets
2024-07-07 00:33:53 +01:00

95 lines
1.9 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: atuin
namespace: atuin
spec:
replicas: 1
selector:
matchLabels:
app: atuin
template:
metadata:
labels:
app: atuin
spec:
containers:
- args:
- server
- start
env:
- name: ATUIN_HOST
value: 0.0.0.0
- name: ATUIN_PORT
value: "8888"
- name: ATUIN_OPEN_REGISTRATION
value: "false"
- name: RUST_LOG
value: "info,atuin_server=debug"
envFrom:
- secretRef:
name: postgres-atuin
image: ghcr.io/atuinsh/atuin:v18.2.0
name: atuin
ports:
- containerPort: 8888
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 250m
memory: 128Mi
livenessProbe:
httpGet:
path: /
port: 8888
failureThreshold: 1
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 8888
failureThreshold: 1
initialDelaySeconds: 10
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: atuin
namespace: atuin
spec:
selector:
app: atuin
ports:
- name: web
port: 8888
targetPort: 8888
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: atuin
namespace: atuin
annotations:
cert-manager.io/cluster-issuer: "le-issuer"
nginx.ingress.kubernetes.io/proxy-body-size: 1024m
spec:
tls:
- hosts:
- atuin.gmem.ca
rules:
- host: atuin.gmem.ca
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: atuin
port:
number: 8888