acs-engine/extensions/hello-world-dcos-windows
Bruce Campbell e7b78cedb9 Enabled preprovisioning on windows dcos agents (#2228) 2018-02-07 15:42:56 -08:00
..
v1 Enabled preprovisioning on windows dcos agents (#2228) 2018-02-07 15:42:56 -08:00
README.md Enabled preprovisioning on windows dcos agents (#2228) 2018-02-07 15:42:56 -08:00

README.md

hello-world-dcos Extension

Sample hello-world extension. Calls the following on the master:

 curl -X post http://localhost:8080/v2/apps -d "{ \"id\": \"hello-marathon\", \"cmd\": \"while [ true ] ; do echo 'Hello World' ; sleep 5 ; done\", \"cpus\": 0.1, \"mem\": 10.0, \"instances\": 1 }" -H "Content-type:application/json"

You can validate that the extension was run by running (make sure you have tunneled into the master):

dcos auth login
dcos task log hello-marathon 

Configuration

Name Required Acceptable Value
name yes hello-world-k8s
version yes v1
extensionParameters no
rootURL optional

Example

    "masterProfile": {
      ...
      "extensions": [
        { 
          "name": "hello-world-dcos", 
          "singleOrAll": "single"
        }
     ]
    },
    ...
    "extensionProfiles": [
      { 
        "name": "hello-world-dcos", 
        "version": "v1"
      }
    ]
    

Supported Orchestrators

"DCOS", "DCOS173", "DCOS184", "DCOS188"