This repository has been archived by the owner on Aug 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 105
/
routingmanager.yml
93 lines (93 loc) · 2.15 KB
/
routingmanager.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: v1
kind: ServiceAccount
metadata:
name: routingmanager-sa
labels:
routing.visualstudio.io/component: routingmanager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: routingmanager-role
labels:
routing.visualstudio.io/component: routingmanager
rules:
- apiGroups: [""]
resources:
- pods
verbs: [watch, list, delete]
- apiGroups: [""]
resources:
- services
- configmaps
verbs: [list, create, update, delete]
- apiGroups: [extensions,networking.k8s.io]
resources:
- ingresses
verbs: [watch, list, create, update, delete]
- apiGroups: [apps,extensions]
resources:
- deployments
- deployments/status
verbs: [get, list, create, update, delete]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: routingmanager-rolebinding
labels:
routing.visualstudio.io/component: routingmanager
subjects:
- kind: ServiceAccount
name: routingmanager-sa
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: routingmanager-role
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: routingmanager-deployment
labels:
routing.visualstudio.io/component: routingmanager
spec:
selector:
matchLabels:
routing.visualstudio.io/component: routingmanager
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
routing.visualstudio.io/component: routingmanager
spec:
serviceAccountName: routingmanager-sa
containers:
- name: routingmanager
image: azds/routingmanager:stable
imagePullPolicy: Always
ports:
- containerPort: 80
env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: BRIDGE_COLLECT_TELEMETRY
value: "True"
terminationGracePeriodSeconds: 15
---
apiVersion: v1
kind: Service
metadata:
name: routingmanager-service
spec:
selector:
routing.visualstudio.io/component: routingmanager
ports:
- port: 80
targetPort: 80