Advertisement
Guest User

Untitled

a guest
Jul 5th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1.  
  2. For the template:
  3. {
  4. "kind": "Template",
  5. "apiVersion": "v1beta3",
  6. "metadata": {
  7. "name": "simple",
  8. "creationTimestamp": null,
  9. "annotations": {
  10. "description": "Simple Template"
  11. }
  12. },
  13. "postProcessMessage" : "Your admin credentials are ${ADMIN_USERNAME}:${ADMIN_PASSWORD}",
  14. "objects": [
  15. {
  16. "kind": "Secret",
  17. "apiVersion": "v1",
  18. "metadata": {
  19. "name": "testsecret",
  20. "creationTimestamp": null
  21. },
  22. ....
  23.  
  24.  
  25. The output of new-app
  26. [root@localhost origin]# oc new-app --template=simple
  27. --> Deploying template simple for "simple"
  28. With parameters:
  29. ADMIN_USERNAME=admin8RT # generated
  30. ADMIN_PASSWORD=Mw2hwJak # generated
  31. REDIS_PASSWORD=Xt4Jh81h # generated
  32. SLAVE_SERVICE_NAME=redis-slave
  33. Message: Your admin credentials are admin8RT:Mw2hwJak
  34. --> Creating resources ...
  35. secret "testsecret" created
  36. secret "testsecret2" created
  37. --> Success
  38. Run 'oc status' to view your app.
  39.  
  40. secret "testsecret2" created
  41. --> Success
  42. Run 'oc status' to view your app.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement