Example Kind Config
current-context
set.
--set watchNamespaces
to specify the namespace you’re using for Ditto. Eg: --set watchNamespaces=ditto,another-ditto-namespace
oci://quay.io/ditto-external/ditto-operator
:
ditto
namespace. All further steps will refer to this namespace.
__playgroundProvider
:
abc123
OnlinePlayground
or OnlineWithAuthentication
identity try to connect to Ditto’s cloud service by default. Extra configuration is required to point it to your Big Peer.OnlinePlayground
, provide a custom authentication URL pointing to the ingress, e.g. “https://my-host”OnlinePlayground
, set “enable cloud sync” to false
TransportConfig
with a websocket URL pointing to your ingress. In the Rust SDK, for example: transport_config.connect.websocket_urls.insert("wss://my-host".to_owned())
BigPeer
was applied successfully, the various components of the Big Peer can be observed by running:
BigPeer
’s metadata.name
, which is "example"
in this case:
example-app
, running on the example
Big Peer, in the ditto
namespace.If successfil, you should receive a response like this:appId
from the response, you’ll need this later to use the HTTP API.BigPeer
resource are available to all apps. You can also configure providers for a specific BigPeerApp
by including an auth
configuration. The following example defines an external webhook with the provider name my-provider
.
anonymous
provider may also be specified at the app level. Make sure to give it the name __playgroundProvider
so that it can be used by Ditto SDKs using an OnlinePlayground
identity.
kind
example config provided, these queries should work out of the box.Otherwise, you may need to update the localhost
according to the ingress you’ve configured on your K8s deployment.kubectl
as the Operator will make a BigPeerApiKey object to manage this key:
cars
collectionkind
example config provided. If not, you may need to update localhost
to the hostname you’ve configured as for your ingress.Remember to replace YOUR_API_KEY
with the API key generated earlier.cars
collection, which will implicitly be createdcars
collection