Closed TsuyoshiUshio closed 7 years ago
Sorry have been traveling so haven't had a chance to update this :)
On Feb 20, 2017 12:39 AM, "Tsuyoshi Ushio" notifications@github.com wrote:
When I try this command via kubectlgeneral command, I specify these.
SubCommand: exec Arguments: mongo-2180634381-zx0d3 --namespace mrp -- mongo ordering /tmp/MongoRecords.js
However, I've got error. This might because, --kubeconfig coming after the --
2017-02-19T16:30:20.9932090Z [command]/opt/vsts/work/r1/a/MicroservicesK8s/kubectl exec mongo-2180634381-zx0d3 --namespace mrp -- mongo ordering /tmp/MongoRecords.js --kubeconfig ./config 2017-02-19T16:30:21.0184050Z The connection to the server localhost:8080 was refused - did you specify the right host or port? 2017-02-19T16:30:21.0756140Z ##[error]Error: /opt/vsts/work/r1/a/MicroservicesK8s/kubectl failed with return code: 1 2017-02-19T16:30:21.1543870Z ##[section]Finishing: kubectlgeneral
It works when I try this via command line.
./kubectl exec mongo-2180634381-zx0d3 --namespace mrp -- mongo orderi ng /tmp/MongoRecords.js MongoDB shell version v3.4.2 connecting to: mongodb://127.0.0.1:27017/ordering MongoDB server version: 3.4.2
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TsuyoshiUshio/KubernetesTask/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQphd7zJM5nCw5XpdXGODEC4PrIYCKHks5reHA_gaJpZM4MFgtc .
No problem :)
This is going to fix via this. https://github.com/TsuyoshiUshio/KubernetesTask/pull/11
When I try this command via kubectlgeneral command, I specify these.
However, I've got error. This might because,
--kubeconfig
coming after the--
It works when I try this via command line.