-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
53 lines (53 loc) · 1.33 KB
/
deployment.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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: accesscontrol
namespace: default
labels:
app: accesscontrol
spec:
serviceName: "accesscontrol"
replicas: 1 # Start with 1 for simplicity
selector:
matchLabels:
app: accesscontrol
template:
metadata:
labels:
app: accesscontrol
spec:
containers:
- name: accesscontrol
image: ghcr.io/rajiv-maersk/health:main
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- NET_RAW
env:
- name: PORT
value: "8080" # Ensure this matches the port your app listens on
- name: GIN_MODE
value: "release"
resources:
requests:
memory: "64Mi"
cpu: "10m"
limits:
memory: "256Mi"
cpu: "40m"
readinessProbe:
httpGet:
path: /readiness
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
failureThreshold: 3
livenessProbe:
httpGet:
path: /liveness
port: 8080
initialDelaySeconds: 15
periodSeconds: 20
failureThreshold: 3