Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config orientdb service as LoadBalancer #5

Open
qualitesys opened this issue May 30, 2022 · 0 comments
Open

Config orientdb service as LoadBalancer #5

qualitesys opened this issue May 30, 2022 · 0 comments

Comments

@qualitesys
Copy link

I wished to configure the orientdb service as a LoadBalancer with session affinity.

I made a change in the statefulset.yaml (adding type: LoadBalancer) but it makes an error (orientdb service exists already).

In fact the yaml files of the chart must not be changed.

After the helm install instruction, I have added :

kubectl delete service orientdb
kubectl apply -f orientdb-helm-values-patch.yaml 

The file orientdb-helm-values-patch.yaml is :

apiVersion: v1
kind: Service
metadata:
  namespace: default
  name: orientdb
  labels:
    app: orientdb
spec:
  ports:
  - port: 2424
    name: binary
  - port: 2480
    name: http
  - port: 2434
    name: hazelcast
  type: LoadBalancer  
  sessionAffinity: ClientIP
  selector:
    app: orientdb

PS : this issue because it costed me several days to find the issue and fix it !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant