|
| 1 | +# Schema CRD Deployment |
| 2 | +A working example of the new Schema CRD, you can declaratively create, read, and delete schemas as Schema custom resources (CRs) in Kubernetes. |
| 3 | + |
| 4 | +The example uses an Avro schema which is loaded into a ConfigMap and referenced in the Schema CRD. |
| 5 | + |
| 6 | +## Features |
| 7 | + |
| 8 | +| Feature | Enabled | Note | |
| 9 | +|:----------------|:-------:|-------:| |
| 10 | +| Kafka/Zookeeper | ✅ | | |
| 11 | +| Control Center | ✅ | | |
| 12 | +| Connect | ❌ | | |
| 13 | +| Schema Registry | ✅ | | |
| 14 | +| KSQL | ❌ | | |
| 15 | +| TLS Encryption | ❌ | | |
| 16 | +| Authentication | ❌ | | |
| 17 | + |
| 18 | + |
| 19 | +### Output |
| 20 | +CRD sample: |
| 21 | +```shell |
| 22 | +apiVersion: platform.confluent.io/v1beta1 |
| 23 | +kind: Schema |
| 24 | +metadata: |
| 25 | + annotations: |
| 26 | + kubectl.kubernetes.io/last-applied-configuration: | |
| 27 | + {"apiVersion":"platform.confluent.io/v1beta1","kind":"Schema","metadata":{"annotations":{},"name":"customer-schema","namespace":"sandbox"},"spec":{"data":{"configRef":"oso-schema-config","format":"avro"}}} |
| 28 | + platform.confluent.io/config-revision-hash: 9kg4kgmch4 |
| 29 | + creationTimestamp: "2022-05-03T16:48:42Z" |
| 30 | + finalizers: |
| 31 | + - schema.finalizers.platform.confluent.io |
| 32 | + generation: 1 |
| 33 | + name: customer-schema |
| 34 | + namespace: sandbox |
| 35 | + ownerReferences: |
| 36 | + - apiVersion: platform.confluent.io/v1beta1 |
| 37 | + blockOwnerDeletion: true |
| 38 | + controller: true |
| 39 | + kind: SchemaRegistry |
| 40 | + name: schemaregistry |
| 41 | + uid: a7714a0e-6e5d-4950-b3b0-8b5f427a78f7 |
| 42 | + resourceVersion: "6627" |
| 43 | + uid: 2ccb3eb6-1581-4710-9ab4-834f6ffc1419 |
| 44 | +spec: |
| 45 | + data: |
| 46 | + configRef: oso-schema-config |
| 47 | + format: avro |
| 48 | +status: |
| 49 | + conditions: |
| 50 | + - lastProbeTime: "2022-05-03T16:48:42Z" |
| 51 | + lastTransitionTime: "2022-05-03T16:48:42Z" |
| 52 | + message: Schema version create successful |
| 53 | + reason: successfully created schema version 1 |
| 54 | + status: "False" |
| 55 | + type: platform.confluent.io/failed-create-version |
| 56 | + format: avro |
| 57 | + id: 3 |
| 58 | + schemaRegistryEndpoint: https://schemaregistry.sandbox.svc.cluster.local:8081 |
| 59 | + schemaRegistryTLS: true |
| 60 | + state: SUCCEEDED |
| 61 | + subject: customer-schema |
| 62 | + version: 1 |
| 63 | +``` |
0 commit comments