2.2.2-0.1.0 • Published 6 years ago

@helm-charts/bitnami-tomcat v2.2.2-0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

@helm-charts/bitnami-tomcat

Chart for Apache Tomcat

FieldValue
Repository Namebitnami
Chart Nametomcat
Chart Version2.2.2
NPM Package Version0.1.0
## Global Docker image parameters
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
## Current available global Docker image parameters: imageRegistry and imagePullSecrets
##
# global:
#   imageRegistry: myRegistryName
#   imagePullSecrets:
#     - myRegistryKeySecretName

## Bitnami Tomcat image version
## ref: https://hub.docker.com/r/bitnami/tomcat/tags/
##
image:
  registry: docker.io
  repository: bitnami/tomcat
  tag: 8.5.40
  ## Specify a imagePullPolicy
  ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
  ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
  ##
  pullPolicy: IfNotPresent
  ## Optionally specify an array of imagePullSecrets.
  ## Secrets must be manually created in the namespace.
  ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  ##
  # pullSecrets:
  #   - myRegistryKeySecretName

## Pod Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
securityContext:
  enabled: true
  fsGroup: 1001
  runAsUser: 1001

## Specify a imagePullPolicy
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
imagePullPolicy: IfNotPresent

## Admin user
## ref: https://github.com/bitnami/bitnami-docker-tomcat#creating-a-custom-user
##
tomcatUsername: user

## Admin password
## ref: https://github.com/bitnami/bitnami-docker-tomcat#creating-a-custom-user
##
# tomcatPassword:

## Expose management services
## ref: https://github.com/bitnami/charts/tree/master/bitnami/tomcat#configuration
##
tomcatAllowRemoteManagement: 0

## Kubernetes configuration
## For minikube, set this to NodePort, elsewhere use LoadBalancer
##
service:
  type: LoadBalancer
  # HTTP Port
  port: 80
  ##
  ## loadBalancerIP:
  ## nodePorts:
  ##   http: <to set explicitly, choose port between 30000-32767>
  ##   https: <to set explicitly, choose port between 30000-32767>
  nodePorts:
    http: ''
  ## Enable client source IP preservation
  ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  ##
  externalTrafficPolicy: Cluster

## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
persistence:
  enabled: true
  ## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
  ## Default: volume.alpha.kubernetes.io/storage-class: default
  ##
  # storageClass:
  accessMode: ReadWriteOnce
  size: 8Gi

## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
  requests:
    memory: 512Mi
    cpu: 300m

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.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

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.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.registryTomcat image registrydocker.io
image.repositoryTomcat Image namebitnami/tomcat
image.tagTomcat Image tag{VERSION}
image.pullPolicyTomcat image pull policyAlways if imageTag is latest, else IfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
tomcatUsernameTomcat admin useruser
tomcatPasswordTomcat admin passwordrandom 10 character alphanumeric string
tomcatAllowRemoteManagementEnable remote access to management interface0 (disabled)
securityContext.enabledEnable security contexttrue
securityContext.fsGroupGroup ID for the container1001
securityContext.runAsUserUser ID for the container1001
service.typeKubernetes Service typeLoadBalancer
service.portService HTTP port80
service.nodePorts.httpKubernetes http node port""
service.externalTrafficPolicyEnable client source IP preservationCluster
service.loadBalancerIPLoadBalancer service IP address""
persistence.enabledEnable persistence using PVCtrue
persistence.storageClassPVC Storage Class for Tomcat volumenil (uses alpha storage class annotation)
persistence.accessModePVC Access Mode for Tomcat volumeReadWriteOnce
persistence.sizePVC Storage Request for Tomcat volume8Gi
resourcesCPU/Memory resource requests/limitsMemory: 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.

Upgrading

To 2.1.0

Tomcat container was moved to a non-root approach. There shouldn't be any issue when upgrading since the corresponding securityContext is enabled by default. Both the container image and the chart can be upgraded by running the command below:

$ helm upgrade my-release stable/tomcat

If you use a previous container image (previous to 8.5.35-r26) disable the securityContext by running the command below:

$ helm upgrade my-release stable/tomcat --set securityContext.enabled=fase,image.tag=XXX

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

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

6 years ago

2.2.1-0.1.0

6 years ago

2.2.0-0.1.0

6 years ago

2.1.5-0.1.0

6 years ago

2.1.4-0.1.0

6 years ago

2.1.3-0.1.0

6 years ago

2.1.2-0.1.0

6 years ago

2.1.1-0.1.0

6 years ago

2.1.0-0.1.0

6 years ago

2.0.0-0.1.0

6 years ago

1.1.2-0.1.0

6 years ago

1.1.1-0.1.0

6 years ago

1.1.0-0.1.0

6 years ago

1.0.2-0.1.0

6 years ago

1.0.1-0.1.0

6 years ago

1.0.0-0.1.0

6 years ago

0.4.33-0.1.0

6 years ago

0.4.32-0.1.0

6 years ago

0.4.31-0.1.0

6 years ago

0.4.30-0.1.0

6 years ago

0.4.28-0.1.0

6 years ago

0.4.27-0.1.0

6 years ago

0.4.26-0.1.0

6 years ago

0.4.25-0.1.0

6 years ago

0.4.24-0.1.0

6 years ago

0.4.23-0.1.0

6 years ago

0.4.22-0.1.0

6 years ago

0.4.21-0.1.0

6 years ago

0.4.20-0.1.0

6 years ago

0.4.19-0.1.0

6 years ago

0.4.18-0.1.0

6 years ago

0.4.17-0.1.0

6 years ago

0.4.16-0.1.0

6 years ago

0.4.15-0.1.0

6 years ago