Files
charts/bitnami/wildfly
Carlos Rodriguez Hernandez dec26e5d0b Check if global is set
2018-10-11 15:24:42 +00:00
..
2018-10-11 15:24:42 +00:00
2018-04-13 10:46:07 +02:00

WildFly

Wildfly formerly known as JBoss AS, or simply JBoss, is an application server authored by JBoss, now developed by Red Hat. WildFly is written in Java, and implements the Java Platform, Enterprise Edition (Java EE) specification.

TL;DR;

$ helm install bitnami/wildfly

Introduction

This chart bootstraps a WildFly deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.4+ with Beta APIs enabled
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release bitnami/wildfly

The command deploys WildFly on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip

: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the WildFly chart and their default values.

Parameter Description Default
global.registry Global chart image registry nil
image.registry WildFly image registry docker.io
image.repository WildFly Image name bitnami/wildfly
image.tag WildFly Image tag {VERSION}
image.pullPolicy WildFly image pull policy Always if imageTag is latest, else IfNotPresent
image.pullSecrets Specify image pull secrets nil (does not add image pull secrets to deployed pods)
wildflyUsername WildFly admin user user
wildflyPassword WildFly admin password random 10 character alphanumeric string
serviceType Kubernetes Service type LoadBalancer
persistence.enabled Enable persistence using PVC true
persistence.storageClass PVC Storage Class for WildFly volume nil (uses alpha storage class annotation)
persistence.accessMode PVC Access Mode for WildFly volume ReadWriteOnce
persistence.size PVC Storage Request for WildFly volume 8Gi
resources CPU/Memory resource requests/limits Memory: 512Mi, CPU: 300m

The above parameters map to the env variables defined in bitnami/wildfly. For more information please refer to the bitnami/wildfly image documentation.

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install --name my-release \
  --set wildflyUser=manager,wildflyPassword=password \
    bitnami/wildfly

The above command sets the WildFly management username and password to manager and password respectively.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml bitnami/wildfly

Tip

: You can use the default values.yaml

Persistence

The Bitnami WildFly image stores the WildFly data and configurations at the /bitnami/wildfly path of the container.

Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. See the Configuration section to configure the PVC or to disable persistence.

Upgrading

To 1.0.0

Backwards compatibility is not guaranteed unless you modify the labels used on the chart's deployments. Use the workaround below to upgrade from versions previous to 1.0.0. The following example assumes that the release name is wildfly:

$ kubectl patch deployment wildfly --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]'