-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path3-statefulset-sb-admin-server.yaml
53 lines (52 loc) · 1.49 KB
/
3-statefulset-sb-admin-server.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
##########################################
# Spring Boot Admin Server (statefulSet) #
##########################################
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: sb-admin-server
namespace: my-mule4-stack
labels:
app: sb-admin-server
spec:
serviceName: sb-admin-server-service
selector:
matchLabels:
app: sb-admin-server
replicas: 2
template:
metadata:
labels:
app: sb-admin-server
# allow own management
spring-boot-managed: "true"
spec:
containers:
- image: docker.hawkore.com/k8s/spring-boot-admin-server-gg:latest
imagePullPolicy: "Never"
name: sb-admin-server
env:
- name: LANG
value: 'C.UTF-8'
- name: USER_JVM_OPTS
value: '-server -Xms128M -Xmx256M
-Dspring.boot.admin.ui.public-url=http://sbadmin.local
-Dspring.application.name=sb-admin-server'
workingDir: /opt/sba/
ports:
- containerPort: 8882 # Spring Boot port
- containerPort: 8888 # Spring Boot management port (actuator)
resources:
limits:
memory: "640Mi"
readinessProbe:
tcpSocket:
port: 8882
initialDelaySeconds: 30
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 8882
initialDelaySeconds: 300
periodSeconds: 10
restartPolicy: Always