Files
auth0mock/k8s/deploy.yaml
T

52 lines
1.1 KiB
YAML
Raw Normal View History

2019-12-17 20:32:14 +01:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth0mock
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: auth0mock
2019-12-17 20:32:14 +01:00
template:
metadata:
labels:
app.kubernetes.io/name: auth0mock
2019-12-17 20:32:14 +01:00
spec:
containers:
- name: auth0mock
image: oci.unbound.se/unboundsoftware/auth0mock:${COMMIT}
2019-12-17 20:32:14 +01:00
imagePullPolicy: "IfNotPresent"
resources:
requests:
memory: 256Mi
2019-12-17 20:32:14 +01:00
limits:
memory: 512Mi
2019-12-17 20:32:14 +01:00
ports:
- containerPort: 3333
env:
- name: AUDIENCE
value: https://shiny.unbound.se
2019-12-17 20:32:14 +01:00
readinessProbe:
httpGet:
port: 3333
path: /.well-known/jwks.json
livenessProbe:
httpGet:
port: 3333
path: /.well-known/jwks.json
initialDelaySeconds: 10
periodSeconds: 30
2019-12-17 20:32:14 +01:00
---
apiVersion: v1
kind: Service
metadata:
name: auth0mock
labels:
app.kubernetes.io/name: auth0mock
2019-12-17 20:32:14 +01:00
spec:
ports:
- port: 3333
selector:
app.kubernetes.io/name: auth0mock
2019-12-17 20:32:14 +01:00
type: ClusterIP