forked from agones-dev/agones
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathallocator-service.yaml
More file actions
61 lines (60 loc) · 1.41 KB
/
Copy pathallocator-service.yaml
File metadata and controls
61 lines (60 loc) · 1.41 KB
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
# Define a Service for the fleet-allocator
apiVersion: v1
kind: Service
metadata:
name: fleet-allocator-backend
annotations:
service.alpha.kubernetes.io/app-protocols: '{"https":"HTTPS"}'
labels:
app: fleet-allocator
spec:
type: NodePort
selector:
app: fleet-allocator
ports:
- port: 8000
protocol: TCP
name: https
targetPort: fleet-allocator # retrieve port from deployment config
---
# Deploy a pod to run the fleet-allocator code
apiVersion: apps/v1
kind: Deployment
metadata:
name: fleet-allocator
namespace: default
labels:
app: fleet-allocator
spec:
replicas: 1
selector:
matchLabels:
app: fleet-allocator
template:
metadata:
labels:
app: fleet-allocator
spec:
serviceAccount: fleet-allocator
volumes:
- name: secret-volume
secret:
secretName: allocatorw3secret
containers:
- name: fleet-allocator
image: [REPO]/[USER]/allocator-service:[TAG]
#image: index.docker.io/exampleuser/allocator-service:simple-udp-5
imagePullPolicy: Always
ports:
- name: fleet-allocator
containerPort: 8000
livenessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: 8000
initialDelaySeconds: 3
periodSeconds: 5
volumeMounts:
- mountPath: /home/service/certs
name: secret-volume