diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0e5e895 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release Charts + +on: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.1.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/charts/hub/.helmignore b/charts/hub/.helmignore new file mode 100644 index 0000000..9bc3bb7 --- /dev/null +++ b/charts/hub/.helmignore @@ -0,0 +1,25 @@ +# 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 +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +*.png +*.tgz diff --git a/charts/hub/Chart.yaml b/charts/hub/Chart.yaml new file mode 100644 index 0000000..626d377 --- /dev/null +++ b/charts/hub/Chart.yaml @@ -0,0 +1,25 @@ +apiVersion: v2 +name: hub +description: A Helm chart for install Kerberos Hub in Kubernetes +icon: https://doc.kerberos.io/images/kerberos-logo.svg + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.28.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "3.0.0" diff --git a/charts/hub/README.md b/charts/hub/README.md new file mode 100644 index 0000000..7f618fb --- /dev/null +++ b/charts/hub/README.md @@ -0,0 +1,375 @@ +# Kerberos Hub + +Kerberos Hub is the single pane of glass for your Kerberos agents. It comes with a best of breed open source technology stack, modular and scale first mindset, and allows you to build and maintain an everless growing video surveillance and video analytics landscape. + +## License + +To use Kerberos Hub a license is required. This license will grant access the Kerberos Hub API, and allow to connect a number of cameras and Kerberos Vaults. + +## What's in the repo? + +This repo describes how to install Kerberos Hub inside your own Kubernetes cluster (or [K3S cluster](https://k3s.io/)) using a Helm chart. +A couple of dependencies need to be installed first: +- A Kafka message queue, +- a Mongodb database, +- a MQTT message broker ([Vernemq](https://vernemq.com/)) +- and a TURN server ([Pion](https://github.com/pion/turn)) + +Next to that one can use an Nginx ingress controller or Traefik for orchestrating the ingresses. Once all dependencies are installed, the appropriate values should be updated in the **values.yaml** file. + +We do manage certificates through cert-manager and letsencrypt, and rely on HTTP01 and DNS01 resolvers. So you might need to change that for your custom scenarion (e.g. on premise deployment). + +![hubdashboard](hub-dashboard.png) + +# What are we building? + +As shown below you will find the architecture of what we are going to install (the green rectangle). + +![hubarechitecture](architecture.png) + +# Let's give it a try. + +## Add helm repos + +The Kerberos Hub installation makes use a couple of other charts which are shipped within their on Helm repos. Therefore, we will add those repos to our Kubernetes cluster. + + helm repo add bitnami https://charts.bitnami.com/bitnami + helm repo add jetstack https://charts.jetstack.io + helm repo add traefik https://helm.traefik.io/traefik + helm repo add vernemq https://vernemq.github.io/docker-vernemq + helm repo add kerberos https://kerberos-io.github.io/hub + helm repo update + +## Cert manager + +We rely on cert-manager and letsencrypt for generating all the certificates we'll need for the Kerberos Hub web interface, Kerberos Hub api and the Vernemq broker (WSS/TLS). + +As a best practice we will install all the dependencies in their own namespace. Let's start by creating a separate namespace for cert-manager. + + kubectl create namespace cert-manager + +Install the cert-manager helm chart into that namespace. + + helm install cert-manager jetstack/cert-manager --namespace cert-manager --set installCRDs=true + +If you already have the CRDs install you could get rid of `--set installCRDs=true`. + +Next we will install a cluster issuer that will make the HTTP01 challenges, this is needed for resolving the certificates of both Kerberos Hub web interface and api. + + kubectl apply -f cert-manager/cluster-issuer.yaml + +## Optional - Rancher + +A great way to manage your cluster through a UI is Rancher. This is totally up to you, but we love to use it a Kerberos.io + + helm repo add rancher-latest https://releases.rancher.com/server-charts/latest + helm repo update + kubectl create namespace cattle-system + helm install rancher rancher-latest/rancher \ + --namespace cattle-system \ + --set hostname=rancher.kerberos.xxx \ + --set ingress.tls.source=letsEncrypt \ + --set letsEncrypt.email=xxx@email.com \ + --set 'extraEnv[0].name=CATTLE_TLS_MIN_VERSION' \ + --set 'extraEnv[0].value=1.2' + +## Kafka + +Kafka is used for the Kerberos Pipeline, this is the place where microservices are executed in parallel and/or sequentially. These microservices will receive events from a Kafka topic and then process the recording, and it's metadata. Results are injected back into Kafka and passed on to the following microservices. Microservices are independently horizontal scalable through replicas, this means that you can distribute your workload across your nodes if a specific microservice requires that. + +As a best practice let's create another namespace. + + kubectl create namespace kafka + +Before installing the Kafka helm chart, go and have a look in the kafka/values.yaml file. You should update the clientUsers and clientPasswords. Have a look at the zookeeper credentials as well and update accordingly. + + helm install kafka bitnami/kafka -f ./kafka/values.yaml -n kafka + +## MongoDB + +A MongoDB instance is used for data persistence. Data might come from the Kerberos Pipeline or user interaction on the Kerberos Hub frontend. + +We will create a namespace for our Mongodb deployment as well. + + kubectl create namespace mongodb + +Create a persistent volume, this is where the data will be stored on disk. + + kubectl apply -f ./mongodb/fast.yaml + +Before installing the mongodb helm chart, go and have a look in the `mongodb/values.yaml` file. You should update the root password to a custom secure value. + + helm install mongodb bitnami/mongodb --values ./mongodb/values.yaml -n mongodb + +## Vernemq + +Next to Kafka, we are using MQTT for bidirectional communication in the Kerberos ecosystem. This Vernemq broker, which is horizontal scalable, allows communicating with Kerberos agents at the edge (or wherever they live) and Kerberos Vault to forward recordings from the edge into the cloud. + +We'll create a namespace for our message broker Vernemq. + + kubectl create namespace vernemq + +Create a certificate, so we can handle TLS/WSS. (this needs a DNS challenge) + + kubectl apply -f vernemq/vernemq-secret.yaml --namespace vernemq + kubectl apply -f vernemq/vernemq-issuer.yaml --namespace vernemq + kubectl apply -f vernemq/vernemq-certificate.yaml --namespace vernemq + +By default, a username and password is set for the Vernemq broker. You can find these in the `vernemq/values.yaml` file [as shown below](https://github.com/kerberos-io/hub/blob/master/vernemq/values.yaml#L216-L217). + + ... + - name: DOCKER_VERNEMQ_USER_YOURUSERNAME + value: "yourpassword" + ... + +Please note that the username is defined in capitals `YOURUSERNAME`, but will result as `yourusername`. So anything written in capitals, will be lowercase. + +Go a head and install the Vernemq chart with the relevant configuration options. + + helm install vernemq vernemq/vernemq -f vernemq/values.yaml --namespace vernemq + +## TURN/STUN + +Within Kerberos Hub we allow streaming live from the edge to the cloud without port-forwarding. To make this work we are using a technology called WebRTC that leverages a TURN/STUN server. + +![hubarechitecture](images/turn-stun.svg) + +To run a TURN/STUN server please [have a look at following repository](https://github.com/kerberos-io/turn-and-stun), this will deploy a Docker container on a specific host that will act as a proxy for network traversal. The TURN/STUN server will make sure a connection from a Kerberos Agent to a Kerberos Hub viewer is established. + +## Install Nginx ingress + +Ingresses are needed to expose the Kerberos hub front-end and api to the internet or intranet. We prefer nginx ingress but if you would prefer Traefik, that is perfectly fine as well. + + helm upgrade --install ingress-nginx ingress-nginx \ + --repo https://kubernetes.github.io/ingress-nginx \ + --namespace ingress-nginx --create-namespace + +### or (option) Install traefik + + helm install traefik traefik/traefik -f ./traefik/values-ssl.yaml + +## Kerberos Hub + +So once you hit this step, you should have installed a previous defined dependencies. Hopefully you didn't have too much pain with the certificates :). +Before starting, it's important to have a look at the `values.yaml` file. This includes the different parameters to configure the different deployments. +Reach out to us if you would need any help with this. + +As previously mentioned a couple of times, we should also create a kerberos namespace. + + kubectl create namespace kerberos-hub + +Install the `registry credentials` to download the Kerberos Hub and Kerberos Pipeline. You'll need to request the `regcred.yaml` from the Kerberos team, to be able to download the Kerberos Hub images. + + kubectl apply -f regcred.yaml -n kerberos-hub + +Install the Kerberos Hub chart and take into the values.yaml file. + + helm install hub kerberos/hub --values values.yaml -n kerberos-hub + +Uninstall the Kerberos Hub chart + + helm uninstall hub -n kerberos-hub + +### Parameters + +Below all configuration options and parameters are listed. + +| Name | Description | Value | +| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ----- | +| `license` | The license key you received from support@kerberos.io. If not available request one. | `""` | +| `licenseServer.url` | The license server for validating the license of your Kerberos Hub, by default `'"https://license.kerberos.io/verify"'`. | `""` | +| `licenseServer.token` | The license server API token to sign the license validation by default `'214%ˆ#ddfsf@#3rfdsgl_)23sffeqasSwefDSFNBM'`. | `""` | +| `imagePullSecrets.name` | Docker registry secret name, which is also granted with the license. This allows you to download the Docker images. | `""` | +| `isPrivate` | Global StorageClass for Persistent Volume(s) | `""` | +| `readOnly` | This will stop any write process to mongodb or any processing done in the Kerberos Hub pipeline. | `""` | +| `ingress` | The ingress being used for `kerberoshub.api.url` and `kerberoshub.frontend.url`. | `""` | +| `mongodb.host` | MongoDB hostname (`'mongodb:27017'`) or mongodb replicas (`'mongodb-0:27017,mongodb-1:27017'`). | `""` | +| `mongodb.adminDatabase` | MongoDB admin database, this is named `admin` by default. | `""` | +| `mongodb.username` | MongoDB user account, we are using in the hub installation `'root'`. | `""` | +| `mongodb.password` | MongoDB user password, by default `'yourmongodbpassword'` | `""` | +| `mqtt.host` | MQTT (Vernemq) hostname. | `""` | +| `mqtt.port` | MQTT (Vernemq) port for WSS (secure sockets), by default `'8443'`. | `""` | +| `mqtt.protocol` | MQTT (Vernemq) protocol, by default `'wss'`. | `""` | +| `mqtt.username` | MQTT (Vernemq) username, by default `'yourusername'`. | `""` | +| `mqtt.password` | MQTT (Vernemq) password, by default `'yourpassword'`. | `""` | +| `queueProvider` | The queue we are using for the [Kerberos Hub pipeline](https://doc.kerberos.io/hub/pipeline/), can be 'SQS' or 'KAFKA'. | `""` | +| `queueName` | The event queue which is propagating messages in the [Kerberos Hub pipeline](https://doc.kerberos.io/hub/pipeline/). | `""` | +| `kafka.broker` | Kafka brokers, by default `'kafka1.yourdomain.com:9094,kafka2.yourdomain.com:9094'` | `""` | +| `kafka.username` | Kafka username, by default `'yourusername'` | `""` | +| `kafka.password` | Kafka password, by default `'yourpassword'` | `""` | +| `kafka.mechanism` | Kafka mechanism, by default `'PLAIN'` | `""` | +| `kafka.security` | Kafka security, by default `'SASL_PLAINTEXT'` | `""` | +| `turn.host` | TURN/STUN hostname, by default `'turn:turn.yourdomain.com:8443'` | `""` | +| `turn.username` | TURN/STUN username, by default `'username1'` | `""` | +| `turn.password` | TURN/STUN password, by default `'password1'` | `""` | +| `kerberosvault.uri` | The default Kerberos Vault uri (you can add multiple within the app), by default `'https://api.storage.yourdomain.com'` | `""` | +| `kerberosvault.accesskey` | The default Kerberos Vault access key, by default `'xxx'` | `""` | +| `kerberosvault.secretkey` | The default Kerberos Vault secret key, by default `'xxx'` | `""` | +| `kerberosvault.provider` | The default Kerberos Vault provider`'a-provider'` | `""` | +| `kerberosvault.archive.accesskey` | When a task is created, the relevant recording is moved to another provider, using this access key `'xxx'` | `""` | +| `kerberosvault.archive.secretkey` | When a task is created, the relevant recording is moved to another provider, using this secret key`'xxx'` | `""` | +| `kerberosvault.archive.provider` | When a task is created, the relevant recording is moved to this provider `'an-archive-provider'` | `""` | +| `email.provider` | The email service provider for sending out messages over email , use `'mailgun'` or `'smtp'`. | `""` | +| `email.from` | The email address that is sending messages in name of, by default `'support@yourdomain.com'`. | `""` | +| `email.displayName` | The display name that is sending messages in name of, by default `'yourdomain.com'` | `""` | +| `email.mailgun.domain` | While using `mailgun` as email service provider, you will need to provide your Mailgun domain. | `""` | +| `email.mailgun.apiKey` | The Mailgun API key linked to your Mailgun domain. | `""` | +| `email.smtp.server` | While using `smtp` as email service provider, use the SMTP server. | `""` | +| `email.smtp.port` | SMTP port specified by your SMTP server, by default `'456'`. | `""` | +| `email.smtp.username` | SMTP username. | `""` | +| `email.smtp.password` | SMTP password. | `""` | +| `email.templates.detection` | We use templates to send notifications, this allow you to bring your own `Mailgun` templates, by default `'detection'`. | `""` | +| `email.templates.disabled` | The template which is send when an account is disabled due to reaching its upload limit, by default `'disabled'`. | `""` | +| `email.templates.highupload` | The template which is send when an account is reaching a specific upload threshold, by default `'threshold'`. | `""` | +| `email.templates.device` | The template which is send when a camera goes online or offline, by default `'device'`. | `""` | +| `email.templates.welcome` | The template which is send when a new user registered on the platform (`IS_PRIVATE='false'`), by default `'disabled'`. | `""` | +| `email.templates.welcomeTitle` | The welcome title use in the subject of the email. | `""` | +| `email.templates.activate` | The template which is send when a user is required to activate his account , by default `'activate'`. | `""` | +| `email.templates.activateTitle` | The activation title use in the subject of the email. | `""` | +| `email.templates.forgot` | The template which is send when an account is requesting a forgot password, by default `'forgot'`. | `""` | +| `email.templates.forgotTitle` | The forgot title use in the subject of the email. | `""` | +| `kerberoshub.api.repository` | The Docker registry where the Kerberos Hub API container is hosted. | `""` | +| `kerberoshub.api.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberoshub.api.tag` | The Docker image tag/version. | `""` | +| `kerberoshub.api.replicas` | The number of pods/replicas running for the Kerberos Hub API deployment. | `""` | +| `kerberoshub.api.jwtSecret` | A secret that is for generating JWT tokens. | `""` | +| `kerberoshub.api.schema` | The protocol to serve the Kerberos Hub API, `'http'` or `'https'`. | `""` | +| `kerberoshub.api.url` | The Kerberos Hub API ingress to access the API. | `""` | +| `kerberoshub.api.tls` | Bring your own TLS certificates for Kerberos Hub API ingress. | `""` | +| `kerberoshub.api.language` | The language of Kerberos Hub API responses, error messages will be communicated in the specified language. | `""` | +| `kerberoshub.api.fallbackLanguage` | The fallback language, if a specific translation is not available. | `""` | +| `kerberoshub.api.slack.enabled` | Slack integration for sending events and notifications coming from the Kerberos Hub API, `'true'` or `'false'`. | `""` | +| `kerberoshub.api.slack.hook` | Slack integration hook url. | `""` | +| `kerberoshub.api.slack.username` | Slack integration username. | `""` | +| `kerberoshub.api.elasticsearch.enabled` | Elasticsearch for storing events coming from the Kerberos Hub API, `'true'` or `'false'` | `""` | +| `kerberoshub.api.elasticsearch.protocol` | Elasticsearch protocol, `'http'` or `'https'`. | `""` | +| `kerberoshub.api.elasticsearch.host` | Elasticsearch host. | `""` | +| `kerberoshub.api.elasticsearch.port` | Elasticsearch port. | `""` | +| `kerberoshub.api.elasticsearch.index` | Elasticsearch index which is used to store the events. | `""` | +| `kerberoshub.api.elasticsearch.username` | Elasticsearch username. | `""` | +| `kerberoshub.api.elasticsearch.password` | Elasticsearch password. | `""` | +| `kerberoshub.api.sso.issuer` | Kerberos Hub can be linked to OpenID Connect for SSO. Specify the OIC issuer. | `""` | +| `kerberoshub.api.sso.clientId` | The OIC client id. | `""` | +| `kerberoshub.api.sso.clientSecret` | The OIC client secret. | `""` | +| `kerberoshub.api.sso.redirectUrl` | The OIC redirectUrl, once the authentication is validated. | `""` | +| `kerberoshub.frontend.repository` | The Docker registry where the Kerberos Hub frontend is hosted. | `""` | +| `kerberoshub.frontend.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberoshub.frontend.tag` | The Docker image tag/version. | `""` | +| `kerberoshub.frontend.replicas` | The number of pods/replicas running for the Kerberos Hub frontend deployment. | `""` | +| `kerberoshub.frontend.schema` | The protocol to serve the Kerberos Hub frontend, `'http'` or `'https'`. | `""` | +| `kerberoshub.frontend.url` | The Kerberos Hub frontend ingress to access the frontend. | `""` | +| `kerberoshub.frontend.tls` | Bring your own TLS certificates for Kerberos Hub frontend ingress. | `""` | +| `kerberoshub.frontend.ssoDomain` | The domain that's being used to activate SSO from the login page. | `""` | +| `kerberoshub.frontend.logo` | The logo being used in the Kerberos Hub frontend, set to 'custom' if you want to mount your own stylesheet. | `""` | +| `kerberoshub.frontend.mixpanel.apikey` | No longer used. | `""` | +| `kerberoshub.frontend.sentry.url` | No longer used. | `""` | +| `kerberoshub.frontend.posthog.key` | The API key retrieved from the Posthog instance. | `""` | +| `kerberoshub.frontend.posthog.url` | Posthog's endpoint (http/https). | `""` | +| `kerberoshub.frontend.stripe.apikey` | If using the public version, `stripe` can be used for automated billing and subscriptions. | `""` | +| `kerberoshub.frontend.googlemaps.apikey` | Within Kerberos Hub frontend a couple of maps are being used, the google maps is leveraged for that. | `""` | +| `kerberoshub.frontend.zendesk.url` | No longer used. | `""` | + +| `kerberoshub.frontend.zendesk.url` | No longer used. | `""` | +| `kerberoshub.cleanup.repository` | The Docker container that is responsible for cleaning up the Kerberos Hub API content and related MongoDB collections. | `""` | +| `kerberoshub.cleanup.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberoshub.cleanup.tag` | The Docker image tag/version. | `""` | +| `kerberoshub.forwarder.repository` | The Docker container which orchestrates forwarding coming from different Kerberos Vaults. | `""` | +| `kerberoshub.forwarder.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberoshub.forwarder.tag` | The Docker image tag/version. | `""` | +| `kerberoshub.monitordevice.repository` | The monitoring microservice, following up the status of your cameras and Kerberos Agents. | `""` | +| `kerberoshub.monitordevice.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberoshub.monitordevice.tag` | The Docker image tag/version. | `""` | +| `kerberospipeline.event.repository` | The [event orchestration](https://doc.kerberos.io/hub/pipeline/#orchestrator) microservice. | `""` | +| `kerberospipeline.event.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberospipeline.event.tag` | The Docker image tag/version. | `""` | +| `kerberospipeline.monitor.repository` | The [monitoring microservice](https://doc.kerberos.io/hub/pipeline/#monitoring), calculating metrics of incoming messages.| `""` | +| `kerberospipeline.monitor.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberospipeline.monitor.tag` | The Docker image tag/version. | `""` | +| `kerberospipeline.sequence.repository` | The [sequencer microservice](https://doc.kerberos.io/hub/pipeline/#sequencer), grouping recordings in chunks/groups. | `""` | +| `kerberospipeline.sequence.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberospipeline.sequence.tag` | The Docker image tag/version. | `""` | +| `kerberospipeline.throttler.repository` | The [throttler microservice](https://doc.kerberos.io/hub/pipeline/#throttler), throttling events. | `""` | +| `kerberospipeline.throttler.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberospipeline.throttler.tag` | The Docker image tag/version. | `""` | +| `kerberospipeline.notify.repository` | The [notification microservice](https://doc.kerberos.io/hub/pipeline/#notification), sending notifications on events. | `""` | +| `kerberospipeline.notify.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberospipeline.notify.tag` | The Docker image tag/version. | `""` | +| `kerberospipeline.notifyTest.repository` | The notification service for testing, the different channels. | `""` | +| `kerberospipeline.notifyTest.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberospipeline.notifyTest.tag` | The Docker image tag/version. | `""` | +| `kerberospipeline.analysis.repository` | The [analysis microservices](https://doc.kerberos.io/hub/pipeline/#analyser) which executed specific analysis in parallel.| `""` | +| `kerberospipeline.analysis.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberospipeline.analysis.tag` | The Docker image tag/version. | `""` | +| `kerberospipeline.dominantColor.repository` | The dominant color microservices is computing a top 3 color histogram. | `""` | +| `kerberospipeline.dominantColor.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberospipeline.dominantColor.tag` | The Docker image tag/version. | `""` | +| `kerberospipeline.thumbnail.repository` | The thumbnail microservices generated a thumbnail for a recordings. | `""` | +| `kerberospipeline.thumbnail.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberospipeline.thumbnail.tag` | The Docker image tag/version. | `""` | +| `kerberospipeline.counting.repository` | The counting microservices computes objects passing different line segments. | `""` | +| `kerberospipeline.counting.pullPolicy` | The Docker registry pull policy. | `""` | +| `kerberospipeline.counting.tag` | The Docker image tag/version. | `""` | +### Post installation + +After the installation you'll need to initialise the Mongodb with some objects. Have a look at the `mongodb/` folder, you'll find three files available: + +- settings.nosql +- subscriptions.nosql +- users.nosql + +Open your favourite Mongodb client (or cli) and connect to your Mongodb database as previously created (or have already installed). Import the previous mentioned `.nosql` files into a new database called `Kerberos`. + +Screenshot 2021-05-24 at 16 01 24 + +Once done you should be able to sign in with following credentials: + +- username: youruser +- password: yourpassword + +Please note that the default username and password can be changed [by the changing the related username and password hash](https://github.com/kerberos-io/hub/blob/master/mongodb/users.nosql#L3-L5). The password hash is a bcrypt computed hash, which you can compute yourself [using a bcrypt client](https://bcrypt-generator.com/). + +### Subscription settings + +Once the collections are loaded in the Mongodb instance, you should see the `user`, `subscriptons` and `settings` collections. Those three collections will allow a user to login into the Kerberos Hub web interface, using the previously mentioned username and password. + +Next to that, in the `subscriptions` collection you will find a subscription for that specific user. The subscription specifies which kind of access the user has in terms of features and upload quota. + +Building further on those `subscriptions`, you will find a `settings` collection that contains the quota for each `subscription`. + +### Indexing + +Following indexes should be executed on the MongoDB database (Kerberos) to improve future performance. + + db.getCollection('sequences').createIndex({user_id:1, end:1, start: -1, devices: 1}) + + db.getCollection('sequences').createIndex({user_id:1, end:1, start: 1, "images.instanceName": 1}) + + db.getCollection('sequences').createIndex({user_id:1, "images.key":1}) + + db.getCollection("notifications").createIndex({"user":1}) + + db.getCollection("analysis").createIndex({"key":1}) + +# Upgrade + +After installation, you might want to upgrade Kerberos Hub to the latest version, or change some settings. With Helm charts all settings are configured through the `values.yaml` file. After you made modifications to the `values.yaml` file, for example the version tag, or a new DNS name, you can run the `helm upgrade` command as following. + + helm upgrade hub kerberos/hub -f values.yaml -n kerberos-hub + +The first argument is the helm project name, you could find this out by running `helm ls -n kerberos`. The following element is the helm chart name, and the last one is the `values.yaml` file with the new configuration. + +# Building + +To build a new release the following steps needs to be executed. + + cd hub + helm lint + + cd .. + helm package hub + mv hub-*.tgz hub + + helm repo index hub --url https://kerberos-io.github.io/hub + cd hub + cat index.yaml + diff --git a/charts/hub/architecture.png b/charts/hub/architecture.png new file mode 100644 index 0000000..0c5fafb Binary files /dev/null and b/charts/hub/architecture.png differ diff --git a/charts/hub/cert-manager/cluster-issuer.yaml b/charts/hub/cert-manager/cluster-issuer.yaml new file mode 100644 index 0000000..5afa44a --- /dev/null +++ b/charts/hub/cert-manager/cluster-issuer.yaml @@ -0,0 +1,18 @@ +apiVersion: cert-manager.io/v1 +kind: ClusterIssuer +metadata: + name: letsencrypt-prod +spec: + acme: + # The ACME server URL + server: https://acme-v02.api.letsencrypt.org/directory + # Email address used for ACME registration + email: cedric@verstraeten.io + # Name of a secret used to store the ACME account private key + privateKeySecretRef: + name: letsencrypt-prod + # Enable the HTTP-01 challenge provider + solvers: + - http01: + ingress: + class: nginx \ No newline at end of file diff --git a/charts/hub/custom-layout/custom-layout-claim.yaml b/charts/hub/custom-layout/custom-layout-claim.yaml new file mode 100644 index 0000000..741fcda --- /dev/null +++ b/charts/hub/custom-layout/custom-layout-claim.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: custom-layout-claim +spec: + accessModes: + - ReadWriteMany + storageClassName: azurefile-premium + resources: + requests: + storage: 25Mi diff --git a/charts/hub/custom-layout/favicons/android-chrome-192x192.png b/charts/hub/custom-layout/favicons/android-chrome-192x192.png new file mode 100644 index 0000000..2e2554a Binary files /dev/null and b/charts/hub/custom-layout/favicons/android-chrome-192x192.png differ diff --git a/charts/hub/custom-layout/favicons/android-chrome-512x512.png b/charts/hub/custom-layout/favicons/android-chrome-512x512.png new file mode 100644 index 0000000..e8195a6 Binary files /dev/null and b/charts/hub/custom-layout/favicons/android-chrome-512x512.png differ diff --git a/charts/hub/custom-layout/favicons/apple-touch-icon.png b/charts/hub/custom-layout/favicons/apple-touch-icon.png new file mode 100644 index 0000000..e7965cc Binary files /dev/null and b/charts/hub/custom-layout/favicons/apple-touch-icon.png differ diff --git a/charts/hub/custom-layout/favicons/browserconfig.xml b/charts/hub/custom-layout/favicons/browserconfig.xml new file mode 100644 index 0000000..30ba266 --- /dev/null +++ b/charts/hub/custom-layout/favicons/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #b4524e + + + diff --git a/charts/hub/custom-layout/favicons/favicon-16x16.png b/charts/hub/custom-layout/favicons/favicon-16x16.png new file mode 100644 index 0000000..baba772 Binary files /dev/null and b/charts/hub/custom-layout/favicons/favicon-16x16.png differ diff --git a/charts/hub/custom-layout/favicons/favicon-32x32.png b/charts/hub/custom-layout/favicons/favicon-32x32.png new file mode 100644 index 0000000..6832a0c Binary files /dev/null and b/charts/hub/custom-layout/favicons/favicon-32x32.png differ diff --git a/charts/hub/custom-layout/favicons/favicon.ico b/charts/hub/custom-layout/favicons/favicon.ico new file mode 100644 index 0000000..dc35b2e Binary files /dev/null and b/charts/hub/custom-layout/favicons/favicon.ico differ diff --git a/charts/hub/custom-layout/favicons/mstile-144x144.png b/charts/hub/custom-layout/favicons/mstile-144x144.png new file mode 100644 index 0000000..187a147 Binary files /dev/null and b/charts/hub/custom-layout/favicons/mstile-144x144.png differ diff --git a/charts/hub/custom-layout/favicons/mstile-150x150.png b/charts/hub/custom-layout/favicons/mstile-150x150.png new file mode 100644 index 0000000..8b83ec0 Binary files /dev/null and b/charts/hub/custom-layout/favicons/mstile-150x150.png differ diff --git a/charts/hub/custom-layout/favicons/mstile-310x150.png b/charts/hub/custom-layout/favicons/mstile-310x150.png new file mode 100644 index 0000000..e889a0d Binary files /dev/null and b/charts/hub/custom-layout/favicons/mstile-310x150.png differ diff --git a/charts/hub/custom-layout/favicons/mstile-310x310.png b/charts/hub/custom-layout/favicons/mstile-310x310.png new file mode 100644 index 0000000..bb7f2c6 Binary files /dev/null and b/charts/hub/custom-layout/favicons/mstile-310x310.png differ diff --git a/charts/hub/custom-layout/favicons/mstile-70x70.png b/charts/hub/custom-layout/favicons/mstile-70x70.png new file mode 100644 index 0000000..d8b4f76 Binary files /dev/null and b/charts/hub/custom-layout/favicons/mstile-70x70.png differ diff --git a/charts/hub/custom-layout/favicons/safari-pinned-tab.svg b/charts/hub/custom-layout/favicons/safari-pinned-tab.svg new file mode 100644 index 0000000..71ea8fa --- /dev/null +++ b/charts/hub/custom-layout/favicons/safari-pinned-tab.svg @@ -0,0 +1,46 @@ + + + + +Created by potrace 1.14, written by Peter Selinger 2001-2017 + + + + + diff --git a/charts/hub/custom-layout/favicons/site.webmanifest b/charts/hub/custom-layout/favicons/site.webmanifest new file mode 100644 index 0000000..2696d6f --- /dev/null +++ b/charts/hub/custom-layout/favicons/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "Kerberos.io", + "short_name": "Kerberos.io", + "icons": [ + { + "src": "/favicons/android-chrome-192x192.png?v=1", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/favicons/android-chrome-512x512.png?v=1", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/charts/hub/custom-layout/icons.js b/charts/hub/custom-layout/icons.js new file mode 100644 index 0000000..3b7710a --- /dev/null +++ b/charts/hub/custom-layout/icons.js @@ -0,0 +1,670 @@ +(function(window) { + window["env"] = window["env"] || {}; + window["env"]["svg"] = window["env"]["svg"] || {}; + + /* Accounts */ + window["env"]["svg"]["accounts"] = ` + + + ` + + /* Activity / pulse (Latest Activity) */ + window["env"]["svg"]["activity"] = ` + + ` + + /* Alerts */ + window["env"]["svg"]["alerts"] = ` + + + + + ` + + /* Animal (detection classification) */ + window["env"]["svg"]["animal"] = ` + + + ` + + /* Api (swagger icon) */ + window["env"]["svg"]["api"] = ` + + + + + + + + ` + + /* Arrow down ("load more") */ + window["env"]["svg"]["arrow-down"] = ` + + + ` + + /* Arrow down (filled triangle for toggles etc.) */ + window["env"]["svg"]["arrow-down-small-full"] = ` + + ` + + /* Arrow right */ + window["env"]["svg"]["arrow-right"] = ` + + + ` + + /* Calendar */ + window["env"]["svg"]["calendar"] = ` + + + + + + + + + + + + ` + + /* Car (Alerts > Detections, detection classification) */ + window["env"]["svg"]["car"] = ` + + + + + + + ` + + /* Camera */ + window["env"]["svg"]["camera"] = ` + + + + + ` + + /* Change / Refresh (Subscription > Change plan) */ + window["env"]["svg"]["change"] = ` + + + + + +` + /* Channels */ + window["env"]["svg"]["channels"] = ` + + + ` + + /* Chart Bars */ + window["env"]["svg"]["chart-bars"] = ` + + + + + + ` + + /* Check (circle) */ + window["env"]["svg"]["check-circle-small"] = ` + + ` + + /* Cloud (Dashboard > Hub, Subscription > Vault) */ + window["env"]["svg"]["cloud"] = ` + + + ` + + /* Cog (Media > Detail > Post processing) */ + window["env"]["svg"]["cog"] = ` + + ` + + /* Color palette (Media > Detail > Dominant colors) */ + window["env"]["svg"]["color-palette"] = ` + + + + + + + ` + + /* Cyclist (Alerts > Detections, detection classification) */ + window["env"]["svg"]["cyclist"] = ` + + + + + + ` + + /* Credit card (Subscriptions > Billing) */ + window["env"]["svg"]["credit-card"] = ` + + + + ` + + /* Cross (mobile menu close) */ + window["env"]["svg"]["cross"] = ` + + + ` + + /* Cross (circle) */ + window["env"]["svg"]["cross-circle-small"] = ` + + ` + + /* Cross circle (cancel) */ + window["env"]["svg"]["cross-circle"] = ` + + + + ` + + /* Dashboard */ + window["env"]["svg"]["dashboard"] = ` + + + + + ` + + /* Docs */ + window["env"]["svg"]["docs"] = ` + + + + + ` + + /* Download */ + window["env"]["svg"]["download"] = `\n' + + + + + + + ` + + /* Enterprise (agent) */ + window["env"]["svg"]["enterprise"] = ` + + + + ` + + /* Eye (Latest events) */ + window["env"]["svg"]["eye"] = ` + + + ` + + /* Eye-crossed (hide password) */ + window["env"]["svg"]["eye-crossed"] = ` + + + + ` + + /* Exclamation-circle (alerts & errors, duh) */ + window["env"]["svg"]["exclamation-circle"] = ` + + + + + ` + + /* File (Media > Detail > File info) */ + window["env"]["svg"]["feedback"] = ` + + + ` + + /* Feedback */ + window["env"]["svg"]["feedback"] = ` + + ` + + /* Film (Media > Detail > Recording) */ + window["env"]["svg"]["film"] = ` + + ` + + /* Filter */ + window["env"]["svg"]["filter"] = ` + + + + + + + + + ` + + /* Floor plan (Sites > detail > Floor plan) */ + window["env"]["svg"]["floor-plan"] = ` + + + + ` + + /* Github */ + window["env"]["svg"]["github"] = ` + + ` + + /* Grid (layout switcher) */ + window["env"]["svg"]["grid"] = ` + + + + + ` + + /* Grid 1x1(layout switcher) */ + window["env"]["svg"]["grid-1x1"] = ` + + ` + + /* Grid 3x3 (layout switcher) */ + window["env"]["svg"]["grid-3x3"] = ` + + + + + + + + + + ` + + /* Grid 4x4(layout switcher) */ + window["env"]["svg"]["grid-4x4"] = ` + + + + + + + + + + + + + + + + + + ` + + /* Group */ + window["env"]["svg"]["group"] = ` + + + + + + + + + ` + + /* Handbag (detection classification) */ + window["env"]["svg"]["handbag"] = ` + + + ` + + /* High upload */ + window["env"]["svg"]["high-upload"] = ` + + + + + ` + + /* Info-circle (Media > Detail > Media info, "help" buttons) */ + window["env"]["svg"]["info-circle"] = ` + + + + + ` + + /* Key (Profile > Change password) */ + window["env"]["svg"]["key"] = ` + + + ` + /* Latest events */ + window["env"]["svg"]["latest-events"] = ` + + + ` + + /* Lightbulb (suggest new: alert, channel) */ + window["env"]["svg"]["lightbulb"] = ` + + + + ` + + /* Live stream */ + window["env"]["svg"]["live-stream"] = ` + + + ` + + /* List */ + window["env"]["svg"]["list"] = ` + + + + + + + ` + + /* Loading (buttons) */ + window["env"]["svg"]["loading"] = ` + + + + + + + + + ` + + /* Lock-locked (2FA) */ + window["env"]["svg"]["lock-locked"] = ` + + + + ` + + /* Login (Profile > Login audit) + * https://ui.kerberos.io/?path=/story/icons-icon--logout + * */ + window["env"]["svg"]["logout"] = ` + + + + + ` + + /* Logout (sidebar > logout) + * https://ui.kerberos.io/?path=/story/icons-icon--logout + * */ + window["env"]["svg"]["logout"] = ` + + + + + ` + + /* Media + * https://ui.kerberos.io/?path=/story/icons-icon--media + * */ + window["env"]["svg"]["media"] = ` + + + + + + + + + + + + + ` + + /* Menu (mobile menu open) */ + window["env"]["svg"]["menu"] = ` + + + + ` + + /* Mic muted */ + window["env"]["svg"]["mic-muted"] = ` + + ` + + /* Minus circle ("remove" button) */ + window["env"]["svg"]["minus-circle"] = ` + + + ` + + /* News paper (navigation > watchlist) */ + window["env"]["svg"]["newspaper"] = ` + + + + + + + ` + + /* Opensource (agent) */ + window["env"]["svg"]["opensource"] = ` + + ` + + /* Person (Alerts > Detections, detection classification) */ + window["env"]["svg"]["person"] = ` + + + + + ` + + /* Pedestrian */ + window["env"]["svg"]["pedestrian"] = ` + + + + + ` + + /* Pen (Media > sequence with note) */ + window["env"]["svg"]["pen-small"] = ` + + + + ` + + /* Pen ("edit" buttons) */ + window["env"]["svg"]["pen"] = ` + + + + ` + + /* Plus circle ("add" button) */ + window["env"]["svg"]["plus-circle"] = ` + + + + ` + + /* Preferences */ + window["env"]["svg"]["preferences"] = ` + + + + + + + + + ` + + /* PTZ Down */ + window["env"]["svg"]["ptz-down"] = ` + + ` + /* PTZ Left */ + window["env"]["svg"]["ptz-left"] = ` + + ` + /* PTZ Right */ + window["env"]["svg"]["ptz-right"] = ` + + ` + /* PTZ Up */ + window["env"]["svg"]["ptz-up"] = ` + + ` + /* PTZ Center */ + window["env"]["svg"]["ptz-center"] = ` + + + + + ` + + /* Refresh */ + window["env"]["svg"]["refresh"] = ` + + + ` + + /* Save */ + window["env"]["svg"]["save"] = ` + + + + + ` + + /* Search (filters, Media > Detail > Classifications) + * https://ui.kerberos.io/?path=/story/icons-icon--search + * */ + window["env"]["svg"]["search"] = ` + + ` + + /* Shield check ("verify") */ + window["env"]["svg"]["shield-check"] = ` + + + ` + + /* Sites */ + window["env"]["svg"]["sites"] = ` + + + ` + + /* Site (Site > Detail > Floorplan: place Camera) */ + window["env"]["svg"]["site-small"] = ` + + ` + + /* Sorting */ + window["env"]["svg"]["sorting"] = ` + + + + + ` + + /* Star (mark as fav) */ + window["env"]["svg"]["star"] = ` + + ` + + /* Star (Media > favorite sequence) */ + window["env"]["svg"]["star-small"] = ` + + ` + + /* Subscription */ + window["env"]["svg"]["subscription"] = ` + + + + + + + ` + + /* Tag (Media > tagged sequence) */ + window["env"]["svg"]["tag-small"] = ` + + ` + + /* Tasks */ + window["env"]["svg"]["tasks"] = ` + + + + ` + + /* Task cross (reject) */ + window["env"]["svg"]["task-cross"] = ` + + + + ` + + /* Task check (done) */ + window["env"]["svg"]["task-check"] = ` + + + ` + + /* Trash */ + window["env"]["svg"]["trash"] = ` + + + + ` + + /* Upload (Forward buttons) */ + window["env"]["svg"]["upload"] = ` + + + + + ` + + /* Video off / mute (Cameras > Detail) */ + window["env"]["svg"]["video-off"] = ` + + + + ` + + /* User (Profile > Edit profile) */ + window["env"]["svg"]["user"] = ` + + + ` + +})(this); diff --git a/charts/hub/custom-layout/logo-sidebar.svg b/charts/hub/custom-layout/logo-sidebar.svg new file mode 100644 index 0000000..08a6ab4 --- /dev/null +++ b/charts/hub/custom-layout/logo-sidebar.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/charts/hub/custom-layout/style.css b/charts/hub/custom-layout/style.css new file mode 100644 index 0000000..66b0022 --- /dev/null +++ b/charts/hub/custom-layout/style.css @@ -0,0 +1,3 @@ +.app .sidebar.closed { + background: red !important; +} diff --git a/charts/hub/custom-layout/templates/activate.html b/charts/hub/custom-layout/templates/activate.html new file mode 100644 index 0000000..f1daef5 --- /dev/null +++ b/charts/hub/custom-layout/templates/activate.html @@ -0,0 +1,405 @@ + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Kerberos.io +

