2023-08-28 17:28:57 +08:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: axonserver-properties
|
|
|
|
data:
|
|
|
|
axonserver.properties: |
|
2023-09-06 10:31:28 +08:00
|
|
|
axoniq.axonserver.name=qa-axonserver
|
|
|
|
axoniq.axonserver.hostname=qa-axonserver
|
2023-08-28 17:28:57 +08:00
|
|
|
axoniq.axonserver.devmode.enabled=false
|
|
|
|
axoniq.axonserver.snapshot.storage=/eventdata
|
|
|
|
axoniq.axonserver.controldb-path=/data
|
|
|
|
axoniq.axonserver.pid-file-location=/data
|
|
|
|
axoniq.axonserver.max-message-size=25000000
|
|
|
|
axoniq.axonserver.accesscontrol.enabled=true
|
|
|
|
axoniq.axonserver.accesscontrol.token=a4338c69-ce24-4d0f-a779-e14c688067ae
|
|
|
|
axoniq.axonserver.accesscontrol.adminToken=a4338c69-ce24-4d0f-a779-e14c688067ae
|
|
|
|
logging.file=/data/axonserver.log
|
|
|
|
logging.file.max-history=10
|
|
|
|
logging.file.max-size=10MB
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: axons
|
|
|
|
labels:
|
|
|
|
app: axons
|
|
|
|
spec:
|
|
|
|
serviceName: axons
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: axons
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: axons
|
|
|
|
spec:
|
|
|
|
affinity:
|
|
|
|
nodeAffinity:
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
nodeSelectorTerms:
|
|
|
|
- matchExpressions:
|
|
|
|
- key: "kubernetes.io/hostname"
|
|
|
|
operator: In
|
|
|
|
values:
|
2023-08-28 19:22:31 +08:00
|
|
|
- bfs-k8snode-10-2-0-9.hetzner.base.beaconfireinc.com
|
2023-08-28 17:28:57 +08:00
|
|
|
containers:
|
|
|
|
- name: axons
|
|
|
|
image: axoniq/axonserver:4.6.11
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- name: grpc
|
|
|
|
containerPort: 8124
|
|
|
|
protocol: TCP
|
|
|
|
- name: http
|
|
|
|
containerPort: 8024
|
|
|
|
protocol: TCP
|
|
|
|
volumeMounts:
|
|
|
|
- name: eventstore
|
|
|
|
mountPath: /eventdata
|
|
|
|
- name: data
|
|
|
|
mountPath: /data
|
|
|
|
- name: config
|
|
|
|
mountPath: /config/axonserver.properties
|
|
|
|
subPath: axonserver.properties
|
|
|
|
readOnly: true
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
port: http
|
|
|
|
path: /actuator/info
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
periodSeconds: 5
|
|
|
|
timeoutSeconds: 1
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
port: gui
|
|
|
|
path: /actuator/info
|
|
|
|
initialDelaySeconds: 60
|
|
|
|
periodSeconds: 5
|
|
|
|
timeoutSeconds: 1
|
|
|
|
volumes:
|
|
|
|
- name: config
|
|
|
|
configMap:
|
|
|
|
name: axonserver-properties
|
|
|
|
volumeClaimTemplates:
|
|
|
|
- metadata:
|
|
|
|
name: eventstore
|
|
|
|
spec:
|
|
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 5Gi
|
|
|
|
- metadata:
|
|
|
|
name: data
|
|
|
|
spec:
|
|
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 1Gi
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: axons-gui
|
|
|
|
labels:
|
|
|
|
app: axons
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: gui
|
|
|
|
port: 8024
|
|
|
|
targetPort: 8024
|
2023-09-06 10:31:28 +08:00
|
|
|
nodePort: 30027
|
2023-08-28 17:28:57 +08:00
|
|
|
selector:
|
|
|
|
app: axons
|
|
|
|
type: NodePort
|
|
|
|
sessionAffinity: ClientIP
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: axons-grpc
|
|
|
|
labels:
|
|
|
|
app: axons
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: grpc
|
|
|
|
port: 8124
|
|
|
|
targetPort: 8124
|
|
|
|
clusterIP: None
|
|
|
|
selector:
|
|
|
|
app: axons
|