eventstore

command module
v0.0.0-...-35eb303 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

README

eventstore

Simple Knative service persisting Cloud Events to Cloud Firestore collection. Useful in Knative Events demos

Prerequisites

Deployment

Firestore client still requires GCP Project ID to create a client. So, before we can deploy this service to Knative, you will need to update the GCP_PROJECT_ID in Now in the service.yaml file.

    - name: GCP_PROJECT_ID
      value: "enter your project ID here"

Once done updating our service manifest (service.yaml) you are ready to deploy it.

kubectl apply -f deployments/service.yaml -n demo

The response should be

service.serving.knative.dev "eventstore" configured

To check if the service was deployed successfully you can check the status using kubectl get pods -n demo command. The response should look something like this (e.g. Ready 3/3 and Status Running).

NAME                                          READY     STATUS    RESTARTS   AGE
eventstore-0000n-deployment-5645f48b4d-mb24j  3/3       Running   0          10s

Configuration

To make eventstore service cluster.local so it does not expose externally accessible endpoint but still enable other services to discover it using eventstore simply add serving.knative.dev/visibility: cluster-local label to deployments/service.yaml service manifest

Disclaimer

This is my personal project and it does not represent my employer. I take no responsibility for issues caused by this code. I do my best to ensure that everything works, but if something goes wrong, my apologies is all you will get.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL