|
|
If you skipped earlier chapters, expand the section below to catch up.
Details
These requirements need to be met:
-
Access to the database
-
Kafka integration with Matrix (messaging platform for customers)
Following the steps below will enable both requirements.
-
Enable access to the database
This chapter requires access to a database, but it’s unreachable by default.
flowchart LR
subgraph yoursLabel ["username-devspaces ."]
subgraph yours [" "]
Camel[⚙️ Integration]
end
end
Camel -.-x|"❌ unreachable"| SVC
subgraph sharedLabel ["shared-database ."]
subgraph shared [" "]
%% SI2{{"Service\nInterconnect"}}
SVC((svc))
SVC --> DB
end
end
DB@{ img: "../../_images/module-03/common/database-icon.svg", label: "Database", pos: "b", h: 80, w: 80, constraint: "on" }
style yoursLabel fill:none,stroke:none,color:#EE0000,font-weight:bold
style Camel fill:#f8b4b4,stroke:#EE0000,font-weight:bold
style sharedLabel fill:none,stroke:none,color:#EE0000,font-weight:bold
style yours fill:#fce4e4,stroke:#EE0000
style shared fill:#fce4e4,stroke:#EE0000
style DB fill:none,stroke:none
style SVC fill:#fce4e4,stroke:#EE0000,color:#333
To enable access to the database, run the following command in your terminal in Dev Spaces:
You should see all resources reporting ready OK:
Namespace: username-devspaces
✓ Site ready OK
✓ AccessGrant ready OK
✓ Listener ready OK
Namespace: shared-database
✓ AccessToken ready OK
✓ Link ready OK
The above output indicates a Service Interconnect link has been established between your namespace and the database namespace.
flowchart LR
subgraph yoursLabel ["username-devspaces ."]
subgraph yours [" "]
Camel[⚙️ Integration]
SI1{{"Service\nInterconnect"}}
end
end
Camel --> SI1
SI1 -.-|"🔒 secure link"| SI2
subgraph sharedLabel ["shared-database ."]
subgraph shared [" "]
SI2{{"Service\nInterconnect"}}
SVC((svc))
SVC --> DB
end
end
SI2 --> SVC
DB@{ img: "../../_images/module-03/common/database-icon.svg", label: "Database", pos: "b", h: 80, w: 80, constraint: "on" }
style yoursLabel fill:none,stroke:none,color:#EE0000,font-weight:bold
style sharedLabel fill:none,stroke:none,color:#EE0000,font-weight:bold
style yours fill:#fce4e4,stroke:#EE0000
style shared fill:#fce4e4,stroke:#EE0000
style Camel fill:#f8b4b4,stroke:#EE0000,font-weight:bold
style DB fill:none,stroke:none
style SI1 fill:#f8b4b4,stroke:#EE0000,color:#333
style SI2 fill:#f8b4b4,stroke:#EE0000,color:#333
style SVC fill:#fce4e4,stroke:#EE0000,color:#333
-
Enable Kafka integration with Matrix
Scale up the Kafka integration with Matrix
The pod will enable the following notification flow:
flowchart LR
AI --> KF --> |"k2m\n(pod)"| MX --> CUST
CUST@{ img: "../../_images/module-03/common/customer-icon.svg", label: "Customer", pos: "b", h: 80, w: 80, constraint: "on" }
MX@{ img: "../../_images/module-03/common/element-icon.svg", label: "Matrix", pos: "b", h: 80, w: 80, constraint: "on" }
KF@{ img: "../../_images/module-03/common/kafka-icon.svg", label: "Kafka", pos: "b", h: 80, w: 80, constraint: "on" }
AI@{ img: "../../_images/module-03/common/ai-icon.svg", label: "AI Assistant", pos: "b", h: 80, w: 80, constraint: "on" }
style CUST fill:none,stroke:none
style MX fill:none,stroke:none
style KF fill:none,stroke:none
style AI fill:none,stroke:none
To verify the pod is running, run the following command:
You should see the deployment Ready 1/1:
NAME READY UP-TO-DATE AVAILABLE AGE
k2m 1/1 1 1 27h
|