diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-06-30 11:27:03 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-06-30 11:27:03 -0400 |
commit | 94feef04f73d970bb6ec45afa3629e368e6c7df6 (patch) | |
tree | ea21b825432feaec0aaece0643172afc27460946 /roles/openshift_examples/files/examples/v1.4/db-templates/mariadb-persistent-template.json | |
parent | 3e4d73be7e6b2b3eb5cbb736a989a318de904a45 (diff) | |
download | openshift-94feef04f73d970bb6ec45afa3629e368e6c7df6.tar.gz openshift-94feef04f73d970bb6ec45afa3629e368e6c7df6.tar.bz2 openshift-94feef04f73d970bb6ec45afa3629e368e6c7df6.tar.xz openshift-94feef04f73d970bb6ec45afa3629e368e6c7df6.zip |
Update v1.4 image streams and templates
Diffstat (limited to 'roles/openshift_examples/files/examples/v1.4/db-templates/mariadb-persistent-template.json')
-rw-r--r-- | roles/openshift_examples/files/examples/v1.4/db-templates/mariadb-persistent-template.json | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/roles/openshift_examples/files/examples/v1.4/db-templates/mariadb-persistent-template.json b/roles/openshift_examples/files/examples/v1.4/db-templates/mariadb-persistent-template.json index 6ed744777..3b7fdccce 100644 --- a/roles/openshift_examples/files/examples/v1.4/db-templates/mariadb-persistent-template.json +++ b/roles/openshift_examples/files/examples/v1.4/db-templates/mariadb-persistent-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": [ |