parent
f8337a6cb7
commit
4c852e134f
@ -1,64 +0,0 @@
|
||||
---
|
||||
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
|
||||
Loading…
Reference in new issue