You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.4 KiB
65 lines
1.4 KiB
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: martin
|
|
namespace: spatial
|
|
labels:
|
|
app.kubernetes.io/name: martin
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: martin
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: martin
|
|
spec:
|
|
containers:
|
|
- name: martin
|
|
image: urbica/martin:pr-368
|
|
ports:
|
|
- containerPort: 3000
|
|
# ------------------------
|
|
env:
|
|
- name: DANGER_ACCEPT_INVALID_CERTS
|
|
value: "true"
|
|
- name: WATCH_MODE
|
|
value: "true"
|
|
- name: DATABASE_URL
|
|
value: "postgres://martin-user:PSQL_PASSWORD@PSQL_HOST:6432/martin_db"
|
|
# ------------------------
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "64Mi"
|
|
cpu: "50m"
|
|
# ------------------------
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 3000
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 3000
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 3
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: martin
|
|
spec:
|
|
selector:
|
|
app.kubernetes.io/name: martin
|
|
ports:
|
|
- protocol: TCP
|
|
port: 3000
|
|
targetPort: 3000
|