19 lines
979 B
Makefile
19 lines
979 B
Makefile
|
ACTION=apply
|
||
|
|
||
|
infrastructure-local:
|
||
|
cd manifest && \
|
||
|
terraform workspace select kind-cluster-dev && \
|
||
|
terraform $(ACTION)
|
||
|
|
||
|
infrastructure-prod:
|
||
|
cd manifest && \
|
||
|
terraform workspace select default && \
|
||
|
terraform $(ACTION)
|
||
|
|
||
|
topic-ssl:
|
||
|
kubectl view-secret -n streaming kafka-user user.p12 > user.p12 && \
|
||
|
kubectl view-secret -n streaming cluster-development-cluster-ca-cert ca.crt | kcat -b kafka.127.0.0.1.nip.io:443 -L -J -X 'security.protocol=ssl' -X "ssl.ca.location=/dev/stdin" -X "ssl.keystore.location=user.p12" -X "ssl.keystore.password=$$(kubectl view-secret -n streaming kafka-user user.password)" |jq && \
|
||
|
rm -rf user.p12
|
||
|
|
||
|
topic-scram:
|
||
|
kubectl view-secret -n streaming kafka-dev-listener-certificate ca.crt | kcat -b kafka.localdomain:9092 -L -J -X 'security.protocol=sasl_ssl' -X 'sasl.mechanism=SCRAM-SHA-512' -X 'sasl.username=kafka-user' -X "sasl.password=$(kubectl view-secret -n streaming kafka-user password)" -X "ssl.ca.location=/dev/stdin" | jq
|