Skip to content

MollySocket/helm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

MollySocket for Kubernetes

Helm chart for deploying MollySocket in Kubernetes cluster

Prepare your configuration of the MollySocket helm release by creating your values file e.g. my_values.yml for all options see default values.yaml from the chart: /charts/mollysocket/values.yaml

mollysocket:
  log: "warn"

## here is the sqlite file stored
persistence:
  enabled: true

## you should not change, till you have support for
## a. your cluster support accessMode=ReadWriteMany  or b. MollySocket support external databases
replicaCount: 1


ingress:
  enabled: true
  hosts:
    - host: chart-example.local
      paths:
        - path: /
          pathType: ImplementationSpecific
  tls:
    - secretName: chart-local-cert
      hosts:
        - chart-example.local

Installation with following commands:

helm repo add mollysocket-repo https://mollysocket.github.io/helm/
helm install --create-namespace --namespace mollysocket my-mollysocket mollysocket-repo/mollysocket -f my_values.yml

Testing

curl "https://chart-example.local/"

result:

{"mollysocket":{"version":"0.1.0"}}

Monitoring

Works well with Prometheus Operator (Helmchart) by enabling following values:

prometheus:
  servicemonitor:
    enabled: true
    labels:
      release: "kube-prometheus-stack"
  rules:
    # will deploy alert rules
    enabled: true
    labels:
      release: "kube-prometheus-stack"
    # current no default alertrules are provided, here a few additiona examples:
    additionalRules:
      # alert if any message is recieved (and pushed)
      - alert: "MollyMessage"
        expr: 'increase(mollysocket_messages[5m]) > 0'
        labels: 
          severity: "critical"
        annotations:
          summary: "Got New Message for {{ $labels.uuid }}"
          description: "Got New Message for {{ $labels.uuid }} per {{ $labels.type }} count: {{ $value }}"
grafana:
  dashboards:
    enabled: true

Grafana Dashboard of MollySocket

PS: The labels release=kube-prometheus-stack is setup with the helmchart of the Prometheus Operator.

TODO