Skip to content

Files

Latest commit

Sep 26, 2017
3739187 · Sep 26, 2017

History

History

configmaps-examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 15, 2017
Sep 26, 2017
Aug 23, 2016
Aug 23, 2016
oc new-app debianmaster/go-welcome

cat > config.json <<EOF
{
  "username":"admin",
  "password":"password",
  "host":"mymysqhost"
}
EOF

oc create configmap mysql-config --from-file=./config.json
oc volume dc/go-welcome --add --name=mysqlcfg -m /tmp/mysqlconfig -t configmap --configmap-name=mysql-config  
oc get pods 
oc rsh <go-welcome-podname>
cat /tmp/mysqlconfig/config.json  #inside the pod