Skip to content

Commit

Permalink
Merge pull request #2204 from SoftwareAG/feature/MTM-51293-modify-api…
Browse files Browse the repository at this point in the history
…-version

Update manifest API version in examples
  • Loading branch information
eickler committed Jun 21, 2024
2 parents ce42bb5 + 82ede87 commit be4125f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ The snapshot postfix means that the image build is a snapshot of your applicatio
|exec | ExecAction | Commands to be executed on a container to probe the service | No
|tcpSocket | TCPSocketAction | TCP socket connection attempt as a probe | No
|httpGet | HTTPGetAction | HTTP request to be executed as a probe | No
|initialDelaySeconds |Number| Tells the platform for how long it should wait before performing <br>the first probe <br/>Default: 200 | No
|initialDelaySeconds |Number| Tells the platform for how long it should wait before performing <br>the first probe <br/>Default: 0 | No
|periodSeconds|Number| Defines in which interval the probe should be executed<br/>Default: 10 | No
|successThreshold|Number| Minimum consecutive successes for the probe to be considered <br>successful after having failed<br/> Default: 1 | No
|timeoutSeconds|Number| Number of seconds after which the probe times out<br/> Default: 1 | No
Expand Down
6 changes: 3 additions & 3 deletions content/microservice-sdk/http-bundle/node-js-microservice.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,18 @@ Create a microservice manifest *cumulocity.json* with the following content:

```json
{
"apiVersion": "1",
"apiVersion": "2",
"version": "1.0.0-SNAPSHOT",
"provider": {
"name": "{{< company-c8y >}}"
},
"isolation": "MULTI_TENANT",
"replicas": 2,
"requiredRoles": [
"ROLE_ALARM_READ",
"ROLE_ALARM_ADMIN"
],
"roles": [
]
"roles": [ ]
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Your manifest file should look similar to this:

```json
{
"apiVersion": "1",
"apiVersion": "2",
"version": "@project.version@",
"provider": {
"name": "{{< company-c8y >}}"
Expand Down
22 changes: 17 additions & 5 deletions content/microservice-sdk/java-bundle/java-hello-world-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Your microservice application must be packed as a Docker image in a ZIP file inc
</executions>
</plugin>
</plugins>
</build>
</build>
```

The name of the generated ZIP file is specified in the image element as `<image>${microservice.name}</image>`. It takes the name from the previously defined property `microservice.name`, which in this case is *hello-microservice-java*.
Expand Down Expand Up @@ -269,14 +269,26 @@ Create the directory _src/main/configuration_ to contain a _cumulocity.json_ fil

```json
{
"apiVersion": "1",
"apiVersion": "2",
"version": "@project.version@",
"provider": {
"name": "{{< company-c8y >}}"
},
"isolation": "MULTI_TENANT",
"requiredRoles": [
]
"isolation": "MULTI_TENANT",
"replicas": 2,
"livenessProbe": {
"httpGet": {
"path": "/health"
},
"initialDelaySeconds": 60
},
"readinessProbe": {
"httpGet": {
"path": "/health"
},
"initialDelaySeconds": 60
},
"requiredRoles": [ ]
}
```

Expand Down

0 comments on commit be4125f

Please sign in to comment.