Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
debianmaster authored May 15, 2017
1 parent e09ac7d commit 0b19eb2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions configmaps-examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
```sh
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
```

0 comments on commit 0b19eb2

Please sign in to comment.