Skip to content

Instantly share code, notes, and snippets.

@kshitijcode
Created July 9, 2021 04:09
Show Gist options
  • Select an option

  • Save kshitijcode/5c7dd7fe3e8c91ea86559afddbe705ec to your computer and use it in GitHub Desktop.

Select an option

Save kshitijcode/5c7dd7fe3e8c91ea86559afddbe705ec to your computer and use it in GitHub Desktop.
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: mongo
spec:
type: state.mongodb
version: v1
metadata:
- name: host
secretKeyRef:
name: MONGO_HOST
- name: username
secretKeyRef:
name: MONGO_ROOT_USERNAME
- name: password
secretKeyRef:
name: MONGO_ROOT_PASSWORD
scopes:
- savestate-service
auth:
secretStore: envvar-secret-store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment