Create a Brontosaurus Cluster with Kubernetes

This Work in Progress document will guide you to create and host a Brontosaurus instance within 5 minutes.

Image

Brontosaurus has three active docker images available on Docker Hub now. Image brontosaurus/core for core function, image brontosaurus/red for a prebuilt command center for light need, and image brontosaurus/green for server-side SDK support. However, brontosaurus/red and brontosaurus/green are not required, and you can create your personalized control center with Brontosaurus. It now recommended, but you can even edit the Brontosaurus Database with @brontosaurus/db package for NodeJS.

For @brontosaurus/db, check out Use Brontosaurus DB Document

Brontosaurus docker hub image doesn’t use default latest tag, which means you have to specificity the version you want when you are pulling it. When pulling, the image version can be assigned like brontosaurus/core:x.x.x.

Here are the latest versions of our images.

Brontosaurus Core Image Version Brontosaurus Red Image Version Brontosaurus Green Image Version

Configuration

Core example YAML configuration

spec:
  containers:
    - image: brontosaurus/core:x.x.x
      imagePullPolicy: IfNotPresent
      livenessProbe:
        httpGet:
          path: /health
          port: 8080
        initialDelaySeconds: 10
        periodSeconds: 10
      ports:
        - containerPort: 8080
          name: brontosaurus-core-port
          protocol: TCP
      env:
        - name: NODE_ENV
          value: production
        - name: BRONTOSAURUS_DATABASE
          value: <MONGO-DB-URL>

Red example YAML configuration

spec:
  containers:
    - image: brontosaurus/red:x.x.x
      imagePullPolicy: IfNotPresent
      livenessProbe:
        httpGet:
          path: /health
          port: 9000
        initialDelaySeconds: 10
        periodSeconds: 10
      ports:
        - containerPort: 9000
          name: brontosaurus-red-port
          protocol: TCP
      env:
        - name: NODE_ENV
          value: production
        - name: PORTAL_PATH
          value: <PORTAL-HTTPS-URL>
        - name: BRONTOSAURUS_DATABASE
          value: <MONGO-DB-URL>

Green example YAML configuration

spec:
  containers:
    - image: brontosaurus/green:x.x.x
      imagePullPolicy: IfNotPresent
      livenessProbe:
        httpGet:
          path: /health
          port: 8500
        initialDelaySeconds: 10
        periodSeconds: 10
      ports:
        - containerPort: 8500
          name: brontosaurus-green-port
          protocol: TCP
      env:
        - name: NODE_ENV
          value: production
        - name: BRONTOSAURUS_DATABASE
          value: <MONGO-DB-URL>