Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For the template:
- {
- "kind": "Template",
- "apiVersion": "v1beta3",
- "metadata": {
- "name": "simple",
- "creationTimestamp": null,
- "annotations": {
- "description": "Simple Template"
- }
- },
- "postProcessMessage" : "Your admin credentials are ${ADMIN_USERNAME}:${ADMIN_PASSWORD}",
- "objects": [
- {
- "kind": "Secret",
- "apiVersion": "v1",
- "metadata": {
- "name": "testsecret",
- "creationTimestamp": null
- },
- ....
- The output of new-app
- [root@localhost origin]# oc new-app --template=simple
- --> Deploying template simple for "simple"
- With parameters:
- ADMIN_USERNAME=admin8RT # generated
- ADMIN_PASSWORD=Mw2hwJak # generated
- REDIS_PASSWORD=Xt4Jh81h # generated
- SLAVE_SERVICE_NAME=redis-slave
- Message: Your admin credentials are admin8RT:Mw2hwJak
- --> Creating resources ...
- secret "testsecret" created
- secret "testsecret2" created
- --> Success
- Run 'oc status' to view your app.
- secret "testsecret2" created
- --> Success
- Run 'oc status' to view your app.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement