Deliverable Templates
https://meta.linked.archi/examples/cloudplatform/deliverable-templates#
Inventory of all microservices with their properties, dependencies, and deployment status.
templates/service-catalog.md.hbs
PREFIX cp: <https://meta.linked.archi/examples/cloudplatform/onto#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?service ?label ?resilience ?tier ?strategy WHERE {
?service a cp:Microservice ;
skos:prefLabel ?label .
OPTIONAL { ?service cp:resilienceLevel ?resilience }
OPTIONAL { ?service cp:serviceTier ?tier }
OPTIONAL { ?service cp:deploymentStrategy ?strategy }
} ORDER BY ?label
PREFIX cp: <https://meta.linked.archi/examples/cloudplatform/onto#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?publisher ?publisherLabel ?topic ?topicLabel ?subscriber ?subscriberLabel WHERE {
?publisher cp:publishesTo ?topic ;
skos:prefLabel ?publisherLabel .
?topic skos:prefLabel ?topicLabel .
?subscriber cp:subscribesTo ?topic ;
skos:prefLabel ?subscriberLabel .
} ORDER BY ?topicLabel
PREFIX cp: <https://meta.linked.archi/examples/cloudplatform/onto#>
PREFIX am4: <https://meta.linked.archi/archimate4/onto#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?service ?serviceLabel ?container ?image ?replicas ?cluster ?clusterLabel WHERE {
?container am4:assignedTo ?service ;
a cp:Container .
?service skos:prefLabel ?serviceLabel .
OPTIONAL { ?container cp:containerImage ?image }
OPTIONAL { ?container cp:replicaCount ?replicas }
OPTIONAL {
?container cp:deployedIn ?cluster .
?cluster skos:prefLabel ?clusterLabel .
}
} ORDER BY ?serviceLabel
---
title: "Service Catalog"
date: "{{meta.date}}"
author: "{{meta.author}}"
status: "{{meta.status}}"
---
# Service Catalog
| Property | Value |
|----------|-------|
| Date | {{meta.date}} |
| Author | {{meta.author}} |
| Status | {{meta.status}} |
| Metamodel | Cloud Platform Architecture |
---
## 1. Service Inventory
| Service | Resilience | Tier | Deployment Strategy |
|---------|-----------|------|---------------------|
{{#each services}}
| {{this.label}} | {{this.resilience}} | {{this.tier}} | {{this.strategy}} |
{{/each}}
---
## 2. Event-Driven Dependencies
| Publisher | Topic | Subscriber |
|-----------|-------|------------|
{{#each eventDependencies}}
| {{this.publisherLabel}} | {{this.topicLabel}} | {{this.subscriberLabel}} |
{{/each}}
---
## 3. Deployment Status
| Service | Container Image | Replicas | Cluster |
|---------|----------------|----------|---------|
{{#each deployments}}
| {{this.serviceLabel}} | {{this.image}} | {{this.replicas}} | {{this.clusterLabel}} |
{{/each}}
Infrastructure and deployment documentation for the platform.
templates/deployment-guide.md.hbs
PREFIX cp: <https://meta.linked.archi/examples/cloudplatform/onto#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?cluster ?label (COUNT(?container) AS ?containerCount) WHERE {
?cluster a cp:KubernetesCluster ;
skos:prefLabel ?label .
OPTIONAL { ?container cp:deployedIn ?cluster }
}
GROUP BY ?cluster ?label
ORDER BY ?label
PREFIX cp: <https://meta.linked.archi/examples/cloudplatform/onto#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?container ?image ?replicas ?cluster ?clusterLabel WHERE {
?container a cp:Container .
OPTIONAL { ?container cp:containerImage ?image }
OPTIONAL { ?container cp:replicaCount ?replicas }
OPTIONAL {
?container cp:deployedIn ?cluster .
?cluster skos:prefLabel ?clusterLabel .
}
} ORDER BY ?image
---
title: "Deployment Guide"
date: "{{meta.date}}"
author: "{{meta.author}}"
---
# Deployment Guide
---
## 1. Kubernetes Clusters
| Cluster | Containers Deployed |
|---------|-------------------|
{{#each clusters}}
| {{this.label}} | {{this.containerCount}} |
{{/each}}
---
## 2. Container Inventory
| Image | Replicas | Cluster |
|-------|----------|---------|
{{#each containers}}
| {{this.image}} | {{this.replicas}} | {{this.clusterLabel}} |
{{/each}}