Skip to content

Commit 17eb0a7

Browse files
committed
Move overview guide to docs section
1 parent 88abe8f commit 17eb0a7

5 files changed

+173
-1
lines changed

doc-categories.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
:page-title: doc categories meta
2-
:page-categories: ['Installation', 'Configuration', 'Reference']
2+
:page-categories: ['Overview', 'Installation', 'Configuration', 'Reference']

img/arch-overview-main.png

1.04 MB
Loading

img/arch-overview-stacks.png

166 KB
Loading

img/arch-overview-workflows.png

464 KB
Loading
+172
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
:page-layout: doc
2+
:page-doc-category: Overview
3+
:page-title: Architecture and Development Workflows
4+
:linkattrs:
5+
:sectanchors:
6+
7+
= Architecture and Development Workflows
8+
9+
Kabanero is designed to deliver an integrated workflow for application architects, application developers, and operations teams, allowing them to focus more intently in their respective area of expertise.
10+
11+
Kabanero workflows covers common scenarios for these different roles, such as architects defining base images and starter applications for developers, developers iterating through code changes from their favorite IDE without worrying about the setup of a Kubernetes cluster, and operation teams using pipelines that can continuously monitor code deliveries and deploy the finished applications to a running cluster.
12+
13+
The following sections outline the overall architecture of the system, its components, and explains the typical workflows for the different roles.
14+
15+
== Architecture
16+
17+
The Kabanero architecture supports the activity of application developers, application architects, and operations teams in continuously delivering applications to Kubernetes environments. The architecture also covers non-functional requirements, such as supporting the implementation of operational policies for application management and security.
18+
19+
The following figure illustrates the main building blocks of the architecture, which will be elaborated in the next sections.
20+
21+
.Main Kabanero building blocks
22+
image::/docs/img/arch-overview-main.png[link="/img/guide/arch-overview-main.png" alt="Main Kabanero building blocks"]
23+
24+
25+
=== Kabanero Collections
26+
27+
A large portion of the Kabanero experience is centered around *Kabanero Collections*. A Kabanero Collection is created by an *application architect*, as a logical set of software components for developing and deploying applications. A collection is realized as components (such as tools and container images) used at coding time by application developers, and components forming a deployment pipeline that can extract, build, and deploy the resulting application image to a running Kubernetes cluster.
28+
29+
If necessary, a collection can be customized to meet local requirements. For example, you might want to define specific maintenance levels of software components or expose a particular port for your application. Customizing a collection provides a mechanism for controlling the precise development and runtime environment for an application. In a large organization, customization ensures that applications are developed and tested with a level of consistency that promotes quality and helps guarantee a seamless implementation in your production environment.
30+
31+
=== Developer Experience
32+
33+
For *application developers*, the Kabanero experience is realized as tooling that allows a developer to continuously iterate over changes to source code and validate the changes, considerably reducing or even eliminating the amount of time spent setting up and dealing with infrastructure such as Docker containers and Kubernetes clusters. The current tooling is offered as a combination of the following initial offerings:
34+
35+
* https://appsody.dev[Appsody]: A Command-line interface with commands for creating, building, running, and deploying applications. Appsody also has extensions that are used by other portions of the architecture, in order to reassemble the application as a container image and to deploy it to a running container, and those will be covered in the respective sections of this overview.
36+
37+
* https://www.eclipse.org/codewind/[Codewind]: Hosted IDE (Codewind for Eclipse Che) and IDE extensions (Eclipse and Visual Studio Code) with a set of commands for creating, building, running, and profiling applications. When compared to Appsody, Codewind lacks the ability to deploy an application directly to a Kubernetes cluster, but it adds useful profiling capabilities where developers can inspect the usage of system resources between different local iterations on the source code.
38+
39+
Both Appsody and the local IDE extensions of Codewind depend on a running docker daemon in order to run a container with the resulting image for the application being developed.
40+
41+
=== Kabanero Foundation
42+
43+
The *Kabanero Foundation* sits on the opposite side of the developer experience, as a managed pipeline that handles the workflows after application developers deliver their source code to a remote repository. Kabanero Foundation is a set of Kubernetes components covering the disciplines of serving applications (https://knative.dev/[Knative]), service mesh (https://istio.io/[Istio]), build (https://cloud.google.com/tekton/[Tekton]), and deployment (https://github.com/operator-framework[Operator Framework]).
44+
45+
With these components deployed to a Kubernetes cluster, the Kabanero Foundation monitors changes to source code repositories (such as git) and triggers pipeline runs that will extract the source code, reassemble it according to the structure and runtime specifications of the underlying Kabanero Collection, execute all the build and verification steps, and then make the final application container pods available in the cluster.
46+
47+
=== Kabanero Unified Experience
48+
49+
Applications in a production environment are subject to common operational policies and lifecycle operations. Kabanero combines a set of open-source projects to support operations teams in those activities, ranging from the Kubernetes CLI for managing the Kabanero custom resources, passing through the upcoming Kabanero CLI, all to way to Razee, a user interface for managing deployments across Kubernetes clusters.
50+
51+
=== Collection Stacks
52+
53+
A *stack* is part of a Kabanero Collection and it deserved its own section in this guide as the single architectural component shared between application development and application deployment activities. A stack is realized as a container image designed, built, and published by an application architect, which can then be pulled into local registries by application developers and into the deployment pipeline upon code deliveries.
54+
55+
.Collection stacks
56+
image::/docs/img/arch-overview-stacks.png[link="/img/guide/arch-overview-stacks.png" alt="Collection stacks"]
57+
58+
Although a stack is ultimately delivered as a regular container image, Kabanero specifies conventions for the internal structure of that image, with a clear separation between the portions of the stack that are common across all applications and the portions that are unique to each application, being visible and editable by application developers.
59+
60+
Those conventions for a collection stack are detailed in the https://appsody.dev/docs/stacks/stack-structure[Stack Structure] section of the https://appsody.dev/[Appsody website]. For the cross-applications portion of the stack, an application architect makes choices such as the base container image, the runtime framework for the programming language being targeted by the collection, the toolset for the runtime framework, the management choices for the running application, and many other choices not directly related to the functional aspects of the application.
61+
62+
The stack structure also contains at least one application template: a set of source code files matching the technology of the stack. A template is used by the client portion of Kabanero upon request by application developers to create the first version of an application. As examples, a template may contain an empty website and web folder with all the visual branding elements for an organization, whereas another template may contain an empty REST-based application secured by API keys.
63+
64+
Kabanero provides initial collections for the most popular software development frameworks, but it is expected that feedback from developers, regular upgrades, and ever-evolving organizational requirements start to drive the creation of custom collections or the updating of existing ones.
65+
66+
== Workflows
67+
68+
The following sections contain concrete examples of how different roles would interact with Kabanero to achieve concrete goals.
69+
70+
.Application Developer and Application Architect workflows
71+
image::/docs/img/arch-overview-workflows.png[link="/img/guide/arch-overview-workflows.png" alt="Application Developer and Application Architect workflows"]
72+
73+
74+
=== Create New Application (application developer)
75+
76+
Assuming an organization has decided to begin with the initial collections shipped with Kabanero, an application developer would https://appsody.dev/docs/getting-started/installation[install Appsody] to its local system and lookup the collection and use the collection name to initialize a local directory with an initial application template. That activity is explained https://appsody.dev/docs/using-appsody/initializing-project[in detail] in the Appsody website, but can be summarized as follows
77+
78+
----
79+
80+
> appsody list
81+
...
82+
appsodyhub nodejs-express 0.2.6 *simple, skaffold Express web framework for Node.js
83+
...
84+
85+
> mkdir -p ~/workspace/myapp
86+
> cd ~/workspace/myapp
87+
> appsody init nodejs-express simple
88+
----
89+
90+
=== Iterate over application changes (application developer)
91+
92+
As described in the https://appsody.dev/docs/stacks/stack-structure[Stack Structure] section of Appsody, besides the "Initialization" mode exercised during the creation of a new application, there are also "Rapid Local Development" and "Build and Deploy" modes, with the first mode being exercised the most during local application changes. The application architect designing that experience is expected to leverage the underlying framework capabilities to ensure code changes are reflected as quickly as possible.
93+
94+
----
95+
96+
> appsody run
97+
...
98+
// Wait for the local container to indicate it is ready, typically via
99+
// console output
100+
101+
// Make code changes, test code changes
102+
103+
// If image indicates it cannot dynamically adopt one of the changes:
104+
> appsody stop
105+
> appsody run
106+
..
107+
----
108+
109+
Note that https://semver.org/[patches] to the Kabanero collection may be picked up between executions of "appsody run", triggering the download of the new base image for the stack. In the case of minor or major patches, the application architect is expected to notify application developers about the new release, its contents and implications to existing applications, at which point the application developers need to update the Kabanero metadata in the application directory to pick up these changes.
110+
111+
112+
=== Test build (application developer)
113+
114+
An application stack can be setup differently between the "Rapid Local Development" and the "Build and Deploy" modes, so application developers can anticipate and ward off eventual problems in an actual pipeline deployment by running a local build before delivering their code changes.
115+
116+
117+
----
118+
119+
> appsody build
120+
...
121+
// Wait for the local build container to indicate it the build was successful
122+
// Address eventual problems and notify the application architect about the
123+
// occurrences, so that the stack can be enhanced to minimize or eliminate
124+
// the sources of common problems.
125+
...
126+
----
127+
128+
129+
=== Test deployment (application developer)
130+
131+
Similarly to testing a local build, application developers can preempt problems in an actual pipeline deployment by running a local deployment to a development Kubernetes environment before delivering their code changes.
132+
133+
----
134+
135+
> appsody deploy
136+
...
137+
// Wait for the deployment to indicate it was successful
138+
// Address eventual problems and notify the application architect about the
139+
// occurrences so that the stack can be enhanced to minimize or eliminate
140+
// the sources of common problems.
141+
...
142+
----
143+
144+
Assuming the observance of proper controls and operational policies for the target Kubernetes cluster, "appsody deploy" can be used to deploy an application directly to that cluster. For actual production environments, access to the cluster will likely be restricted to an automated pipeline like the one included in Kabanero.
145+
146+
=== Deliver source code changes (application developer, pipeline)
147+
148+
With all code modifications, local build, and local deployment in place, this is the culmination of a local development session, which ends with a code push towards the application source code repository.
149+
150+
At that point, Kabanero Foundation will detect the code delivery and execute a pipeline run that will ultimately result in the publication of the finished application.
151+
152+
153+
=== Modify and publish updated collection stack (application architect)
154+
155+
After several iterations of the previous workflows, application developers will have provided valuable feedback to the application architect responsible for a given collection.
156+
157+
The overall process for modifying a stack is explained in the https://appsody.dev/docs/stacks/stacks-overview[corresponding section] of the Appsody website.
158+
159+
At this point, the application architect must judge the nature of the changes in regards to proper https://semver.org/[semantic versioning] and decide on the new version number for the stack. Kabanero collections are expected to have application templates set to adopt all new patches automatically, but set to require a manual change to the Kabanero metadata stored in the application directory in order to adopt minor and major versions.
160+
161+
Once the decision about the new version is made. the collection must be published to the remote location hosting the collection, a process described in this
162+
https://github.com/appsody/stacks/blob/master/RELEASE.md#appsody-stacks-release-process---technical-overview[technical overview document].
163+
164+
165+
=== Install Kabanero Foundation to Kubernetes cluster (operations team)
166+
167+
This is more of an activity than a workflow, though some interaction is expected between the application architect and the operations team in order to align the cluster configuration with the application requirements. Those interactions should also result in the documentation of the operational aspects of the application, so that they can be incorporated into operational runbooks.
168+
169+
For instance, if an application stack supports connection to a remote database, the mapping of connectivity parameters to the cluster may entail a combination of hostname and ports as config-maps and database credentials as secrets. The application architect will have to ensure the operations team knows what is necessary to create the proper setup of those parameters in the cluster.
170+
171+
---
172+
This concludes the overview of the Kabanero architecture. Head back to the https://kabanero.io/docs[Kabanero.io docs] for deeper dives into Kabanero components and "Getting Started" guides that will get you up and running with hands-on examples of the workflows introduced here.

0 commit comments

Comments
 (0)