forked from knative/serving
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathservice.yaml
More file actions
45 lines (40 loc) · 928 Bytes
/
service.yaml
File metadata and controls
45 lines (40 loc) · 928 Bytes
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
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: revision-state
spec:
template:
spec:
timeoutSeconds: 30
containers:
- image: ko://knative.dev/serving/test/test_images/configmimic
env:
- name: NAME
value: "$NAME"
volumeMounts:
- name: state
mountPath: /etc/config
# This seems broken now
# startupProbe:
# httpGet:
# path: /healthz/start
readinessProbe:
httpGet:
path: /healthz/ready
livenessProbe:
httpGet:
path: /healthz/live
volumes:
- name: state
configMap:
name: revision-state
---
apiVersion: v1
kind: ConfigMap
metadata:
name: revision-state
data:
# By default the service is ready and live
revision-state: "startup,ready,live"
# Fail the second revision
revision-state-00002: ""