diff options
author | Russell Teague <rteague@redhat.com> | 2017-06-21 10:23:22 -0400 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2017-06-21 10:23:22 -0400 |
commit | aa6b6a0912b7404288f907baf5c72d481ef1b902 (patch) | |
tree | de980919477547bb66ce921e3bd574455ef329db /roles/openshift_examples/files/examples/v3.6/db-templates/mariadb-ephemeral-template.json | |
parent | de93b27df139b19f1949065ae4118903971551d8 (diff) | |
download | openshift-aa6b6a0912b7404288f907baf5c72d481ef1b902.tar.gz openshift-aa6b6a0912b7404288f907baf5c72d481ef1b902.tar.bz2 openshift-aa6b6a0912b7404288f907baf5c72d481ef1b902.tar.xz openshift-aa6b6a0912b7404288f907baf5c72d481ef1b902.zip |
Update template examples for 3.6
Diffstat (limited to 'roles/openshift_examples/files/examples/v3.6/db-templates/mariadb-ephemeral-template.json')
-rw-r--r-- | roles/openshift_examples/files/examples/v3.6/db-templates/mariadb-ephemeral-template.json | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/roles/openshift_examples/files/examples/v3.6/db-templates/mariadb-ephemeral-template.json b/roles/openshift_examples/files/examples/v3.6/db-templates/mariadb-ephemeral-template.json index f347f1f9f..40f8b7933 100644 --- a/roles/openshift_examples/files/examples/v3.6/db-templates/mariadb-ephemeral-template.json +++ b/roles/openshift_examples/files/examples/v3.6/db-templates/mariadb-ephemeral-template.json @@ -23,7 +23,12 @@ "kind": "Secret", "apiVersion": "v1", "metadata": { - "name": "${DATABASE_SERVICE_NAME}" + "name": "${DATABASE_SERVICE_NAME}", + "annotations": { + "template.openshift.io/expose-username": "{.data['database-user']}", + "template.openshift.io/expose-password": "{.data['database-password']}", + "template.openshift.io/expose-root-password": "{.data['database-root-password']}" + } }, "stringData" : { "database-user" : "${MYSQL_USER}", @@ -35,7 +40,10 @@ "kind": "Service", "apiVersion": "v1", "metadata": { - "name": "${DATABASE_SERVICE_NAME}" + "name": "${DATABASE_SERVICE_NAME}", + "annotations": { + "template.openshift.io/expose-uri": "mysql://{.spec.clusterIP}:{.spec.ports[?(.name==\"mariadb\")].port}" + } }, "spec": { "ports": [ |