Skip to content

Commit

Permalink
[uniconfig] Uniconfig 6.1.1 and setting for Frinx Machine 6.1 (#391)
Browse files Browse the repository at this point in the history
Co-authored-by: Jozef Volak <[email protected]>
  • Loading branch information
Jozefiel and Jozef Volak authored Jul 10, 2024
1 parent 75169e5 commit a864a37
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 36 deletions.
21 changes: 15 additions & 6 deletions charts/uniconfig/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: uniconfig
version: 7.1.0
appVersion: "6.0.0"
version: 8.0.0
appVersion: "6.1.1"
description: A Helm chart for UniConfig Kubernetes deployment
type: application
home: https://github.com/FRINXio/helm-charts
Expand All @@ -10,6 +10,10 @@ dependencies:
name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 11.x.x
- condition: kafka.enabled
name: kafka
version: 25.2.0
repository: https://charts.bitnami.com/bitnami
maintainers:
- name: FRINX
email: [email protected]
Expand All @@ -18,12 +22,17 @@ icon: https://avatars.githubusercontent.com/u/23452093?s=200&v=4
annotations:
artifacthub.io/changes: |
- kind: added
description: Added default resource limits for init initContainers
description: Enabled Kafka notifications by default
links:
- name: GitHub PR
url: https://github.com/FRINXio/helm-charts/pull/391
- kind: added
description: Added kafka brooker into chart dependency
links:
- name: GitHub PR
url: https://github.com/FRINXio/helm-charts/pull/374
url: https://github.com/FRINXio/helm-charts/pull/391
- kind: added
description: Added possibility to set imagePullPolicy for initContainers
description: Added startup probe
links:
- name: GitHub PR
url: https://github.com/FRINXio/helm-charts/pull/374
url: https://github.com/FRINXio/helm-charts/pull/391
41 changes: 32 additions & 9 deletions charts/uniconfig/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,40 @@
# uniconfig

![Version: 7.0.0](https://img.shields.io/badge/Version-7.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.0.0](https://img.shields.io/badge/AppVersion-6.0.0-informational?style=flat-square)

A Helm chart for UniConfig Kubernetes deployment

**Homepage:** <https://github.com/FRINXio/helm-charts>
![Version: 8.0.0](https://img.shields.io/badge/Version-8.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.1.1](https://img.shields.io/badge/AppVersion-6.1.1-informational?style=flat-square)

## Get Repo Info

```console
helm repo add frinx https://FRINXio.github.io/helm-charts
helm repo update
```

## Install Chart

```console
helm install [RELEASE_NAME] frinx/uniconfig
```

## Upgrading Chart

```console
helm upgrade [RELEASE_NAME] frinx/uniconfig
```

## Maintainers
## Uninstall Chart

| Name | Email | Url |
| ---- | ------ | --- |
| FRINX | <[email protected]> | <https://frinx.io> |
```console
helm uninstall [RELEASE_NAME]
```

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| [bitnami](https://charts.bitnami.com/bitnami) | postgresql | 11.x.x |
| https://charts.bitnami.com/bitnami | kafka | 25.2.0 |
| https://charts.bitnami.com/bitnami | postgresql | 11.x.x |

## Values

Expand All @@ -33,7 +51,7 @@ A Helm chart for UniConfig Kubernetes deployment
| dbPersistence.POSTGRES_PASSWORD | string | `"postgresP"` | |
| dbPersistence.POSTGRES_USERNAME | string | `"postgresU"` | Database credentials. Exposed when existing dbPersistence.existingSecret.secretName is empty |
| dbPersistence.existingSecret | object | `{"clishellSshserverUsernamepasswordauthPasswordKey":null,"postgresPasswordKey":null,"postgresUsernameKey":null,"secretName":null}` | Existing database credentials |
| extraEnv | object | `{"CLISHELL_SSHSERVER_ENABLED":true,"CLISHELL_SSHSERVER_INETADDRESS":"0.0.0.0","DBPERSISTENCE_CONNECTION_DATABASELOCATIONS_0_PORT":5432,"DBPERSISTENCE_CONNECTION_MAXDBPOOLSIZE":300,"DBPERSISTENCE_EMBEDDEDDATABASE_ENABLED":false,"SPRING_AUTOCONFIGURE_EXCLUDE":"org.springframework.cloud.stream.function.FunctionConfiguration","SPRING_CLOUD_BUS_ENABLED":false,"TRANSACTIONS_MAXSTOREDTRANSACTIONS":100,"TRANSACTIONS_MAXTRANSACTIONAGE":7200,"TRANSACTIONS_TRANSACTIONIDLETIMEOUT":3600,"UNICONFIG_CLOUD_CONFIG_ENABLED":false}` | Application properties |
| extraEnv | object | `{"CLISHELL_SSHSERVER_ENABLED":true,"CLISHELL_SSHSERVER_INETADDRESS":"0.0.0.0","DBPERSISTENCE_CONNECTION_DATABASELOCATIONS_0_PORT":5432,"DBPERSISTENCE_CONNECTION_MAXDBPOOLSIZE":300,"DBPERSISTENCE_EMBEDDEDDATABASE_ENABLED":false,"NOTIFICATIONS_ENABLED":true,"NOTIFICATIONS_KAFKA_KAFKASERVERS_0_BROKERHOST":"kafka","NOTIFICATIONS_KAFKA_KAFKASERVERS_0_BROKERLISTENINGPORT":9092,"SPRING_AUTOCONFIGURE_EXCLUDE":"org.springframework.cloud.stream.function.FunctionConfiguration","SPRING_CLOUD_BUS_ENABLED":false,"SPRING_KAFKA_BOOTSTRAPSERVERS":"http://kafka:9092","TRANSACTIONS_MAXSTOREDTRANSACTIONS":100,"TRANSACTIONS_MAXTRANSACTIONAGE":7200,"TRANSACTIONS_TRANSACTIONIDLETIMEOUT":3600,"UNICONFIG_CLOUD_CONFIG_ENABLED":false}` | Application properties |
| extraInitContainers | list | `[]` | Extra init containers |
| extraLogbackConfigMap | string | `nil` | |
| extraScriptConfigMap | string | `nil` | |
Expand All @@ -56,21 +74,26 @@ A Helm chart for UniConfig Kubernetes deployment
| ingress.labels | object | `{}` | Additional labels for the Ingress resource |
| ingress.tls | list | `[]` | [Ingress TLS resource](https://kubernetes.io/docs/concepts/services-networking/ingress/#tls) |
| java | object | `{"max_mem":"10G"}` | Java max memory for Uniconfig container |
| kafka | object | `{"fullnameOverride":"kafka","listeners":{"client":{"protocol":"PLAINTEXT"}}}` | [Kafka subchart: "https://artifacthub.io/packages/helm/bitnami/kafka"] |
| livenessProbe | object | `{"failureThreshold":10,"timeoutSeconds":35}` | Liveness probe |
| mibsConfigs | object | `{}` | global configuration of mibs |
| nameOverride | string | `""` | String to partially override app name |
| nodeSelector | object | `{}` | [Node labels for pod assignment](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/) |
| podAnnotations | object | `{}` | Pod annotations |
| podSecurityContext | object | `{}` | Configure [Pods Security Context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) |
| postgresql | object | `{"architecture":"standalone","auth":{"database":"uniconfig","enablePostgresUser":true,"password":"postgresP","username":"postgresU"},"enabled":true}` | Internal Postgres Database |
| proxy | object | `{"config":{"HTTPS_PROXY":null,"HTTP_PROXY":null,"NO_PROXY":null},"enabled":false}` | Configure proxy settings fr unicnfig container |
| readinessProbe | object | `{"failureThreshold":10,"timeoutSeconds":35}` | Readiness probe |
| replicaCount | int | `1` | Number of replicas of the deployment. If you want to use more than 1 replica, must deploy it with cookie sticky sessions To create sticky session, deploy it with traefik and set highAvailability.enabled=true |
| resources | object | `{}` | [Container resources](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/) |
| securityContext | object | `{}` | Configure [Container Security Context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) |
| service.annotations | object | `{}` | |
| service.loadBalancerIP | string | `nil` | Service [Load Balancer IP](https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer) |
| service.port | int | `8181` | Service port |
| service.type | string | `"ClusterIP"` | Service type |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| startupProbe | object | `{"failureThreshold":25,"timeoutSeconds":35}` | Startup probe |
| tolerations | list | `[]` | [Tolerations for pod assignment](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) |

35 changes: 35 additions & 0 deletions charts/uniconfig/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{{ template "chart.header" . }}
{{ template "chart.description" . }}

{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}

## Get Repo Info

```console
helm repo add frinx https://FRINXio.github.io/helm-charts
helm repo update
```

## Install Chart

```console
helm install [RELEASE_NAME] frinx/{{ template "chart.name" . }}
```

## Upgrading Chart

```console
helm upgrade [RELEASE_NAME] frinx/{{ template "chart.name" . }}
```

## Uninstall Chart

```console
helm uninstall [RELEASE_NAME]
```

{{ template "chart.requirementsSection" . }}

{{ template "chart.valuesSection" . }}

{{ template "helm-docs.versionFooter" . }}
18 changes: 4 additions & 14 deletions charts/uniconfig/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,22 +155,12 @@ spec:
- name: uc-rest-port
containerPort: 8181
protocol: TCP
startupProbe:
{{- toYaml .Values.startupProbe | nindent 12 }}
livenessProbe:
exec:
command:
- /bin/sh
- -c
- 'curl --insecure -o /dev/null --silent --write-out "%{http_code}" -X POST localhost:8181/rests/operations/uniconfig-manager:health -H "Content-Type:application/json"'
timeoutSeconds: 35
failureThreshold: 20
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
exec:
command:
- /bin/sh
- -c
- 'curl --insecure -o /dev/null --silent --write-out "%{http_code}" -X POST localhost:8181/rests/operations/uniconfig-manager:health -H "Content-Type:application/json"'
timeoutSeconds: 35
failureThreshold: 20
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
securityContext:
Expand Down
64 changes: 57 additions & 7 deletions charts/uniconfig/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ podAnnotations: {}
podSecurityContext:
{}
# fsGroup: 2000
# securityContext:
# capabilities:
# drop:
# - ALL
# add:
# - CAP_NET_BIND_SERVICE
# - NET_ADMIN

# -- Configure [Container Security Context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
securityContext:
{}
# capabilities:
# drop:
# - ALL
# add:
# - CAP_NET_BIND_SERVICE
# - NET_ADMIN

service:
annotations: {}
Expand Down Expand Up @@ -176,6 +179,39 @@ proxy:
HTTPS_PROXY:
NO_PROXY:

# -- Startup probe
startupProbe:
# @ignored
exec:
command:
- /bin/sh
- -c
- 'curl --insecure -o /dev/null --silent --write-out "%{http_code}" -X POST localhost:8181/rests/operations/uniconfig-manager:health -H "Content-Type:application/json"'
timeoutSeconds: 35
failureThreshold: 25

# -- Liveness probe
livenessProbe:
# @ignored
exec:
command:
- /bin/sh
- -c
- 'curl --insecure -o /dev/null --silent --write-out "%{http_code}" -X POST localhost:8181/rests/operations/uniconfig-manager:health -H "Content-Type:application/json"'
timeoutSeconds: 35
failureThreshold: 10

# -- Readiness probe
readinessProbe:
# @ignored
exec:
command:
- /bin/sh
- -c
- 'curl --insecure -o /dev/null --silent --write-out "%{http_code}" -X POST localhost:8181/rests/operations/uniconfig-manager:health -H "Content-Type:application/json"'
timeoutSeconds: 35
failureThreshold: 10

# -- Java max memory for Uniconfig container
java:
max_mem: "10G"
Expand Down Expand Up @@ -213,6 +249,11 @@ extraEnv:
UNICONFIG_CLOUD_CONFIG_ENABLED: false
SPRING_CLOUD_BUS_ENABLED: false
SPRING_AUTOCONFIGURE_EXCLUDE: org.springframework.cloud.stream.function.FunctionConfiguration
# kafka NOTIFICATIONS
NOTIFICATIONS_ENABLED: true
NOTIFICATIONS_KAFKA_KAFKASERVERS_0_BROKERHOST: kafka
NOTIFICATIONS_KAFKA_KAFKASERVERS_0_BROKERLISTENINGPORT: 9092
SPRING_KAFKA_BOOTSTRAPSERVERS: http://kafka:9092

# External services
# -- Internal Postgres Database
Expand All @@ -224,3 +265,12 @@ postgresql:
password: postgresP
database: uniconfig
architecture: standalone

# -- [Kafka subchart: "https://artifacthub.io/packages/helm/bitnami/kafka"]
kafka:
# @ignored
enabled: true
fullnameOverride: kafka
listeners:
client:
protocol: PLAINTEXT

0 comments on commit a864a37

Please sign in to comment.