#!/bin/sh # Create the rabbitmq server certificate secret. # Run this script from the directory that contains the three cert files, # or adjust the paths below to point at the actual files. # # Expected files (generated during RabbitMQ TLS setup): # ca_certificate.pem # server_certificate.pem # server_key.pem kubectl create secret generic rabbitmq-certs \ --from-file=ca_certificate.pem=./ca_certificate.pem \ --from-file=server_certificate.pem=./server_certificate.pem \ --from-file=server_key.pem=./server_key.pem