6558d027ca
Increases memory requests and limits in the Kubernetes deployment configuration to ensure better performance under load. Enhances the readiness and liveness probes by correcting the path and adding a liveness probe to improve service reliability. Updates Code by cleaning up session data after a successful token exchange and formats OpenID configuration response for better readability. Adds `.claude/` to .gitignore to prevent unwanted files from being tracked.
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: auth0mock
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: auth0mock
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: auth0mock
|
|
spec:
|
|
containers:
|
|
- name: auth0mock
|
|
image: registry.gitlab.com/unboundsoftware/auth0mock:${COMMIT}
|
|
imagePullPolicy: "IfNotPresent"
|
|
resources:
|
|
requests:
|
|
memory: 256Mi
|
|
limits:
|
|
memory: 512Mi
|
|
ports:
|
|
- containerPort: 3333
|
|
env:
|
|
- name: AUDIENCE
|
|
value: https://shiny.unbound.se
|
|
readinessProbe:
|
|
httpGet:
|
|
port: 3333
|
|
path: /.well-known/jwks.json
|
|
livenessProbe:
|
|
httpGet:
|
|
port: 3333
|
|
path: /.well-known/jwks.json
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: auth0mock
|
|
labels:
|
|
app.kubernetes.io/name: auth0mock
|
|
spec:
|
|
ports:
|
|
- port: 3333
|
|
selector:
|
|
app.kubernetes.io/name: auth0mock
|
|
type: ClusterIP
|