-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Miguel Ruiz <[email protected]>
- Loading branch information
Showing
21 changed files
with
2,262 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
dependencies: | ||
- name: cassandra | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 11.0.0 | ||
- name: common | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 2.19.0 | ||
digest: sha256:444915dac9eb9da6d5ab7763959aeba74fbf1782772784bcfa1c0160354ddad7 | ||
generated: "2024-03-22T12:40:07.047827+01:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright VMware, Inc. | ||
# SPDX-License-Identifier: APACHE-2.0 | ||
|
||
annotations: | ||
category: Database | ||
licenses: Apache-2.0 | ||
apiVersion: v2 | ||
appVersion: 1.0.0 | ||
dependencies: | ||
- condition: storage.cassandra.enabled | ||
name: cassandra | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 11.x.x | ||
- name: common | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
tags: | ||
- bitnami-common | ||
version: 2.x.x | ||
description: JanusGraph is a highly scalable graph database optimized for storing and querying large graphs with billions of vertices and edges distributed across a multi-machine cluster. | ||
home: https://bitnami.com | ||
icon: https://bitnami.com/assets/stacks/janusgraph/img/janusgraph-stack-220x234.png | ||
keywords: | ||
- janusgraph | ||
- graph | ||
- database | ||
maintainers: | ||
- name: VMware, Inc. | ||
url: https://github.com/bitnami/charts | ||
name: janusgraph | ||
sources: | ||
- https://github.com/bitnami/containers/tree/main/bitnami/janusgraph | ||
- https://github.com/janusgraph/janusgraph | ||
version: 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,233 @@ | ||
<!--- app-name: %%CHART_NAME%% --> | ||
|
||
# %%CHART_NAME%% | ||
|
||
%%DESCRIPTION%% (check existing examples) | ||
|
||
## TL;DR | ||
|
||
```console | ||
helm install my-release oci://registry-1.docker.io/bitnamicharts/%%CHART_NAME%% | ||
``` | ||
|
||
Looking to use %%CHART_NAME%% in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the enterprise edition of Bitnami Application Catalog. | ||
|
||
## Introduction | ||
|
||
%%INTRODUCTION%% (check existing examples) | ||
|
||
## Prerequisites | ||
|
||
- Kubernetes 1.23+ | ||
- Helm 3.8.0+ | ||
- PV provisioner support in the underlying infrastructure | ||
- ReadWriteMany volumes for deployment scaling | ||
|
||
## Installing the Chart | ||
|
||
To install the chart with the release name `my-release`: | ||
|
||
```console | ||
helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/%%CHART_NAME%% | ||
``` | ||
|
||
> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`. | ||
The command deploys %%CHART_NAME%% on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) 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: | ||
|
||
```console | ||
helm delete my-release | ||
``` | ||
|
||
The command removes all the Kubernetes components associated with the chart and deletes the release. | ||
|
||
## Parameters | ||
|
||
See <https://github.com/bitnami/readme-generator-for-helm> to create the table | ||
|
||
The above parameters map to the env variables defined in [bitnami/%%CHART_NAME%%](https://github.com/bitnami/containers/tree/main/bitnami/%%CHART_NAME%%). For more information please refer to the [bitnami/%%CHART_NAME%%](https://github.com/bitnami/containers/tree/main/bitnami/%%CHART_NAME%%) image documentation. | ||
|
||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, | ||
|
||
```console | ||
helm install my-release \ | ||
--set %%CHART_NAME%%Username=admin \ | ||
--set %%CHART_NAME%%Password=password \ | ||
--set mariadb.auth.rootPassword=secretpassword \ | ||
oci://REGISTRY_NAME/REPOSITORY_NAME/%%CHART_NAME%% | ||
``` | ||
|
||
> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`. | ||
The above command sets the %%CHART_NAME%% administrator account username and password to `admin` and `password` respectively. Additionally, it sets the MariaDB `root` user password to `secretpassword`. | ||
|
||
> NOTE: Once this chart is deployed, it is not possible to change the application's access credentials, such as usernames or passwords, using Helm. To change these application credentials after deployment, delete any persistent volumes (PVs) used by the chart and re-deploy it, or use the application's built-in administrative tools if available. | ||
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example, | ||
|
||
```console | ||
helm install my-release -f values.yaml oci://REGISTRY_NAME/REPOSITORY_NAME/%%CHART_NAME%% | ||
``` | ||
|
||
> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`. | ||
> **Tip**: You can use the default [values.yaml](https://github.com/bitnami/charts/blob/main/template/CHART_NAME/values.yaml) | ||
## Configuration and installation details | ||
|
||
### [Rolling VS Immutable tags](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers) | ||
|
||
It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image. | ||
|
||
Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist. | ||
|
||
### External database support | ||
|
||
%%IF NEEDED%% | ||
|
||
You may want to have %%CHART_NAME%% connect to an external database rather than installing one inside your cluster. Typical reasons for this are to use a managed database service, or to share a common database server for all your applications. To achieve this, the chart allows you to specify credentials for an external database with the [`externalDatabase` parameter](#parameters). You should also disable the MariaDB installation with the `mariadb.enabled` option. Here is an example: | ||
|
||
```console | ||
mariadb.enabled=false | ||
externalDatabase.host=myexternalhost | ||
externalDatabase.user=myuser | ||
externalDatabase.password=mypassword | ||
externalDatabase.database=mydatabase | ||
externalDatabase.port=3306 | ||
``` | ||
|
||
### Ingress | ||
|
||
%%IF NEEDED%% | ||
|
||
This chart provides support for Ingress resources. If you have an ingress controller installed on your cluster, such as [nginx-ingress-controller](https://github.com/bitnami/charts/tree/main/bitnami/nginx-ingress-controller) or [contour](https://github.com/bitnami/charts/tree/main/bitnami/contour) you can utilize the ingress controller to serve your application.To enable Ingress integration, set `ingress.enabled` to `true`. | ||
|
||
The most common scenario is to have one host name mapped to the deployment. In this case, the `ingress.hostname` property can be used to set the host name. The `ingress.tls` parameter can be used to add the TLS configuration for this host. | ||
|
||
However, it is also possible to have more than one host. To facilitate this, the `ingress.extraHosts` parameter (if available) can be set with the host names specified as an array. The `ingress.extraTLS` parameter (if available) can also be used to add the TLS configuration for extra hosts. | ||
|
||
> NOTE: For each host specified in the `ingress.extraHosts` parameter, it is necessary to set a name, path, and any annotations that the Ingress controller should know about. Not all annotations are supported by all Ingress controllers, but [this annotation reference document](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md) lists the annotations supported by many popular Ingress controllers. | ||
Adding the TLS parameter (where available) will cause the chart to generate HTTPS URLs, and the application will be available on port 443. The actual TLS secrets do not have to be generated by this chart. However, if TLS is enabled, the Ingress record will not work until the TLS secret exists. | ||
|
||
[Learn more about Ingress controllers](https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/). | ||
|
||
### TLS secrets | ||
|
||
TLS support can be enabled in the chart by specifying the `tls.` parameters while creating a release. The following parameters should be configured to properly enable the TLS support in the cluster: | ||
|
||
- `tls.enabled`: Enable TLS support. Defaults to `false` | ||
- `tls.existingSecret`: Name of the secret that contains the certificates. No defaults. | ||
- `tls.certFilename`: Certificate filename. No defaults. | ||
- `tls.certKeyFilename`: Certificate key filename. No defaults. | ||
- `tls.certCAFilename`: CA Certificate filename. No defaults. | ||
|
||
For example: | ||
|
||
First, create the secret with the certificates files: | ||
|
||
```console | ||
kubectl create secret generic certificates-tls-secret --from-file=./cert.pem --from-file=./cert.key --from-file=./ca.pem | ||
``` | ||
|
||
Then, use the following parameters: | ||
|
||
```console | ||
tls.enabled="true" | ||
tls.existingSecret="certificates-tls-secret" | ||
tls.certFilename="cert.pem" | ||
tls.certKeyFilename="cert.key" | ||
tls.certCAFilename="ca.pem" | ||
``` | ||
|
||
### %%OTHER_SECTIONS%% | ||
|
||
## Persistence | ||
|
||
The [Bitnami %%CHART_NAME%%](https://github.com/bitnami/containers/tree/main/bitnami/%%CHART_NAME%%) image stores the %%CHART_NAME%% data and configurations at the `/bitnami` path of the container. Persistent Volume Claims are used to keep the data across deployments. | ||
|
||
If you encounter errors when working with persistent volumes, refer to our [troubleshooting guide for persistent volumes](https://docs.bitnami.com/kubernetes/faq/troubleshooting/troubleshooting-persistence-volumes/). | ||
|
||
### Additional environment variables | ||
|
||
In case you want to add extra environment variables (useful for advanced operations like custom init scripts), you can use the `extraEnvVars` property. | ||
|
||
```yaml | ||
%%CHART_NAME%%: | ||
extraEnvVars: | ||
- name: LOG_LEVEL | ||
value: error | ||
``` | ||
Alternatively, you can use a ConfigMap or a Secret with the environment variables. To do so, use the `extraEnvVarsCM` or the `extraEnvVarsSecret` values. | ||
|
||
### Sidecars | ||
|
||
If additional containers are needed in the same pod as %%CHART_NAME%% (such as additional metrics or logging exporters), they can be defined using the `sidecars` parameter. | ||
|
||
```yaml | ||
sidecars: | ||
- name: your-image-name | ||
image: your-image | ||
imagePullPolicy: Always | ||
ports: | ||
- name: portname | ||
containerPort: 1234 | ||
``` | ||
|
||
If these sidecars export extra ports, extra port definitions can be added using the `service.extraPorts` parameter (where available), as shown in the example below: | ||
|
||
```yaml | ||
service: | ||
extraPorts: | ||
- name: extraPort | ||
port: 11311 | ||
targetPort: 11311 | ||
``` | ||
|
||
> NOTE: This Helm chart already includes sidecar containers for the Prometheus exporters (where applicable). These can be activated by adding the `--enable-metrics=true` parameter at deployment time. The `sidecars` parameter should therefore only be used for any extra sidecar containers. | ||
|
||
If additional init containers are needed in the same pod, they can be defined using the `initContainers` parameter. Here is an example: | ||
|
||
```yaml | ||
initContainers: | ||
- name: your-image-name | ||
image: your-image | ||
imagePullPolicy: Always | ||
ports: | ||
- name: portname | ||
containerPort: 1234 | ||
``` | ||
|
||
Learn more about [sidecar containers](https://kubernetes.io/docs/concepts/workloads/pods/) and [init containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/). | ||
|
||
### Pod affinity | ||
|
||
This chart allows you to set your custom affinity using the `affinity` parameter. Find more information about Pod affinity in the [kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity). | ||
|
||
As an alternative, use one of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the [bitnami/common](https://github.com/bitnami/charts/tree/main/bitnami/common#affinities) chart. To do so, set the `podAffinityPreset`, `podAntiAffinityPreset`, or `nodeAffinityPreset` parameters. | ||
|
||
## Troubleshooting | ||
|
||
Find more information about how to deal with common errors related to Bitnami's Helm charts in [this troubleshooting guide](https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues). | ||
|
||
## License | ||
|
||
Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
<http://www.apache.org/licenses/LICENSE-2.0> | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
CHART NAME: {{ .Chart.Name }} | ||
CHART VERSION: {{ .Chart.Version }} | ||
APP VERSION: {{ .Chart.AppVersion }} | ||
|
||
** Please be patient while the chart is being deployed ** | ||
|
||
{{- if .Values.diagnosticMode.enabled }} | ||
The chart has been deployed in diagnostic mode. All probes have been disabled and the command has been overwritten with: | ||
|
||
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 4 }} | ||
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 4 }} | ||
|
||
Get the list of pods by executing: | ||
|
||
kubectl get pods --namespace {{ include "common.names.namespace" . | quote }} -l app.kubernetes.io/instance={{ .Release.Name }} | ||
|
||
Access the pod you want to debug by executing | ||
|
||
kubectl exec --namespace {{ include "common.names.namespace" . | quote }} -ti <NAME OF THE POD> -- bash | ||
|
||
In order to replicate the container startup scripts execute this command: | ||
|
||
%%ENTRYPOINT and CMD from main container%% | ||
|
||
{{- else }} | ||
|
||
%%Instructions to access the application depending on the serviceType and other considerations%% | ||
|
||
{{- end }} | ||
|
||
{{- include "common.warnings.rollingTag" .Values.image }} | ||
{{- include "janusgraph.validateValues" . }} |
Oops, something went wrong.