forked from vmware-tanzu/servicebinding
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworkload.yaml
43 lines (41 loc) · 868 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
39
40
41
42
43
# Copyright 2020 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
---
apiVersion: v1
kind: Service
metadata:
name: provisioned-service
spec:
ports:
- port: 8080
selector:
app: provisioned-service
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: provisioned-service
labels:
app: provisioned-service
spec:
selector:
matchLabels:
app: provisioned-service
template:
metadata:
labels:
app: provisioned-service
spec:
containers:
- name: workload
# from https://knative.dev/docs/serving/samples/hello-world/helloworld-go/
image: gcr.io/knative-samples/helloworld-go
env:
- name: PORT
value: "8080"
livenessProbe:
httpGet:
port: 8080
readinessProbe:
httpGet:
port: 8080