Kerberos.io

+
+ +

{{tab1_title}}

+
+
+ +

{{tab2_title}}

+
+
+
+ + + + +
+ + + + + + + + +
+

Hey, {{user}}

+

Your account is now active

+
+
+ + + + +
+ + + + + + + + +
+

All set. Let's go!

+

You're ready. Go ahead and login to your Kerberos Hub account. Start exploring the different features and functions to support your business usecases.

+

Once you are convinced, choose the subscription plan that you like the most, and start consuming only what you need.

+
+
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/activate.txt b/charts/hub/custom-layout/templates/activate.txt new file mode 100644 index 0000000..152ae09 --- /dev/null +++ b/charts/hub/custom-layout/templates/activate.txt @@ -0,0 +1,22 @@ +Kerberos.io +------------ + +Hey, {{user}} +Welcome to Kerberos Hub +Activate your account +{{link}} + +Kerberos Hub in a nutshell +With Kerberos Hub you can access your surveillance media remotely. By subscribing to a plan, you get access to a set of features, from advanced filtering, notifications to machine learning. + +However before you get started this amazing applications, please activate your account. + +Get in touch +------------ +support@kerberos.io +9000 Ghent, BE +https://kerberos.io + +About Kerberos +------------ +Welcome to the revolutionary video analytics and video management platform. Open, modular, and extensible for everyone, anywhere. \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/detection.html b/charts/hub/custom-layout/templates/detection.html new file mode 100644 index 0000000..ec2611f --- /dev/null +++ b/charts/hub/custom-layout/templates/detection.html @@ -0,0 +1,432 @@ + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Kerberos.io +

Kerberos.io

+
+ +

{{tab1_title}}

+
+
+ +

{{tab2_title}}

+
+
+
+ + + + +
+ + + + + + + + +
+

Hey, {{user}}

+

We've detected something interesting

+

{{text}}

+
+
+ + + + +
+ + + + + + + + +
+

We got you covered!

+

An alert was send to your e-mail as one of the conditions was triggered. Please watch the recording, by clicking on below button. +If you believe this event is a false positive, go to your Kerberos Hub account and change the alert settings accordingly.

+ + + +

Watch recording ->

+
+
+
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/detection.txt b/charts/hub/custom-layout/templates/detection.txt new file mode 100644 index 0000000..d23a7dd --- /dev/null +++ b/charts/hub/custom-layout/templates/detection.txt @@ -0,0 +1,22 @@ +Kerberos.io +------------ + +Hey, {{user}} +Welcome to Kerberos Hub +Activate your account -> +{{link}} + +Kerberos Hub in a nutshell +With Kerberos Hub you can access your surveillance media remotely. By subscribing to a plan, you get access to a set of features, from advanced filtering, notifications to machine learning. + +However before you get started this amazing applications, please activate your account. + +Get in touch +------------ +support@kerberos.io +9000 Ghent, BE +https://kerberos.io + +About Kerberos +------------ +Welcome to the revolutionary video analytics and video management platform. Open, modular, and extensible for everyone, anywhere. diff --git a/charts/hub/custom-layout/templates/device.html b/charts/hub/custom-layout/templates/device.html new file mode 100644 index 0000000..397aa1e --- /dev/null +++ b/charts/hub/custom-layout/templates/device.html @@ -0,0 +1,431 @@ + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Kerberos.io +

Kerberos.io

+
+ +

{{tab1_title}}

+
+
+ +

{{tab2_title}}

+
+
+
+ + + + +
+ + + + + + + + +
+

Hey, {{user}}

+

One of your Kerberos Agents changed

+

{{text}}

+
+
+ + + + +
+ + + + + + + + +
+

The status your Kerberos Agent changed

+

Kerberos Agents go offline due to a variety of reasons. The machine, node, micro controller on which your Kerberos Agent runs, gets corrupted or disconnected from the internet. +The camera itself is broken, damaged or in the worst case tampered. Have a look into your Kerberos Hub account for the latest recordings and/or verify the connection and status of your Kerberos Agent.

+ + +

Go to Kerberos Hub ->

+
+
+
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/device.txt b/charts/hub/custom-layout/templates/device.txt new file mode 100644 index 0000000..1355155 --- /dev/null +++ b/charts/hub/custom-layout/templates/device.txt @@ -0,0 +1,22 @@ +Kerberos.io +------------ + +Hey, {{user}} +Welcome to Kerberos Hub +Activate your account -> +{{link}} + +Kerberos Hub in a nutshell +With Kerberos Hub you can access your surveillance media remotely. By subscribing to a plan, you get access to a set of features, from advanced filtering, notifications to machine learning. + +However before you get started this amazing applications, please activate your account. + +Get in touch +------------ +support@kerberos.io +9000 Ghent, BE +https://kerberos.io + +About Kerberos +------------ +Welcome to the revolutionary video analytics and video management platform. Open, modular, and extensible for everyone, anywhere. \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/disable.html b/charts/hub/custom-layout/templates/disable.html new file mode 100644 index 0000000..0503aea --- /dev/null +++ b/charts/hub/custom-layout/templates/disable.html @@ -0,0 +1,441 @@ + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Kerberos.io +

Kerberos.io

+
+ +

{{tab1_title}}

+
+
+ +

{{tab2_title}}

+
+
+
+ + + + +
+ + + + + + + + +
+

Hey, {{user}}

+

You reached your daily limit ({{dataUsage}} GB)

+

{{text}}

+
+
+ + + + +
+ + + + + + + + +
+

We have disabled your account.

+

The daily limit of your account was reached ({{dataUsage}} GB), therefore we have disabled your account. This means that no new recordings will be uploaded to your Kerberos Hub agents until tomorrow. +Tomorrow your account will be reset, and recordings will be uploaded again to your Kerberos Hub account.

+

If you are hitting your daily limits a lot, you might consider upgrading your Kerberos Hub subscription, or fine-tune your Kerberos Agents so they record less recordings.

+ + +

Go to Kerberos Hub ->

+
+
+
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/disable.txt b/charts/hub/custom-layout/templates/disable.txt new file mode 100644 index 0000000..d23a7dd --- /dev/null +++ b/charts/hub/custom-layout/templates/disable.txt @@ -0,0 +1,22 @@ +Kerberos.io +------------ + +Hey, {{user}} +Welcome to Kerberos Hub +Activate your account -> +{{link}} + +Kerberos Hub in a nutshell +With Kerberos Hub you can access your surveillance media remotely. By subscribing to a plan, you get access to a set of features, from advanced filtering, notifications to machine learning. + +However before you get started this amazing applications, please activate your account. + +Get in touch +------------ +support@kerberos.io +9000 Ghent, BE +https://kerberos.io + +About Kerberos +------------ +Welcome to the revolutionary video analytics and video management platform. Open, modular, and extensible for everyone, anywhere. diff --git a/charts/hub/custom-layout/templates/forgot.html b/charts/hub/custom-layout/templates/forgot.html new file mode 100644 index 0000000..234aa2e --- /dev/null +++ b/charts/hub/custom-layout/templates/forgot.html @@ -0,0 +1,414 @@ + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Kerberos.io +

Kerberos.io

+
+ +

{{tab1_title}}

+
+
+ +

{{tab2_title}}

+
+
+
+ + + + +
+ + + + + + + + +
+

Hey, {{user}}

+

You forgot your Kerberos Hub password!

+ +

Your new password: {{password}}

+ +
+
+ + + + +
+ + + + + + + + +
+

We've created a new password for you

+

Someone, we hope it was you ({{ipaddress}}), requested a new password for your account "{{user}}". Therefore we've created a new password to access your account. + Your existing password can still be used, until you signed in with the password below. + Afterwards your original password is overwritten with the attached password.

+ + + + +
+
+ + + + + + + + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/forgot.txt b/charts/hub/custom-layout/templates/forgot.txt new file mode 100644 index 0000000..0704ab5 --- /dev/null +++ b/charts/hub/custom-layout/templates/forgot.txt @@ -0,0 +1,22 @@ +Kerberos.io +------------ + +Hey, {{user}} +Welcome to Kerberos Hub +Activate your account +{{link}} + +Kerberos Hub in a nutshell +With Kerberos Hub you can access your surveillance media remotely. By subscribing to a plan, you get access to a set of features, from advanced filtering, notifications to machine learning. + +However before you get started this amazing applications, please activate your account. + +Get in touch +------------ +support@kerberos.io +9000 Ghent, BE +https://kerberos.io + +About Kerberos +------------ +Welcome to the revolutionary video analytics and video management platform. Open, modular, and extensible for everyone, anywhere. diff --git a/charts/hub/custom-layout/templates/highupload.html b/charts/hub/custom-layout/templates/highupload.html new file mode 100644 index 0000000..db6f769 --- /dev/null +++ b/charts/hub/custom-layout/templates/highupload.html @@ -0,0 +1,418 @@ + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Kerberos.io +

Kerberos.io

+
+ +

{{tab1_title}}

+
+
+ +

{{tab2_title}}

+
+
+
+ + + + +
+ + + + + + + + +
+

Hey, {{user}}

+

High upload detected by one or more Kerberos Agents

+
+
+ + + + +
+ + + + + + + + +
+

Your high upload alert reached its threshold!

+

You receive this alert as a lot of recordings have been uploaded during the last x minutes. This alert might indicate something is happening unusual, please have a look. +If you believe this is a false positive go to the alerts section of your Kerberos Hub account and update the setting accordingly.

+ + + +

Go to Kerberos Hub ->

+
+
+
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/highupload.txt b/charts/hub/custom-layout/templates/highupload.txt new file mode 100644 index 0000000..d23a7dd --- /dev/null +++ b/charts/hub/custom-layout/templates/highupload.txt @@ -0,0 +1,22 @@ +Kerberos.io +------------ + +Hey, {{user}} +Welcome to Kerberos Hub +Activate your account -> +{{link}} + +Kerberos Hub in a nutshell +With Kerberos Hub you can access your surveillance media remotely. By subscribing to a plan, you get access to a set of features, from advanced filtering, notifications to machine learning. + +However before you get started this amazing applications, please activate your account. + +Get in touch +------------ +support@kerberos.io +9000 Ghent, BE +https://kerberos.io + +About Kerberos +------------ +Welcome to the revolutionary video analytics and video management platform. Open, modular, and extensible for everyone, anywhere. diff --git a/charts/hub/custom-layout/templates/newip.html b/charts/hub/custom-layout/templates/newip.html new file mode 100644 index 0000000..f76a392 --- /dev/null +++ b/charts/hub/custom-layout/templates/newip.html @@ -0,0 +1,416 @@ + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Kerberos.io +

Kerberos.io

+
+ +

{{tab1_title}}

+
+
+ +

{{tab2_title}}

+
+
+
+ + + + +
+ + + + + + + + +
+

Hey, {{user}}

+

A new device/location detected

+
+
+ + + + +
+ + + + + + + + +
+

A new login detected

+

Someone, we hope it was you ({{ipaddress}}), signed in to your account. If this was not you, please go to Kerberos Hub and change your password ASAP.

+ + +

Change your password ->

+
+
+
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/newip.txt b/charts/hub/custom-layout/templates/newip.txt new file mode 100644 index 0000000..d23a7dd --- /dev/null +++ b/charts/hub/custom-layout/templates/newip.txt @@ -0,0 +1,22 @@ +Kerberos.io +------------ + +Hey, {{user}} +Welcome to Kerberos Hub +Activate your account -> +{{link}} + +Kerberos Hub in a nutshell +With Kerberos Hub you can access your surveillance media remotely. By subscribing to a plan, you get access to a set of features, from advanced filtering, notifications to machine learning. + +However before you get started this amazing applications, please activate your account. + +Get in touch +------------ +support@kerberos.io +9000 Ghent, BE +https://kerberos.io + +About Kerberos +------------ +Welcome to the revolutionary video analytics and video management platform. Open, modular, and extensible for everyone, anywhere. diff --git a/charts/hub/custom-layout/templates/share.html b/charts/hub/custom-layout/templates/share.html new file mode 100644 index 0000000..232e44b --- /dev/null +++ b/charts/hub/custom-layout/templates/share.html @@ -0,0 +1,418 @@ + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Kerberos.io +

