diff --git a/chart/Chart.yaml b/chart/Chart.yaml index f4e8a7f..0be9731 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -31,10 +31,6 @@ dependencies: - name: owrrm repository: "git+https://github.com/Telecominfraproject/wlan-cloud-rrm@helm?ref=main" version: 0.1.0 -- name: kafka - repository: https://tip.jfrog.io/artifactory/tip-wlan-cloud-ucentral-helm/ - version: 13.0.2 - condition: kafka.enabled - name: owls repository: "git+https://github.com/Telecominfraproject/wlan-cloud-owls@helm?ref=main" version: 0.1.0 @@ -43,6 +39,10 @@ dependencies: repository: "git+https://github.com/Telecominfraproject/wlan-cloud-owls-ui@helm?ref=master" version: 0.1.0 condition: owlsui.enabled +- name: kafka + repository: oci://registry-1.docker.io/bitnamicharts + version: 26.8.3 + condition: kafka.enabled - name: haproxy repository: oci://registry-1.docker.io/bitnamicharts version: 0.13.3 diff --git a/chart/environment-values/.gitignore b/chart/environment-values/.gitignore index 9e919eb..7178b94 100644 --- a/chart/environment-values/.gitignore +++ b/chart/environment-values/.gitignore @@ -1,3 +1,3 @@ -_values.custom_*.yaml +_values.custom-*.yaml certs/ env_* diff --git a/chart/environment-values/cleanup.sh b/chart/environment-values/cleanup.sh index 499b02e..75b8d9f 100755 --- a/chart/environment-values/cleanup.sh +++ b/chart/environment-values/cleanup.sh @@ -1,8 +1,15 @@ #!/bin/bash [ -z "$NAMESPACE" ] && echo "No NAMESPACE set" && exit 1 -helm -n openwifi-"$NAMESPACE" delete tip-openwifi +ns="openwifi-$NAMESPACE" +echo "Cleaning up namespace $ns in 10 seconds..." +sleep 10 +echo "- delete tip-openwifi helm release in $ns" +helm -n "$ns" delete tip-openwifi if [[ "$1" == "full" ]] ; then + echo "- delete $ns namespace in 30 seconds..." sleep 30 - kubectl delete ns openwifi-"$NAMESPACE" + echo "- delete $ns namespace" + kubectl delete ns "$ns" fi +echo "- cleaned up $ns namespace" exit 0 diff --git a/chart/environment-values/values.base.insecure.yaml b/chart/environment-values/values.base.insecure.yaml index 0692ca5..c2516a1 100644 --- a/chart/environment-values/values.base.insecure.yaml +++ b/chart/environment-values/values.base.insecure.yaml @@ -77,10 +77,40 @@ owprovui: REACT_APP_UCENTRALSEC_URL: http://localhost:16001 kafka: - heapOpts: -Xmx512m -Xms512m + volumePermissions: + enabled: true + commonAnnotations: + cluster-autoscaler.kubernetes.io/safe-to-evict: "false" + #resources: + # requests: + # cpu: 100m + # memory: 512Mi + # limits: + # cpu: 500m + # memory: 1Gi readinessProbe: initialDelaySeconds: 45 livenessProbe: initialDelaySeconds: 60 + kraft: + enabled: true + heapOpts: -Xmx1024m -Xms1024m zookeeper: - heapSize: 256 + enabled: false + controller: + replicaCount: 1 + extraConfig: |- + maxMessageBytes = 1048588 + extraEnvVars: + - name: ALLOW_PLAINTEXT_LISTENER + value: "yes" + listeners: + client: + protocol: PLAINTEXT + containerPort: 9092 + controller: + protocol: "PLAINTEXT" + broker: + persistence: + size: 20Gi + replicaCount: 1 diff --git a/chart/environment-values/values.base.secure.yaml b/chart/environment-values/values.base.secure.yaml index 39f4110..08affdf 100644 --- a/chart/environment-values/values.base.secure.yaml +++ b/chart/environment-values/values.base.secure.yaml @@ -323,13 +323,43 @@ owprovui: REACT_APP_UCENTRALSEC_URL: https://localhost:16001 kafka: - heapOpts: -Xmx512m -Xms512m + volumePermissions: + enabled: true + commonAnnotations: + cluster-autoscaler.kubernetes.io/safe-to-evict: "false" + #resources: + # requests: + # cpu: 100m + # memory: 512Mi + # limits: + # cpu: 500m + # memory: 1Gi readinessProbe: initialDelaySeconds: 45 livenessProbe: initialDelaySeconds: 60 + kraft: + enabled: true + heapOpts: -Xmx1024m -Xms1024m zookeeper: - heapSize: 256 + enabled: false + controller: + replicaCount: 1 + extraConfig: |- + maxMessageBytes = 1048588 + extraEnvVars: + - name: ALLOW_PLAINTEXT_LISTENER + value: "yes" + listeners: + client: + protocol: PLAINTEXT + containerPort: 9092 + controller: + protocol: "PLAINTEXT" + broker: + persistence: + size: 20Gi + replicaCount: 1 restapiCerts: enabled: true diff --git a/chart/environment-values/values.openwifi-qa.yaml b/chart/environment-values/values.openwifi-qa.yaml index a7c9461..3ece895 100644 --- a/chart/environment-values/values.openwifi-qa.yaml +++ b/chart/environment-values/values.openwifi-qa.yaml @@ -811,31 +811,43 @@ owrrm: memory: 512Mi kafka: + volumePermissions: + enabled: true commonAnnotations: cluster-autoscaler.kubernetes.io/safe-to-evict: "false" - heapOpts: -Xmx512m -Xms512m - resources: - requests: - cpu: 100m - memory: 512Mi - limits: - cpu: 500m - memory: 1Gi + #resources: + # requests: + # cpu: 100m + # memory: 512Mi + # limits: + # cpu: 500m + # memory: 1Gi readinessProbe: initialDelaySeconds: 45 livenessProbe: initialDelaySeconds: 60 + heapOpts: -Xmx1024m -Xms1024m + kraft: + enabled: true zookeeper: - commonAnnotations: - cluster-autoscaler.kubernetes.io/safe-to-evict: "false" - heapSize: 256 - resources: - requests: - cpu: 100m - memory: 256Mi - limits: - cpu: 200m - memory: 384Mi + enabled: false + controller: + replicaCount: 1 + extraConfig: |- + maxMessageBytes = 1048588 + extraEnvVars: + - name: ALLOW_PLAINTEXT_LISTENER + value: "yes" + listeners: + client: + protocol: PLAINTEXT + containerPort: 9092 + controller: + protocol: "PLAINTEXT" + broker: + persistence: + size: 20Gi + replicaCount: 2 clustersysteminfo: enabled: true diff --git a/chart/values.yaml b/chart/values.yaml index c001e83..ceb27fd 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -58,13 +58,6 @@ owrrm: kafka: enabled: true fullnameOverride: kafka - image: - registry: docker.io - repository: bitnami/kafka - tag: 2.8.0-debian-10-r43 - minBrokerId: 100 - zookeeper: - fullnameOverride: zookeeper # clustersysteminfo check clustersysteminfo: