-
Notifications
You must be signed in to change notification settings - Fork 3
/
kedafuncproj_deployment.yaml
85 lines (84 loc) · 1.82 KB
/
kedafuncproj_deployment.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
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
data:
AzureWebJobsStorage: <>
AzureWebJobsServiceBus__credential: <>
AzureWebJobsServiceBus__fullyQualifiedNamespace: <>
AzureWebJobsServiceBus__clientId: <>
FUNCTIONS_WORKER_RUNTIME: <>
apiVersion: v1
kind: Secret
metadata:
name: <>
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: <>
labels:
app: <>
spec:
selector:
matchLabels:
app: <>
template:
metadata:
labels:
app: <>
azure.workload.identity/use: "true"
spec:
serviceAccountName: workload-identity-sa
containers:
- name:<>
image: <>
env:
- name: AzureFunctionsJobHost__functions__0
value: <>
envFrom:
- secretRef:
name: <>
readinessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 240
httpGet:
path: /
port: 80
scheme: HTTP
startupProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 240
httpGet:
path: /
port: 80
scheme: HTTP
---
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: kedafuncsbtrigauth
namespace: default # must be same namespace as the ScaledObject
spec:
podIdentity:
provider: azure-workload # Optional. Default: none
identityId: <>
---
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: <>
labels: {}
spec:
scaleTargetRef:
name: <>
triggers:
- type: azure-servicebus
metadata:
direction: In
queueName:<>
namespace: <>
cardinality: One
authenticationRef:
name: kedafuncsbtrigauth
---