OpenShift Template Definition: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * https://docs.openshift.com/container-platform/latest/rest_api/openshift_v1.html#v1-template =Internal= * OpenShift_Configuration#Definitions|OpenShift Defini...")
 
Line 6: Line 6:


* [[OpenShift_Configuration#Definitions|OpenShift Definitions]]
* [[OpenShift_Configuration#Definitions|OpenShift Definitions]]
=Example=
<syntaxhighlight lang='json'>
{
  "kind": "Template",
  "apiVersion": "v1",
  "metadata": {
    "name": "some-application",
    "creationTimestamp": null,
    "annotations": {
      "description": "Example",
      "iconClass": "icon-example",
      "tags": "example,mysql"
    }
  },
  "parameters": [ 
    {
      "name": "username"
      "value": "admin"
      "description": "administrative user"
    }
  ],
  "labels": { 
    "custom_label": "Label_Name"
  },
  "objects": [ 
    {
      ...
    }
  ]
}
</syntaxhighlight>

Revision as of 19:05, 23 November 2017

External

Internal

Example

{
  "kind": "Template",
  "apiVersion": "v1",
  "metadata": {
    "name": "some-application", 
    "creationTimestamp": null,
    "annotations": {
      "description": "Example", 
      "iconClass": "icon-example",
      "tags": "example,mysql"

    }
  },
  "parameters": [  
    {
      "name": "username"
      "value": "admin"
      "description": "administrative user"
    }
  ],
  "labels": {  
    "custom_label": "Label_Name"
  },
  "objects": [  
    {
      ...
    }
  ]
}