-
Notifications
You must be signed in to change notification settings - Fork 0
/
function-deploy.yaml
109 lines (109 loc) · 2.85 KB
/
function-deploy.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
data:
AzureWebJobsStorage: VXNlRGV2ZWxvcG1lbnRTdG9yYWdlPXRydWU=
FUNCTIONS_WORKER_RUNTIME: ZG90bmV0
apiVersion: v1
kind: Secret
metadata:
name: samplehttpapplication1
namespace: default
---
data:
host.master: RDBuUXBZcWVONEZKQlhXdk1nRDJZbDBiV1gyMGFXL1BxT0drOUpJNXpqL2x5YzZLYUJhdGJ3PT0=
host.function.default: UnVoOXZ0eUx3d3UzQkE1aExNZ0E0dkJhbW1vQzkvNVgwYkFoQ1V5VWpvUDJMV2NIN240WjNnPT0=
host.systemKey.default: dzY1ZTVpM0QwNlU2WExsdkZFVzBGV0JDM0VEN3h1VjVGNzllT2RKWHFreTJ1TTFqeG5CS213PT0=
functions.samplehttpapplication1.default: U3NnTW55bXBwdEF2elhlSWx3TFdiRlowRzZxUDZWd0dSa0luQzFRZlBuRGxwRHlTZ2pLMnhRPT0=
apiVersion: v1
kind: Secret
metadata:
name: func-keys-kube-secret-samplehttpapplication1
namespace: default
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: samplehttpapplication1-function-keys-identity-svc-act
namespace: default
---
rules:
- apiGroups:
- ''
resources:
- secrets
- configMaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: functions-keys-manager-role
namespace: default
---
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: functions-keys-manager-role
subjects:
- kind: ServiceAccount
name: samplehttpapplication1-function-keys-identity-svc-act
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: samplehttpapplication1-function-keys-identity-svc-act-functions-keys-manager-rolebinding
namespace: default
---
apiVersion: v1
kind: Service
metadata:
name: samplehttpapplication1-http
namespace: default
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
selector:
app: samplehttpapplication1-http
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: samplehttpapplication1-http
namespace: default
labels:
app: samplehttpapplication1-http
spec:
replicas: 1
selector:
matchLabels:
app: samplehttpapplication1-http
template:
metadata:
labels:
app: samplehttpapplication1-http
spec:
containers:
- name: samplehttpapplication1-http
image: demofunctionsonaks01.azurecr.io/functionapphttptrigger1:latest
ports:
- containerPort: 80
env:
- name: AzureFunctionsJobHost__functions__0
value: SampleHttpApplication1
- name: AzureWebJobsSecretStorageType
value: kubernetes
- name: AzureWebJobsKubernetesSecretName
value: secrets/func-keys-kube-secret-samplehttpapplication1
envFrom:
- secretRef:
name: samplehttpapplication1
serviceAccountName: samplehttpapplication1-function-keys-identity-svc-act
---