-
Notifications
You must be signed in to change notification settings - Fork 0
/
pohttp-client.yml
93 lines (91 loc) · 2.42 KB
/
pohttp-client.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: awala-endpoint-pohttp-client
spec:
template:
metadata:
annotations:
autoscaling.knative.dev/min-scale: "1"
spec:
containers:
- name: client
image: dev.local/awala-endpoint
args: [pohttp-client]
env:
- name: MONGODB_USER
valueFrom:
configMapKeyRef:
name: credentials
key: mongodb_username
- name: MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: credentials
key: mongodb_password
- name: POHTTP_TLS_REQUIRED
value: "false"
- name: KS_VAULT_TOKEN
valueFrom:
secretKeyRef:
name: credentials
key: vault_token
- name: AWS_ACCESS_KEY_ID
valueFrom:
configMapKeyRef:
name: mock-aws-kms
key: access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: credentials
key: aws_kms_secret_access_key
- name: AWS_KMS_ENDPOINT
valueFrom:
configMapKeyRef:
name: mock-aws-kms
key: endpoint
envFrom:
- configMapRef:
name: pohttp
livenessProbe:
httpGet:
path: /
port: 8080
periodSeconds: 5
failureThreshold: 2
timeoutSeconds: 3
readinessProbe:
httpGet:
path: /
port: 8080
periodSeconds: 5
failureThreshold: 2
timeoutSeconds: 3
---
apiVersion: sources.knative.dev/v1
kind: SinkBinding
metadata:
name: awala-endpoint-pohttp-client-sink-binding
spec:
subject:
apiVersion: serving.knative.dev/v1
kind: Service
name: awala-endpoint-pohttp-client
sink:
ref:
apiVersion: eventing.knative.dev/v1
kind: Broker
name: awala-endpoint-broker
---
apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
name: awala-endpoint-pohttp-client-trigger
spec:
broker: awala-endpoint-broker
subscriber:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: awala-endpoint-pohttp-client