gorse icon indicating copy to clipboard operation
gorse copied to clipboard

Support Kubernetes

Open stardemo opened this issue 3 years ago • 8 comments

cluster mode is greate ,docker base image using scratch,maybe alpine is better for debug image

stardemo avatar Feb 07 '22 09:02 stardemo

now, gorse has char store?

yangyangpig avatar Apr 10 '22 01:04 yangyangpig

now, gorse has char store?

What is char store 😂

zhenghaoz avatar Apr 10 '22 01:04 zhenghaoz

sorry chart

yangyangpig avatar Apr 10 '22 01:04 yangyangpig

I an a beginner on k8s. Helm charts can't be provided until I can write charts or someone contribute 😁

zhenghaoz avatar Apr 10 '22 01:04 zhenghaoz

Got it do you have a plan?

yangyangpig avatar Apr 10 '22 01:04 yangyangpig

Got it do you have a plan?

About in several months.

zhenghaoz avatar Apr 10 '22 01:04 zhenghaoz

Here is basic All in one deployment for a demo with NON PERSISTANT STORAGE

#https://github.com/gorse-io/gorse/blob/master/cmd/gorse-in-one/Dockerfile
apiVersion: apps/v1
kind: Deployment
metadata:
  name: gorse-allinone
  labels:
    service: gorse-allinone
    app: gorse-allinone
spec:
  replicas: 1
  selector:
    matchLabels:
      service: gorse-allinone
      app: gorse-allinone
  template:
    metadata:
      labels:
        service: gorse-allinone
        app: gorse-allinone
    spec:
      terminationGracePeriodSeconds: 300
      # initContainers:
      #   - name: init-myservice
      #     image: busybox:1.28
      #     command: ['sh', '-c', 'mkdir -p /usr/share/gorse-allinone/data']
      #     volumeMounts:
      #     - name: data
      #       mountPath: /usr/share/gorse-allinone/data
      containers:
        - name: gorse-allinone
          # NOTE : you can update to the latest release
          image: zhenghaoz/gorse-in-one
          command:
            - "/usr/bin/gorse-in-one"
            - "-c"
            - "/etc/gorse/config.toml"
            - "--debug"
            - "--playground"
          ports:
            - containerPort: 8088
              name: http

          # NOTE: you can increase these resources
          # resources:
          #   requests:
          #     memory: 100Mi
          #     cpu: "64m"
          #   limits:
          #     memory: 256Mi
          #     cpu: "512m"
          volumeMounts:
            - name: data
              mountPath: /usr/share/gorse-allinone/data
      volumes:
        #DEFINE PERSISTANT STORAGE HERE
        - name: data
          emptyDir: {}


---
apiVersion: v1
kind: Service
metadata:
  labels:
    service: gorse-allinone
  name: gorse-allinone  
spec:
  ports:
    - name: "8088"
      port: 8088
      targetPort: 8088
 

  selector:
    service: gorse-allinone
status:
  loadBalancer: {}







josepowera avatar Oct 18 '22 10:10 josepowera

I'm working on a helm chart, it is still WIP. See: chart If you want you can contribute there is a lot to do!

hitech95 avatar Nov 19 '22 00:11 hitech95