/
workload.yaml
38 lines (38 loc) · 1021 Bytes
/
workload.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: carto.run/v1alpha1
kind: Workload
metadata:
name: customer-profile
labels:
apps.tanzu.vmware.com/workload-type: web
app.kubernetes.io/part-of: customer-profile
apps.tanzu.vmware.com/has-tests: "true"
apis.apps.tanzu.vmware.com/register-api: "true"
apps.tanzu.vmware.com/auto-configure-actuators: "true"
spec:
build:
env:
- name: BP_JVM_VERSION
value: "17"
params:
- name: annotations
value:
autoscaling.knative.dev/minScale: "1"
- name: api_descriptor
value:
type: openapi
location:
path: "/api-docs"
owner: customer-relations-department
system: profile-management
description: Manage customer profiles
source:
git:
url: https://github.com/viktoriousss/nl-java-rest-service
ref:
branch: main
serviceClaims:
- name: database
ref:
apiVersion: services.apps.tanzu.vmware.com/v1alpha1
kind: ClassClaim
name: customer-database