forked from hacbs-release/fbc-test
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdevfile.yaml
59 lines (59 loc) · 1.31 KB
/
devfile.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
schemaVersion: 2.2.0
metadata:
name: fbc-4.13
displayName: FBC 4.13
description: 'File based catalog'
language: fbc
provider: Red Hat
components:
- name: image-build
image:
imageName: ""
dockerfile:
uri: catalog.Dockerfile
buildContext: "4.13"
- name: outerloop-deploy
kubernetes:
inlined: |-
kind: Deployment
apiVersion: apps/v1
metadata:
name: fbc
spec:
replicas: 1
selector:
matchLabels:
app: fbc
template:
metadata:
labels:
app: fbc
spec:
containers:
- name: fbc
image: fbc:latest
resources:
limits:
memory: "1024Mi"
cpu: "500m"
attributes:
deployment/container-port: 50051
deployment/cpuRequest: "100m"
deployment/memoryRequest: 512Mi
deployment/replicas: 1
deployment/storageRequest: "0"
commands:
- id: build-image
apply:
component: image-build
- id: deployk8s
apply:
component: outerloop-deploy
- id: deploy
composite:
commands:
- build-image
- deployk8s
group:
kind: deploy
isDefault: true