eventstore-docker icon indicating copy to clipboard operation
eventstore-docker copied to clipboard

Helm support

Open Lanayx opened this issue 9 years ago • 7 comments

Along with official image creation #34, it would be great to see EventStore among Helm charts there: https://kubeapps.com/

Lanayx avatar Aug 03 '17 21:08 Lanayx

Hi all, i'm created helm chart for kubernetes. Without cluster mode, only standalone. https://github.com/grigorov/eventstore-helm

grigorov avatar Mar 12 '18 14:03 grigorov

If need configure via ENV, please open issue in my repos. I will do.

grigorov avatar Mar 12 '18 14:03 grigorov

apiVersion: v1
kind: Service
metadata:
  name: geteventstore
  namespace: persistance
  labels:
    db: geteventstore
spec:
  ports:
    - protocol: "TCP"
      port: 2113
      targetPort: 2113
  ports:
    - protocol: "TCP"
      port: 1113
      targetPort: 1113
  clusterIP: None
  selector:
    db: geteventstore
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: geteventstore-set
  namespace: persistance
spec:
  selector:
    matchLabels:
      db: geteventstore # Label selector that determines which Pods belong to the StatefulSet
                 # Must match spec: template: metadata: labels
  serviceName: "geteventstore"
  replicas: 5
  template:
    metadata:
      labels:
        db: geteventstore # Pod template's label selector
    spec:
      terminationGracePeriodSeconds: 10
      containers:
      - name: geteventstore
        image: eventstore/eventstore
        env: 
          - name: EVENTSTORE_INT_IP
            valueFrom:
              fieldRef:
                fieldPath: status.podIP
          - name: EVENTSTORE_EXT_IP
            valueFrom:
              fieldRef:
                fieldPath: status.podIP
          - name: EVENTSTORE_CLUSTER_DNS
            value: "geteventstore.persistance.svc.cluster.local"
          - name: EVENTSTORE_INT_TCP_PORT
            value: "1111"
          - name: EVENTSTORE_EXT_TCP_PORT
            value: "1113"
          - name: EVENTSTORE_INT_HTTP_PORT
            value: "2111"
          - name: EVENTSTORE_EXT_HTTP_PORT
            value: "2113"
          - name: EVENTSTORE_CLUSTER_SIZE
            value: "5"
          - name: EVENTSTORE_CLUSTER_GOSSIP_PORT
            value: "2111"
          - name: EVENTSTORE_GOSSIP_ALLOWED_DIFFERENCE_MS
            value: "600000"
          - name: EVENTSTORE_INT_HTTP_PREFIXES
            value: "http://*:2111/"
          - name: EVENTSTORE_EXT_HTTP_PREFIXES
            value: "http://*:2113/"
          - name: RUN_PROJECTIONS
            value: System
        ports:
          - containerPort: 2113
          - containerPort: 2111
          - containerPort: 1111
          - containerPort: 1113
        volumeMounts:
        - name: geteventstore
          mountPath: "/usr/data/eventstore"
  volumeClaimTemplates:
  - metadata:
      name: geteventstore
    spec:
      accessModes: [ "ReadWriteOnce" ]
      resources:
        requests:
          storage: 10Gi

it is pretty much a copy from https://github.com/mastoj/eventstore-kubernetes . This is working for me for quite a while now. But not under heavy load yet. Will share experience.

quorak avatar Sep 21 '18 11:09 quorak

statefulset with cluster mode and ingress.

https://github.com/grigorov/eventstore-helm/releases/tag/0.3.0

grigorov avatar Nov 22 '18 20:11 grigorov

If anyone would like to help be an owner/contributor, I have added a PR to the Helm repo here. I have been using Event Store for a little while now and would love to help make this available in the official Helm repo.

This leverages the following resources:

  • https://github.com/riccardone/EventStore-Kubernetes
  • http://www.dinuzzo.co.uk/2018/08/13/set-up-an-eventstore-cluster-on-kubernetes/
  • https://github.com/grigorov/eventstore-helm

@grigorov @riccardone

andymeierdev avatar Jan 02 '19 22:01 andymeierdev

Thanks all involved in this thread so far - with the release of 5.0, we're hoping to transition the Docker container into a production-supported release, and with that we'll likely start publishing an official helm chart and the equivalents for other schedulers. @riccardone will likely be leading this work. Tentatively we have the release date of 5.0 for mid January (there'll be at least one more RC), so we'll be looking at these bits then.

jen20 avatar Jan 03 '19 00:01 jen20

Hello,

This issue has been close due to management of Docker builds moving to EventStore/EventStore, and this repository is due to be archived. If you are still experiencing this issue, please re-open this issue in the new repository.

Thank you.

arwinneil avatar Aug 24 '20 06:08 arwinneil