forked from kubevela/samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtracker-ui-component.yaml
38 lines (38 loc) · 993 Bytes
/
tracker-ui-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
apiVersion: core.oam.dev/v1alpha1
kind: ComponentSchematic
metadata:
name: service-tracker-ui
spec:
workloadType: core.oam.dev/v1alpha1.Server
osType: linux
arch: amd64
parameters:
- name: flightsUri
description: uri for flights-api pod
type: string
required: true
- name: weatherUri
description: uri for weather-api pod
type: string
required: true
- name: quakesUri
description: uri for quakes-api pod
type: string
required: true
containers:
- name: service-tracker-ui
image: sonofjorel/rudr-web-ui:0.49
env:
- name: FLIGHT_API_ROOT
value: "foo"
fromParam: "flightsUri"
- name: WEATHER_API_ROOT
value: "foo"
fromParam: "weatherUri"
- name: QUAKES_API_ROOT
value: "foo"
fromParam: "quakesUri"
ports:
- name: http
containerPort: 8080
protocol: TCP