summaryrefslogtreecommitdiffstats
path: root/robot/assets/templates/dcaemod/compspec_with_config_volume.jinja
blob: 958decd98f2cbc235de9f03b7f59bf61255602fd (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
51
52
53
54
55
56
57
58
59
60
61
{"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": {
    "helm": {
      "service": {
      "type": "ClusterIP",
      "name": "{{comp_spec_name}}",
      "ports": [{
        "name": "http",
        "port": 80
         }]
       }
     },
    "healthcheck": {
      "type": "HTTP",
      "interval": "45s",
      "timeout": "15s",
      "port": 80,
      "endpoint": "/"
    },
      "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"
    }
  ]
}
}