ibm-java-acceleration-dev

by Helm

Helm chartv1.0.0App 0.1.0Apache-2.0

IBM Java Acceleration as a Service.

About this chart

Java Acceleration Helm Chart

Introduction

IBM Java Acceleration is a set of JVM enhancements and technologies offered as a service to provide

  • increased performance under constrained resources
  • cloud optimization
  • enhance resource consumption, scaling

Java Acceleration integrates with Liberty and allows for better resource management on OpenShift or any other Kubernetes deployment.

Resources Required

System

requests:
  memory: 512Mi
  cpu: 1

Storage

capacity:
  storage: 1Gi

Chart Details

  • Install one deployment named ibm-java-acceleration-server
  • Install one service named ibm-java-acceleration-server
  • Install one replicaset named ibm-java-acceleration-server
  • Install one pod named ibm-java-acceleration-server

Prerequisites

Red Hat OpenShift SecurityContextConstraints Requirements

This chart requires a SecurityContextConstraints to be bound to the target namespace prior to installation.

  • Predefined SecurityContextConstraints name: ibm-restricted-scc

  • Custom SecurityContextConstraints definition:

apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
  annotations:
  name: ibm-java-acceleration-scc
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegedContainer: false
allowPrivilegeEscalation: false
allowedCapabilities: null
allowedFlexVolumes: null
allowedUnsafeSysctls: null
defaultAddCapabilities: null
defaultAllowPrivilegeEscalation: false
fsGroup:
  type: MustRunAs
  ranges:
  - max: 65535
    min: 1
readOnlyRootFilesystem: false
requiredDropCapabilities:
- ALL
runAsUser:
  type: MustRunAsNonRoot
seccompProfiles:
- docker/default
seLinuxContext:
  type: RunAsAny
supplementalGroups:
  type: MustRunAs
  ranges:
  - max: 65535
    min: 1
volumes:
- configMap
- downwardAPI
- emptyDir
- persistentVolumeClaim
- projected
- secret

PodSecurityPolicy Requirements

This chart requires a PodSecurityPolicy to be bound to the target namespace prior to installation.

  • Predefined PodSecurityPolicy name: ibm-restricted-psp

  • Custom PodSecurityPolicy definition:

apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
  annotations:
    kubernetes.io/description: "This policy is the most restrictive, 
      requiring pods to run with a non-root UID, and preventing pods from accessing the host." 
    seccomp.security.alpha.kubernetes.io/allowedProfileNames: docker/default
    seccomp.security.alpha.kubernetes.io/defaultProfileName: docker/default
    cloudpak.ibm.com/version: "1.1.0"
  name: ibm-java-acceleration-psp
spec:
  allowPrivilegeEscalation: false
  forbiddenSysctls:
  - '*'
  fsGroup:
    ranges:
    - max: 65535
      min: 1
    rule: MustRunAs
  requiredDropCapabilities:
  - ALL
  runAsUser:
    rule: MustRunAsNonRoot
  runAsGroup:
    rule: MustRunAs
    ranges:
    - min: 1
      max: 65535
  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-java-acceleration-clusterrole
rules:
- apiGroups:
  - extensions
  resourceNames:
  - ibm-java-acceleration-psp
  resources:
  - podsecuritypolicies
  verbs:
  - use

Installing the Chart

helm repo add ibm-charts https://raw.githubusercontent.com/IBM/charts/master/repo/stable/
helm install --name my-release ibm-charts/ibm-java-acceleration-dev

Verifying the Chart

helm test my-release
helm status my-release

Uninstalling the Chart

helm delete --purge my-release

Configuration

QualifierParameterDefinitionAllowed Value
nameName of service, deployment, replicaset, should be unique inside cluster
archCPU architecture preferenceamd64, power, or z
imagerepositoryName of image, including repository prefix (if required)
tagDocker image tag
pullPolicyImage Pull PolicyAlways, Never, or IfNotPresent. Defaults to Always
containerlimits.memoryMaximum memory allocated for containerDefaults to 8 Gi
limits.cpuMaximum CPU allocated for containerDefaults to 8
requests.memoryMinimum memory allocated for containerDefaults to 512 Mi
requests.cpuMinimum CPU allocated for containerDefaults to 2
serviceportPort number that java acceleration listens toDefaults to 38400
replicaCountNumber of replica to be deployed

Documentation

  • See openj9 repo: https://github.com/eclipse/openj9/tree/jitaas
  • See openj9 docs: https://github.com/eclipse/openj9-docs
  • See openj9 website: https://www.eclipse.org/openj9/index.html

Limitations

  • Deploys on x86 architecture only, it is intended to support other architectures in future releases.
  • Supports Java 8 only, it is intended to support other Java versions in future releases.

Deploy ibm-java-acceleration-dev with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-java-acceleration-dev 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartibm-java-acceleration-dev is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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