-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodified-install.yaml
99 lines (98 loc) · 2.42 KB
/
modified-install.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
# modified-install.yaml
# Docs: https://github.com/Octops/gameserver-ingress-controller
---
apiVersion: v1
kind: Namespace
metadata:
name: octops-system
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: octops
namespace: octops-system
labels:
app: octops
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: octops
labels:
app: octops
rules:
- apiGroups: [ "" ]
resources: [ "events" ]
verbs: [ "create" ]
- apiGroups: [""]
resources: ["pods"]
verbs: ["list", "get", "watch"]
- apiGroups: [ "" ]
resources: [ "services" ]
verbs: [ "list", "get", "create", "delete", "watch" ]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["list", "get", "create", "delete", "watch"]
- apiGroups: ["agones.dev"]
resources: ["gameservers","fleets"]
verbs: ["get", "update", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: octops
labels:
app: octops
subjects:
- kind: User
name: system:serviceaccount:octops-system:octops
apiGroup: rbac.authorization.k8s.io
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: octops
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: octops-ingress-controller
name: octops-ingress-controller
namespace: octops-system
spec:
replicas: 1
selector:
matchLabels:
app: octops-ingress-controller
template:
metadata:
labels:
app: octops-ingress-controller
spec:
serviceAccountName: octops
containers:
- image: octops/gameserver-ingress-controller:0.2.1 # Latest release
name: controller
ports:
- containerPort: 30235
name: healthz
- containerPort: 9090
name: metrics
args:
- --sync-period=15s
imagePullPolicy: Always
resources:
requests:
cpu: "0.05" # Reduced from 0.5
memory: "30Mi" # Reduced from 50Mi
limits:
cpu: "0.25" # Reduced from 1
memory: "100Mi" # Reduced from 150Mi
livenessProbe:
httpGet:
path: /healthz
port: 30235
readinessProbe:
httpGet:
path: /healthz
port: 30235