ADD k8s deplyment definition
This commit is contained in:
parent
eb3055e7aa
commit
41b4cee5c4
36
k8s/deployment.yml.template
Normal file
36
k8s/deployment.yml.template
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: us-dop-bot
|
||||||
|
labels:
|
||||||
|
app: us-dop-bot
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: us-dop-bot
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: us-dop-bot
|
||||||
|
name: us-dop-bot
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: us-dop-bot
|
||||||
|
image: localhost:32000/us-dop-bot:latest
|
||||||
|
env:
|
||||||
|
- name: DBURINST
|
||||||
|
value: $DBURINST
|
||||||
|
- name: DBURIUSER
|
||||||
|
value: $DBURIUSER
|
||||||
|
- name: NATSURI
|
||||||
|
value: "nats://nats-svc:4222"
|
||||||
|
- name: TOKEN
|
||||||
|
value: "$TOKEN"
|
||||||
|
volumeMounts:
|
||||||
|
- name: database
|
||||||
|
mountPath: /app/dolardb
|
||||||
|
volumes:
|
||||||
|
- name: database
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: bank-crawler-pvc
|
||||||
Loading…
x
Reference in New Issue
Block a user