-
Notifications
You must be signed in to change notification settings - Fork 30
/
workload.yaml
38 lines (38 loc) · 936 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: spring-sensors-$SESSION_NAMESPACE
labels:
apps.tanzu.vmware.com/workload-type: web
apps.tanzu.vmware.com/scanning: "true"
app.kubernetes.io/part-of: spring-sensors
spec:
build:
env:
- name: BP_JVM_VERSION
value: "17"
source:
git:
url: https://gitea.$INGRESS_DOMAIN/gitea_admin/$REPO_NAME.git
ref:
branch: main
resources:
requests:
cpu: 500m
memory: 768Mi
limits:
memory: 768Mi
serviceClaims:
- name: db
ref:
apiVersion: services.apps.tanzu.vmware.com/v1alpha1
kind: ClassClaim
name: sensors-mysql
params:
- name: annotations
value:
autoscaling.knative.dev/minScale: "1"
- name: gitops_repository
value: ssh://[email protected]/cpage-pivotal/tap-gitops
- name: gitops_branch
value: spring-sensors-$SESSION_NAMESPACE