Kerberos.io

+
+ +

{{tab1_title}}

+
+
+ +

{{tab2_title}}

+
+
+
+ + + + +
+ + + + + + + + +
+

We've something interesting for you

+

You received a recording from {{user}}

+
+
+ + + + +
+ + + + + + + + +
+

{{title}}

+

{{body}}

+ + + +

Watch recording ->

+
+
+
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/share.txt b/charts/hub/custom-layout/templates/share.txt new file mode 100644 index 0000000..75a8923 --- /dev/null +++ b/charts/hub/custom-layout/templates/share.txt @@ -0,0 +1,19 @@ +Kerberos.io +------------ + +We've something interesting for you +You received a recording from {{user}} + +{{title}} +{{body}} +{{url}} + +Get in touch +------------ +support@kerberos.io +9000 Ghent, BE +https://kerberos.io + +About Kerberos +------------ +Welcome to the revolutionary video analytics and video management platform. Open, modular, and extensible for everyone, anywhere. diff --git a/charts/hub/custom-layout/templates/welcome.html b/charts/hub/custom-layout/templates/welcome.html new file mode 100644 index 0000000..39692f3 --- /dev/null +++ b/charts/hub/custom-layout/templates/welcome.html @@ -0,0 +1,423 @@ + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Kerberos.io +

Kerberos.io

+
+ +

{{tab1_title}}

+
+
+ +

{{tab2_title}}

+
+
+
+ + + + +
+ + + + + + + + +
+

Hey, {{user}}

+

Welcome to Kerberos Hub

+ +

Activate your account ->

+
+
+
+ + + + +
+ + + + + + + + +
+

Kerberos Hub in a nutshell

+

With Kerberos Hub you can access your surveillance media remotely. By subscribing to a plan, you get access to a set of features, from advanced filtering, notifications to machine learning.

+

However before you get started this amazing applications, please activate your acount.

