Hi everyone
I’m developing a microservices project where I have to implement the saga pattern with axon server, and I have to deploy them on kubernates (minikube)
Trying to launch microservices plus axon servers with docker-compose they manage to connect and communicate correctly
Instead, trying to deploy everything with kubernates, when starting the spring boot applications I always get the following error, and I can’t get out of it:
here is the piece of code of the kubernates yaml involving axon server:
- apiVersion: v1
kind: Service
metadata:
name: axonserver-gui
labels:
app: axonserver
spec:
ports:- name: gui
port: 8024
targetPort: 8024
selector:
app: axonserver
type: LoadBalancer
sessionAffinity: ClientIP
- name: gui
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: /snap/kompose/19/kompose-linux-amd64 convert --out provay.yaml
kompose.version: 1.21.0 (992df58d8)
creationTimestamp: null
labels:
io.kompose.service: axonserver
name: axonserver
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: axonserver
strategy: {}
template:
metadata:
annotations:
kompose.cmd: /snap/kompose/19/kompose-linux-amd64 convert --out provay.yaml
kompose.version: 1.21.0 (992df58d8)
creationTimestamp: null
labels:
io.kompose.service: axonserver
spec:
containers:
- image: axoniq/axonserver
imagePullPolicy: “”
name: axon-server
ports:
- containerPort: 8124
- containerPort: 8024
resources: {}
restartPolicy: Always
serviceAccountName: “”
volumes: null
status: {} - apiVersion: v1
kind: Service
metadata:
name: axonserver-grpc
labels:
app: axonserver
spec:
ports:- name: grpc
port: 8124
targetPort: 8124
clusterIP: None
selector:
app: axonserver
- name: grpc