-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathworkload.yaml
52 lines (52 loc) · 1.48 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apiVersion: carto.run/v1alpha1
kind: Workload
metadata:
name: motd
labels:
apps.tanzu.vmware.com/workload-type: web
apps.tanzu.vmware.com/has-tests: "true"
apis.apps.tanzu.vmware.com/register-api: "true"
app.kubernetes.io/part-of: motd
spec:
source:
git:
url: https://github.com/alexandreroman/motd.git
ref:
branch: main
resources:
limits:
memory: 128Mi
requests:
memory: 128Mi
cpu: 250m
params:
- name: annotations
value:
autoscaling.knative.dev/minScale: "0"
autoscaling.knative.dev/maxScale: "3"
autoscaling.knative.dev/target: "100"
autoscaling.knative.dev/metric: "rps"
autoscaling.knative.dev/window: "300s"
- name: testing_pipeline_matching_labels
value:
apps.tanzu.vmware.com/pipeline: test
apps.tanzu.vmware.com/language: skip
- name: api_descriptor
value:
type: openapi
location:
path: /api/openapi
owner: default/motd-team
system: default/motd
description: MOTD API
env:
#! Injecting field value from the runtime deployment requires
#! that the feature `Downward API` is enabled in Knative Serving:
#! https://knative.dev/docs/serving/configuration/feature-flags/#kubernetes-downward-api
#!
#! In case this feature is not enabled on your platform, you may want to
#! switch to a hardcoded value for the Kubernetes namespace.
- name: MOTD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace