forked from kubevela/samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtracker-data-component.yaml
45 lines (45 loc) · 1.09 KB
/
tracker-data-component.yaml
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
apiVersion: core.oam.dev/v1alpha1
kind: ComponentSchematic
metadata:
name: data-api
spec:
workloadType: core.oam.dev/v1alpha1.Server
osType: linux
arch: amd64
parameters:
- name: dbuser
description: mongo username
type: string
required: false
- name: dbpassword
description: mongo password
type: string
required: false
- name: dbipaddress
description: mongo IP address
type: string
required: false
- name: dbport
description: mongo port number
type: string
required: false
containers:
- name: data-api
image: sonofjorel/rudr-data-api:0.49
env:
- name: MONGODB_USER
value: "foo"
fromParam: "dbuser"
- name: MONGODB_PASSWORD
value: "foo"
fromParam: "dbpassword"
- name: MONGODB_IP
value: "foo"
fromParam: dbipaddress
- name: MONGODB_PORT
value: "foo"
fromParam: dbport
ports:
- name: http
containerPort: 3009
protocol: TCP