-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2-healthnodeapi.yaml
More file actions
43 lines (42 loc) · 829 Bytes
/
2-healthnodeapi.yaml
File metadata and controls
43 lines (42 loc) · 829 Bytes
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
kind: Deployment
apiVersion: apps/v1
metadata:
name: healthnode-api
namespace: healthnode
spec:
replicas: 1
selector:
matchLabels:
app: healthnode-api
template:
metadata:
labels:
app: healthnode-api
spec:
containers:
- name: healthnode-api
image: codebymini/healthnodeapi
imagePullPolicy: Always
env:
- name: APIKEY
value: "YOUR_API_KEY"
- name: MONGODB
value: "YOUR-MONGODB-CONNECTION-STRING"
ports:
- name: http
containerPort: 3333
hostPort: 3333
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: healthnode-api-service
namespace: healthnode
spec:
type: CLusterIP
ports:
- port: 3333
selector:
app: healthnode-api