ibm-app-navigator
by Helm
A Helm chart for Prism, an application centric view of Kubernetes
About this chart
IBM Application Navigator Helm Chart
Introduction
IBM Application Navigator is a tool that compliments the IBM Private Cloud console, providing visualization, inspection, and interaction with the deployed resources that comprise an application.
IBM Application Navigator is designed to satisfy a need identified by the Kubernetes Application Special Interest Group (SIG), who made the following observation and statement:
"Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications."
The above description, from the Kubernetes homepage, is centered on containerized applications. Yet, the Kubernetes metadata, objects, and visualizations (e.g., within Dashboard) are focused on container infrastructure rather than the applications themselves. The Application CRD (Custom Resource Definition) in the Kubernetes Application project aims to change that in a way that's interoperable between many supporting tools.
IBM Application Navigator provides visualization of all defined Applications, offering drill down into their respective comprised 'components'. Each component is a Kubernetes resource. Each Kubernetes resource has a 'Kind' - e.g. Deployment, Service, tWAS-App (a Kubernetes Custom Resource Definition), etc.. IBM Application Navigator offers action menu items by Kind. These menu items provide URLs and scripted commands that enable the user to navigate to, and operate, other tools in context - e.g. the log, monitor, trace, configuration page for the currently selected component.
Resources Required
For each Docker container:
- CPU Requested : 500m (500 millicpu)
- Memory Requested : 512Mi (~ 537 MB)
Actual resource consumption will vary depending on usage. These numbers represent maximum requirements. In practice, you will likely see lower consumption.
Storage
IBM Application Navigator is stateless and does not require any persistent volumes to operate.
Chart Details
- Installs a
Deploymentrunning the IBM Application Navigator UI and REST API container as its backend. - Installs a
Deploymentrunning the IBM Application Navigator Controller and REST API container as its backend. - Installs a
Deploymentrunning the IBM Application Navigator WAS Controller. - Installs a
Jobwhich executes the IBM Application Navigator Initialization container during chart installation. - Installs a
Serviceand optionally anIngressto route traffic to the IBM Application Navigator UI. - Installs multiple
ConfigMapsthat manage the configuration of IBM Application Navigator.
Note the IBM Application Navigator containers are configured to run on IBM Cloud Private's management node.
Prerequisites
- IBM Cloud Private 3.1.2 or greater.
- A user with Cluster administrator role is required to install the chart.
PodSecurityPolicy Requirements
This chart requires a PodSecurityPolicy to be bound to the target namespace prior to installation. Choose either a predefined PodSecurityPolicy or have your cluster administrator create a custom PodSecurityPolicy for you:
- Predefined PodSecurityPolicy name:
ibm-restricted-psp - Custom PodSecurityPolicy definition:
apiVersion: extensions/v1beta1
kind: PodSecurityPolicy
metadata:
name: ibm-app-navigator-psp
spec:
allowPrivilegeEscalation: false
forbiddenSysctls:
- '*'
fsGroup:
ranges:
- max: 65535
min: 1
rule: MustRunAs
requiredDropCapabilities:
- ALL
runAsUser:
rule: MustRunAsNonRoot
seLinux:
rule: RunAsAny
supplementalGroups:
ranges:
- max: 65535
min: 1
rule: MustRunAs
volumes:
- configMap
- emptyDir
- projected
- secret
- downwardAPI
- persistentVolumeClaim
- Custom ClusterRole for the custom PodSecurityPolicy:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: ibm-app-navigator-psp-clusterrole
rules:
- apiGroups:
- extensions
resourceNames:
- ibm-app-navigator-psp
resources:
- podsecuritypolicies
verbs:
- use
Configuration scripts can be used to create the required resources
Download the following scripts located at /ibm_cloud_pak/pak_extensions/pre-install directory.
-
The pre-install instructions are located at
clusterAdministration/createSecurityClusterPrereqs.shfor cluster admins to create the PodSecurityPolicy and ClusterRole for all releases of this chart. -
The namespace scoped instructions are located at
namespaceAdministration/createSecurityNamespacePrereqs.shfor team admin/operator to create the RoleBinding for the namespace. This script takes one argument; the name of a pre-existing namespace where the chart will be installed.- Example usage:
./createSecurityNamespacePrereqs.sh myNamespace
- Example usage:
Configuration scripts can be used to clean up resources created
Download the following scripts located at /ibm_cloud_pak/pak_extensions/post-delete directory.
-
The post-delete instructions are located at
clusterAdministration/deleteSecurityClusterPrereqs.shfor cluster admins to delete the PodSecurityPolicy and ClusterRole for all releases of this chart. -
The namespace scoped instructions are located at
namespaceAdministration/deleteSecurityNamespacePrereqs.shfor team admin/operator to delete the RoleBinding for the namespace. This script takes one argument; the name of the namespace where the chart was installed.- Example usage:
./deleteSecurityNamespacePrereqs.sh myNamespace
- Example usage:
Installing the Chart
To install the chart with the release name app-nav:
For example:
helm install --tls ibm-charts/ibm-app-navigator --name app-nav --namespace <namespace>
To specify any extra parameters you can use the --set option or create a yaml file with the parameters and specify it using the -f option on the command line.
Alternatively, you can install the chart from the catalog in the IBM Cloud Private console.
For a complete list of supported parameters, please take a look at the table in the Configuration section below.
It is recommended that the chart only be installed once per cluster.
Verifying the chart
To verify the chart, you need a system with kubectl and helm installed and configured.
- Check for chart deployment information by issuing the following commands:
helm list --namespace <namespace>
helm status --tls app-nav --namespace <namespace>
- Get the name of the pods that were deployed with ibm-app-navigator by issuing the following command:
kubectl get pod -n <namespace>
- For each of the pods, check under Events to see whether images were successfully pulled and that the containers were created and started by issuing the following command with the specific pod name:
kubectl describe pod <pod name> -n <namespace>
Uninstalling the chart
- To uninstall the deployed chart from the IBM Cloud Private console, click Workloads -> Helm Releases.
- Find the release name and under action click delete.
- To uninstall the deployed chart from the command line, issue the following command:
helm delete --tls --purge app-nav --namespace <namespace>
Configuration
| Parameter | Description | Default |
|---|---|---|
appNavApi.repository | Docker registry to pull the Application Navigator API image from. | ibmcom/app-nav-api |
appNavApi.tag | Application Navigator API image tag. | 1.0.1 |
appNavApi.resources.constraints.enabled | Specifies whether resource constraints are enabled for the Application Navigator API. | false |
appNavApi.resources.requests.cpu | The minimum required CPU core for the Application Navigator API. Specify integers, fractions (e.g. 0.5), or millicore values(e.g. 100m, where 100m is equivalent to .1 core). | 500m |
appNavApi.resources.requests.memory | Describes the minimum amount of memory required for the Application Navigator API. Corresponds to requests.memory in Kubernetes. If not specified it will default to maximum memory (if specified) or otherwise implementation-defined value. | 512Mi |
appNavApi.resources.limits.cpu | The upper limit of CPU core for the Application Navigator API. Specify integers, fractions (e.g. 0.5), or millicores values(e.g. 100m, where 100m is equivalent to .1 core). | 500m |
appNavApi.resources.limits.memory | The memory upper limit in bytes for the Application Navigator API. Specify integers with suffixes: E, P, T, G, M, K, or power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki. | 512Mi |
appNavController.repository | Docker registry to pull the Application Navigator Controller image from. | ibmcom/app-nav-controller |
appNavController.tag | Application Navigator Controller image tag. | 1.0.1 |
appNavController.resources.constraints.enabled | Specifies whether resource constraints are enabled for the Application Navigator Controller. | false |
appNavController.resources.requests.cpu | The minimum required CPU core for the Application Navigator Controller. Specify integers, fractions (e.g. 0.5), or millicore values(e.g. 100m, where 100m is equivalent to .1 core). | 500m |
appNavController.resources.requests.memory | Describes the minimum amount of memory required for the Application Navigator Controller. Corresponds to requests.memory in Kubernetes. If not specified it will default to maximum memory (if specified) or otherwise implementation-defined value. | 512Mi |
appNavController.resources.limits.cpu | The upper limit of CPU core for the Application Navigator Controller. Specify integers, fractions (e.g. 0.5), or millicores values(e.g. 100m, where 100m is equivalent to .1 core). | 500m |
appNavController.resources.limits.memory | The memory upper limit in bytes for the Application Navigator Controller. Specify integers with suffixes: E, P, T, G, M, K, or power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki. | 512Mi |
appNavUI.repository | Docker registry to pull the Application Navigator UI image from. | ibmcom/app-nav-ui |
appNavUI.tag | Application Navigator UI image tag. | 1.0.1 |
appNavUI.service.type | Service type (ClusterIP or NodePort) for access to the Application Navigator UI. Always use ClusterIP if authentication is required. | ClusterIP |
appNavUI.resources.constraints.enabled | Specifies whether resource constraints are enabled for the Application Navigator UI. | false |
appNavUI.resources.requests.cpu | The minimum required CPU core for the Application Navigator UI. Specify integers, fractions (e.g. 0.5), or millicore values(e.g. 100m, where 100m is equivalent to .1 core). | 500m |
appNavUI.resources.requests.memory | Describes the minimum amount of memory required for the Application Navigator UI. Corresponds to requests.memory in Kubernetes. If not specified it will default to maximum memory (if specified) or otherwise implementation-defined value. | 512Mi |
appNavUI.resources.limits.cpu | The upper limit of CPU core for the Application Navigator UI. Specify integers, fractions (e.g. 0.5), or millicores values(e.g. 100m, where 100m is equivalent to .1 core). | 500m |
appNavUI.resources.limits.memory | The memory upper limit in bytes for the Application Navigator UI. Specify integers with suffixes: E, P, T, G, M, K, or power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki. | 512Mi |
appNavWASController.repository | Docker registry to pull the Application Navigator WAS Controller image from. | ibmcom/app-nav-was-controller |
appNavWASController.tag | Application Navigator WAS Controller image tag. | 1.0.1 |
appNavWASController.resources.constraints.enabled | Specifies whether resource constraints are enabled for the Application Navigator WAS Controller. | false |
appNavWASController.resources.requests.cpu | The minimum required CPU core for the Application Navigator WAS Controller. Specify integers, fractions (e.g. 0.5), or millicore values(e.g. 100m, where 100m is equivalent to .1 core). | 500m |
appNavWASController.resources.requests.memory | Describes the minimum amount of memory required for the Application Navigator WAS Controller. Corresponds to requests.memory in Kubernetes. If not specified it will default to maximum memory (if specified) or otherwise implementation-defined value. | 512Mi |
appNavWASController.resources.limits.cpu | The upper limit of CPU core for the Application Navigator WAS Controller. Specify integers, fractions (e.g. 0.5), or millicores values(e.g. 100m, where 100m is equivalent to .1 core). | 500m |
appNavWASController.resources.limits.memory | The memory upper limit in bytes for the Application Navigator WAS Controller. Specify integers with suffixes: E, P, T, G, M, K, or power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki. | 512Mi |
appNavInit.repository | Docker registry to pull the Application Navigator Init image from. | ibmcom/app-nav-init |
appNavInit.tag | Application Navigator Init image tag. | 1.0.1 |
appNavInit.resources.constraints.enabled | Specifies whether resource constraints are enabled for the Application Navigator Init. | false |
appNavInit.resources.requests.cpu | The minimum required CPU core for the Application Navigator Init. Specify integers, fractions (e.g. 0.5), or millicore values(e.g. 100m, where 100m is equivalent to .1 core). | 500m |
appNavInit.resources.requests.memory | Describes the minimum amount of memory required for the Application Navigator Init. Corresponds to requests.memory in Kubernetes. If not specified it will default to maximum memory (if specified) or otherwise implementation-defined value. | 512Mi |
appNavInit.resources.limits.cpu | The upper |
Deploy ibm-app-navigator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-app-navigator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartibm-app-navigator is pinned at v1.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply