Skip to content

Commit

Permalink
initial Kafka version changes
Browse files Browse the repository at this point in the history
Signed-off-by: Carsten Schafer <[email protected]>
  • Loading branch information
Carsten Schafer authored and Carsten Schafer committed Apr 15, 2024
1 parent 9093a85 commit a377966
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 36 deletions.
8 changes: 4 additions & 4 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chart/environment-values/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
_values.custom_*.yaml
_values.custom-*.yaml
certs/
env_*
11 changes: 9 additions & 2 deletions chart/environment-values/cleanup.sh
Original file line number Diff line number Diff line change
@@ -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
34 changes: 32 additions & 2 deletions chart/environment-values/values.base.insecure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
34 changes: 32 additions & 2 deletions chart/environment-values/values.base.secure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
48 changes: 30 additions & 18 deletions chart/environment-values/values.openwifi-qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a377966

Please sign in to comment.