Files
charts/bitnami/tomcat
Javier J. Salmeron Garcia 776b4b21e1 Bump versions
2018-07-31 11:18:37 +02:00
..
2018-04-13 10:46:07 +02:00
2018-07-31 11:18:37 +02:00
2018-04-13 11:08:43 +02:00
2018-07-06 07:36:10 +00:00

Tomcat

Apache Tomcat, often referred to as Tomcat, is an open-source web server and servlet container developed by the Apache Software Foundation. Tomcat implements several Java EE specifications including Java Servlet, JavaServer Pages, Java EL, and WebSocket, and provides a "pure Java" HTTP web server environment for Java code to run in.

TL;DR;

$ helm install bitnami/tomcat

Introduction

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

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/tomcat

The command deploys Tomcat 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 Tomcat chart and their default values.

Parameter Description Default
image.registry Tomcat image registry docker.io
image.repository Tomcat Image name bitnami/tomcat
image.tag Tomcat Image tag {VERSION}
image.pullPolicy Tomcat 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)
tomcatUsername Tomcat admin user user
tomcatPassword Tomcat admin password random 10 character alphanumeric string
tomcatAllowRemoteManagement Enable remote access to management interface 0 (disabled)
serviceType Kubernetes Service type LoadBalancer
persistence.enabled Enable persistence using PVC true
persistence.storageClass PVC Storage Class for Tomcat volume nil (uses alpha storage class annotation)
persistence.accessMode PVC Access Mode for Tomcat volume ReadWriteOnce
persistence.size PVC Storage Request for Tomcat volume 8Gi
resources CPU/Memory resource requests/limits Memory: 512Mi, CPU: 300m

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

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

$ helm install --name my-release \
  --set tomcatUser=manager,tomcatPassword=password bitnami/tomcat

The above command sets the Tomcat 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/tomcat

Tip

: You can use the default values.yaml

Persistence

The Bitnami Tomcat image stores the Tomcat data and configurations at the /bitnami/tomcat 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.