-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.yaml
89 lines (89 loc) · 2.09 KB
/
player.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: player
namespace: cassette-operator
labels:
app: player
serviceType: public
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
app: player
template:
metadata:
annotations:
instrumentation.opentelemetry.io/inject-sdk: "true"
labels:
app: player
serviceType: public
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: node-role.kubernetes.io/kiss
operator: In
values:
- Gateway
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/kiss
operator: In
values:
- Compute
- Gateway
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- name: server
image: quay.io/ulagbulag/cassette:latest
imagePullPolicy: Always
ports:
- name: http
protocol: TCP
containerPort: 6080
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
httpGet:
path: /
port: http
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
httpGet:
path: /_health
port: http
resources:
requests:
cpu: 30m
memory: 200Mi
limits:
cpu: 100m
memory: 500Mi
---
apiVersion: v1
kind: Service
metadata:
name: player
namespace: cassette-operator
spec:
selector:
app: player
ports:
- name: http
port: 80
targetPort: 6080
protocol: TCP