quantum-fusion / springboot_swagger_example-master-cassandra

0 stars 0 forks source link

Kubernetes Pod arguments are not loading from singlePod.yaml like Docker arguments #1

Closed quantum-fusion closed 6 years ago

quantum-fusion commented 6 years ago

The problem:

Docker arguments will pass from command line:

Reference Kubernetes specification (https://github.com/kubernetes/website/issues/6615)

docker run -it -p 8080:8080 joethecoder2/spring-boot-web -Dcassandra_ip=127.0.0.1 -Dcassandra_port=9042

However, Kubernetes POD arguments will not pass from singlePod.yaml file, when I do: kubectl create -f ./singlePod.yaml

apiVersion: v1 kind: Pod metadata: name: spring-boot-web-demo labels: purpose: demonstrate-spring-boot-web spec: containers:

quantum-fusion commented 6 years ago

Google states that Pods do not support argument configuration.