mirror of
https://github.com/bitnami/charts.git
synced 2026-03-08 08:47:24 +08:00
Merge pull request #23 from sameersbn/chart-tomcat
charts: added tomcat chart
This commit is contained in:
10
tomcat/Chart.yaml
Normal file
10
tomcat/Chart.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
name: tomcat
|
||||
home: http://tomcat.apache.org
|
||||
source:
|
||||
- https://github.com/bitnami/bitnami-docker-tomcat
|
||||
version: 0.1.0
|
||||
description: Chart for Apache Tomcat
|
||||
maintainers:
|
||||
- Bitnami <containers@bitnami.com>
|
||||
details: |-
|
||||
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.
|
||||
37
tomcat/README.md
Normal file
37
tomcat/README.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# 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.
|
||||
|
||||
Based on the [Bitnami Tomcat](https://github.com/bitnami/bitnami-docker-tomcat) image for docker, this Chart bootstraps a [Tomcat](https://tomcat.com/) deployment on a [Kubernetes](http://kubernetes.io) cluster using [Helm](https://helm.sh).
|
||||
|
||||
## Persistence
|
||||
|
||||
For persistence of the Tomcat data, mount a [storage volume](http://kubernetes.io/docs/user-guide/volumes/) at the `/app` path of the Tomcat pod.
|
||||
|
||||
By default the Tomcat Chart mounts an [emptyDir](http://kubernetes.io/docs/user-guide/volumes/#emptydir) volume.
|
||||
|
||||
## Configuration
|
||||
|
||||
To edit the default Tomcat configuration, run
|
||||
|
||||
```bash
|
||||
$ helm edit tomcat
|
||||
```
|
||||
|
||||
Configurable parameters can be specified in `tpl/values.toml`. If not specified default values as defined by the [Bitnami Tomcat](https://github.com/bitnami/bitnami-docker-tomcat) image are used.
|
||||
|
||||
> Tip: If you have issues running the above command, add `se autochdir` to your `~/.vimrc` profile or simply edit `~/.helm/workspace/charts/tomcat/tpl/values.toml` in your favourite editor.
|
||||
|
||||
Finally, generate the chart to apply your changes to the configuration.
|
||||
|
||||
```bash
|
||||
$ helm generate tomcat
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
To delete the Tomcat deployment completely:
|
||||
|
||||
```bash
|
||||
$ helm uninstall -n default tomcat
|
||||
```
|
||||
15
tomcat/manifests/tomcat-svc.yaml
Normal file
15
tomcat/manifests/tomcat-svc.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: tomcat
|
||||
labels:
|
||||
provider: tomcat
|
||||
heritage: bitnami
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: http
|
||||
selector:
|
||||
provider: tomcat
|
||||
51
tomcat/tpl/tomcat-rc.yaml
Normal file
51
tomcat/tpl/tomcat-rc.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
#helm:generate helm tpl -d tpl/values.toml -o manifests/tomcat-rc.yaml $HELM_GENERATE_FILE
|
||||
apiVersion: v1
|
||||
kind: ReplicationController
|
||||
metadata:
|
||||
name: tomcat
|
||||
labels:
|
||||
provider: tomcat
|
||||
heritage: bitnami
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
provider: tomcat
|
||||
version: 7.0.68-0
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
provider: tomcat
|
||||
version: 7.0.68-0
|
||||
heritage: bitnami
|
||||
spec:
|
||||
containers:
|
||||
- name: tomcat
|
||||
image: bitnami/tomcat:7.0.68-0
|
||||
env:
|
||||
- name: TOMCAT_PASSWORD
|
||||
value: "{{.tomcatPassword}}"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 60
|
||||
timeoutSeconds: 5
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 1
|
||||
volumeMounts:
|
||||
- name: webapps
|
||||
mountPath: /app
|
||||
- name: conf
|
||||
mountPath: /bitnami/tomcat/conf
|
||||
volumes:
|
||||
- name: webapps
|
||||
emptyDir: {}
|
||||
- name: conf
|
||||
emptyDir: {}
|
||||
1
tomcat/tpl/values.toml
Normal file
1
tomcat/tpl/values.toml
Normal file
@@ -0,0 +1 @@
|
||||
tomcatPassword = ""
|
||||
Reference in New Issue
Block a user