+
+
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file diff --git a/charts/hub/custom-layout/templates/welcome.txt b/charts/hub/custom-layout/templates/welcome.txt new file mode 100644 index 0000000..d23a7dd --- /dev/null +++ b/charts/hub/custom-layout/templates/welcome.txt @@ -0,0 +1,22 @@ +Kerberos.io +------------ + +Hey, {{user}} +Welcome to Kerberos Hub +Activate your account -> +{{link}} + +Kerberos Hub in a nutshell +With Kerberos Hub you can access your surveillance media remotely. By subscribing to a plan, you get access to a set of features, from advanced filtering, notifications to machine learning. + +However before you get started this amazing applications, please activate your account. + +Get in touch +------------ +support@kerberos.io +9000 Ghent, BE +https://kerberos.io + +About Kerberos +------------ +Welcome to the revolutionary video analytics and video management platform. Open, modular, and extensible for everyone, anywhere. diff --git a/charts/hub/hub-dashboard.png b/charts/hub/hub-dashboard.png new file mode 100644 index 0000000..5f92c59 Binary files /dev/null and b/charts/hub/hub-dashboard.png differ diff --git a/charts/hub/images/TURN-STUN-Architecture.png b/charts/hub/images/TURN-STUN-Architecture.png new file mode 100644 index 0000000..69a90c2 Binary files /dev/null and b/charts/hub/images/TURN-STUN-Architecture.png differ diff --git a/charts/hub/images/turn-stun.svg b/charts/hub/images/turn-stun.svg new file mode 100644 index 0000000..cb76aac --- /dev/null +++ b/charts/hub/images/turn-stun.svg @@ -0,0 +1,763 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/charts/hub/index.yaml b/charts/hub/index.yaml new file mode 100644 index 0000000..8b426c4 --- /dev/null +++ b/charts/hub/index.yaml @@ -0,0 +1,295 @@ +apiVersion: v1 +entries: + hub: + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.577405+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 3ae8dd5a559db513798a6c83f4a6281a5ec6e83d3aec15457802aa120066e586 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.28.0.tgz + version: 0.28.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.566802+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: c76b60f3c27fa8f999c3bcee9f3f0e6e37becd2f27fba4f0db6f5e2d7c69696a + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.27.0.tgz + version: 0.27.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.560598+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 27cb573ba61c7ae5b57c0925ffca80e3c2adfff71dfe22948022079a2d5096c8 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.26.0.tgz + version: 0.26.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.552104+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 999455248912bf3eae48698977baf636e5a7b03010c858ab8e37cda6ee04af18 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.25.0.tgz + version: 0.25.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.547365+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: e7a1c03521315d3e4da2364e4ec508c878e86471a42f5221af8a9d26591700ef + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.24.0.tgz + version: 0.24.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.545091+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 606e9581f51c25677261e0ec902bca2ae485c1c07f5bc6d5363061880df37983 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.23.0.tgz + version: 0.23.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.542891+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 1f1a77864387a75e244d5cf4f02c8199e19d261451c85e3a62c48e2d9a8a2acc + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.22.0.tgz + version: 0.22.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.540301+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: e2253cdd86f12c6c0a55eb24d3188cf1f50eea57e4a98b01aed655f4f81473f1 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.21.0.tgz + version: 0.21.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.536133+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: e5d9499c7917f6cf7ec8850e08fcef6cf5d173eaaf6893795cd9a89fef31a696 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.20.0.tgz + version: 0.20.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.532723+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: b70cadd86f5c10a6584f195a01b1b181988a2c80f6ae845b672a03ff233be5e8 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.19.0.tgz + version: 0.19.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.530582+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 7b32cce6f1595f2ada0f5432770a2da69f281a9b29a4ac8e39246c14589ed773 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.18.0.tgz + version: 0.18.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.527987+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: f1fafbbc42cf04d28deb7c558e122b41e07bcb49c1df3dae7edc0a37899fb8e3 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.17.0.tgz + version: 0.17.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.52193+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: d6cd3e38b95ca42cc45b35817675f80aff35dffc4bace40283c0df3b662f68cf + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.16.0.tgz + version: 0.16.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.519746+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 06d88058b59d9ce2205f75cfb74cf192e5bf0f8a9bc17be5083b2425a3088052 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.15.0.tgz + version: 0.15.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.516929+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: b0902499486b9e14b8e64140dea5fdc9274c16213bd3d68ea94d019389579b6d + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.14.0.tgz + version: 0.14.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.514981+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 6f4148cdc23971f3b88c86d9fd61edac51ee9a247973fa0405a4cf21014d8f72 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.13.0.tgz + version: 0.13.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.512409+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: bb49c71afdf588c2af043ed27de3aa5734505d622d49738d17abdd4dc09af52f + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.12.0.tgz + version: 0.12.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.50976+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: f85ea65e54a4675ac2996922439a8cd7d7032463e53fa935c64bb4f04b71275e + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.11.0.tgz + version: 0.11.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.50709+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: c3711024037c69fee0c339a48a040cc2e0eb27c8be250abe4446b1c245df5792 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.10.0.tgz + version: 0.10.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.594121+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: cd4a27684ea80454980dd00ebc2d98e2f2f089b554e65149959868a082cfed88 + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.9.0.tgz + version: 0.9.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.586147+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 8f692eff8260a23f89d1a5c7cb376a961df19ec0028b3f1daf1d83ad47d0495c + icon: https://doc.kerberos.io/images/kerberos-logo.svg + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.8.0.tgz + version: 0.8.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.584762+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 6f72cc0eb7936c66150334edae9d1e584abbdf089d8e3eb997b53a505767cec2 + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.7.0.tgz + version: 0.7.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.583291+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: e6ce82c275e8aeed68a6e082c117a483dbb2bf3463198b2775f0ad6473eb50f7 + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.6.0.tgz + version: 0.6.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.581902+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 459f44c587b0aed5ac8eb84f84f9c644ad20af90afc2fb72541e9bf1796b7cfd + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.5.0.tgz + version: 0.5.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.580472+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 5640f69ccc78c0747115817bd14f5eccc50f3947e74ebac9912a2a5c9681b62e + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.4.0.tgz + version: 0.4.0 + - apiVersion: v2 + appVersion: 3.0.0 + created: "2022-06-07T07:42:09.578943+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: f2140854495a1868277b314da1bab279ed4928bf84b71ac9e28eb14cc043f488 + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.3.0.tgz + version: 0.3.0 + - apiVersion: v2 + appVersion: 1.0.0 + created: "2022-06-07T07:42:09.534131+02:00" + description: A Helm chart for install Kerberos Hub in Kubernetes + digest: 9c4712f9ab4eaa5964f97e5ea8d47d2232c99a7ff9f045e149be2760e993458b + name: hub + type: application + urls: + - https://kerberos-io.github.io/hub/hub-0.2.0.tgz + version: 0.2.0 +generated: "2022-06-07T07:42:09.501521+02:00" diff --git a/charts/hub/kafka/values.yaml b/charts/hub/kafka/values.yaml new file mode 100644 index 0000000..1fba928 --- /dev/null +++ b/charts/hub/kafka/values.yaml @@ -0,0 +1,1622 @@ +## @section Global parameters +## 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, imagePullSecrets and storageClass + +## @param global.imageRegistry Global Docker image registry +## @param global.imagePullSecrets Global Docker registry secret names as an array +## @param global.storageClass Global StorageClass for Persistent Volume(s) +## +global: + imageRegistry: "" + ## E.g. + ## imagePullSecrets: + ## - myRegistryKeySecretName + ## + imagePullSecrets: [] + storageClass: "" + +## @section Common parameters + +## @param kubeVersion Override Kubernetes version +## +kubeVersion: "" +## @param nameOverride String to partially override common.names.fullname +## +nameOverride: "" +## @param fullnameOverride String to fully override common.names.fullname +## +fullnameOverride: "" +## @param clusterDomain Default Kubernetes cluster domain +## +clusterDomain: cluster.local +## @param commonLabels Labels to add to all deployed objects +## +commonLabels: {} +## @param commonAnnotations Annotations to add to all deployed objects +## +commonAnnotations: {} +## @param extraDeploy Array of extra objects to deploy with the release +## +extraDeploy: [] +## Enable diagnostic mode in the statefulset +## +diagnosticMode: + ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden) + ## + enabled: false + ## @param diagnosticMode.command Command to override all containers in the statefulset + ## + command: + - sleep + ## @param diagnosticMode.args Args to override all containers in the statefulset + ## + args: + - infinity + +## @section Kafka parameters + +## Bitnami Kafka image version +## ref: https://hub.docker.com/r/bitnami/kafka/tags/ +## @param image.registry Kafka image registry +## @param image.repository Kafka image repository +## @param image.tag Kafka image tag (immutable tags are recommended) +## @param image.pullPolicy Kafka image pull policy +## @param image.pullSecrets Specify docker-registry secret names as an array +## @param image.debug Specify if debug values should be set +## +image: + registry: docker.io + repository: bitnami/kafka + tag: 3.1.0-debian-10-r89 + ## Specify a imagePullPolicy + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + ## ref: https://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/ + ## e.g: + ## pullSecrets: + ## - myRegistryKeySecretName + ## + pullSecrets: [] + ## Set to true if you would like to see extra information on logs + ## + debug: false +## @param config Configuration file for Kafka. Auto-generated based on other parameters when not specified +## Specify content for server.properties +## NOTE: This will override any KAFKA_CFG_ environment variables (including those set by the chart) +## The server.properties is auto-generated based on other parameters when this parameter is not specified +## e.g: +## config: |- +## broker.id=-1 +## listeners=PLAINTEXT://:9092 +## advertised.listeners=PLAINTEXT://KAFKA_IP:9092 +## num.network.threads=3 +## num.io.threads=8 +## socket.send.buffer.bytes=102400 +## socket.receive.buffer.bytes=102400 +## socket.request.max.bytes=104857600 +## log.dirs=/bitnami/kafka/data +## num.partitions=1 +## num.recovery.threads.per.data.dir=1 +## offsets.topic.replication.factor=1 +## transaction.state.log.replication.factor=1 +## transaction.state.log.min.isr=1 +## log.flush.interval.messages=10000 +## log.flush.interval.ms=1000 +## log.retention.hours=168 +## log.retention.bytes=1073741824 +## log.segment.bytes=1073741824 +## log.retention.check.interval.ms=300000 +## zookeeper.connect=ZOOKEEPER_SERVICE_NAME +## zookeeper.connection.timeout.ms=6000 +## group.initial.rebalance.delay.ms=0 +## +config: "" +## @param existingConfigmap ConfigMap with Kafka Configuration +## NOTE: This will override `config` AND any KAFKA_CFG_ environment variables +## +existingConfigmap: "" +## @param log4j An optional log4j.properties file to overwrite the default of the Kafka brokers +## An optional log4j.properties file to overwrite the default of the Kafka brokers +## ref: https://github.com/apache/kafka/blob/trunk/config/log4j.properties +## +log4j: "" +## @param existingLog4jConfigMap The name of an existing ConfigMap containing a log4j.properties file +## The name of an existing ConfigMap containing a log4j.properties file +## NOTE: this will override `log4j` +## +existingLog4jConfigMap: "" +## @param heapOpts Kafka Java Heap size +## +heapOpts: -Xmx1024m -Xms1024m +## @param deleteTopicEnable Switch to enable topic deletion or not +## +deleteTopicEnable: true +## @param autoCreateTopicsEnable Switch to enable auto creation of topics. Enabling auto creation of topics not recommended for production or similar environments +## +autoCreateTopicsEnable: true +## @param logFlushIntervalMessages The number of messages to accept before forcing a flush of data to disk +## +logFlushIntervalMessages: _10000 +## @param logFlushIntervalMs The maximum amount of time a message can sit in a log before we force a flush +## +logFlushIntervalMs: 1000 +## @param logRetentionBytes A size-based retention policy for logs +## +logRetentionBytes: _1073741824 +## @param logRetentionCheckIntervalMs The interval at which log segments are checked to see if they can be deleted +## +logRetentionCheckIntervalMs: 300000 +## @param logRetentionHours The minimum age of a log file to be eligible for deletion due to age +## +logRetentionHours: 168 +## @param logSegmentBytes The maximum size of a log segment file. When this size is reached a new log segment will be created +## +logSegmentBytes: _1073741824 +## @param logsDirs A comma separated list of directories under which to store log files +## +logsDirs: /bitnami/kafka/data +## @param maxMessageBytes The largest record batch size allowed by Kafka +## +maxMessageBytes: _1000012 +## @param defaultReplicationFactor Default replication factors for automatically created topics +## +defaultReplicationFactor: 1 +## @param offsetsTopicReplicationFactor The replication factor for the offsets topic +## +offsetsTopicReplicationFactor: 1 +## @param transactionStateLogReplicationFactor The replication factor for the transaction topic +## +transactionStateLogReplicationFactor: 1 +## @param transactionStateLogMinIsr Overridden min.insync.replicas config for the transaction topic +## +transactionStateLogMinIsr: 1 +## @param numIoThreads The number of threads doing disk I/O +## +numIoThreads: 8 +## @param numNetworkThreads The number of threads handling network requests +## +numNetworkThreads: 3 +## @param numPartitions The default number of log partitions per topic +## +numPartitions: 3 +## @param numRecoveryThreadsPerDataDir The number of threads per data directory to be used for log recovery at startup and flushing at shutdown +## +numRecoveryThreadsPerDataDir: 1 +## @param socketReceiveBufferBytes The receive buffer (SO_RCVBUF) used by the socket server +## +socketReceiveBufferBytes: 102400 +## @param socketRequestMaxBytes The maximum size of a request that the socket server will accept (protection against OOM) +## +socketRequestMaxBytes: _104857600 +## @param socketSendBufferBytes The send buffer (SO_SNDBUF) used by the socket server +## +socketSendBufferBytes: 102400 +## @param zookeeperConnectionTimeoutMs Timeout in ms for connecting to ZooKeeper +## +zookeeperConnectionTimeoutMs: 6000 +## @param zookeeperChrootPath Path which puts data under some path in the global ZooKeeper namespace +## ref: https://kafka.apache.org/documentation/#brokerconfigs_zookeeper.connect +## +zookeeperChrootPath: "" +## @param authorizerClassName The Authorizer is configured by setting authorizer.class.name=kafka.security.authorizer.AclAuthorizer in server.properties +## +authorizerClassName: "" +## @param allowEveryoneIfNoAclFound By default, if a resource has no associated ACLs, then no one is allowed to access that resource except super users +## +allowEveryoneIfNoAclFound: true +## @param superUsers You can add super users in server.properties +## +superUsers: User:admin +## Authentication parameters +## https://github.com/bitnami/bitnami-docker-kafka#security +## +auth: + ## Authentication protocol for client and inter-broker communications + ## This table shows the security provided on each protocol: + ## | Method | Authentication | Encryption via TLS | + ## | plaintext | None | No | + ## | tls | None | Yes | + ## | mtls | Yes (two-way authentication) | Yes | + ## | sasl | Yes (via SASL) | No | + ## | sasl_tls | Yes (via SASL) | Yes | + ## @param auth.clientProtocol Authentication protocol for communications with clients. Allowed protocols: `plaintext`, `tls`, `mtls`, `sasl` and `sasl_tls` + ## @param auth.externalClientProtocol Authentication protocol for communications with external clients. Defaults to value of `auth.clientProtocol`. Allowed protocols: `plaintext`, `tls`, `mtls`, `sasl` and `sasl_tls` + ## @param auth.interBrokerProtocol Authentication protocol for inter-broker communications. Allowed protocols: `plaintext`, `tls`, `mtls`, `sasl` and `sasl_tls` + ## + clientProtocol: sasl + # Note: empty by default for backwards compatibility reasons, find more information at + # https://github.com/bitnami/charts/pull/8902/ + externalClientProtocol: "sasl" + interBrokerProtocol: sasl + ## SASL configuration + ## + sasl: + ## @param auth.sasl.mechanisms SASL mechanisms when either `auth.interBrokerProtocol`, `auth.clientProtocol` or `auth.externalClientProtocol` are `sasl`. Allowed types: `plain`, `scram-sha-256`, `scram-sha-512` + ## + mechanisms: plain,scram-sha-256,scram-sha-512 + ## @param auth.sasl.interBrokerMechanism SASL mechanism for inter broker communication. + ## + interBrokerMechanism: plain + ## JAAS configuration for SASL authentication. + ## + jaas: + ## @param auth.sasl.jaas.clientUsers Kafka client user list + ## + ## clientUsers: + ## - user1 + ## - user2 + ## + clientUsers: + - Yourusername + ## @param auth.sasl.jaas.clientPasswords Kafka client passwords. This is mandatory if more than one user is specified in clientUsers + ## + ## clientPasswords: + ## - password1 + ## - password2" + ## + clientPasswords: + - Yourpassword + ## @param auth.sasl.jaas.interBrokerUser Kafka inter broker communication user for SASL authentication + ## + interBrokerUser: admin + ## @param auth.sasl.jaas.interBrokerPassword Kafka inter broker communication password for SASL authentication + ## + interBrokerPassword: "" + ## @param auth.sasl.jaas.zookeeperUser Kafka ZooKeeper user for SASL authentication + ## + zookeeperUser: "Yourusername" + ## @param auth.sasl.jaas.zookeeperPassword Kafka ZooKeeper password for SASL authentication + ## + zookeeperPassword: "Yourpassword" + ## @param auth.sasl.jaas.existingSecret Name of the existing secret containing credentials for clientUsers, interBrokerUser and zookeeperUser + ## Create this secret running the command below where SECRET_NAME is the name of the secret you want to create: + ## kubectl create secret generic SECRET_NAME --from-literal=client-passwords=CLIENT_PASSWORD1,CLIENT_PASSWORD2 --from-literal=inter-broker-password=INTER_BROKER_PASSWORD --from-literal=zookeeper-password=ZOOKEEPER_PASSWORD + ## + existingSecret: "" + ## TLS configuration + ## + tls: + ## @param auth.tls.type Format to use for TLS certificates. Allowed types: `jks` and `pem` + ## + type: jks + ## @param auth.tls.pemChainIncluded Flag to denote that the Certificate Authority (CA) certificates are bundled with the endpoint cert. + ## Certificates must be in proper order, where the top certificate is the leaf and the bottom certificate is the top-most intermediate CA. + ## + pemChainIncluded: false + ## @param auth.tls.existingSecrets Array existing secrets containing the TLS certificates for the Kafka brokers + ## When using 'jks' format for certificates, each secret should contain a truststore and a keystore. + ## Create these secrets following the steps below: + ## 1) Generate your truststore and keystore files. Helpful script: https://raw.githubusercontent.com/confluentinc/confluent-platform-security-tools/master/kafka-generate-ssl.sh + ## 2) Rename your truststore to `kafka.truststore.jks`. + ## 3) Rename your keystores to `kafka-X.keystore.jks` where X is the ID of each Kafka broker. + ## 4) Run the command below one time per broker to create its associated secret (SECRET_NAME_X is the name of the secret you want to create): + ## kubectl create secret generic SECRET_NAME_0 --from-file=kafka.truststore.jks=./kafka.truststore.jks --from-file=kafka.keystore.jks=./kafka-0.keystore.jks + ## kubectl create secret generic SECRET_NAME_1 --from-file=kafka.truststore.jks=./kafka.truststore.jks --from-file=kafka.keystore.jks=./kafka-1.keystore.jks + ## ... + ## + ## When using 'pem' format for certificates, each secret should contain a public CA certificate, a public certificate and one private key. + ## Create these secrets following the steps below: + ## 1) Create a certificate key and signing request per Kafka broker, and sign the signing request with your CA + ## 2) Rename your CA file to `kafka.ca.crt`. + ## 3) Rename your certificates to `kafka-X.tls.crt` where X is the ID of each Kafka broker. + ## 3) Rename your keys to `kafka-X.tls.key` where X is the ID of each Kafka broker. + ## 4) Run the command below one time per broker to create its associated secret (SECRET_NAME_X is the name of the secret you want to create): + ## kubectl create secret generic SECRET_NAME_0 --from-file=ca.crt=./kafka.ca.crt --from-file=tls.crt=./kafka-0.tls.crt --from-file=tls.key=./kafka-0.tls.key + ## kubectl create secret generic SECRET_NAME_1 --from-file=ca.crt=./kafka.ca.crt --from-file=tls.crt=./kafka-1.tls.crt --from-file=tls.key=./kafka-1.tls.key + ## ... + ## + existingSecrets: [] + ## @param auth.tls.autoGenerated Generate automatically self-signed TLS certificates for Kafka brokers. Currently only supported if `auth.tls.type` is `pem` + ## Note: ignored when using 'jks' format or `auth.tls.existingSecrets` is not empty + ## + autoGenerated: false + ## @param auth.tls.password Password to access the JKS files or PEM key when they are password-protected. + ## Note: ignored when using 'existingSecret'. + ## + password: "" + ## @param auth.tls.existingSecret Name of the secret containing the password to access the JKS files or PEM key when they are password-protected. (`key`: `password`) + ## + existingSecret: "" + ## @param auth.tls.jksTruststoreSecret Name of the existing secret containing your truststore if truststore not existing or different from the ones in the `auth.tls.existingSecrets` + ## Note: ignored when using 'pem' format for certificates. + ## + jksTruststoreSecret: "" + ## @param auth.tls.jksKeystoreSAN The secret key from the `auth.tls.existingSecrets` containing the keystore with a SAN certificate + ## The SAN certificate in it should be issued with Subject Alternative Names for all headless services: + ## - kafka-0.kafka-headless.kafka.svc.cluster.local + ## - kafka-1.kafka-headless.kafka.svc.cluster.local + ## - kafka-2.kafka-headless.kafka.svc.cluster.local + ## Note: ignored when using 'pem' format for certificates. + ## + jksKeystoreSAN: "" + ## @param auth.tls.jksTruststore The secret key from the `auth.tls.existingSecrets` or `auth.tls.jksTruststoreSecret` containing the truststore + ## Note: ignored when using 'pem' format for certificates. + ## + jksTruststore: "" + ## @param auth.tls.endpointIdentificationAlgorithm The endpoint identification algorithm to validate server hostname using server certificate + ## Disable server host name verification by setting it to an empty string. + ## ref: https://docs.confluent.io/current/kafka/authentication_ssl.html#optional-settings + ## + endpointIdentificationAlgorithm: https +## @param listeners The address(es) the socket server listens on. Auto-calculated it's set to an empty array +## When it's set to an empty array, the listeners will be configured +## based on the authentication protocols (auth.clientProtocol, auth.externalClientProtocol and auth.interBrokerProtocol parameters) +## +listeners: [] +## @param advertisedListeners The address(es) (hostname:port) the broker will advertise to producers and consumers. Auto-calculated it's set to an empty array +## When it's set to an empty array, the advertised listeners will be configured +## based on the authentication protocols (auth.clientProtocol, auth.externalClientProtocol and auth.interBrokerProtocol parameters) +## +advertisedListeners: [] +## @param listenerSecurityProtocolMap The protocol->listener mapping. Auto-calculated it's set to nil +## When it's nil, the listeners will be configured based on the authentication protocols (auth.clientProtocol, auth.externalClientProtocol and auth.interBrokerProtocol parameters) +## +listenerSecurityProtocolMap: "" +## @param allowPlaintextListener Allow to use the PLAINTEXT listener +## +allowPlaintextListener: true +## @param interBrokerListenerName The listener that the brokers should communicate on +## +interBrokerListenerName: INTERNAL +## @param command Override Kafka container command +## +command: + - /scripts/setup.sh +## @param args Override Kafka container arguments +## +args: [] +## @param extraEnvVars Extra environment variables to add to Kafka pods +## ref: https://github.com/bitnami/bitnami-docker-kafka#configuration +## e.g: +## extraEnvVars: +## - name: KAFKA_CFG_BACKGROUND_THREADS +## value: "10" +## +extraEnvVars: [] +## @param extraEnvVarsCM ConfigMap with extra environment variables +## +extraEnvVarsCM: "" +## @param extraEnvVarsSecret Secret with extra environment variables +## +extraEnvVarsSecret: "" + +## @section Statefulset parameters + +## @param replicaCount Number of Kafka nodes +## +replicaCount: 2 +## @param minBrokerId Minimal broker.id value, nodes increment their `broker.id` respectively +## Brokers increment their ID starting at this minimal value. +## E.g., with `minBrokerId=100` and 3 nodes, IDs will be 100, 101, 102 for brokers 0, 1, and 2, respectively. +## +minBrokerId: 0 +## @param containerPorts.client Kafka client container port +## @param containerPorts.internal Kafka inter-broker container port +## @param containerPorts.external Kafka external container port +## +containerPorts: + client: 9092 + internal: 9093 + external: 9094 +## Configure extra options for Kafka containers' liveness, readiness and startup probes +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes +## @param livenessProbe.enabled Enable livenessProbe on Kafka containers +## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe +## @param livenessProbe.periodSeconds Period seconds for livenessProbe +## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe +## @param livenessProbe.failureThreshold Failure threshold for livenessProbe +## @param livenessProbe.successThreshold Success threshold for livenessProbe +## +livenessProbe: + enabled: true + initialDelaySeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 + periodSeconds: 10 + successThreshold: 1 +## @param readinessProbe.enabled Enable readinessProbe on Kafka containers +## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe +## @param readinessProbe.periodSeconds Period seconds for readinessProbe +## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe +## @param readinessProbe.failureThreshold Failure threshold for readinessProbe +## @param readinessProbe.successThreshold Success threshold for readinessProbe +## +readinessProbe: + enabled: true + initialDelaySeconds: 5 + failureThreshold: 6 + timeoutSeconds: 5 + periodSeconds: 10 + successThreshold: 1 +## @param startupProbe.enabled Enable startupProbe on Kafka containers +## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe +## @param startupProbe.periodSeconds Period seconds for startupProbe +## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe +## @param startupProbe.failureThreshold Failure threshold for startupProbe +## @param startupProbe.successThreshold Success threshold for startupProbe +## +startupProbe: + enabled: false + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 15 + successThreshold: 1 +## @param customLivenessProbe Custom livenessProbe that overrides the default one +## +customLivenessProbe: {} +## @param customReadinessProbe Custom readinessProbe that overrides the default one +## +customReadinessProbe: {} +## @param customStartupProbe Custom startupProbe that overrides the default one +## +customStartupProbe: {} +## @param lifecycleHooks lifecycleHooks for the Kafka container to automate configuration before or after startup +## +lifecycleHooks: {} +## Kafka resource requests and limits +## ref: https://kubernetes.io/docs/user-guide/compute-resources/ +## @param resources.limits The resources limits for the container +## @param resources.requests The requested resources for the container +## +resources: + limits: {} + requests: {} +## Kafka pods' Security Context +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod +## @param podSecurityContext.enabled Enable security context for the pods +## @param podSecurityContext.fsGroup Set Kafka pod's Security Context fsGroup +## +podSecurityContext: + enabled: true + fsGroup: 1001 +## Kafka containers' Security Context +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container +## @param containerSecurityContext.enabled Enable Kafka containers' Security Context +## @param containerSecurityContext.runAsUser Set Kafka containers' Security Context runAsUser +## @param containerSecurityContext.runAsNonRoot Set Kafka containers' Security Context runAsNonRoot +## e.g: +## containerSecurityContext: +## enabled: true +## capabilities: +## drop: ["NET_RAW"] +## readOnlyRootFilesystem: true +## +containerSecurityContext: + enabled: true + runAsUser: 1001 + runAsNonRoot: true +## @param hostAliases Kafka pods host aliases +## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ +## +hostAliases: [] +## @param hostNetwork Specify if host network should be enabled for Kafka pods +## +hostNetwork: false +## @param hostIPC Specify if host IPC should be enabled for Kafka pods +## +hostIPC: false +## @param podLabels Extra labels for Kafka pods +## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +## +podLabels: {} +## @param podAnnotations Extra annotations for Kafka pods +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` +## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity +## +podAffinityPreset: "" +## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` +## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity +## +podAntiAffinityPreset: soft +## Node affinity preset +## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity +## +nodeAffinityPreset: + ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` + ## + type: "" + ## @param nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set. + ## E.g. + ## key: "kubernetes.io/e2e-az-name" + ## + key: "" + ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set. + ## E.g. + ## values: + ## - e2e-az1 + ## - e2e-az2 + ## + values: [] +## @param affinity Affinity for pod assignment +## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity +## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set +## +affinity: {} +## @param nodeSelector Node labels for pod assignment +## Ref: https://kubernetes.io/docs/user-guide/node-selection/ +## +nodeSelector: {} +## @param tolerations Tolerations for pod assignment +## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +## +tolerations: [] +## @param topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template +## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods +## +topologySpreadConstraints: {} +## @param terminationGracePeriodSeconds Seconds the pod needs to gracefully terminate +## ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-execution +## +terminationGracePeriodSeconds: "" +## @param podManagementPolicy StatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: OrderedReady and Parallel +## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy +## +podManagementPolicy: Parallel +## @param priorityClassName Name of the existing priority class to be used by kafka pods +## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/ +## +priorityClassName: "" +## @param schedulerName Name of the k8s scheduler (other than default) +## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ +## +schedulerName: "" +## @param updateStrategy.type Kafka statefulset strategy type +## @param updateStrategy.rollingUpdate Kafka statefulset rolling update configuration parameters +## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies +## +updateStrategy: + type: RollingUpdate + rollingUpdate: {} +## @param extraVolumes Optionally specify extra list of additional volumes for the Kafka pod(s) +## e.g: +## extraVolumes: +## - name: kafka-jaas +## secret: +## secretName: kafka-jaas +## +extraVolumes: [] +## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Kafka container(s) +## extraVolumeMounts: +## - name: kafka-jaas +## mountPath: /bitnami/kafka/config/kafka_jaas.conf +## subPath: kafka_jaas.conf +## +extraVolumeMounts: [] +## @param sidecars Add additional sidecar containers to the Kafka pod(s) +## e.g: +## sidecars: +## - name: your-image-name +## image: your-image +## imagePullPolicy: Always +## ports: +## - name: portname +## containerPort: 1234 +## +sidecars: [] +## @param initContainers Add additional Add init containers to the Kafka pod(s) +## e.g: +## initContainers: +## - name: your-image-name +## image: your-image +## imagePullPolicy: Always +## ports: +## - name: portname +## containerPort: 1234 +## +initContainers: [] +## Kafka Pod Disruption Budget +## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/ +## @param pdb.create Deploy a pdb object for the Kafka pod +## @param pdb.minAvailable Maximum number/percentage of unavailable Kafka replicas +## @param pdb.maxUnavailable Maximum number/percentage of unavailable Kafka replicas +## +pdb: + create: false + minAvailable: "" + maxUnavailable: 1 + +## @section Traffic Exposure parameters + +## Service parameters +## +service: + ## @param service.type Kubernetes Service type + ## + type: ClusterIP + ## @param service.ports.client Kafka svc port for client connections + ## @param service.ports.internal Kafka svc port for inter-broker connections + ## @param service.ports.external Kafka svc port for external connections + ## + ports: + client: 9092 + internal: 9093 + external: 9094 + ## @param service.nodePorts.client Node port for the Kafka client connections + ## @param service.nodePorts.external Node port for the Kafka external connections + ## NOTE: choose port between <30000-32767> + ## + nodePorts: + client: "" + external: "" + ## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin + ## Values: ClientIP or None + ## ref: https://kubernetes.io/docs/user-guide/services/ + ## + sessionAffinity: None + ## @param service.clusterIP Kafka service Cluster IP + ## e.g.: + ## clusterIP: None + ## + clusterIP: "" + ## @param service.loadBalancerIP Kafka service Load Balancer IP + ## ref: https://kubernetes.io/docs/user-guide/services/#type-loadbalancer + ## + loadBalancerIP: "" + ## @param service.loadBalancerSourceRanges Kafka service Load Balancer sources + ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service + ## e.g: + ## loadBalancerSourceRanges: + ## - 10.10.10.0/24 + ## + loadBalancerSourceRanges: [] + ## @param service.externalTrafficPolicy Kafka service external traffic policy + ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster + ## @param service.annotations Additional custom annotations for Kafka service + ## + annotations: {} + ## @param service.extraPorts Extra ports to expose in the Kafka service (normally used with the `sidecar` value) + ## + extraPorts: [] +## External Access to Kafka brokers configuration +## +externalAccess: + ## @param externalAccess.enabled Enable Kubernetes external cluster access to Kafka brokers + ## + enabled: true + ## External IPs auto-discovery configuration + ## An init container is used to auto-detect LB IPs or node ports by querying the K8s API + ## Note: RBAC might be required + ## + autoDiscovery: + ## @param externalAccess.autoDiscovery.enabled Enable using an init container to auto-detect external IPs/ports by querying the K8s API + ## + enabled: true + ## Bitnami Kubectl image + ## ref: https://hub.docker.com/r/bitnami/kubectl/tags/ + ## @param externalAccess.autoDiscovery.image.registry Init container auto-discovery image registry + ## @param externalAccess.autoDiscovery.image.repository Init container auto-discovery image repository + ## @param externalAccess.autoDiscovery.image.tag Init container auto-discovery image tag (immutable tags are recommended) + ## @param externalAccess.autoDiscovery.image.pullPolicy Init container auto-discovery image pull policy + ## @param externalAccess.autoDiscovery.image.pullSecrets Init container auto-discovery image pull secrets + ## + image: + registry: docker.io + repository: bitnami/kubectl + tag: 1.23.6-debian-10-r4 + ## Specify a imagePullPolicy + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + ## ref: https://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/ + ## e.g: + ## pullSecrets: + ## - myRegistryKeySecretName + ## + pullSecrets: [] + ## Init Container resource requests and limits + ## ref: https://kubernetes.io/docs/user-guide/compute-resources/ + ## @param externalAccess.autoDiscovery.resources.limits The resources limits for the auto-discovery init container + ## @param externalAccess.autoDiscovery.resources.requests The requested resources for the auto-discovery init container + ## + resources: + limits: {} + requests: {} + ## Parameters to configure K8s service(s) used to externally access Kafka brokers + ## Note: A new service per broker will be created + ## + service: + ## @param externalAccess.service.type Kubernetes Service type for external access. It can be NodePort or LoadBalancer + ## + type: LoadBalancer + ## @param externalAccess.service.ports.external Kafka port used for external access when service type is LoadBalancer + ## + ports: + external: 9094 + ## @param externalAccess.service.loadBalancerIPs Array of load balancer IPs for each Kafka broker. Length must be the same as replicaCount + ## e.g: + ## loadBalancerIPs: + ## - X.X.X.X + ## - Y.Y.Y.Y + ## + loadBalancerIPs: [] + ## @param externalAccess.service.loadBalancerNames Array of load balancer Names for each Kafka broker. Length must be the same as replicaCount + ## e.g: + ## loadBalancerNames: + ## - broker1.external.example.com + ## - broker2.external.example.com + ## + loadBalancerNames: [] + ## @param externalAccess.service.loadBalancerAnnotations Array of load balancer annotations for each Kafka broker. Length must be the same as replicaCount + ## e.g: + ## loadBalancerAnnotations: + ## - external-dns.alpha.kubernetes.io/hostname: broker1.external.example.com. + ## - external-dns.alpha.kubernetes.io/hostname: broker2.external.example.com. + ## + loadBalancerAnnotations: [] + ## @param externalAccess.service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer + ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service + ## e.g: + ## loadBalancerSourceRanges: + ## - 10.10.10.0/24 + ## + loadBalancerSourceRanges: [] + ## @param externalAccess.service.nodePorts Array of node ports used for each Kafka broker. Length must be the same as replicaCount + ## e.g: + ## nodePorts: + ## - 30001 + ## - 30002 + ## + nodePorts: [] + ## @param externalAccess.service.useHostIPs Use service host IPs to configure Kafka external listener when service type is NodePort + ## + useHostIPs: false + ## @param externalAccess.service.usePodIPs using the MY_POD_IP address for external access. + ## + usePodIPs: false + ## @param externalAccess.service.domain Domain or external ip used to configure Kafka external listener when service type is NodePort + ## If not specified, the container will try to get the kubernetes node external IP + ## + domain: "" + ## @param externalAccess.service.annotations Service annotations for external access + ## + annotations: {} + ## @param externalAccess.service.extraPorts Extra ports to expose in the Kafka external service + ## + extraPorts: [] +## Network policies +## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/ +## +networkPolicy: + ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created + ## + enabled: false + ## @param networkPolicy.allowExternal Don't require client label for connections + ## When set to false, only pods with the correct client label will have network access to the port Kafka is + ## listening on. When true, zookeeper accept connections from any source (with the correct destination port). + ## + allowExternal: true + ## @param networkPolicy.explicitNamespacesSelector A Kubernetes LabelSelector to explicitly select namespaces from which traffic could be allowed + ## If explicitNamespacesSelector is missing or set to {}, only client Pods that are in the networkPolicy's namespace + ## and that match other criteria, the ones that have the good label, can reach the kafka. + ## But sometimes, we want the kafka to be accessible to clients from other namespaces, in this case, we can use this + ## LabelSelector to select these namespaces, note that the networkPolicy's namespace should also be explicitly added. + ## + ## e.g: + ## explicitNamespacesSelector: + ## matchLabels: + ## role: frontend + ## matchExpressions: + ## - {key: role, operator: In, values: [frontend]} + ## + explicitNamespacesSelector: {} + ## @param networkPolicy.externalAccess.from customize the from section for External Access on tcp-external port + ## e.g: + ## - ipBlock: + ## cidr: 172.9.0.0/16 + ## except: + ## - 172.9.1.0/24 + ## + externalAccess: + from: [] + ## @param networkPolicy.egressRules.customRules [object] Custom network policy rule + ## + egressRules: + ## Additional custom egress rules + ## e.g: + ## customRules: + ## - to: + ## - namespaceSelector: + ## matchLabels: + ## label: example + customRules: [] + +## @section Persistence parameters + +## Enable persistence using Persistent Volume Claims +## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/ +## +persistence: + ## @param persistence.enabled Enable Kafka data persistence using PVC, note that ZooKeeper persistence is unaffected + ## + enabled: true + ## @param persistence.existingClaim A manually managed Persistent Volume and Claim + ## If defined, PVC must be created manually before volume will be bound + ## The value is evaluated as a template + ## + existingClaim: "" + ## @param persistence.storageClass PVC Storage Class for Kafka data volume + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. + ## + storageClass: "" + ## @param persistence.accessModes Persistent Volume Access Modes + ## + accessModes: + - ReadWriteOnce + ## @param persistence.size PVC Storage Request for Kafka data volume + ## + size: 8Gi + ## @param persistence.annotations Annotations for the PVC + ## + annotations: {} + ## @param persistence.selector Selector to match an existing Persistent Volume for Kafka data PVC. If set, the PVC can't have a PV dynamically provisioned for it + ## selector: + ## matchLabels: + ## app: my-app + ## + selector: {} + ## @param persistence.mountPath Mount path of the Kafka data volume + ## + mountPath: /bitnami/kafka +## Log Persistence parameters +## +logPersistence: + ## @param logPersistence.enabled Enable Kafka logs persistence using PVC, note that ZooKeeper persistence is unaffected + ## + enabled: false + ## @param logPersistence.existingClaim A manually managed Persistent Volume and Claim + ## If defined, PVC must be created manually before volume will be bound + ## The value is evaluated as a template + ## + existingClaim: "" + ## @param logPersistence.storageClass PVC Storage Class for Kafka logs volume + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. + ## + storageClass: "" + ## @param logPersistence.accessModes Persistent Volume Access Modes + ## + accessModes: + - ReadWriteOnce + ## @param logPersistence.size PVC Storage Request for Kafka logs volume + ## + size: 8Gi + ## @param logPersistence.annotations Annotations for the PVC + ## + annotations: {} + ## @param logPersistence.selector Selector to match an existing Persistent Volume for Kafka log data PVC. If set, the PVC can't have a PV dynamically provisioned for it + ## selector: + ## matchLabels: + ## app: my-app + ## + selector: {} + ## @param logPersistence.mountPath Mount path of the Kafka logs volume + ## + mountPath: /opt/bitnami/kafka/logs + +## @section Volume Permissions parameters +## + +## Init containers parameters: +## volumePermissions: Change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each node +## +volumePermissions: + ## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume + ## + enabled: false + ## @param volumePermissions.image.registry Init container volume-permissions image registry + ## @param volumePermissions.image.repository Init container volume-permissions image repository + ## @param volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended) + ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy + ## @param volumePermissions.image.pullSecrets Init container volume-permissions image pull secrets + ## + image: + registry: docker.io + repository: bitnami/bitnami-shell + tag: 10-debian-10-r406 + 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/ + ## Example: + ## pullSecrets: + ## - myRegistryKeySecretName + ## + pullSecrets: [] + ## Init container resource requests and limits + ## ref: https://kubernetes.io/docs/user-guide/compute-resources/ + ## @param volumePermissions.resources.limits Init container volume-permissions resource limits + ## @param volumePermissions.resources.requests Init container volume-permissions resource requests + ## + resources: + limits: {} + requests: {} + ## Init container' Security Context + ## Note: the chown of the data folder is done to containerSecurityContext.runAsUser + ## and not the below volumePermissions.containerSecurityContext.runAsUser + ## @param volumePermissions.containerSecurityContext.runAsUser User ID for the init container + ## + containerSecurityContext: + runAsUser: 0 + +## @section Other Parameters + +## ServiceAccount for Kafka +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +## +serviceAccount: + ## @param serviceAccount.create Enable creation of ServiceAccount for Kafka pods + ## + create: true + ## @param serviceAccount.name The name of the service account to use. If not set and `create` is `true`, a name is generated + ## If not set and create is true, a name is generated using the kafka.serviceAccountName template + ## + name: "" + ## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created + ## Can be set to false if pods using this serviceAccount do not need to use K8s API + ## + automountServiceAccountToken: true + ## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount + ## + annotations: {} +## Role Based Access Control +## ref: https://kubernetes.io/docs/admin/authorization/rbac/ +## +rbac: + ## @param rbac.create Whether to create & use RBAC resources or not + ## binding Kafka ServiceAccount to a role + ## that allows Kafka pods querying the K8s API + ## + create: true + +## @section Metrics parameters + +## Prometheus Exporters / Metrics +## +metrics: + ## Prometheus Kafka exporter: exposes complimentary metrics to JMX exporter + ## + kafka: + ## @param metrics.kafka.enabled Whether or not to create a standalone Kafka exporter to expose Kafka metrics + ## + enabled: true + ## Bitnami Kafka exporter image + ## ref: https://hub.docker.com/r/bitnami/kafka-exporter/tags/ + ## @param metrics.kafka.image.registry Kafka exporter image registry + ## @param metrics.kafka.image.repository Kafka exporter image repository + ## @param metrics.kafka.image.tag Kafka exporter image tag (immutable tags are recommended) + ## @param metrics.kafka.image.pullPolicy Kafka exporter image pull policy + ## @param metrics.kafka.image.pullSecrets Specify docker-registry secret names as an array + ## + image: + registry: docker.io + repository: bitnami/kafka-exporter + tag: 1.4.2-debian-10-r215 + ## Specify a imagePullPolicy + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + ## ref: https://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/ + ## e.g: + ## pullSecrets: + ## - myRegistryKeySecretName + ## + pullSecrets: [] + + ## @param metrics.kafka.certificatesSecret Name of the existing secret containing the optional certificate and key files + ## for Kafka exporter client authentication + ## + certificatesSecret: "" + ## @param metrics.kafka.tlsCert The secret key from the certificatesSecret if 'client-cert' key different from the default (cert-file) + ## + tlsCert: cert-file + ## @param metrics.kafka.tlsKey The secret key from the certificatesSecret if 'client-key' key different from the default (key-file) + ## + tlsKey: key-file + ## @param metrics.kafka.tlsCaSecret Name of the existing secret containing the optional ca certificate for Kafka exporter client authentication + ## + tlsCaSecret: "" + ## @param metrics.kafka.tlsCaCert The secret key from the certificatesSecret or tlsCaSecret if 'ca-cert' key different from the default (ca-file) + ## + tlsCaCert: ca-file + ## @param metrics.kafka.extraFlags Extra flags to be passed to Kafka exporter + ## e.g: + ## extraFlags: + ## tls.insecure-skip-tls-verify: "" + ## web.telemetry-path: "/metrics" + ## + extraFlags: {} + ## @param metrics.kafka.command Override Kafka exporter container command + ## + command: [] + ## @param metrics.kafka.args Override Kafka exporter container arguments + ## + args: [] + ## @param metrics.kafka.containerPorts.metrics Kafka exporter metrics container port + ## + containerPorts: + metrics: 9308 + ## Kafka exporter resource requests and limits + ## ref: https://kubernetes.io/docs/user-guide/compute-resources/ + ## @param metrics.kafka.resources.limits The resources limits for the container + ## @param metrics.kafka.resources.requests The requested resources for the container + ## + resources: + limits: {} + requests: {} + ## Kafka exporter pods' Security Context + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod + ## @param metrics.kafka.podSecurityContext.enabled Enable security context for the pods + ## @param metrics.kafka.podSecurityContext.fsGroup Set Kafka exporter pod's Security Context fsGroup + ## + podSecurityContext: + enabled: true + fsGroup: 1001 + ## Kafka exporter containers' Security Context + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container + ## @param metrics.kafka.containerSecurityContext.enabled Enable Kafka exporter containers' Security Context + ## @param metrics.kafka.containerSecurityContext.runAsUser Set Kafka exporter containers' Security Context runAsUser + ## @param metrics.kafka.containerSecurityContext.runAsNonRoot Set Kafka exporter containers' Security Context runAsNonRoot + ## e.g: + ## containerSecurityContext: + ## enabled: true + ## capabilities: + ## drop: ["NET_RAW"] + ## readOnlyRootFilesystem: true + ## + containerSecurityContext: + enabled: true + runAsUser: 1001 + runAsNonRoot: true + ## @param metrics.kafka.hostAliases Kafka exporter pods host aliases + ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ + ## + hostAliases: [] + ## @param metrics.kafka.podLabels Extra labels for Kafka exporter pods + ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + ## + podLabels: {} + ## @param metrics.kafka.podAnnotations Extra annotations for Kafka exporter pods + ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + ## + podAnnotations: {} + ## @param metrics.kafka.podAffinityPreset Pod affinity preset. Ignored if `metrics.kafka.affinity` is set. Allowed values: `soft` or `hard` + ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity + ## + podAffinityPreset: "" + ## @param metrics.kafka.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `metrics.kafka.affinity` is set. Allowed values: `soft` or `hard` + ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity + ## + podAntiAffinityPreset: soft + ## Node metrics.kafka.affinity preset + ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity + ## + nodeAffinityPreset: + ## @param metrics.kafka.nodeAffinityPreset.type Node affinity preset type. Ignored if `metrics.kafka.affinity` is set. Allowed values: `soft` or `hard` + ## + type: "" + ## @param metrics.kafka.nodeAffinityPreset.key Node label key to match Ignored if `metrics.kafka.affinity` is set. + ## E.g. + ## key: "kubernetes.io/e2e-az-name" + ## + key: "" + ## @param metrics.kafka.nodeAffinityPreset.values Node label values to match. Ignored if `metrics.kafka.affinity` is set. + ## E.g. + ## values: + ## - e2e-az1 + ## - e2e-az2 + ## + values: [] + ## @param metrics.kafka.affinity Affinity for pod assignment + ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity + ## Note: metrics.kafka.podAffinityPreset, metrics.kafka.podAntiAffinityPreset, and metrics.kafka.nodeAffinityPreset will be ignored when it's set + ## + affinity: {} + ## @param metrics.kafka.nodeSelector Node labels for pod assignment + ## Ref: https://kubernetes.io/docs/user-guide/node-selection/ + ## + nodeSelector: {} + ## @param metrics.kafka.tolerations Tolerations for pod assignment + ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + ## + tolerations: [] + ## @param metrics.kafka.schedulerName Name of the k8s scheduler (other than default) for Kafka exporter + ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ + ## + schedulerName: "" + ## @param metrics.kafka.extraVolumes Optionally specify extra list of additional volumes for the Kafka exporter pod(s) + ## e.g: + ## extraVolumes: + ## - name: kafka-jaas + ## secret: + ## secretName: kafka-jaas + ## + extraVolumes: [] + ## @param metrics.kafka.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Kafka exporter container(s) + ## extraVolumeMounts: + ## - name: kafka-jaas + ## mountPath: /bitnami/kafka/config/kafka_jaas.conf + ## subPath: kafka_jaas.conf + ## + extraVolumeMounts: [] + ## @param metrics.kafka.sidecars Add additional sidecar containers to the Kafka exporter pod(s) + ## e.g: + ## sidecars: + ## - name: your-image-name + ## image: your-image + ## imagePullPolicy: Always + ## ports: + ## - name: portname + ## containerPort: 1234 + ## + sidecars: [] + ## @param metrics.kafka.initContainers Add init containers to the Kafka exporter pods + ## e.g: + ## initContainers: + ## - name: your-image-name + ## image: your-image + ## imagePullPolicy: Always + ## ports: + ## - name: portname + ## containerPort: 1234 + ## + initContainers: [] + ## Kafka exporter service configuration + ## + service: + ## @param metrics.kafka.service.ports.metrics Kafka exporter metrics service port + ## + ports: + metrics: 9308 + ## @param metrics.kafka.service.clusterIP Static clusterIP or None for headless services + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address + ## + clusterIP: "" + ## @param metrics.kafka.service.sessionAffinity Control where client requests go, to the same pod or round-robin + ## Values: ClientIP or None + ## ref: https://kubernetes.io/docs/user-guide/services/ + ## + sessionAffinity: None + ## @param metrics.kafka.service.annotations [object] Annotations for the Kafka exporter service + ## + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "{{ .Values.metrics.kafka.service.ports.metrics }}" + prometheus.io/path: "/metrics" + ## Kafka exporter pods ServiceAccount + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + ## + serviceAccount: + ## @param metrics.kafka.serviceAccount.create Enable creation of ServiceAccount for Kafka exporter pods + ## + create: true + ## @param metrics.kafka.serviceAccount.name The name of the service account to use. If not set and `create` is `true`, a name is generated + ## If not set and create is true, a name is generated using the kafka.metrics.kafka.serviceAccountName template + ## + name: "" + ## @param metrics.kafka.serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created + ## Can be set to false if pods using this serviceAccount do not need to use K8s API + ## + automountServiceAccountToken: true + ## Prometheus JMX exporter: exposes the majority of Kafkas metrics + ## + jmx: + ## @param metrics.jmx.enabled Whether or not to expose JMX metrics to Prometheus + ## + enabled: true + ## Bitnami JMX exporter image + ## ref: https://hub.docker.com/r/bitnami/jmx-exporter/tags/ + ## @param metrics.jmx.image.registry JMX exporter image registry + ## @param metrics.jmx.image.repository JMX exporter image repository + ## @param metrics.jmx.image.tag JMX exporter image tag (immutable tags are recommended) + ## @param metrics.jmx.image.pullPolicy JMX exporter image pull policy + ## @param metrics.jmx.image.pullSecrets Specify docker-registry secret names as an array + ## + image: + registry: docker.io + repository: bitnami/jmx-exporter + tag: 0.16.1-debian-10-r278 + ## Specify a imagePullPolicy + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + ## ref: https://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/ + ## e.g: + ## pullSecrets: + ## - myRegistryKeySecretName + ## + pullSecrets: [] + ## Prometheus JMX exporter containers' Security Context + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container + ## @param metrics.jmx.containerSecurityContext.enabled Enable Prometheus JMX exporter containers' Security Context + ## @param metrics.jmx.containerSecurityContext.runAsUser Set Prometheus JMX exporter containers' Security Context runAsUser + ## @param metrics.jmx.containerSecurityContext.runAsNonRoot Set Prometheus JMX exporter containers' Security Context runAsNonRoot + ## e.g: + ## containerSecurityContext: + ## enabled: true + ## capabilities: + ## drop: ["NET_RAW"] + ## readOnlyRootFilesystem: true + ## + containerSecurityContext: + enabled: true + runAsUser: 1001 + runAsNonRoot: true + ## @param metrics.jmx.containerPorts.metrics Prometheus JMX exporter metrics container port + ## + containerPorts: + metrics: 5556 + ## Prometheus JMX exporter resource requests and limits + ## ref: https://kubernetes.io/docs/user-guide/compute-resources/ + ## @param metrics.jmx.resources.limits The resources limits for the JMX exporter container + ## @param metrics.jmx.resources.requests The requested resources for the JMX exporter container + ## + resources: + limits: {} + requests: {} + ## Prometheus JMX exporter service configuration + ## + service: + ## @param metrics.jmx.service.ports.metrics Prometheus JMX exporter metrics service port + ## + ports: + metrics: 5556 + ## @param metrics.jmx.service.clusterIP Static clusterIP or None for headless services + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address + ## + clusterIP: "" + ## @param metrics.jmx.service.sessionAffinity Control where client requests go, to the same pod or round-robin + ## Values: ClientIP or None + ## ref: https://kubernetes.io/docs/user-guide/services/ + ## + sessionAffinity: None + ## @param metrics.jmx.service.annotations [object] Annotations for the Prometheus JMX exporter service + ## + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "{{ .Values.metrics.jmx.service.ports.metrics }}" + prometheus.io/path: "/" + ## @param metrics.jmx.whitelistObjectNames Allows setting which JMX objects you want to expose to via JMX stats to JMX exporter + ## Only whitelisted values will be exposed via JMX exporter. They must also be exposed via Rules. To expose all metrics + ## (warning its crazy excessive and they aren't formatted in a prometheus style) (1) `whitelistObjectNames: []` + ## (2) commented out above `overrideConfig`. + ## + whitelistObjectNames: + - kafka.controller:* + - kafka.server:* + - java.lang:* + - kafka.network:* + - kafka.log:* + ## @param metrics.jmx.config [string] Configuration file for JMX exporter + ## Specify content for jmx-kafka-prometheus.yml. Evaluated as a template + ## + ## Credits to the incubator/kafka chart for the JMX configuration. + ## https://github.com/helm/charts/tree/master/incubator/kafka + ## + config: |- + jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:5555/jmxrmi + lowercaseOutputName: true + lowercaseOutputLabelNames: true + ssl: false + {{- if .Values.metrics.jmx.whitelistObjectNames }} + whitelistObjectNames: ["{{ join "\",\"" .Values.metrics.jmx.whitelistObjectNames }}"] + {{- end }} + ## @param metrics.jmx.existingConfigmap Name of existing ConfigMap with JMX exporter configuration + ## NOTE: This will override metrics.jmx.config + ## + existingConfigmap: "" + ## Prometheus Operator ServiceMonitor configuration + ## + serviceMonitor: + ## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (requires `metrics.kafka.enabled` or `metrics.jmx.enabled` to be `true`) + ## + enabled: true + ## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running + ## + namespace: "" + ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint + ## + interval: "" + ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint + ## + scrapeTimeout: "" + ## @param metrics.serviceMonitor.labels Additional labels that can be used so ServiceMonitor will be discovered by Prometheus + ## + labels: {} + ## @param metrics.serviceMonitor.selector Prometheus instance selector labels + ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration + ## + selector: {} + ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping + ## + relabelings: [] + ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion + ## + metricRelabelings: [] + ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint + ## + honorLabels: false + ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus. + ## + jobLabel: "" + +## @section Kafka provisioning parameters + +## Kafka provisioning +## +provisioning: + ## @param provisioning.enabled Enable kafka provisioning Job + ## + enabled: false + ## @param provisioning.numPartitions Default number of partitions for topics when unspecified + ## + numPartitions: 1 + ## @param provisioning.replicationFactor Default replication factor for topics when unspecified + ## + replicationFactor: 1 + ## @param provisioning.topics Kafka topics to provision + ## - name: topic-name + ## partitions: 1 + ## replicationFactor: 1 + ## ## https://kafka.apache.org/documentation/#topicconfigs + ## config: + ## max.message.bytes: 64000 + ## flush.messages: 1 + ## + topics: [] + ## @param provisioning.extraProvisioningCommands Extra commands to run to provision cluster resources + ## - echo "Allow user to consume from any topic" + ## - >- + ## /opt/bitnami/kafka/bin/kafka-acls.sh + ## --bootstrap-server $KAFKA_SERVICE + ## --command-config $CLIENT_CONF + ## --add + ## --allow-principal User:user + ## --consumer --topic '*' + ## - "/opt/bitnami/kafka/bin/kafka-acls.sh + ## --bootstrap-server $KAFKA_SERVICE + ## --command-config $CLIENT_CONF + ## --list" + ## + extraProvisioningCommands: [] + ## @param provisioning.parallel Number of provisioning commands to run at the same time + ## + parallel: 1 + ## @param provisioning.preScript Extra bash script to run before topic provisioning. $CLIENT_CONF is path to properties file with most needed configurations + ## + preScript: "" + ## @param provisioning.postScript Extra bash script to run after topic provisioning. $CLIENT_CONF is path to properties file with most needed configurations + ## + postScript: "" + ## Auth Configuration for kafka provisioning Job + ## + auth: + ## TLS configuration for kafka provisioning Job + ## + tls: + ## @param provisioning.auth.tls.type Format to use for TLS certificates. Allowed types: `jks` and `pem`. + ## Note: ignored if auth.tls.clientProtocol different from one of these values: "tls" "mtls" "sasl_tls". + ## + type: jks + ## @param provisioning.auth.tls.certificatesSecret Existing secret containing the TLS certificates for the Kafka provisioning Job. + ## When using 'jks' format for certificates, the secret should contain a truststore and a keystore. + ## When using 'pem' format for certificates, the secret should contain a public CA certificate, a public certificate and one private key. + ## + certificatesSecret: "" + ## @param provisioning.auth.tls.cert The secret key from the certificatesSecret if 'cert' key different from the default (tls.crt) + ## + cert: tls.crt + ## @param provisioning.auth.tls.key The secret key from the certificatesSecret if 'key' key different from the default (tls.key) + ## + key: tls.key + ## @param provisioning.auth.tls.caCert The secret key from the certificatesSecret if 'caCert' key different from the default (ca.crt) + ## + caCert: ca.crt + ## @param provisioning.auth.tls.keystore The secret key from the certificatesSecret if 'keystore' key different from the default (keystore.jks) + ## + keystore: keystore.jks + ## @param provisioning.auth.tls.truststore The secret key from the certificatesSecret if 'truststore' key different from the default (truststore.jks) + ## + truststore: truststore.jks + ## @param provisioning.auth.tls.passwordsSecret Name of the secret containing passwords to access the JKS files or PEM key when they are password-protected. + ## It should contain two keys called "keystore-password" and "truststore-password", or "key-password" if using a password-protected PEM key. + ## + passwordsSecret: "" + ## @param provisioning.auth.tls.keyPasswordSecretKey The secret key from the passwordsSecret if 'keyPasswordSecretKey' key different from the default (key-password) + ## Note: must not be used if `passwordsSecret` is not defined. + ## + keyPasswordSecretKey: key-password + ## @param provisioning.auth.tls.keystorePasswordSecretKey The secret key from the passwordsSecret if 'keystorePasswordSecretKey' key different from the default (keystore-password) + ## Note: must not be used if `passwordsSecret` is not defined. + ## + keystorePasswordSecretKey: keystore-password + ## @param provisioning.auth.tls.truststorePasswordSecretKey The secret key from the passwordsSecret if 'truststorePasswordSecretKey' key different from the default (truststore-password) + ## Note: must not be used if `passwordsSecret` is not defined. + ## + truststorePasswordSecretKey: truststore-password + ## @param provisioning.auth.tls.keyPassword Password to access the password-protected PEM key if necessary. Ignored if 'passwordsSecret' is provided. + ## + keyPassword: "" + ## @param provisioning.auth.tls.keystorePassword Password to access the JKS keystore. Ignored if 'passwordsSecret' is provided. + ## + keystorePassword: "" + ## @param provisioning.auth.tls.truststorePassword Password to access the JKS truststore. Ignored if 'passwordsSecret' is provided. + ## + truststorePassword: "" + ## @param provisioning.command Override provisioning container command + ## + command: [] + ## @param provisioning.args Override provisioning container arguments + ## + args: [] + ## @param provisioning.extraEnvVars Extra environment variables to add to the provisioning pod + ## e.g: + ## extraEnvVars: + ## - name: KAFKA_CFG_BACKGROUND_THREADS + ## value: "10" + ## + extraEnvVars: [] + ## @param provisioning.extraEnvVarsCM ConfigMap with extra environment variables + ## + extraEnvVarsCM: "" + ## @param provisioning.extraEnvVarsSecret Secret with extra environment variables + ## + extraEnvVarsSecret: "" + ## @param provisioning.podAnnotations Extra annotations for Kafka provisioning pods + ## + podAnnotations: {} + ## @param provisioning.podLabels Extra labels for Kafka provisioning pods + ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + ## + podLabels: {} + ## Kafka provisioning resource requests and limits + ## ref: https://kubernetes.io/docs/user-guide/compute-resources/ + ## @param provisioning.resources.limits The resources limits for the Kafka provisioning container + ## @param provisioning.resources.requests The requested resources for the Kafka provisioning container + ## + resources: + limits: {} + requests: {} + ## Kafka provisioning pods' Security Context + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod + ## @param provisioning.podSecurityContext.enabled Enable security context for the pods + ## @param provisioning.podSecurityContext.fsGroup Set Kafka provisioning pod's Security Context fsGroup + ## + podSecurityContext: + enabled: true + fsGroup: 1001 + ## Kafka provisioning containers' Security Context + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container + ## @param provisioning.containerSecurityContext.enabled Enable Kafka provisioning containers' Security Context + ## @param provisioning.containerSecurityContext.runAsUser Set Kafka provisioning containers' Security Context runAsUser + ## @param provisioning.containerSecurityContext.runAsNonRoot Set Kafka provisioning containers' Security Context runAsNonRoot + ## e.g: + ## containerSecurityContext: + ## enabled: true + ## capabilities: + ## drop: ["NET_RAW"] + ## readOnlyRootFilesystem: true + ## + containerSecurityContext: + enabled: true + runAsUser: 1001 + runAsNonRoot: true + ## @param provisioning.schedulerName Name of the k8s scheduler (other than default) for kafka provisioning + ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ + ## + schedulerName: "" + ## @param provisioning.extraVolumes Optionally specify extra list of additional volumes for the Kafka provisioning pod(s) + ## e.g: + ## extraVolumes: + ## - name: kafka-jaas + ## secret: + ## secretName: kafka-jaas + ## + extraVolumes: [] + ## @param provisioning.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Kafka provisioning container(s) + ## extraVolumeMounts: + ## - name: kafka-jaas + ## mountPath: /bitnami/kafka/config/kafka_jaas.conf + ## subPath: kafka_jaas.conf + ## + extraVolumeMounts: [] + ## @param provisioning.sidecars Add additional sidecar containers to the Kafka provisioning pod(s) + ## e.g: + ## sidecars: + ## - name: your-image-name + ## image: your-image + ## imagePullPolicy: Always + ## ports: + ## - name: portname + ## containerPort: 1234 + ## + sidecars: [] + ## @param provisioning.initContainers Add additional Add init containers to the Kafka provisioning pod(s) + ## e.g: + ## initContainers: + ## - name: your-image-name + ## image: your-image + ## imagePullPolicy: Always + ## ports: + ## - name: portname + ## containerPort: 1234 + ## + initContainers: [] + ## @param provisioning.waitForKafka If true use an init container to wait until kafka is ready before starting provisioning + ## + waitForKafka: true + +## @section ZooKeeper chart parameters + +## ZooKeeper chart configuration +## https://github.com/bitnami/charts/blob/master/bitnami/zookeeper/values.yaml +## +zookeeper: + ## @param zookeeper.enabled Switch to enable or disable the ZooKeeper helm chart + ## + enabled: true + ## @param zookeeper.replicaCount Number of ZooKeeper nodes + ## + replicaCount: 1 + ## ZooKeeper authenticaiton + ## + auth: + ## @param zookeeper.auth.enabled Enable ZooKeeper auth + ## + enabled: false + ## @param zookeeper.auth.clientUser User that will use ZooKeeper clients to auth + ## + clientUser: "Yourusername" + ## @param zookeeper.auth.clientPassword Password that will use ZooKeeper clients to auth + ## + clientPassword: "Yourpassword" + ## @param zookeeper.auth.serverUsers Comma, semicolon or whitespace separated list of user to be created. Specify them as a string, for example: "user1,user2,admin" + ## + serverUsers: "Yourusername" + ## @param zookeeper.auth.serverPasswords Comma, semicolon or whitespace separated list of passwords to assign to users when created. Specify them as a string, for example: "pass4user1, pass4user2, pass4admin" + ## + serverPasswords: "Yourpassword" + ## ZooKeeper Persistence parameters + ## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/ + ## @param zookeeper.persistence.enabled Enable persistence on ZooKeeper using PVC(s) + ## @param zookeeper.persistence.storageClass Persistent Volume storage class + ## @param zookeeper.persistence.accessModes Persistent Volume access modes + ## @param zookeeper.persistence.size Persistent Volume size + ## + persistence: + enabled: true + storageClass: "" + accessModes: + - ReadWriteOnce + size: 8Gi + +## External Zookeeper Configuration +## All of these values are only used if `zookeeper.enabled=false` +## +externalZookeeper: + ## @param externalZookeeper.servers List of external zookeeper servers to use + ## + servers: [] diff --git a/charts/hub/mongodb/fast.yaml b/charts/hub/mongodb/fast.yaml new file mode 100644 index 0000000..5a8fe46 --- /dev/null +++ b/charts/hub/mongodb/fast.yaml @@ -0,0 +1,7 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: fast +provisioner: kubernetes.io/gce-pd +parameters: + type: pd-ssd diff --git a/charts/hub/mongodb/settings.nosql b/charts/hub/mongodb/settings.nosql new file mode 100644 index 0000000..f779422 --- /dev/null +++ b/charts/hub/mongodb/settings.nosql @@ -0,0 +1,68 @@ +db.settings.insertMany([ +{ + "_id" : ObjectId("5a43fa12d885eb7da57046b3"), + "key" : "sequence", + "map" : { + "timeBetween" : NumberInt(60) + } +}, +{ + "_id" : ObjectId("5a4d3a6bd885eb7da5e6b297"), + "key" : "throttler", + "map" : { + "waitingTime" : NumberInt(60) + } +}, +{ + "_id" : ObjectId("5a53d0a0d885eb7da53ed5a6"), + "key" : "analysis", + "map" : { + "waitingTime" : NumberInt(15) + } +}, +{ + "_id" : ObjectId("5a72c509e17699d18ada9154"), + "key" : "plan", + "map" : { + "basic" : { + "level" : NumberInt(1), + "uploadLimit" : NumberInt(100), + "videoLimit" : NumberInt(100), + "usage" : NumberInt(500), + "analysisLimit" : NumberInt(0), + "dayLimit" : NumberInt(3) + }, + "premium" : { + "level" : NumberInt(2), + "uploadLimit" : NumberInt(500), + "videoLimit" : NumberInt(500), + "usage" : NumberInt(1000), + "analysisLimit" : NumberInt(0), + "dayLimit" : NumberInt(7) + }, + "gold" : { + "level" : NumberInt(3), + "uploadLimit" : NumberInt(1000), + "videoLimit" : NumberInt(1000), + "usage" : NumberInt(3000), + "analysisLimit" : NumberInt(1000), + "dayLimit" : NumberInt(30) + }, + "business" : { + "level" : NumberInt(4), + "uploadLimit" : NumberInt(99999999), + "videoLimit" : NumberInt(99999999), + "usage" : NumberInt(10000), + "analysisLimit" : NumberInt(1000), + "dayLimit" : NumberInt(30) + }, + "enterprise" : { + "level" : NumberInt(5), + "uploadLimit" : NumberInt(99999999), + "videoLimit" : NumberInt(99999999), + "usage" : NumberInt(99999999), + "analysisLimit" : NumberInt(5000), + "dayLimit" : NumberInt(30) + } + } +}]) diff --git a/charts/hub/mongodb/subscriptions.nosql b/charts/hub/mongodb/subscriptions.nosql new file mode 100644 index 0000000..66386fb --- /dev/null +++ b/charts/hub/mongodb/subscriptions.nosql @@ -0,0 +1,13 @@ +db.subscriptions.insertMany([{ + "_id" : ObjectId("57e1011e3178aa6c5cc774d1"), + "name" : "default", + "stripe_id" : "sub_9ECyjjMz3R7etK", + "stripe_plan" : "enterprise", + "quantity" : 1, + "trial_ends_at" : null, + "ends_at" : null, + "user_id" : "57e1011e3178aa6c5cc774d1", + "updated_at" : ISODate("2021-04-27T09:45:30.169Z"), + "created_at" : ISODate("2016-09-20T09:35:03.448Z"), + "stripe_status" : "active" +}]) \ No newline at end of file diff --git a/charts/hub/mongodb/users.nosql b/charts/hub/mongodb/users.nosql new file mode 100644 index 0000000..2192e57 --- /dev/null +++ b/charts/hub/mongodb/users.nosql @@ -0,0 +1,21 @@ +db.users.insertMany([{ + "_id" : ObjectId("57e1011e3178aa6c5cc774d1"), + "username" : "youruser", + "email" : "your@email.com", + "password" : "$2a$10$XS8XdjzgUCbvGHgt9KVHEuDBnmu1bfAhT/WFxcHCubJtHud8O8vSC", + "isActive" : NumberLong(1), + "registerToken" : "", + "timezone" : "Europe/Brussels", + "updated_at" : ISODate("2020-06-14T05:01:35.000Z"), + "created_at" : ISODate("2016-09-20T09:27:58.811Z"), + "amazon_secret_access_key" : "K6rRLBI1xxxCk3C1H", + "amazon_access_key_id" : "AKIAxxxxxxG5Q", + "card_brand" : "MasterCard", + "card_last_four" : "6888", + "sequence_first" : 1510657836, + "card_status" : "ok", + "card_status_message" : null, + "role" : "owner", + "admin" : true, + "google2fa_enabled" : false +}]) diff --git a/charts/hub/mongodb/values.yaml b/charts/hub/mongodb/values.yaml new file mode 100644 index 0000000..1881e1d --- /dev/null +++ b/charts/hub/mongodb/values.yaml @@ -0,0 +1,932 @@ +## 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 +# storageClass: myStorageClass +## Override the namespace for resource deployed by the chart, but can itself be overridden by the local namespaceOverride +# namespaceOverride: my-global-namespace + +image: + ## Bitnami MongoDB registry + ## + registry: docker.io + ## Bitnami MongoDB image name + ## + repository: bitnami/mongodb + ## Bitnami MongoDB image tag + ## ref: https://hub.docker.com/r/bitnami/mongodb/tags/ + ## + tag: 4.4.2-debian-10-r0 + ## Specify a imagePullPolicy + ## 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 + + ## Set to true if you would like to see extra information on logs + ## It turns on Bitnami debugging in minideb-extras-base + ## ref: https://github.com/bitnami/minideb-extras-base + debug: false + +## String to partially override mongodb.fullname template (will maintain the release name) +## +# nameOverride: + +## String to fully override mongodb.fullname template +## +# fullnameOverride: + +## Kubernetes Cluster Domain +## +clusterDomain: cluster.local + +## Use an alternate scheduler, e.g. "stork". +## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ +## +# schedulerName: + +## MongoDB architecture. Allowed values: standalone or replicaset +## +architecture: standalone + +## Use StatefulSet instead of Deployment when deploying standalone +## +useStatefulSet: false + +## MongoDB Authentication parameters +## +auth: + ## Enable authentication + ## ref: https://docs.mongodb.com/manual/tutorial/enable-authentication/ + ## + enabled: true + ## MongoDB root password + ## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#setting-the-root-password-on-first-run + ## + rootPassword: "yourmongodbpassword" + ## MongoDB custom user and database + ## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#creating-a-user-and-database-on-first-run + ## + # username: username + # password: password + # database: database + ## Key used for replica set authentication + ## Ignored when mongodb.architecture=standalone + ## + replicaSetKey: "" + + ## Existing secret with MongoDB credentials + ## NOTE: When it's set the previous parameters are ignored. + ## + # existingSecret: name-of-existing-secret + +tls: + ## Enable or disable MongoDB TLS Support + enabled: false + ## + ## Bitnami Nginx image + ## + image: + registry: docker.io + repository: bitnami/cert-manager + tag: 1.19.4-debian-10-r19 + pullPolicy: IfNotPresent + +## Name of the replica set +## Ignored when mongodb.architecture=standalone +## +replicaSetName: rs0 + +## Enable DNS hostnames in the replica set config +## Ignored when mongodb.architecture=standalone +## Ignored when externalAccess.enabled=true +## +replicaSetHostnames: true + +## Whether enable/disable IPv6 on MongoDB +## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#enabling/disabling-ipv6 +## +enableIPv6: false + +## Whether enable/disable DirectoryPerDB on MongoDB +## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#enabling/disabling-directoryperdb +## +directoryPerDB: false + +## MongoDB System Log configuration +## ref: https://github.com/bitnami/bitnami-docker-mongodb#configuring-system-log-verbosity-level +## +systemLogVerbosity: 0 +disableSystemLog: false + +## MongoDB configuration file for Primary and Secondary nodes. For documentation of all options, see: +## http://docs.mongodb.org/manual/reference/configuration-options/ +## Example: +## configuration: |- +## # where and how to store data. +## storage: +## dbPath: /bitnami/mongodb/data/db +## journal: +## enabled: true +## directoryPerDB: false +## # where to write logging data +## systemLog: +## destination: file +## quiet: false +## logAppend: true +## logRotate: reopen +## path: /opt/bitnami/mongodb/logs/mongodb.log +## verbosity: 0 +## # network interfaces +## net: +## port: 27017 +## unixDomainSocket: +## enabled: true +## pathPrefix: /opt/bitnami/mongodb/tmp +## ipv6: false +## bindIpAll: true +## # replica set options +## #replication: +## #replSetName: replicaset +## #enableMajorityReadConcern: true +## # process management options +## processManagement: +## fork: false +## pidFilePath: /opt/bitnami/mongodb/tmp/mongodb.pid +## # set parameter options +## setParameter: +## enableLocalhostAuthBypass: true +## # security options +## security: +## authorization: disabled +## #keyFile: /opt/bitnami/mongodb/conf/keyfile +## +configuration: "" + +## ConfigMap with MongoDB configuration for Primary and Secondary nodes +## NOTE: When it's set the arbiter.configuration parameter is ignored +## +# existingConfigmap: + +## initdb scripts +## Specify dictionary of scripts to be run at first boot +## Example: +## initdbScripts: +## my_init_script.sh: | +## #!/bin/bash +## echo "Do something." +initdbScripts: {} + +## Existing ConfigMap with custom init scripts +## +# initdbScriptsConfigMap: + +## Command and args for running the container (set to default if not set). Use array form +## +# command: +# args: + +## Additional command line flags +## Example: +## extraFlags: +## - "--wiredTigerCacheSizeGB=2" +## +extraFlags: [] + +## Additional environment variables to set +## E.g: +## extraEnvVars: +## - name: FOO +## value: BAR +## +extraEnvVars: [] + +## ConfigMap with extra environment variables +## +# extraEnvVarsCM: + +## Secret with extra environment variables +## +# extraEnvVarsSecret: + +## Annotations to be added to the MongoDB statefulset. Evaluated as a template. +## +annotations: {} + +## Additional labels to be added to the MongoDB statefulset. Evaluated as a template. +## +labels: {} + +## Number of MongoDB replicas to deploy. +## Ignored when mongodb.architecture=standalone +## +replicaCount: 2 + +## StrategyType for MongoDB statefulset +## It can be set to RollingUpdate or Recreate by default. +## +strategyType: RollingUpdate + +## MongoDB should be initialized one by one when building the replicaset for the first time. +## +podManagementPolicy: OrderedReady + +## Affinity for pod assignment. Evaluated as a template. +## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity +## +affinity: {} + +## Node labels for pod assignment. Evaluated as a template. +## ref: https://kubernetes.io/docs/user-guide/node-selection/ +## +nodeSelector: {} + +## Tolerations for pod assignment. Evaluated as a template. +## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +## +tolerations: [] + +## Lables for MongoDB pods. Evaluated as a template. +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +## +podLabels: {} + +## Annotations for MongoDB pods. Evaluated as a template. +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} + +## MongoDB pods' priority. +## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/ +## +# priorityClassName: "" + +## MongoDB pods' Security Context. +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod +## +podSecurityContext: + enabled: true + fsGroup: 1001 + ## sysctl settings + ## Example: + ## sysctls: + ## - name: net.core.somaxconn + ## value: "10000" + ## + sysctls: [] + +## MongoDB containers' Security Context (main and metrics container). +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container +## +containerSecurityContext: + enabled: true + runAsUser: 1001 + runAsNonRoot: true + +## MongoDB containers' resource requests and limits. +## ref: http://kubernetes.io/docs/user-guide/compute-resources/ +## +resources: + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + limits: + cpu: 2048m + memory: 4096Mi + requests: + cpu: 512m + memory: 1024Mi + +## MongoDB pods' liveness and readiness probes. Evaluated as a template. +## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes +## +livenessProbe: + enabled: true + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 +readinessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + +## Custom Liveness probes for MongoDB pods +## +customLivenessProbe: {} + +## Custom Rediness probes MongoDB pods +## +customReadinessProbe: {} + +## Add init containers to the MongoDB pods. +## Example: +## initContainers: +## - name: your-image-name +## image: your-image +## imagePullPolicy: Always +## ports: +## - name: portname +## containerPort: 1234 +## +initContainers: {} + +## Add sidecars to the MongoDB pods. +## Example: +## sidecars: +## - name: your-image-name +## image: your-image +## imagePullPolicy: Always +## ports: +## - name: portname +## containerPort: 1234 +## +sidecars: {} + +## extraVolumes and extraVolumeMounts allows you to mount other volumes on MongoDB pods +## Examples: +## extraVolumeMounts: +## - name: extras +## mountPath: /usr/share/extras +## readOnly: true +## extraVolumes: +## - name: extras +## emptyDir: {} +extraVolumeMounts: [] +extraVolumes: [] + +## MongoDB Pod Disruption Budget configuration +## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/ +## +pdb: + create: false + ## Min number of pods that must still be available after the eviction + ## + minAvailable: 1 + ## Max number of pods that can be unavailable after the eviction + ## + # maxUnavailable: 1 + +## Enable persistence using Persistent Volume Claims +## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ +## +persistence: + enabled: true + ## A manually managed Persistent Volume and Claim + ## Requires persistence.enabled: true + ## If defined, PVC must be created manually before volume will be bound + ## Ignored when mongodb.architecture=replicaset + ## + # existingClaim: + ## PV Storage Class + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. + ## + # storageClass: "-" + ## PV Access Mode + ## + accessModes: + - ReadWriteOnce + ## PVC size + ## + size: 8Gi + ## PVC annotations + ## + annotations: {} + ## The path the volume will be mounted at, useful when using different + ## MongoDB images. + ## + mountPath: /bitnami/mongodb + ## The subdirectory of the volume to mount to, useful in dev environments + ## and one PV for multiple services. + ## + subPath: "" + +## Service parameters +## +service: + ## Service type + ## + type: ClusterIP + ## MongoDB service port + ## + port: 27017 + ## MongoDB service port name + ## + portName: mongodb + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + nodePort: "" + ## MongoDB service clusterIP IP + ## + # clusterIP: None + ## Specify the externalIP value ClusterIP service type. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips + ## + externalIPs: [] + ## Specify the loadBalancerIP value for LoadBalancer service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer + ## + # loadBalancerIP: + ## Specify the loadBalancerSourceRanges value for LoadBalancer service types. + ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service + ## + loadBalancerSourceRanges: [] + ## Provide any additional annotations which may be required. Evaluated as a template + ## + annotations: {} + +## External Access to MongoDB nodes configuration +## +externalAccess: + ## Enable Kubernetes external cluster access to MongoDB nodes + ## + enabled: false + ## External IPs auto-discovery configuration + ## An init container is used to auto-detect LB IPs or node ports by querying the K8s API + ## Note: RBAC might be required + ## + autoDiscovery: + ## Enable external IP/ports auto-discovery + ## + enabled: false + ## Bitnami Kubectl image + ## ref: https://hub.docker.com/r/bitnami/kubectl/tags/ + ## + image: + registry: docker.io + repository: bitnami/kubectl + tag: 1.18.12-debian-10-r2 + ## 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/ + ## Example: + ## pullSecrets: + ## - myRegistryKeySecretName + ## + pullSecrets: [] + ## Init Container resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + resources: + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + limits: {} + # cpu: 100m + # memory: 128Mi + requests: {} + # cpu: 100m + # memory: 128Mi + ## Parameters to configure K8s service(s) used to externally access MongoDB + ## A new service per broker will be created + ## + service: + ## Service type. Allowed values: LoadBalancer or NodePort + ## + type: LoadBalancer + ## Port used when service type is LoadBalancer + ## + port: 27017 + ## Array of load balancer IPs for each MongoDB node. Length must be the same as replicaCount + ## Example: + ## loadBalancerIPs: + ## - X.X.X.X + ## - Y.Y.Y.Y + ## + loadBalancerIPs: [] + ## Load Balancer sources + ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service + ## Example: + ## loadBalancerSourceRanges: + ## - 10.10.10.0/24 + ## + loadBalancerSourceRanges: [] + ## Array of node ports used for each MongoDB nodes. Length must be the same as replicaCount + ## Example: + ## nodePorts: + ## - 30001 + ## - 30002 + ## + nodePorts: [] + ## When service type is NodePort, you can specify the domain used for MongoDB advertised hostnames. + ## If not specified, the container will try to get the kubernetes node external IP + ## + # domain: mydomain.com + ## Provide any additional annotations which may be required. Evaluated as a template + ## + annotations: {} + +## +## MongoDB Arbiter parameters. +## +arbiter: + ## Enable deploying the MongoDB Arbiter + ## https://docs.mongodb.com/manual/tutorial/add-replica-set-arbiter/ + enabled: true + + ## MongoDB configuration file for the Arbiter. For documentation of all options, see: + ## http://docs.mongodb.org/manual/reference/configuration-options/ + ## + configuration: "" + + ## ConfigMap with MongoDB configuration for the Arbiter + ## NOTE: When it's set the arbiter.configuration parameter is ignored + ## + # existingConfigmap: + + ## Command and args for running the container (set to default if not set). Use array form + ## + # command: + # args: + + ## Additional command line flags + ## Example: + ## extraFlags: + ## - "--wiredTigerCacheSizeGB=2" + ## + extraFlags: [] + + ## Additional environment variables to set + ## E.g: + ## extraEnvVars: + ## - name: FOO + ## value: BAR + ## + extraEnvVars: [] + + ## ConfigMap with extra environment variables + ## + # extraEnvVarsCM: + + ## Secret with extra environment variables + ## + # extraEnvVarsSecret: + + ## Annotations to be added to the Arbiter statefulset. Evaluated as a template. + ## + annotations: {} + + ## Additional to be added to the Arbiter statefulset. Evaluated as a template. + ## + labels: {} + + ## Affinity for pod assignment. Evaluated as a template. + ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity + ## + affinity: {} + + ## Node labels for pod assignment. Evaluated as a template. + ## ref: https://kubernetes.io/docs/user-guide/node-selection/ + ## + nodeSelector: {} + + ## Tolerations for pod assignment. Evaluated as a template. + ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + ## + tolerations: [] + + ## Lables for MongoDB Arbiter pods. Evaluated as a template. + ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + ## + podLabels: {} + + ## Annotations for MongoDB Arbiter pods. Evaluated as a template. + ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + ## + podAnnotations: {} + + ## MongoDB Arbiter pods' priority. + ## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/ + ## + # priorityClassName: "" + + ## MongoDB Arbiter pods' Security Context. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod + ## + podSecurityContext: + enabled: true + fsGroup: 1001 + ## sysctl settings + ## Example: + ## sysctls: + ## - name: net.core.somaxconn + ## value: "10000" + ## + sysctls: [] + + ## MongoDB Arbiter containers' Security Context (only main container). + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container + ## + containerSecurityContext: + enabled: true + runAsUser: 1001 + + ## MongoDB Arbiter containers' resource requests and limits. + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + resources: + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + limits: {} + # cpu: 100m + # memory: 128Mi + requests: {} + # cpu: 100m + # memory: 128Mi + + ## MongoDB Arbiter pods' liveness and readiness probes. Evaluated as a template. + ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes + ## + livenessProbe: + enabled: true + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + readinessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + + ## Custom Liveness probes for MongoDB Arbiter pods + ## + customLivenessProbe: {} + + ## Custom Rediness probes MongoDB Arbiter pods + ## + customReadinessProbe: {} + + ## Add init containers to the MongoDB Arbiter pods. + ## Example: + ## initContainers: + ## - name: your-image-name + ## image: your-image + ## imagePullPolicy: Always + ## ports: + ## - name: portname + ## containerPort: 1234 + ## + initContainers: {} + + ## Add sidecars to the MongoDB Arbiter pods. + ## Example: + ## sidecars: + ## - name: your-image-name + ## image: your-image + ## imagePullPolicy: Always + ## ports: + ## - name: portname + ## containerPort: 1234 + ## + sidecars: {} + + ## extraVolumes and extraVolumeMounts allows you to mount other volumes on MongoDB Arbiter pods + ## Examples: + ## extraVolumeMounts: + ## - name: extras + ## mountPath: /usr/share/extras + ## readOnly: true + ## extraVolumes: + ## - name: extras + ## emptyDir: {} + extraVolumeMounts: [] + extraVolumes: [] + + ## MongoDB Arbiter Pod Disruption Budget configuration + ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/ + ## + pdb: + create: false + ## Min number of pods that must still be available after the eviction + ## + minAvailable: 1 + ## Max number of pods that can be unavailable after the eviction + ## + # maxUnavailable: 1 + +## ServiceAccount +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +## +serviceAccount: + ## Specifies whether a ServiceAccount should be created + ## + create: true + ## The name of the ServiceAccount to use. + ## If not set and create is true, a name is generated using the rabbitmq.fullname template + ## + # name: + +## Role Based Access +## ref: https://kubernetes.io/docs/admin/authorization/rbac/ +## +rbac: + ## Specifies whether RBAC rules should be created + ## binding MongoDB ServiceAccount to a role + ## that allows MongoDB pods querying the K8s API + ## + create: false + +## Init Container paramaters +## Change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each component +## values from the securityContext section of the component +## +volumePermissions: + enabled: false + ## Bitnami Minideb image + ## ref: https://hub.docker.com/r/bitnami/minideb/tags/ + ## + image: + registry: docker.io + repository: bitnami/minideb + tag: buster + ## 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: Always + ## 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/ + ## Example: + ## pullSecrets: + ## - myRegistryKeySecretName + ## + pullSecrets: [] + ## Init Container resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + resources: + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + limits: {} + # cpu: 100m + # memory: 128Mi + requests: {} + # cpu: 100m + # memory: 128Mi + ## Init container Security Context + ## Note: the chown of the data folder is done to containerSecurityContext.runAsUser + ## and not the below volumePermissions.securityContext.runAsUser + ## When runAsUser is set to special value "auto", init container will try to chwon the + ## data folder to autodetermined user&group, using commands: `id -u`:`id -G | cut -d" " -f2` + ## "auto" is especially useful for OpenShift which has scc with dynamic userids (and 0 is not allowed). + ## You may want to use this volumePermissions.securityContext.runAsUser="auto" in combination with + ## podSecurityContext.enabled=false,containerSecurityContext.enabled=false and shmVolume.chmod.enabled=false + ## + securityContext: + runAsUser: 0 + +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + ## Bitnami MongoDB Promtheus Exporter image + ## ref: https://hub.docker.com/r/bitnami/mongodb-exporter/tags/ + ## + image: + registry: docker.io + repository: bitnami/mongodb-exporter + tag: 0.11.2-debian-10-r44 + 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 + + ## String with extra flags to the metrics exporter + ## ref: https://github.com/percona/mongodb_exporter/blob/master/mongodb_exporter.go + ## + extraFlags: "" + + ## String with additional URI options to the metrics exporter + ## ref: https://docs.mongodb.com/manual/reference/connection-string + ## + extraUri: "" + + ## Metrics exporter container resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + resources: + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + limits: {} + # cpu: 100m + # memory: 128Mi + requests: {} + # cpu: 100m + # memory: 128Mi + + ## Prometheus Exporter service configuration + ## + service: + ## Annotations for Prometheus Exporter pods. Evaluated as a template. + ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + ## + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "{{ .Values.metrics.service.port }}" + prometheus.io/path: "/metrics" + type: ClusterIP + port: 9216 + + ## Metrics exporter liveness and readiness probes + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) + ## + livenessProbe: + enabled: true + initialDelaySeconds: 15 + periodSeconds: 5 + timeoutSeconds: 5 + failureThreshold: 3 + successThreshold: 1 + readinessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 5 + timeoutSeconds: 1 + failureThreshold: 3 + successThreshold: 1 + + ## Prometheus Service Monitor + ## ref: https://github.com/coreos/prometheus-operator + ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md + ## + serviceMonitor: + ## If the operator is installed in your cluster, set to true to create a Service Monitor Entry + enabled: false + + ## Specify the namespace where Prometheus Operator is running + ## + # namespace: monitoring + + ## Specify the interval at which metrics should be scraped + ## + interval: 30s + ## Specify the timeout after which the scrape is ended + ## + # scrapeTimeout: 30s + ## Used to pass Labels that are used by the Prometheus installed in your cluster to select Service Monitors to work with + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec + ## + additionalLabels: {} + + ## Custom PrometheusRule to be defined + ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions + ## + prometheusRule: + enabled: false + additionalLabels: {} + ## Specify the namespace where Prometheus Operator is running + ## + # namespace: monitoring + + ## Define individual alerting rules as required + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#rulegroup + ## https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/ + ## + ## This is an example of a rule, you should add the below code block under the "rules" param, removing the brackets + ## - name: example + ## rules: + ## - alert: HighRequestLatency + ## expr: job:request_latency_seconds:mean5m{job="myjob"} > 0.5 + ## for: 10m + ## labels: + ## severity: page + ## annotations: + ## summary: High request latency + ## + rules: {} diff --git a/charts/hub/regcred.yaml b/charts/hub/regcred.yaml new file mode 100644 index 0000000..0579003 --- /dev/null +++ b/charts/hub/regcred.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: Secret +metadata: + name: regcred +type: kubernetes.io/dockerconfigjson +data: + .dockerconfigjson: xxxxkeytoberequestedxxx diff --git a/charts/hub/templates/kerberos-hub/hub-api.yaml b/charts/hub/templates/kerberos-hub/hub-api.yaml new file mode 100644 index 0000000..bffadd7 --- /dev/null +++ b/charts/hub/templates/kerberos-hub/hub-api.yaml @@ -0,0 +1,308 @@ +apiVersion: v1 +kind: Service +metadata: + name: hub-api-svc + labels: + app: hub-api-svc +spec: + ports: + - port: 80 + targetPort: 80 + name: frontend + protocol: TCP + - port: 8081 + name: backend + targetPort: 8081 + protocol: TCP + selector: + app: hub-api +--- +{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} +apiVersion: networking.k8s.io/v1beta1 +{{ else }} +apiVersion: networking.k8s.io/v1 +{{ end }} +kind: Ingress +metadata: + name: hub-api-ingress + annotations: + kubernetes.io/ingress.class: {{ .Values.ingress }} + {{- if eq .Values.ingress "nginx" }} + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/ssl-redirect: "true" + cert-manager.io/cluster-issuer: "letsencrypt-prod" + {{- end }} +spec: + {{- with .Values.kerberoshub.api.tls }} + tls: + {{- toYaml . | nindent 8 }} + {{- end }} + + {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} + rules: + - host: "{{ .Values.kerberoshub.api.url }}" + http: + paths: + - path: / + backend: + serviceName: hub-api-svc + servicePort: 8081 + {{- if .Values.kerberoshub.api.legacyUrl }} + - host: "{{ .Values.kerberoshub.api.legacyUrl }}" + http: + paths: + - path: / + backend: + serviceName: hub-api-svc + servicePort: 8081 + {{- end }} + {{- else }} + rules: + - host: "{{ .Values.kerberoshub.api.url }}" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: hub-api-svc + port: + number: 8081 + {{- if .Values.kerberoshub.api.legacyUrl }} + - host: "{{ .Values.kerberoshub.api.legacyUrl }}" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: hub-api-svc + port: + number: 8081 + {{- end }} + - host: "admin.{{ .Values.kerberoshub.api.url }}" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: hub-api-svc + port: + number: 80 + {{- end }} +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hub-api +spec: + replicas: {{ .Values.kerberoshub.api.replicas }} + selector: + matchLabels: + app: hub-api + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: hub-api + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.kerberoshub.api.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: hub-api + image: "{{ .Values.kerberoshub.api.repository }}:{{ .Values.kerberoshub.api.tag }}" + imagePullPolicy: {{ .Values.kerberoshub.api.pullPolicy }} + resources: + requests: + memory: 100Mi + cpu: 50m + ports: + - containerPort: 80 + name: http + {{- with .Values.kerberoshub.api.volumeMounts}} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} + env: + - name: READ_ONLY + value: "{{ .Values.readonly }}" + - name: CLOUD_API_URL + value: "{{ .Values.kerberoshub.api.url }}" + - name: API_URL + value: "{{ .Values.kerberoshub.api.schema }}://{{ .Values.kerberoshub.api.url }}" + - name: PUBLIC_URL + value: "{{ .Values.kerberoshub.frontend.schema }}://{{ .Values.kerberoshub.frontend.url }}" + {{ if .Values.isPrivate }} + - name: KERBEROS_PRIVATE_CLOUD + value: "true" + {{ else }} + - name: KERBEROS_PRIVATE_CLOUD + value: "false" + {{ end }} + - name: KERBEROS_LANGUAGE + value: "{{ .Values.kerberoshub.api.language }}" + - name: KERBEROS_FALLBACK_LANGUAGE + value: "{{ .Values.kerberoshub.api.fallbackLanguage }}" + - name: API_KEY + value: "{{ .Values.kerberoshub.api.apiKey }}" + + # Kerberos Hub + - name: LICENSE_KEY + value: "{{ .Values.license }}" + - name: LICENSE_API_URL + value: "{{ .Values.licenseServer.url }}" + - name: LICENSE_PUBLIC_API_TOKEN + value: "{{ .Values.licenseServer.token }}" + + # Authorization - Authentication secret + - name: KERBEROS_JWT_SECRET + value: "{{ .Values.kerberoshub.api.jwtSecret }}" + + # SSO (OIDC) setup + - name: SSO_ISSUER + value: "{{ .Values.kerberoshub.api.sso.issuer }}" + - name: SSO_CLIENTID + value: "{{ .Values.kerberoshub.api.sso.clientId }}" + - name: SSO_CLIENTSECRET + value: "{{ .Values.kerberoshub.api.sso.clientSecret }}" + - name: SSO_REDIRECTURL + value: "{{ .Values.kerberoshub.api.schema }}://{{ .Values.kerberoshub.api.url }}{{ .Values.kerberoshub.api.sso.redirectUrl }}" + + # Kerberos pipeline + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + - name: QUEUE_NAME + value: "{{ .Values.queueName }}" + + # Stripe for billing + - name: STRIPE_KEY + value: "{{ .Values.kerberoshub.api.stripe.privateKey }}" + + # AWS (Legacy, use Kerberos Vault instead) + - name: AWS_REGION + value: "{{ .Values.kerberoshub.api.aws.region }}" + - name: AWS_S3_BUCKET + value: "{{ .Values.kerberoshub.api.aws.bucket }}" + - name: AWS_ACCESS_KEY_ID + value: "{{ .Values.kerberoshub.api.aws.accessKey }}" + - name: AWS_SECRET_ACCESS_KEY + value: "{{ .Values.kerberoshub.api.aws.secretKey }}" + + # Kerberos Vault (Main instance, within Kerberos Hub you can assign additional Vaults to sites). + - name: STORAGE_URI + value: "{{ .Values.kerberosvault.uri }}" + - name: STORAGE_ACCESS_KEY + value: "{{ .Values.kerberosvault.accesskey }}" + - name: STORAGE_SECRET_KEY + value: "{{ .Values.kerberosvault.secretkey }}" + + # Kerberos Vault: archiving credentials. When creating a task, the underlying recording will be + # copied to this storage provider, using the specific account credentials, for deletion/retention. + - name: STORAGE_ARCHIVE_PROVIDER + value: "{{ .Values.kerberosvault.archive.provider }}" + - name: STORAGE_ARCHIVE_ACCESS_KEY + value: "{{ .Values.kerberosvault.archive.accesskey }}" + - name: STORAGE_ARCHIVE_SECRET_KEY + value: "{{ .Values.kerberosvault.archive.secretkey }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" + + # Mongodb + - name: MONGODB_DATABASE_CLOUD + value: "Kerberos" + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + + # Slack notifications (this will send events/logs to a specific channel). + - name: SLACK_ENABLED + value: "{{ .Values.kerberoshub.api.slack.enabled }}" + - name: SLACK_HOOK + value: "{{ .Values.kerberoshub.api.slack.hook }}" + - name: SLACK_USERNAME + value: "{{ .Values.kerberoshub.api.slack.username }}" + + # Elastic search - Kibana + - name: LOGGING_ELASTICSEARCH + value: "{{ .Values.kerberoshub.api.elasticsearch.enabled }}" + - name: LOGGING_ELASTICSEARCH_PROTOCOL + value: "{{ .Values.kerberoshub.api.elasticsearch.protocol }}" + - name: LOGGING_ELASTICSEARCH_HOST + value: "{{ .Values.kerberoshub.api.elasticsearch.host }}" + - name: LOGGING_ELASTICSEARCH_PORT + value: "{{ .Values.kerberoshub.api.elasticsearch.port }}" + - name: LOGGING_ELASTICSEARCH_INDEX + value: "{{ .Values.kerberoshub.api.elasticsearch.index }}" + - name: LOGGING_ELASTICSEARCH_USERNAME + value: "{{ .Values.kerberoshub.api.elasticsearch.username }}" + - name: LOGGING_ELASTICSEARCH_PASSWORD + value: "{{ .Values.kerberoshub.api.elasticsearch.password }}" + + # Mail settings + - name: MAIL_PROVIDER + value: "{{ .Values.email.provider }}" + - name: EMAIL_FROM + value: "{{ .Values.email.from }}" + - name: EMAIL_FROM_DISPLAYNAME + value: "{{ .Values.email.displayName }}" + + # Mail templates + - name: WELCOME_TEMPLATE + value: "{{ .Values.email.templates.welcome }}" + - name: WELCOME_TITLE + value: "{{ .Values.email.templates.welcomeTitle }}" + - name: ACTIVATE_TEMPLATE + value: "{{ .Values.email.templates.activate }}" + - name: ACTIVATE_TITLE + value: "{{ .Values.email.templates.activateTitle }}" + - name: FORGOT_TEMPLATE + value: "{{ .Values.email.templates.forgot }}" + - name: FORGOT_TITLE + value: "{{ .Values.email.templates.forgotTitle }}" + - name: SHARE_TEMPLATE + value: "{{ .Values.email.templates.share }}" + - name: SHARE_TITLE + value: "{{ .Values.email.templates.shareTitle }}" + + # SMTP + - name: SMTP_SERVER + value: "{{ .Values.email.smtp.server }}" + - name: SMTP_PORT + value: "{{ .Values.email.smtp.port }}" + - name: SMTP_USERNAME + value: "{{ .Values.email.smtp.username }}" + - name: SMTP_PASSWORD + value: "{{ .Values.email.smtp.password }}" + + # Mailgun + - name: MAILGUN_DOMAIN + value: "{{ .Values.email.mailgun.domain }}" + - name: MAILGUN_API_KEY + value: "{{ .Values.email.mailgun.apikey }}" diff --git a/charts/hub/templates/kerberos-hub/hub-cleanup.yaml b/charts/hub/templates/kerberos-hub/hub-cleanup.yaml new file mode 100644 index 0000000..58f519c --- /dev/null +++ b/charts/hub/templates/kerberos-hub/hub-cleanup.yaml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hub-cleanup +spec: + replicas: 1 + selector: + matchLabels: + app: hub-cleanup + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: hub-cleanup + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: hub-cleanup + image: "{{ .Values.kerberoshub.cleanup.repository }}:{{ .Values.kerberoshub.cleanup.tag }}" + imagePullPolicy: {{ .Values.kerberoshub.cleanup.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + - name: MAX_DAYS + value: "30" + - name: MONGODB_DATABASE_CLOUD + value: "Kerberos" + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + diff --git a/charts/hub/templates/kerberos-hub/hub-frontend-demo.yaml b/charts/hub/templates/kerberos-hub/hub-frontend-demo.yaml new file mode 100644 index 0000000..c6b7697 --- /dev/null +++ b/charts/hub/templates/kerberos-hub/hub-frontend-demo.yaml @@ -0,0 +1,201 @@ +apiVersion: v1 +kind: Service +metadata: + name: hub-frontend-demo-svc + labels: + app: hub-frontend-demo-svc +spec: + ports: + - protocol: TCP + port: 80 + targetPort: 80 + name: http + selector: + app: hub-frontend-demo +--- +{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} +apiVersion: networking.k8s.io/v1beta1 +{{ else }} +apiVersion: networking.k8s.io/v1 +{{ end }} +kind: Ingress +metadata: + name: hub-frontend-demo-ingress + annotations: + kubernetes.io/ingress.class: {{ .Values.ingress }} + {{- if eq .Values.ingress "nginx" }} + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/ssl-redirect: "true" + cert-manager.io/cluster-issuer: "letsencrypt-prod" + {{- end }} +spec: + + {{- with .Values.kerberoshub.frontend.demoTls }} + tls: + {{- toYaml . | nindent 8 }} + {{- end }} + + {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} + rules: + - host: "{{ .Values.kerberoshub.frontend.demoUrl }}" + http: + paths: + - path: / + backend: + serviceName: hub-frontend-demo-svc + servicePort: 80 + {{- else }} + rules: + - host: "{{ .Values.kerberoshub.frontend.demoUrl }}" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: hub-frontend-demo-svc + port: + number: 80 + {{- end }} +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hub-frontend-demo +spec: + replicas: {{ .Values.kerberoshub.frontend.replicas }} + selector: + matchLabels: + app: hub-frontend-demo + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: hub-frontend-demo + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.kerberoshub.frontend.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: hub-frontend-demo + image: "{{ .Values.kerberoshub.frontend.repository }}:{{ .Values.kerberoshub.frontend.tag }}" + imagePullPolicy: {{ .Values.kerberoshub.frontend.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + ports: + - containerPort: 80 + name: http + {{- with .Values.kerberoshub.frontend.volumeMounts}} + volumeMounts: + {{- toYaml . | nindent 8 }} + {{- end }} + env: + - name: SSO_DOMAIN + value: "{{ .Values.kerberoshub.frontend.ssoDomain }}" + - name: TITLE + value: "{{ .Values.kerberoshub.frontend.title }}" + - name: LOGO_NAME + value: "{{ .Values.kerberoshub.frontend.logo }}" + - name: API_URL + value: "" # legacy + - name: NEW_API_URL + value: "{{ .Values.kerberoshub.api.schema }}://{{ .Values.kerberoshub.api.url }}" + {{ if .Values.isPrivate }} + - name: PRIVATE_EDITION + value: "true" + {{ else }} + - name: PRIVATE_EDITION + value: "false" + {{ end }} + - name: PRODUCTION + value: "true" + - name: DEMO + value: "true" + + # Mqtt (VERNEMQ) + - name: MQTT_PROTOCOL + value: "{{ .Values.mqtt.protocol }}" + - name: MQTT_SERVER + value: "{{ .Values.mqtt.host }}" + - name: MQTT_PORT + value: "{{ .Values.mqtt.port }}" + - name: MQTT_USERNAME + value: "{{ .Values.mqtt.username }}" + - name: MQTT_PASSWORD + value: "{{ .Values.mqtt.password }}" + + # Turn (Pion) + - name: TURN_SERVER + value: "{{ .Values.turn.host }}" + - name: TURN_USERNAME + value: "{{ .Values.turn.username }}" + - name: TURN_PASSWORD + value: "{{ .Values.turn.password }}" + + # Mixpanel for monitoring + - name: MIXPANEL_KEY + value: "{{ .Values.kerberoshub.frontend.mixpanel.apikey }}" + + # Sentry for fetching client side issues. + - name: SENTRY_URL + value: "{{ .Values.kerberoshub.frontend.sentry.url }}" + + # PostHog credentials + - name: POSTHOG_KEY + value: "{{ .Values.kerberoshub.frontend.posthog.key }}" + - name: POSTHOG_URL + value: "{{ .Values.kerberoshub.frontend.posthog.url }}" + + # Stripe for billing + - name: STRIPE_KEY + value: "{{ .Values.kerberoshub.frontend.stripe.publicKey }}" + + # Google maps for using and displaying cameras, sites on a map + - name: GOOGLEMAPS_KEY + value: "{{ .Values.kerberoshub.frontend.googlemaps.apikey }}" + + # Zendesk for support + - name: ZENDESK_URL + value: "{{ .Values.kerberoshub.frontend.zendesk.url }}" + + # Titles and descriptions on pages + - name: LOGIN_DESCRIPTION + value: "{{ .Values.kerberoshub.frontend.loginDescription }}" + - name: LOGIN_COPYRIGHT + value: "{{ .Values.kerberoshub.frontend.loginCopyright }}" + - name: PAGE_DASHBOARD_TITLE + value: "{{ .Values.kerberoshub.frontend.dashboardTitle }}" + - name: PAGE_DASHBOARD_SUB_TITLE + value: "{{ .Values.kerberoshub.frontend.dashboardSubTitle }}" + - name: PAGE_LATESTEVENTS_TITLE + value: "{{ .Values.kerberoshub.frontend.latestEventsTitle }}" + - name: PAGE_LATESTEVENTS_SUB_TITLE + value: "{{ .Values.kerberoshub.frontend.latestEventsSubTitle }}" + - name: PAGE_LIVESTREAM_TITLE + value: "{{ .Values.kerberoshub.frontend.livestreamTitle }}" + - name: PAGE_LIVESTREAM_SUB_TITLE + value: "{{ .Values.kerberoshub.frontend.livestreamSubTitle }}" + - name: PAGE_MEDIA_TITLE + value: "{{ .Values.kerberoshub.frontend.mediaTitle }}" + - name: PAGE_MEDIA_SUB_TITLE + value: "{{ .Values.kerberoshub.frontend.mediaSubTitle }}" + - name: PAGE_DASHBOARD_CPU_USAGE + value: "{{ .Values.kerberoshub.frontend.cpuUsageDescription }}" + - name: PAGE_DASHBOARD_FPS + value: "{{ .Values.kerberoshub.frontend.framesPerSecondDescription }}" + - name: PAGE_DASHBOARD_MLA + value: "{{ .Values.kerberoshub.frontend.mlaUtilizationDescription }}" + - name: PAGE_DASHBOARD_OBJECTS + value: "{{ .Values.kerberoshub.frontend.objectsDetectedDescription }}" diff --git a/charts/hub/templates/kerberos-hub/hub-frontend.yaml b/charts/hub/templates/kerberos-hub/hub-frontend.yaml new file mode 100644 index 0000000..f482700 --- /dev/null +++ b/charts/hub/templates/kerberos-hub/hub-frontend.yaml @@ -0,0 +1,230 @@ +apiVersion: v1 +kind: Service +metadata: + name: hub-frontend-svc + labels: + app: hub-frontend-svc +spec: + ports: + - protocol: TCP + port: 80 + targetPort: 80 + name: http + selector: + app: hub-frontend +--- +{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} +apiVersion: networking.k8s.io/v1beta1 +{{ else }} +apiVersion: networking.k8s.io/v1 +{{ end }} +kind: Ingress +metadata: + name: hub-frontend-ingress + annotations: + kubernetes.io/ingress.class: {{ .Values.ingress }} + {{- if eq .Values.ingress "nginx" }} + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/ssl-redirect: "true" + cert-manager.io/cluster-issuer: "letsencrypt-prod" + {{- end }} +spec: + + {{- with .Values.kerberoshub.frontend.tls }} + tls: + {{- toYaml . | nindent 8 }} + {{- end }} + + {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} + rules: + - host: "{{ .Values.kerberoshub.frontend.url }}" + http: + paths: + - path: / + backend: + serviceName: hub-frontend-svc + servicePort: 80 + {{- if .Values.kerberoshub.frontend.legacyUrl }} + - host: "{{ .Values.kerberoshub.frontend.legacyUrl }}" + http: + paths: + - path: / + backend: + serviceName: hub-frontend-svc + servicePort: 80 + {{- end }} + {{- else }} + rules: + - host: "{{ .Values.kerberoshub.frontend.url }}" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: hub-frontend-svc + port: + number: 80 + {{- if .Values.kerberoshub.frontend.legacyUrl }} + - host: "{{ .Values.kerberoshub.frontend.legacyUrl }}" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: hub-frontend-svc + port: + number: 80 + {{- end }} + {{- end }} +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hub-frontend +spec: + replicas: {{ .Values.kerberoshub.frontend.replicas }} + selector: + matchLabels: + app: hub-frontend + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: hub-frontend + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.kerberoshub.frontend.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: hub-frontend + image: "{{ .Values.kerberoshub.frontend.repository }}:{{ .Values.kerberoshub.frontend.tag }}" + imagePullPolicy: {{ .Values.kerberoshub.frontend.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + ports: + - containerPort: 80 + name: http + {{- with .Values.kerberoshub.frontend.volumeMounts}} + volumeMounts: + {{- toYaml . | nindent 8 }} + {{- end }} + env: + - name: SSO_DOMAIN + value: "{{ .Values.kerberoshub.frontend.ssoDomain }}" + - name: TITLE + value: "{{ .Values.kerberoshub.frontend.title }}" + - name: LOGO_NAME + value: "{{ .Values.kerberoshub.frontend.logo }}" + - name: API_URL + value: "" # legacy + - name: NEW_API_URL + value: "{{ .Values.kerberoshub.api.schema }}://{{ .Values.kerberoshub.api.url }}" + {{ if .Values.isPrivate }} + - name: PRIVATE_EDITION + value: "true" + {{ else }} + - name: PRIVATE_EDITION + value: "false" + {{ end }} + - name: PRODUCTION + value: "true" + - name: DEMO + value: "false" + - name: MULTI_TENANT + value: "{{ .Values.kerberoshub.frontend.multiTenant }}" + - name: TENANT_BASE_DOMAIN + value: "{{ .Values.kerberoshub.frontend.tenantBaseDomain }}" + + # Mqtt (VERNEMQ) + - name: MQTT_PROTOCOL + value: "{{ .Values.mqtt.protocol }}" + - name: MQTT_SERVER + value: "{{ .Values.mqtt.host }}" + - name: MQTT_PORT + value: "{{ .Values.mqtt.port }}" + - name: MQTT_USERNAME + value: "{{ .Values.mqtt.username }}" + - name: MQTT_PASSWORD + value: "{{ .Values.mqtt.password }}" + - name: MQTT_LEGACY_SERVER + value: "{{ .Values.mqtt.legacy.host }}" + - name: MQTT_LEGACY_PORT + value: "{{ .Values.mqtt.legacy.port }}" + + # Turn (Pion) + - name: TURN_SERVER + value: "{{ .Values.turn.host }}" + - name: TURN_USERNAME + value: "{{ .Values.turn.username }}" + - name: TURN_PASSWORD + value: "{{ .Values.turn.password }}" + + # Mixpanel for monitoring + - name: MIXPANEL_KEY + value: "{{ .Values.kerberoshub.frontend.mixpanel.apikey }}" + + # Sentry for fetching client side issues. + - name: SENTRY_URL + value: "{{ .Values.kerberoshub.frontend.sentry.url }}" + + # PostHog credentials + - name: POSTHOG_KEY + value: "{{ .Values.kerberoshub.frontend.posthog.key }}" + - name: POSTHOG_URL + value: "{{ .Values.kerberoshub.frontend.posthog.url }}" + + # Stripe for billing + - name: STRIPE_KEY + value: "{{ .Values.kerberoshub.frontend.stripe.publicKey }}" + + # Google maps for using and displaying cameras, sites on a map + - name: GOOGLEMAPS_KEY + value: "{{ .Values.kerberoshub.frontend.googlemaps.apikey }}" + + # Zendesk for support + - name: ZENDESK_URL + value: "{{ .Values.kerberoshub.frontend.zendesk.url }}" + + # Titles and descriptions on pages + - name: LOGIN_DESCRIPTION + value: "{{ .Values.kerberoshub.frontend.loginDescription }}" + - name: LOGIN_COPYRIGHT + value: "{{ .Values.kerberoshub.frontend.loginCopyright }}" + - name: PAGE_DASHBOARD_TITLE + value: "{{ .Values.kerberoshub.frontend.dashboardTitle }}" + - name: PAGE_DASHBOARD_SUB_TITLE + value: "{{ .Values.kerberoshub.frontend.dashboardSubTitle }}" + - name: PAGE_LATESTEVENTS_TITLE + value: "{{ .Values.kerberoshub.frontend.latestEventsTitle }}" + - name: PAGE_LATESTEVENTS_SUB_TITLE + value: "{{ .Values.kerberoshub.frontend.latestEventsSubTitle }}" + - name: PAGE_LIVESTREAM_TITLE + value: "{{ .Values.kerberoshub.frontend.livestreamTitle }}" + - name: PAGE_LIVESTREAM_SUB_TITLE + value: "{{ .Values.kerberoshub.frontend.livestreamSubTitle }}" + - name: PAGE_MEDIA_TITLE + value: "{{ .Values.kerberoshub.frontend.mediaTitle }}" + - name: PAGE_MEDIA_SUB_TITLE + value: "{{ .Values.kerberoshub.frontend.mediaSubTitle }}" + - name: PAGE_DASHBOARD_CPU_USAGE + value: "{{ .Values.kerberoshub.frontend.cpuUsageDescription }}" + - name: PAGE_DASHBOARD_FPS + value: "{{ .Values.kerberoshub.frontend.framesPerSecondDescription }}" + - name: PAGE_DASHBOARD_MLA + value: "{{ .Values.kerberoshub.frontend.mlaUtilizationDescription }}" + - name: PAGE_DASHBOARD_OBJECTS + value: "{{ .Values.kerberoshub.frontend.objectsDetectedDescription }}" diff --git a/charts/hub/templates/kerberos-hub/hub-monitor-device.yaml b/charts/hub/templates/kerberos-hub/hub-monitor-device.yaml new file mode 100644 index 0000000..72c6635 --- /dev/null +++ b/charts/hub/templates/kerberos-hub/hub-monitor-device.yaml @@ -0,0 +1,66 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hub-monitor-device +spec: + replicas: 1 + selector: + matchLabels: + app: hub-monitor-device + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: hub-monitor-device + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: hub-monitor-device + image: "{{ .Values.kerberoshub.monitordevice.repository }}:{{ .Values.kerberoshub.monitordevice.tag }}" + imagePullPolicy: {{ .Values.kerberoshub.monitordevice.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + # Mongodb + - name: MONGODB_DATABASE_CLOUD + value: "Kerberos" + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + + # Mail settings + - name: MAIL_PROVIDER + value: "{{ .Values.email.provider }}" + - name: EMAIL_FROM + value: "{{ .Values.email.from }}" + - name: EMAIL_FROM_DISPLAYNAME + value: "{{ .Values.email.displayName }}" + + # Mail templates + - name: DEVICE_TEMPLATE + value: "{{ .Values.email.templates.device }}" + + # - Plain SMTP + - name: SMTP_SERVER + value: "{{ .Values.email.smtp.server }}" + - name: SMTP_PORT + value: "{{ .Values.email.smtp.port }}" + - name: SMTP_USERNAME + value: "{{ .Values.email.smtp.username }}" + - name: SMTP_PASSWORD + value: "{{ .Values.email.smtp.password }}" diff --git a/charts/hub/templates/kerberos-hub/hub-reactivate-subscription.yaml b/charts/hub/templates/kerberos-hub/hub-reactivate-subscription.yaml new file mode 100644 index 0000000..cf747df --- /dev/null +++ b/charts/hub/templates/kerberos-hub/hub-reactivate-subscription.yaml @@ -0,0 +1,39 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hub-reactivate-subscription +spec: + replicas: 1 + selector: + matchLabels: + app: hub-reactivate-subscription + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: hub-reactivate-subscription + spec: + imagePullSecrets: + - name: regcred + containers: + - name: hub-reactivate-subscription + image: "{{ .Values.kerberoshub.reactivate.repository }}:{{ .Values.kerberoshub.reactivate.tag }}" + imagePullPolicy: {{ .Values.kerberoshub.reactivate.pullPolicy }} + env: + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + - name: AWS_ACCESS_KEY_ID + value: "{{ .Values.kerberoshub.api.aws.accessKey }}" + - name: AWS_SECRET_ACCESS_KEY + value: "{{ .Values.kerberoshub.api.aws.secretKey }}" diff --git a/charts/hub/templates/kerberos-pipeline/pipe-analysis.yaml b/charts/hub/templates/kerberos-pipeline/pipe-analysis.yaml new file mode 100644 index 0000000..d5f0241 --- /dev/null +++ b/charts/hub/templates/kerberos-pipeline/pipe-analysis.yaml @@ -0,0 +1,67 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pipe-analysis +spec: + replicas: 1 + selector: + matchLabels: + app: pipe-analysis + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: pipe-analysis + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: pipe-analysis + image: "{{ .Values.kerberospipeline.analysis.repository }}:{{ .Values.kerberospipeline.analysis.tag }}" + imagePullPolicy: {{ .Values.kerberospipeline.analysis.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + - name: CLOUD_PROVIDER + value: "{{ .Values.cloudProvider }}" + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + + # Database + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" + + # Kerberos Vault + - name: KERBEROS_STORAGE_URI + value: "{{ .Values.kerberosvault.uri }}" + - name: KERBEROS_STORAGE_ACCESS_KEY + value: "{{ .Values.kerberosvault.accesskey }}" + - name: KERBEROS_STORAGE_SECRET + value: "{{ .Values.kerberosvault.secretkey }}" \ No newline at end of file diff --git a/charts/hub/templates/kerberos-pipeline/pipe-counting.yaml b/charts/hub/templates/kerberos-pipeline/pipe-counting.yaml new file mode 100644 index 0000000..b0b5cd2 --- /dev/null +++ b/charts/hub/templates/kerberos-pipeline/pipe-counting.yaml @@ -0,0 +1,49 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pipe-counting +spec: + replicas: 1 + selector: + matchLabels: + app: pipe-counting + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: pipe-counting + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: pipe-counting + image: "{{ .Values.kerberospipeline.counting.repository }}:{{ .Values.kerberospipeline.counting.tag }}" + imagePullPolicy: {{ .Values.kerberospipeline.counting.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + - name: CLOUD_PROVIDER + value: "{{ .Values.cloudProvider }}" + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" \ No newline at end of file diff --git a/charts/hub/templates/kerberos-pipeline/pipe-dominantcolor.yaml b/charts/hub/templates/kerberos-pipeline/pipe-dominantcolor.yaml new file mode 100644 index 0000000..5da2073 --- /dev/null +++ b/charts/hub/templates/kerberos-pipeline/pipe-dominantcolor.yaml @@ -0,0 +1,49 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pipe-dominantcolor +spec: + replicas: 1 + selector: + matchLabels: + app: pipe-dominantcolor + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: pipe-dominantcolor + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: pipe-dominantcolor + image: "{{ .Values.kerberospipeline.dominantColor.repository }}:{{ .Values.kerberospipeline.dominantColor.tag }}" + imagePullPolicy: {{ .Values.kerberospipeline.dominantColor.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + - name: CLOUD_PROVIDER + value: "{{ .Values.cloudProvider }}" + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" \ No newline at end of file diff --git a/charts/hub/templates/kerberos-pipeline/pipe-event.yaml b/charts/hub/templates/kerberos-pipeline/pipe-event.yaml new file mode 100644 index 0000000..7ef18f3 --- /dev/null +++ b/charts/hub/templates/kerberos-pipeline/pipe-event.yaml @@ -0,0 +1,59 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pipe-event +spec: + replicas: 1 + selector: + matchLabels: + app: pipe-event + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: pipe-event + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: pipe-event + image: "{{ .Values.kerberospipeline.event.repository }}:{{ .Values.kerberospipeline.event.tag }}" + imagePullPolicy: {{ .Values.kerberospipeline.event.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + - name: CLOUD_PROVIDER + value: "{{ .Values.cloudProvider }}" + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + + # Database + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" \ No newline at end of file diff --git a/charts/hub/templates/kerberos-pipeline/pipe-monitor.yaml b/charts/hub/templates/kerberos-pipeline/pipe-monitor.yaml new file mode 100644 index 0000000..fac1a3e --- /dev/null +++ b/charts/hub/templates/kerberos-pipeline/pipe-monitor.yaml @@ -0,0 +1,82 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pipe-monitor +spec: + replicas: 1 + selector: + matchLabels: + app: pipe-monitor + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: pipe-monitor + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: pipe-monitor + image: "{{ .Values.kerberospipeline.monitor.repository }}:{{ .Values.kerberospipeline.monitor.tag }}" + imagePullPolicy: {{ .Values.kerberospipeline.monitor.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + # Database + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + + # Queue + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" + + # Mail settings + - name: MAIL_PROVIDER + value: "{{ .Values.email.provider }}" + - name: EMAIL_FROM + value: "{{ .Values.email.from }}" + - name: EMAIL_FROM_DISPLAYNAME + value: "{{ .Values.email.displayName }}" + + # Mail templates + - name: DISABLED_TEMPLATE + value: "{{ .Values.email.templates.disabled }}" + - name: HIGHUPLOAD_TEMPLATE + value: "{{ .Values.email.templates.highupload }}" + + # SMTP + - name: SMTP_SERVER + value: "{{ .Values.email.smtp.server }}" + - name: SMTP_PORT + value: "{{ .Values.email.smtp.port }}" + - name: SMTP_USERNAME + value: "{{ .Values.email.smtp.username }}" + - name: SMTP_PASSWORD + value: "{{ .Values.email.smtp.password }}" diff --git a/charts/hub/templates/kerberos-pipeline/pipe-notify-test.yaml b/charts/hub/templates/kerberos-pipeline/pipe-notify-test.yaml new file mode 100644 index 0000000..e0652e3 --- /dev/null +++ b/charts/hub/templates/kerberos-pipeline/pipe-notify-test.yaml @@ -0,0 +1,95 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pipe-notify-test +spec: + replicas: 1 + selector: + matchLabels: + app: pipe-notify-test + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: pipe-notify-test + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.kerberospipeline.notifyTest.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: pipe-notify-test + image: "{{ .Values.kerberospipeline.notifyTest.repository }}:{{ .Values.kerberospipeline.notifyTest.tag }}" + imagePullPolicy: {{ .Values.kerberospipeline.notifyTest.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + {{- with .Values.kerberospipeline.notifyTest.volumeMounts}} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} + env: + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + + # Database + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + + # Kerberos Vault + - name: STORAGE_URI + value: "{{ .Values.kerberosvault.uri }}" + - name: STORAGE_ACCESS_KEY + value: "{{ .Values.kerberosvault.accesskey }}" + - name: STORAGE_SECRET_KEY + value: "{{ .Values.kerberosvault.secretkey }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" + + # Mail settings + - name: MAIL_PROVIDER + value: "{{ .Values.email.provider }}" + - name: EMAIL_FROM + value: "{{ .Values.email.from }}" + - name: EMAIL_FROM_DISPLAYNAME + value: "{{ .Values.email.displayName }}" + + # Mail templates + - name: DETECT_TEMPLATE + value: "{{ .Values.email.templates.detection }}" + + # SMTP + - name: SMTP_SERVER + value: "{{ .Values.email.smtp.server }}" + - name: SMTP_PORT + value: "{{ .Values.email.smtp.port }}" + - name: SMTP_USERNAME + value: "{{ .Values.email.smtp.username }}" + - name: SMTP_PASSWORD + value: "{{ .Values.email.smtp.password }}" diff --git a/charts/hub/templates/kerberos-pipeline/pipe-notify.yaml b/charts/hub/templates/kerberos-pipeline/pipe-notify.yaml new file mode 100644 index 0000000..0b34436 --- /dev/null +++ b/charts/hub/templates/kerberos-pipeline/pipe-notify.yaml @@ -0,0 +1,103 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pipe-notify +spec: + replicas: 1 + selector: + matchLabels: + app: pipe-notify + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: pipe-notify + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.kerberospipeline.notify.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: pipe-notify + image: "{{ .Values.kerberospipeline.notify.repository }}:{{ .Values.kerberospipeline.notify.tag }}" + imagePullPolicy: {{ .Values.kerberospipeline.notify.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + {{- with .Values.kerberospipeline.notify.volumeMounts}} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} + env: + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + - name: MAIL_PROVIDER + value: "{{ .Values.email.provider }}" + + # Database + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" + + # Kerberos Vault + - name: STORAGE_URI + value: "{{ .Values.kerberosvault.uri }}" + - name: STORAGE_ACCESS_KEY + value: "{{ .Values.kerberosvault.accesskey }}" + - name: STORAGE_SECRET_KEY + value: "{{ .Values.kerberosvault.secretkey }}" + + # Mail settings + - name: MAIL_PROVIDER + value: "{{ .Values.email.provider }}" + - name: EMAIL_FROM + value: "{{ .Values.email.from }}" + - name: EMAIL_FROM_DISPLAYNAME + value: "{{ .Values.email.displayName }}" + + # Mail templates + - name: DETECT_TEMPLATE + value: "{{ .Values.email.templates.detection }}" + + # SMTP + - name: SMTP_SERVER + value: "{{ .Values.email.smtp.server }}" + - name: SMTP_PORT + value: "{{ .Values.email.smtp.port }}" + - name: SMTP_USERNAME + value: "{{ .Values.email.smtp.username }}" + - name: SMTP_PASSWORD + value: "{{ .Values.email.smtp.password }}" + + # Mailgun + - name: MAILGUN_DOMAIN + value: "{{ .Values.email.mailgun.domain }}" + - name: MAILGUN_API_KEY + value: "{{ .Values.email.mailgun.apikey }}" diff --git a/charts/hub/templates/kerberos-pipeline/pipe-sequence.yaml b/charts/hub/templates/kerberos-pipeline/pipe-sequence.yaml new file mode 100644 index 0000000..29b3a00 --- /dev/null +++ b/charts/hub/templates/kerberos-pipeline/pipe-sequence.yaml @@ -0,0 +1,59 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pipe-sequence +spec: + replicas: 1 + selector: + matchLabels: + app: pipe-sequence + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: pipe-sequence + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: pipe-sequence + image: "{{ .Values.kerberospipeline.sequence.repository }}:{{ .Values.kerberospipeline.sequence.tag }}" + imagePullPolicy: {{ .Values.kerberospipeline.sequence.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + - name: CLOUD_PROVIDER + value: "{{ .Values.cloudProvider }}" + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + + # Database + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" \ No newline at end of file diff --git a/charts/hub/templates/kerberos-pipeline/pipe-throttler.yaml b/charts/hub/templates/kerberos-pipeline/pipe-throttler.yaml new file mode 100644 index 0000000..446ff4e --- /dev/null +++ b/charts/hub/templates/kerberos-pipeline/pipe-throttler.yaml @@ -0,0 +1,59 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pipe-throttler +spec: + replicas: 1 + selector: + matchLabels: + app: pipe-throttler + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: pipe-throttler + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: pipe-throttler + image: "{{ .Values.kerberospipeline.throttler.repository }}:{{ .Values.kerberospipeline.throttler.tag }}" + imagePullPolicy: {{ .Values.kerberospipeline.throttler.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + - name: CLOUD_PROVIDER + value: "{{ .Values.cloudProvider }}" + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + + # Database + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" \ No newline at end of file diff --git a/charts/hub/templates/kerberos-pipeline/pipe-thumbnail.yaml b/charts/hub/templates/kerberos-pipeline/pipe-thumbnail.yaml new file mode 100644 index 0000000..b5fc584 --- /dev/null +++ b/charts/hub/templates/kerberos-pipeline/pipe-thumbnail.yaml @@ -0,0 +1,49 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pipe-thumbnail +spec: + replicas: 1 + selector: + matchLabels: + app: pipe-thumbnail + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: pipe-thumbnail + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: pipe-thumbnail + image: "{{ .Values.kerberospipeline.thumbnail.repository }}:{{ .Values.kerberospipeline.thumbnail.tag }}" + imagePullPolicy: {{ .Values.kerberospipeline.thumbnail.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + - name: CLOUD_PROVIDER + value: "{{ .Values.cloudProvider }}" + - name: QUEUE_SYSTEM + value: "{{ .Values.queueProvider }}" + + # Kafka settings + - name: KAFKA_BROKER + value: "{{ .Values.kafka.broker }}" + - name: KAFKA_USERNAME + value: "{{ .Values.kafka.username }}" + - name: KAFKA_PASSWORD + value: "{{ .Values.kafka.password }}" + - name: KAFKA_MECHANISM + value: "{{ .Values.kafka.mechanism }}" + - name: KAFKA_SECURITY + value: "{{ .Values.kafka.security }}" \ No newline at end of file diff --git a/charts/hub/templates/kerberos-vault/vault-forwarder.yaml b/charts/hub/templates/kerberos-vault/vault-forwarder.yaml new file mode 100644 index 0000000..d2426b2 --- /dev/null +++ b/charts/hub/templates/kerberos-vault/vault-forwarder.yaml @@ -0,0 +1,56 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: vault-forwarder +spec: + replicas: 1 + selector: + matchLabels: + app: vault-forwarder + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: vault-forwarder + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: + - name: vault-forwarder + image: "{{ .Values.kerberoshub.forwarder.repository }}:{{ .Values.kerberoshub.forwarder.tag }}" + imagePullPolicy: {{ .Values.kerberoshub.forwarder.pullPolicy }} + resources: + requests: + memory: 10Mi + cpu: 10m + env: + - name: ITERATION_SPEED + value: "5" + - name: BUFFER_TIME + value: "3" + # Mongodb + - name: MONGODB_DATABASE_CLOUD + value: "Kerberos" + - name: MONGODB_HOST + value: "{{ .Values.mongodb.host }}" + - name: MONGODB_DATABASE_CREDENTIALS + value: "{{ .Values.mongodb.adminDatabase }}" + - name: MONGODB_USERNAME + value: "{{ .Values.mongodb.username }}" + - name: MONGODB_PASSWORD + value: "{{ .Values.mongodb.password }}" + + # Mqtt (VERNEMQ) + - name: MQTT_URI + value: "{{ .Values.mqtt.host }}" + - name: MQTT_USERNAME + value: "{{ .Values.mqtt.username }}" + - name: MQTT_PASSWORD + value: "{{ .Values.mqtt.password }}" diff --git a/charts/hub/templates/kerberos-vault/vault-proxy.yaml b/charts/hub/templates/kerberos-vault/vault-proxy.yaml new file mode 100644 index 0000000..9e2dcc8 --- /dev/null +++ b/charts/hub/templates/kerberos-vault/vault-proxy.yaml @@ -0,0 +1,58 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: vault-proxy +spec: + replicas: 3 + selector: + matchLabels: + app: vault-proxy + minReadySeconds: 10 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 + template: + metadata: + labels: + app: vault-proxy + spec: + imagePullSecrets: + - name: regcred + containers: + - name: vault-proxy + image: "{{ .Values.kerberoshub.proxy.repository }}:{{ .Values.kerberoshub.proxy.tag }}" + imagePullPolicy: {{ .Values.kerberoshub.proxy.pullPolicy }} + ports: + - containerPort: 8080 + name: http + env: + # Kerberos Hub API + - name: KERBEROS_API_CHECK_SUBSCRIPTION + value: "{{ .Values.kerberoshub.api.schema }}://{{ .Values.kerberoshub.api.url }}/user/has-subscription" + # Kerberos Vault + - name: KSTORAGE_URI + value: "{{ .Values.kerberosvault.uri }}/storage" + - name: KSTORAGE_ACCESSKEY + value: "{{ .Values.kerberosvault.accesskey }}" + - name: KSTORAGE_SECRET + value: "{{ .Values.kerberosvault.secretkey }}" + - name: KSTORAGE_PROVIDER + value: "{{ .Values.kerberosvault.provider }}" +--- +apiVersion: v1 +kind: Service +metadata: + name: vault-proxy-svc + labels: + app: vault-proxy-svc +spec: + type: LoadBalancer + ports: + - protocol: TCP + port: 80 + targetPort: 8080 + name: http + selector: + app: vault-proxy diff --git a/charts/hub/traefik/values-ssl.yaml b/charts/hub/traefik/values-ssl.yaml new file mode 100644 index 0000000..5d97f8e --- /dev/null +++ b/charts/hub/traefik/values-ssl.yaml @@ -0,0 +1,24 @@ +dashboard: + enabled: true + domain: yourdomain.com + serviceType: NodePort +rbac: + enabled: true +ssl: + enabled: true + enforced: true + permanentRedirect: true +acme: + enabled: true + challengeType: "dns-01" + email: ... + caServer: https://acme-v02.api.letsencrypt.org/directory + domains: + enabled: true + domainsList: + - main: "*.yourdomain.com" + dnsProvider: + name: cloudflare + cloudflare: + CLOUDFLARE_EMAIL: youremail + CLOUDFLARE_API_KEY: yourpassword diff --git a/charts/hub/values.yaml b/charts/hub/values.yaml new file mode 100644 index 0000000..4f275f3 --- /dev/null +++ b/charts/hub/values.yaml @@ -0,0 +1,345 @@ +# Default values for kerberoshub. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +########################################################################### +# LICENSING information: you will need both a license to run Kerberos Hub, +# and a Registry Key to pull the Kerberos Hub docker images from our private Gitlab repository. +# ---- +# Get your license from support@kerberos.io +license: "---ENTER-YOUR-LICENSE-HERE---" +licenseServer: + url: "https://license.kerberos.io/verify" + token: "214%ˆ#ddfsf@#3rfdsgl_)23sffeqasSwefDSFNBM" # do not change otherwise Kerberos Hub will not work. +# The registry secret to be able to download all the Docker images. +# Needs to be delivered after license purchase. +imagePullSecrets: + - name: regcred + +# Set to 'true' if this is a private deployment. +isPrivate: true + +# If you plan a migration or doing maintenance, you can enable readonly. +# This will stop any write process to mongodb or any processing done in the Kerberos Hub pipeline. +readOnly: false + +# Which network ingress you are using in your Kubernetes Cluster +ingress: "nginx" # or "traefik" + +# A mongodb instance is required to store all the relevant metadata. +mongodb: + host: mongodb.mongodb.svc.cluster.local + #host: "mongodb-0.mongodb-headless.mongodb:27017,mongodb-1.mongodb-headless.mongodb:27017" + adminDatabase: admin + username: yourusername + password: "yourpassword" + +# A MQTT broker (vernemq) is used to have a bi-directional +# communication between enterprise agents and kerberos hub. +mqtt: + host: "mqtt.yourdomain.com" + port: "8443" + protocol: "wss" + username: "yourusername" + password: "yourpassword" + legacy: + host: "" + port: "" + +# We are using a pipeline that is orchestrated through Kafka topics +# Events are send back and forth until the processing is done. +queueProvider: "KAFKA" +queueName: "kcloud-event-queue" # This is the topic to which all events are send. +kafka: + broker: "kafka1.yourdomain.com:9094,kafka2.yourdomain.com:9094" + username: "yourusername" + password: "yourpassword" + mechanism: "PLAIN" + security: "SASL_PLAINTEXT" + +# For allowing WEBRTC a STUN and TURN server is required. +turn: + host: "turn:turn.yourdomain.com:8443" + username: "username1" + password: "password1" + +# We have a kerberos vault component installed which contains all the +# recordings. Kerberos vault is queried to retrieve the recordings +# from the appropriate provider. +kerberosvault: + uri: "https://api.storage.yourdomain.com" + accesskey: "xxx" + secretkey: "xxx" + provider: "a-provider" + + # Archiving is used when creating a task. The underlying recording of the task will be copied from its + # existing provider to the below archived provider. Seperate credentials are used, as it makes possible to + # specify another retention period. + archive: + accesskey: "xxx" + secretkey: "xxx" + provider: "an-archive-provider" + +email: + provider: "mailgun" + from: "support@yourdomain.com" + displayName: "yourdomain.com" + mailgun: + domain: "mg.yourdomain.com" + apikey: "xxxx" + smtp: + server: "smtp.yourdomain.com" + port: "465" + username: "yourusername" + password: "yourpassword" + templates: + welcome: "welcome" + welcomeTitle: "Welcome to Kerberos Hub" + activate: "activate" + activateTitle: "Wonderful! Your Kerberos Hub is now active" + forgot: "forgot" + forgotTitle: "Password reset Kerberos Hub. You forgot your password" + share: "share" + shareTitle: "[Action] You received a recording from Kerberos Hub" + detection: "detection" + disabled: "disabled" + highupload: "highupload" + device: "device" + +# Following are all the different deployments needed to make +# Kerberos hub properly working. + +kerberoshub: + api: + repository: registry.gitlab.com/kerberos-io/kerberos-cloud-api + pullPolicy: IfNotPresent + tag: "1.0.561814049" + replicas: 2 + jwtSecret: "this-is-a-secret-please-change-to-random-string" # change to a random value, this is for generating JWT tokens. + schema: "https" + url: "api.yourdomain.com" + + # E-mail templates + #volumeMounts: + # - name: custom-email-templates + # mountPath: /mail + #volumes: + # - name: custom-email-templates + # persistentVolumeClaim: + # claimName: custom-layout-claim + + # When migrating to another url, this might help migrating. + #legacyUrl: "api.legacy.yourdomain.com" + + # Admin API's are made available for automation of Kerberos Hub. + # To access those API's (e.g. creation of owner users), an API key needs to be provided. + apiKey: "a-random-admin-api-key" + tls: + - hosts: + - "api.yourdomain.com" + secretName: kerberoshub-api + #- hosts: + # - "api.legacy.yourdomain.com" + # secretName: kerberoshub-api-legacy + - hosts: + - "admin.api.yourdomain.com" + secretName: kerberoshub-admin + language: "english" + fallbackLanguage: "english" + # Legacy (reseller) it is possible to link to AWS S3 and IAM (however Kerberos Vault is now the recommended option). + # This is primarily used for creation of subscriptions, and not needed if you are using mainly Kerberos Vault. + aws: + region: "xxx" + bucket: "xxx" + accessKey: "xxx" + secretKey: "xxx" + stripe: # We use stripe for billing, so it's possible to resell Kerberos Hub if agreed. + privateKey: "xxx" + slack: # Slack is used in the api, to send logs to a specific Slack channel. + enabled: "true" + hook: "yourslackhook" # https://hooks.slack.com/services/T08Q2Q9V5/xxKT/JALxxAk26bHtuqTfZ + username: "Kerberos Hub" # The slack username + elasticsearch: # Logs of the kerberos hub will be send to an elastic search cluster. + enabled: "true" + protocol: "http" + host: "yourelasticsearchinstance.com" + port: "9200" + index: "kerberos-cloud" + username: "" + password: "" + sso: # OIDC settings for allowing SSO. + issuer: "" #"https://accounts.google.com" + clientId: "" # 4294xxxxsk4no3.apps.googleusercontent.com" + clientSecret: "" # UksvZ-QKGdB1W2mOu5l_Jg3R" + redirectUrl: "/sso/response" + frontend: + repository: registry.gitlab.com/kerberos-io/kerberos-cloud-ng + pullPolicy: IfNotPresent + tag: "1.0.562012749" + replicas: 2 + schema: "https" + url: "yourdomain.com" + # The front-end but in read-only mode + #demoUrl: "demo.yourdomain.com" + # When migrating to another url, this might help migrating. + #legacyUrl: "legacy.yourdomain.com" + + tls: + - hosts: + - "yourdomain.com" + secretName: kerberoshub + #- hosts: + # - "legacy.yourdomain.com" + # secretName: kerberoshub-legacy + #demoTls: + # - hosts: + # - "demo.yourdomain.com" + # secretName: kerberoshub-demo + ssoDomain: "@yourdomain.com" + mixpanel: # We can keep track logging in Mixpanel as well + apikey: "xxx" + sentry: # We can trace errors in Sentry + url: "https://xxx@sentry.io/xxx" + stripe: # We use stripe for billing, so it's possible to resell Kerberos Hub if agreed. + publicKey: "" + googlemaps: # Google maps is used inside the application to visualise cameras and sites. + apikey: "xxxx" + zendesk: # We can use different support tools, for now we use Zendesk but others can be integrated + url: "yourdomain.zendesk.com" + posthog: # Posthog is used for auditing and user interaction logging + key: "xxx" + url: "https://posthog.domain.com" + + # Multi tenancy (domains) + # By default the Kerberos Hub allows multi-tenancy through the concept + # of accounts and subaccounts. However through the concept of domains, you + # take it a step further. Within a domain, user accounts are unique, and are prefixed by a (domain\). + #multiTenant: true + #tenantBaseDomain: "yourdomain.com" # this would resolve in following sub domain "https://domain.kerberos.io" + + # Page title (browser) + title: "Kerberos Hub - Video surveillance as it should be" + + # You can style Kerberos hub as you wish. + # 1. we do the styling on our side and bake it in the Docker image (change the logo attribute to your company name) + # 2. you bring your own logo (set logo to 'custom'), and mount the css file and favicons. + # we will need to include your logo in the Docker image, so please reach out to us. + logo: "custom" + # Custom layout: override css + # By providing a style.css file in the custom folder + # this file will override any css styling. + #volumeMounts: + # - name: custom-layout + # mountPath: /usr/share/nginx/html/assets/custom + # - name: custom-favicon + # mountPath: /usr/share/nginx/html/assets/favicon + #volumes: + # - name: custom-layout + # persistentVolumeClaim: + # claimName: custom-layout-claim + # - name: custom-favicon + # persistentVolumeClaim: + # claimName: custom-favicon-claim + + # By specifying the below environments variables, you can tweak the + # headings and paragraphs of Kerberos Hub. + # Login page + loginDescription: "" + loginCopyright: "" + # Dashboard page + dashboardTitle: "" + dashboardSubTitle: "" + # Latest events page + latestEventsTitle: "" + latestEventsSubTitle: "" + # Livestream/view page + livestreamTitle: "" + livestreamSubTitle: "" + # Media page + mediaTitle: "" + mediaSubTitle: "" + # Optional - for custom page. + cpuUsageDescription: "" + framesPerSecondDescription: "" + mlaUtilizationDescription: "" + objectsDetectedDescription: "" + + cleanup: + repository: registry.gitlab.com/kerberos-io/kerberos-cloud-cleanup + pullPolicy: IfNotPresent + tag: "1.0.2547054620" + forwarder: + repository: registry.gitlab.com/kerberos-io/vault-forwarder + pullPolicy: IfNotPresent + tag: "1.0.1613962421" + monitordevice: + repository: registry.gitlab.com/kerberos-io/kerberos-monitor-device + pullPolicy: IfNotPresent + tag: "1.0.1919848645" + reactivate: + repository: registry.gitlab.com/kerberos-io/kerberos-reactivate + pullPolicy: IfNotPresent + tag: "1.0.2041756405" + # This proxy is legacy for the old agent, will be migrated in the new Hub API. + proxy: + repository: registry.gitlab.com/kerberos-io/kerberos-cloud-proxy + pullPolicy: IfNotPresent + tag: "1.0.2041838648" + +kerberospipeline: + event: + repository: registry.gitlab.com/kerberos-io/kcloud-event-queue + pullPolicy: IfNotPresent + tag: "1.0.766190255" + monitor: + repository: registry.gitlab.com/kerberos-io/kcloud-monitor-queue + pullPolicy: IfNotPresent + tag: "1.0.2040627860" + sequence: + repository: registry.gitlab.com/kerberos-io/kcloud-sequence-queue + pullPolicy: IfNotPresent + tag: "1.0.2314347527" + throttler: + repository: registry.gitlab.com/kerberos-io/kcloud-throttler-queue + pullPolicy: IfNotPresent + tag: "1.0.1613950978" + notify: + repository: registry.gitlab.com/kerberos-io/kcloud-notify-queue + pullPolicy: IfNotPresent + tag: "1.0.2577548836" + # E-mail templates + #volumeMounts: + # - name: custom-email-templates + # mountPath: /mail + #volumes: + # - name: custom-email-templates + # persistentVolumeClaim: + # claimName: custom-layout-claim + notifyTest: + repository: registry.gitlab.com/kerberos-io/kcloud-notify-test-queue + pullPolicy: IfNotPresent + tag: "1.0.2552881172" + # E-mail templates + #volumeMounts: + # - name: custom-email-templates + # mountPath: /mail + #volumes: + # - name: custom-email-templates + # persistentVolumeClaim: + # claimName: custom-layout-claim + analysis: + repository: registry.gitlab.com/kerberos-io/kcloud-analysis-queue + pullPolicy: IfNotPresent + tag: "1.0.2487163772" + dominantColor: + repository: registry.gitlab.com/kerberos-io/kcloud-dominantcolor-queue + pullPolicy: IfNotPresent + tag: "1.0.906298340" + thumbnail: + repository: registry.gitlab.com/kerberos-io/kcloud-thumbnail-queue + pullPolicy: IfNotPresent + tag: "1.0.1294067330" + counting: + repository: kerberos/hub-pipe-counting + pullPolicy: IfNotPresent + tag: "1.0.2488400759" diff --git a/charts/hub/vernemq/values.yaml b/charts/hub/vernemq/values.yaml new file mode 100644 index 0000000..3cb90fc --- /dev/null +++ b/charts/hub/vernemq/values.yaml @@ -0,0 +1,243 @@ +# Default values for vernemq. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicaCount: 1 + +image: + repository: vernemq/vernemq + tag: 1.12.3-alpine + + pullPolicy: IfNotPresent + +nameOverride: "" +fullnameOverride: "" + +serviceMonitor: + create: false + labels: {} + +service: + # Can be disabled if more advanced use cases require more complex setups, e.g., combining LoadBalancer and ClusterIP for internal and external access. See also issue #274. + enabled: true + # NodePort - Listen to a port on nodes and forward to the service. + # ClusterIP - Listen on the service internal to the cluster only. + # LoadBalancer - Create a LoadBalancer in the cloud provider and forward to the service. + type: LoadBalancer +# clusterIP: 10.1.2.4 +# externalIPs: [] +# loadBalancerIP: 10.1.2.4 +# loadBalancerSourceRanges: [] +# externalTrafficPolicy: Local +# sessionAffinity: None +# sessionAffinityConfig: {} + mqtt: + enabled: true + port: 1883 + # This is the port used by nodes to expose the service + nodePort: 1883 + mqtts: + enabled: true + port: 8883 + # This is the port used by nodes to expose the service + nodePort: 8883 + ws: + enabled: true + port: 8080 + # This is the port used by nodes to expose the service + nodePort: 8080 + wss: + enabled: true + port: 8443 + # This is the port used by nodes to expose the service + nodePort: 8443 + annotations: {} + labels: {} + +## Ingress can optionally be applied when enabling the MQTT websocket service +## This allows for an ingress controller to route web ports and arbitrary hostnames +## and paths to the websocket service as well as allow the controller to handle TLS +## termination for the websocket traffic. Ingress is only possible for traffic exchanged +## over HTTP, so ONLY the websocket service take advantage of ingress. +ingress: + className: "" + enabled: false + + labels: {} + + annotations: {} + + ## Hosts must be provided if ingress is enabled. + ## + hosts: [] + # - vernemq.domain.com + + ## Paths to use for ingress rules. + ## + paths: + - path: / + pathType: ImplementationSpecific + + + ## TLS configuration for ingress + ## Secret must be manually created in the namespace + ## + tls: [] + # - secretName: vernemq-tls + # hosts: + # - vernemq.domain.com + +## VerneMQ resources requests and limits +## Ref: http://kubernetes.io/docs/user-guide/compute-resources +resources: {} + ## We usually recommend not to specify default resources and to leave this as a conscious + ## choice for the user. This also increases chances charts run on environments with little + ## resources, such as Minikube. If you do want to specify resources, uncomment the following + ## lines, adjust them as necessary, and remove the curly braces after 'resources:'. +# limits: +# cpu: 1 +# memory: 256Mi +# requests: +# cpu: 1 +# memory: 256Mi + +## Node labels for pod assignment +## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector +nodeSelector: {} + +## Node tolerations for pod assignment +## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature +tolerations: [] + +## Pod affinity +## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity +podAntiAffinity: soft + +securityContext: + runAsUser: 10000 + runAsGroup: 10000 + fsGroup: 10000 + +## If RBAC is enabled on the cluster,VerneMQ needs a service account +## with permissisions sufficient to list pods +rbac: + create: true + serviceAccount: + create: true + ## Service account name to be used. + ## If not set and serviceAccount.create is true a name is generated using the fullname template. +# name: + +persistentVolume: + ## If true, VerneMQ will create/use a Persistent Volume Claim + ## If false, use local directory + enabled: false + + ## VerneMQ data Persistent Volume access modes + ## Must match those of existing PV or dynamic provisioner + ## Ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ + accessModes: + - ReadWriteOnce + + ## VerneMQ data Persistent Volume size + size: 5Gi + + ## VerneMQ data Persistent Volume Storage Class + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. (gp2 on AWS, standard on + ## GKE, AWS & OpenStack) +# storageClass: "" + + ## Annotations for Persistent Volume Claim + annotations: {} + +extraVolumeMounts: [] +## Additional volumeMounts to the pod. +# - name: additional-volume-mount +# mountPath: /var/additional-volume-path + +extraVolumes: [] +## Additional volumes to the pod. +# - name: additional-volume +# emptyDir: {} + +# A list of secrets and their paths to mount inside the pod +# This is useful for mounting certificates for security (tls) +secretMounts: + - name: vernemq-certificates + secretName: vernemq-certificates-secret + path: /etc/ssl/vernemq + +statefulset: + ## Start and stop pods in Parallel or OrderedReady (one-by-one.) Note - Can not change after first release. + ## Ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy + podManagementPolicy: OrderedReady + ## Statefulsets rolling update update strategy + ## Ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#rolling-update + updateStrategy: RollingUpdate + ## Configure how much time VerneMQ takes to move offline queues to other nodes + ## Ref: https://vernemq.com/docs/clustering/#detailed-cluster-leave-case-a-make-a-live-node-leave + terminationGracePeriodSeconds: 60 + ## Liveness and Readiness probe values + ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes + livenessProbe: + initialDelaySeconds: 90 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 3 + readinessProbe: + initialDelaySeconds: 90 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 3 + podAnnotations: {} +# prometheus.io/scrape: "true" +# prometheus.io/port: "8888" + annotations: {} + labels: {} + lifecycle: {} + +pdb: + enabled: false + minAvailable: 1 + # maxUnavailable: 1 + +## VerneMQ settings + +additionalEnv: + - name: DOCKER_VERNEMQ_ALLOW_REGISTER_DURING_NETSPLIT + value: "on" + - name: DOCKER_VERNEMQ_ALLOW_PUBLISH_DURING_NETSPLIT + value: "on" + - name: DOCKER_VERNEMQ_ALLOW_SUBSCRIBE_DURING_NETSPLIT + value: "on" + - name: DOCKER_VERNEMQ_ALLOW_UNSUBSCRIBE_DURING_NETSPLIT + value: "on" + - name: DOCKER_VERNEMQ_ACCEPT_EULA + value: "yes" + - name: DOCKER_VERNEMQ_ALLOW_ANONYMOUS + value: "off" + - name: DOCKER_VERNEMQ_USER_YOURUSERNAME + value: "yourpassword" + - name: DOCKER_VERNEMQ_LISTENER__SSL__CAFILE + value: "/etc/ssl/vernemq/tls.crt" + - name: DOCKER_VERNEMQ_LISTENER__SSL__CERTFILE + value: "/etc/ssl/vernemq/tls.crt" + - name: DOCKER_VERNEMQ_LISTENER__SSL__KEYFILE + value: "/etc/ssl/vernemq/tls.key" + - name: DOCKER_VERNEMQ_LISTENER__WSS__CAFILE + value: "/etc/ssl/vernemq/tls.crt" + - name: DOCKER_VERNEMQ_LISTENER__WSS__CERTFILE + value: "/etc/ssl/vernemq/tls.crt" + - name: DOCKER_VERNEMQ_LISTENER__WSS__KEYFILE + value: "/etc/ssl/vernemq/tls.key" + +envFrom: [] +# add additional environment variables e.g. from a configmap or secret +# can be usefull if you wanna use authentication via files +# - secretRef: +# name: vernemq-users diff --git a/charts/hub/vernemq/vernemq-certificate.yaml b/charts/hub/vernemq/vernemq-certificate.yaml new file mode 100644 index 0000000..23cc16e --- /dev/null +++ b/charts/hub/vernemq/vernemq-certificate.yaml @@ -0,0 +1,11 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: vernemq-certificates +spec: + dnsNames: + - "mqtt.yourdomain.com" + issuerRef: + kind: ClusterIssuer + name: vernemq-letsencrypt-iss + secretName: vernemq-certificates-secret diff --git a/charts/hub/vernemq/vernemq-issuer.yaml b/charts/hub/vernemq/vernemq-issuer.yaml new file mode 100644 index 0000000..3750df6 --- /dev/null +++ b/charts/hub/vernemq/vernemq-issuer.yaml @@ -0,0 +1,18 @@ +apiVersion: cert-manager.io/v1 +kind: ClusterIssuer +metadata: + name: vernemq-letsencrypt-iss +spec: + acme: + email: xxx@xxx.io + server: https://acme-v02.api.letsencrypt.org/directory + privateKeySecretRef: + name: vernemq-letsencrypt-iss-key + solvers: + - selector: {} + dns01: + cloudflare: + email: xxx@xxx.io + apiKeySecretRef: + name: cloudflare-api-key-secret + key: api-key diff --git a/charts/hub/vernemq/vernemq-secret.yaml b/charts/hub/vernemq/vernemq-secret.yaml new file mode 100644 index 0000000..9caa94a --- /dev/null +++ b/charts/hub/vernemq/vernemq-secret.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: Secret +metadata: + name: cloudflare-api-key-secret +type: Opaque +stringData: + api-key: xxxx \ No newline at end of file