Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-11 Thread 'Matt Brown' via Kubernetes user discussion and Q
Henry, to go back to the root of your question, I don't think you are having a problem with Docker or Kubernetes or the Datastax driver. Your problem fundamentally is how to tell your application what IP and port to connect to for the Cassandra host(s). You get a NoHostAvailableException

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-10 Thread Rodrigo Campos
Don't know about springboot, etc. But yes, pods connect to databases, and basically do any other network connection, without any issues. Just like any other process can. On Sunday, December 10, 2017, Henry Hottelet wrote: > Rodrigo, > > I am going to do a remote test with

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-10 Thread Henry Hottelet
Rodrigo, It is Datastax driver, not my driver for clarification. -Henry On Sunday, December 10, 2017 at 12:29:29 PM UTC-5, Henry Hottelet wrote: > > Rodrigo, > > I am going to do a remote test with Docker, however it has to be mapped to > a public IP address. At that point, the REST service,

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-10 Thread Henry Hottelet
Rodrigo, I am going to do a remote test with Docker, however it has to be mapped to a public IP address. At that point, the REST service, is mapped to a remote IP and port, which means that at that point, it doesn't matter if Cassandra runs in docker or not. However the question, still

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-10 Thread Rodrigo Campos
Okay, so that's not at all related with what I've said... I'm quite sure that port is fine regarding docker Kubernetes, don't know about your driver. Wild guess: might be just not using SO_REUSE or something like that in your local machine what you think it's the issue. Good luck with that On

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-10 Thread Henry Hottelet
Rodrigo, I have decided to go down another path, and consider Dynamic changes to IPaddress and Port numbers via REST interface calls remotely into a Docker image. Although configuring Pods at definition time, with arguments might be cool, I have gone down another path, and am considering

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-07 Thread Henry Hottelet
*How to pass arguments to Kubernetes POD were succesfull, however Google states, that templates are needed for configurability.* https://stackoverflow.com/questions/47700482/kubernetes-pod-arguments-are-not-displayed-in-service-under-args-without-error/47703631#47703631 On Thursday,

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-07 Thread Henry Hottelet
Tim, I could make a configurable REST API for database, that accepts Ipaddress, and Port, via REST with Json message. This could work at run time dynamically, so that I can configure the backend database with its necessary settings, and since I can setup a Singleton class, this could be

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-07 Thread Henry Hottelet
Tim, Check out the REST Spring Boot project: https://github.com/quantum-fusion/springboot_swagger_example-master-cassandra The goal of this project, is to offer a configurable software architecture, for a distributed Application, that runs across a global grid of distributed databases. Since

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-07 Thread Henry Hottelet
Tim, Is there any other way to have my Spring-Boot controller accept arguments from the java or Docker command line? I need this feature, because I need to make the decision, of which ip address, and port number, are needed for my database backend at run time. (i.e. when I decide how many

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-07 Thread 'Tim Hockin' via Kubernetes user discussion and Q
You want a template expander before you get to kubectl. Otherwise, the thing that is running isn't reflected by any versionable artifact. Because templating is a high-opinion space, we do not (currently) have one that is built-in. On Dec 7, 2017 10:12 AM, "Henry Hottelet"

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-07 Thread Henry Hottelet
Is there not a way to pass arguments from command line to the Pod specification? There should be, because this is not the first time that a Docker argument is needed when calling a Pod instance, whether dynamic or staticly defined. I could have Pod1.yaml, Pod2.yaml, and have an Ipaddress,

Re: [kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-07 Thread 'Tim Hockin' via Kubernetes user discussion and Q
Kubectl is not a templating system, which is what you are asking for. Create/Apply are declarative plumbing, suitable to things you would check in to source control. There are porcelain commands, eg. kubectl run, which are closer to docker run, but less suitable to source control. On Dec 7, 2017

[kubernetes-users] how to pass kubernetes pods arguments like Docker arguments from command line

2017-12-07 Thread Henry Hottelet
A problem: Docker arguments will pass from command line: docker run -it -p 8080:8080 joethecoder2/spring-boot-web -Dcassandra_ip=127.0.0.1 -Dcassandra_port=9042 However, when I do: kubectl create -f ./singlePod.yaml Kubernetes POD arguments will not pass from singlePod.yaml file: