gorse
gorse copied to clipboard
Support Kubernetes
cluster mode is greate ,docker base image using scratch,maybe alpine is better for debug image
now, gorse has char store?
now, gorse has char store?
What is char store 😂
sorry chart
I an a beginner on k8s. Helm charts can't be provided until I can write charts or someone contribute 😁
Got it do you have a plan?
Got it do you have a plan?
About in several months.
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: {}
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!