-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathosmosmjerka-deployment.yaml.example
More file actions
61 lines (60 loc) · 1.37 KB
/
osmosmjerka-deployment.yaml.example
File metadata and controls
61 lines (60 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
apiVersion: v1
kind: Service
metadata:
name: osmosmjerka-service
labels:
app: osmosmjerka
spec:
type: NodePort
selector:
app: osmosmjerka
ports:
- protocol: TCP
port: 8085
targetPort: 8085
nodePort: 30085
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: osmosmjerka-app
spec:
replicas: 1
selector:
matchLabels:
app: osmosmjerka
template:
metadata:
labels:
app: osmosmjerka
spec:
containers:
- name: osmosmjerka
image: osmosmjerka:latest
imagePullPolicy: Never
ports:
- containerPort: 8085
resources:
requests:
memory: "1Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "4"
env:
- name: POSTGRES_HOST
value: THE_IP_OR_URL_OF_YOUR_POSTGRES_DB
- name: POSTGRES_PORT
value: "5432"
- name: POSTGRES_USER
value: YOUR_POSTGRES_USER
- name: POSTGRES_PASSWORD
value: YOUR_POSTGRES_PASSWORD
- name: POSTGRES_DATABASE
value: YOUR_POSTGRES_DB
- name: ADMIN_USERNAME
value: YOUR_ADMIN_USERNAME
- name: ADMIN_PASSWORD_HASH
value: YOUR_BCRYPT_PASSWORD_HASH
- name: ADMIN_SECRET_KEY
value: YOUR_SECRET_KEY