aboutsummaryrefslogtreecommitdiffstats
path: root/robot/assets/templates/dcaemod/compspec_with_config_volume.jinja
blob: 80feec5541df201565348f419be51c2c3565d604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{"owner": "owner-name", "spec":
{
  "self": {
    "version": "1.0.0",
    "name": "{{comp_spec_name}}",
    "description": "Dummy DCAE app with config volume",
    "component_type": "docker"
  },
  "streams": {
    "subscribes": [],
    "publishes": []
  },
  "services": {
    "calls": [],
    "provides": []
  },
  "parameters": [],
  "auxilary": {
      "healthcheck": {
        "type": "docker",
        "interval": "45s",
        "timeout": "15s",
        "script": "service nginx status"
      },
      "volumes": [{
        "config_volume": {
          "name": "{{config_map_name}}"
        },
        "container": {
          "bind": "{{volume_mount_path}}"
        }
      }],
      "ports": [
        "80:0",
        "99:0"
      ],
      "tls_info":{
          "cert_directory":"/opt/app/dcae-certificate/",
          "use_tls": false,
          "use_external_tls": false
       }
    },
  "artifacts": [
    {
      "type": "docker image",
      "uri": "docker.io/nginx:latest"
    }
  ]
}
}