Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. `oc get templates -n openshift |grep postgresql-persist`
  2.  
  3. ```
  4. datagrid65-postgresql-persistent Application template for JDG 6.5 and PostgreSQL applications with persistent... 30 (16 blank) 10
  5. eap64-postgresql-persistent-s2i Application template for EAP 6 PostgreSQL applications with persistent storag... 34 (14 blank) 10
  6. eap70-postgresql-persistent-s2i Application template for EAP 7 PostgreSQL applications with persistent storag... 34 (14 blank) 10
  7. jws30-tomcat7-postgresql-persistent-s2i Application template for JWS PostgreSQL applications with persistent storage... 25 (8 blank) 10
  8. jws30-tomcat8-postgresql-persistent-s2i Application template for JWS PostgreSQL applications with persistent storage... 25 (8 blank) 10
  9. postgresql-persistent PostgreSQL database service, with persistent storage. For more information ab... 8 (2 generated) 4
  10. processserver63-amq-postgresql-persistent-s2i Application template for Red Hat JBoss BPM Suite 6.3 intelligent process serv... 42 (8 blank) 13
  11. processserver63-postgresql-persistent-s2i Application template for Red Hat JBoss BPM Suite 6.3 intelligent process serv... 33 (9 blank) 10
  12. sso70-postgresql-persistent Application template for SSO 7.0 PostgreSQL applications with persistent storage 33 (17 blank) 8
  13. ```
  14.  
  15. `oc process --parameters -n openshift postgresql-persistent`
  16.  
  17. ```
  18. NAME DESCRIPTION GENERATOR VALUE
  19. MEMORY_LIMIT Maximum amount of memory the container can use. 512Mi
  20. NAMESPACE The OpenShift Namespace where the ImageStream resides. openshift
  21. DATABASE_SERVICE_NAME The name of the OpenShift Service exposed for the database. postgresql
  22. POSTGRESQL_USER Username for PostgreSQL user that will be used for accessing the database. expression user[A-Z0-9]{3}
  23. POSTGRESQL_PASSWORD Password for the PostgreSQL connection user. expression [a-zA-Z0-9]{16}
  24. POSTGRESQL_DATABASE Name of the PostgreSQL database accessed. sampledb
  25. VOLUME_CAPACITY Volume space available for data, e.g. 512Mi, 2Gi. 1Gi
  26. POSTGRESQL_VERSION Version of PostgreSQL image to be used (9.2, 9.4, 9.5 or latest). 9.5
  27. ```
  28.  
  29. oc new-app postgresql-persistent --name=gogs-postgres -p POSTGRESQL_USER=gogs -p POSTGRESQL_PASSWORD=Passw0rd\! -p VOLUME_CAPACITY=2Gi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement