Created
January 9, 2023 20:22
-
-
Save joejulian/3c4a7be8ea002a14b2e7b4e0985e8dba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ CONFIG=/etc/redpanda/redpanda.yaml | |
+ POD_ORDINAL=0 | |
+ cp /tmp/base-config/redpanda.yaml /etc/redpanda/redpanda.yaml | |
+ cp /tmp/base-config/bootstrap.yaml /etc/redpanda/.bootstrap.yaml | |
++ expr 0 + 1 | |
+ NODE_INDEX=1 | |
+ LISTENER_INDEX=1 | |
++ echo '{'\''name'\'':'\''internal'\'','\''address'\'':'\''redpanda-dest-0.redpanda-dest.redpanda.svc.cluster.local.'\'','\''port'\'':'\''10092'\''};{'\''name'\'':'\''default'\'','\''address'\'':'\''a9d92635568b6430d89eacf5a541bcee-1985978486.eu-south-1.elb.amazonaws.com' ''\'','\''port'\'':'\''31092'\''};' | |
++ cut -d ' ' -f 1 | |
++ cut -d ';' -f 1 | |
+ LISTENER='{'\''name'\'':'\''internal'\'','\''address'\'':'\''redpanda-dest-0.redpanda-dest.redpanda.svc.cluster.local.'\'','\''port'\'':'\''10092'\''}' | |
+ '[' '{'\''name'\'':'\''internal'\'','\''address'\'':'\''redpanda-dest-0.redpanda-dest.redpanda.svc.cluster.local.'\'','\''port'\'':'\''10092'\''}' == '' ']' | |
+ rpk redpanda config --config /etc/redpanda/redpanda.yaml set 'redpanda.advertised_kafka_api[0]' '{'\''name'\'':'\''internal'\'','\''address'\'':'\''redpanda-dest-0.redpanda-dest.redpanda.svc.cluster.local.'\'','\''port'\'':'\''10092'\''}' | |
+ let LISTENER_INDEX+=1 | |
++ echo '{'\''name'\'':'\''internal'\'','\''address'\'':'\''redpanda-dest-0.redpanda-dest.redpanda.svc.cluster.local.'\'','\''port'\'':'\''10092'\''};{'\''name'\'':'\''default'\'','\''address'\'':'\''a9d92635568b6430d89eacf5a541bcee-1985978486.eu-south-1.elb.amazonaws.com' ''\'','\''port'\'':'\''31092'\''};' | |
++ cut -d ' ' -f 1 | |
++ cut -d ';' -f 2 | |
+ LISTENER='{'\''name'\'':'\''default'\'','\''address'\'':'\''a9d92635568b6430d89eacf5a541bcee-1985978486.eu-south-1.elb.amazonaws.com' | |
+ '[' '{'\''name'\'':'\''default'\'','\''address'\'':'\''a9d92635568b6430d89eacf5a541bcee-1985978486.eu-south-1.elb.amazonaws.com' == '' ']' | |
+ rpk redpanda config --config /etc/redpanda/redpanda.yaml set 'redpanda.advertised_kafka_api[1]' '{'\''name'\'':'\''default'\'','\''address'\'':'\''a9d92635568b6430d89eacf5a541bcee-1985978486.eu-south-1.elb.amazonaws.com' | |
unable to set "redpanda.advertised_kafka_api[1]":yaml: found unexpected end of stream |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment