kubectl create secret generic \
firebird \
--from-file=app_config.json=secrets/app_config.json \
--from-file=kube_config=secrets/kube_config \
--from-file=oci_config=secrets/oci_config \
--from-file=oci_api_key.pem=secrets/oci_api_key.pem
secrets/app_config.json, it contains information about zookeeper, rabbitmq and mysql
{
"zookeeper": {
"hosts": "zookeeper:2181"
},
"rabbitmq": {
"username": "stonezhong",
"password": "changeme",
"host": "rabbitmq",
"port": 5672,
"heartbeat": 300
},
"mysql": {
"db_name": "firebird",
"username": "stonezhong",
"password": "foobar",
"server": "10.2.0.29"
}
}
secrets/kube_config: this is your kubernete config file, usually you can copy it from ~/.kube/config from machine which you run kubectl
secrets/oci_config and secrets/oci_api_key.pem are your OCI configs. (this demo is about using firebird on Oracle Cloud Infracture)