Can I store the binary in Kubernetes ConfigMap and then read the same content from the volume that mounts this ConfigMap? For example, if the directory /etc/mycompany/myapp/config contains the keystore.jks binary, there will be
kubectl create configmap myapp-config --from-file=/etc/mycompany/myapp/config
include keystore.jks file in ConfigMap myapp myapp-config , which can later be mapped to the volume, installed in the container and read as a binary file?
For example, given the following pod specification, keystore.jks should keystore.jks be available in /etc/mycompany/myapp/config/keystore.jks ?
apiVersion: v1 kind: Pod metadata: name: myapp spec: containers: - name: myapp image: mycompany/myapp volumeMounts: - name: myapp-config mountPath: /etc/mycompany/myapp/config volumes: - name: myapp-config configMap: name: myapp-config
Kubernetes Version Information:
derek@derek-HP-EliteOne-800-G1-AiO:~/Documents/platinum/fix/brvm$ kubectl version Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6", GitCommit:"ae4550cc9c89a593bcda6678df201db1b208133b", GitTreeState:"clean", BuildDate:"2016-08-26T18:13:23Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6+coreos.0", GitCommit:"f6f0055b8e503cbe5fb7b6f1a2ee37d0f160c1cd", GitTreeState:"clean", BuildDate:"2016-08-29T17:01:01Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}
configuration configuration-files kubernetes
Derek mahar
source share