-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkubernetes-stunner-auth-service.yaml
115 lines (115 loc) · 2.5 KB
/
kubernetes-stunner-auth-service.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
110
111
112
113
114
115
apiVersion: v1
kind: Namespace
metadata:
labels:
app: stunner-auth
name: stunner-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: manager-role
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: stunner-auth
namespace: stunner-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: manager-role
subjects:
- kind: ServiceAccount
name: stunner-auth
namespace: stunner-system
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: stunner-auth
namespace: stunner-system
labels:
app: stunner-auth
spec:
selector:
matchLabels:
app: stunner-auth
replicas: 1
template:
metadata:
labels:
app: stunner-auth
spec:
serviceAccountName: stunner-auth
terminationGracePeriodSeconds: 10
containers:
- name: stunner-auth-server
image: l7mp/stunner-auth-server:dev
imagePullPolicy: Always
# image: localhost/l7mp/stunner-auth-server
# imagePullPolicy: Never
env:
# Overrides the public IP of the Gateway. Useful when STUNner cannot
# determine a valid public IP
- name: STUNNER_PUBLIC_ADDR
value: ""
command: [ "./manager" ]
# args: ["-zap-log-level","info"]
# max loglevel
args: ["-zap-log-level","10", "-port", "8088"]
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 10m
memory: 64Mi
---
apiVersion: v1
kind: Service
metadata:
name: stunner-auth
namespace: stunner-system
labels:
app: stunner-auth
spec:
selector:
app: stunner-auth
ports:
- name: stunner-auth-server
port: 8088
# targetPort: 8087
type: ClusterIP