Hi,
I'm trying to setup snapshot with a local minion instance, but I can't seem to imports secrets as documented here.
I setup the secrets with:
kubectl create secret generic minio-credentials --from-file=s3.client.default.access_key --from-file=s3.client.default.secret_key
Then added it to the elasticsearch yaml file:
secureSettings:
secretName: "minio-credentials"
I can see in the operator logs that its picked up:
{"level":"info","ts":1570195646.0524664,"logger":"license-validation","msg":"ValidationHandler handler called","operation":"CREATE","name":"**minio-credentials**","namespace":"default"}
{"level":"info","ts":1570195684.2096705,"logger":"es-validation","msg":"ValidationHandler handler called","operation":"UPDATE","name":"quickstart","namespace":"default"}
But when I setup via console
PUT /_snapshot/my_minio_repository
{
"type": "s3",
"settings": {
"bucket": "esbackups",
"endpoint": "10.1.1.220:9000",
"protocol": "http"
}
}
I get this error:
{
"error": {
"root_cause": [
{
"type": "repository_verification_exception",
"reason": "[my_minio_repository] path is not accessible on master node"
}
],
"type": "repository_verification_exception",
"reason": "[my_minio_repository] path is not accessible on master node",
"caused_by": {
"type": "i_o_exception",
"reason": "Unable to upload object [tests-86_qgPYEQ3KdDtlhf6kK2g/master.dat] using a single upload",
"caused_by": {
"type": "sdk_client_exception",
"reason": "sdk_client_exception: Unable to load credentials from service endpoint",
"caused_by": {
"type": "i_o_exception",
"reason": "Connect timed out"
}
}
}
},
"status": 500
}