Web Service
Service-oriented components are components that support external access to services with the container as the core, and their functions cover the needs of most of he microservice scenarios.
Please copy shell below and apply to the cluster:
Next, check the deployment status of the application through vela status <application name>
:
When we see that the field in Workflow is true
and the Status is , it means that the entire application is delivered successfully.
You can also view application list by using the following command:
We also see that the PHASE of the app is running and the STATUS is healthy.
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
exec | Instructions for assessing container health by executing a command. Either this attribute or the | | false | |
| httpGet attribute or the tcpSocket attribute MUST be specified. This attribute is mutually exclusive | | | |
| with both the httpGet attribute and the tcpSocket attribute. | | | |
httpGet | Instructions for assessing container health by executing an HTTP GET request. Either this attribute | httpGet | false | |
| or the exec attribute or the tcpSocket attribute MUST be specified. This attribute is mutually | | | |
| exclusive with both the exec attribute and the tcpSocket attribute. | | | |
tcpSocket | Instructions for assessing container health by probing a TCP socket. Either this attribute or the | | false | |
| exec attribute or the httpGet attribute MUST be specified. This attribute is mutually exclusive with | | | |
| both the exec attribute and the httpGet attribute. | | | |
initialDelaySeconds | Number of seconds after the container is started before the first probe is initiated. | int | true | 0 |
periodSeconds | How often, in seconds, to execute the probe. | int | true | 10 |
timeoutSeconds | Number of seconds after which the probe times out. | int | true | 1 |
successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed. | int | true | 1 |
failureThreshold | Number of consecutive failures required to determine the container is not alive (liveness probe) or | int | true | 3 |
| not ready (readiness probe). | | | |
tcpSocket
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
port | The TCP socket within the container that should be probed to assess container health. | int | true | |
httpGet
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
path | The endpoint, relative to the port, to which the HTTP GET request should be directed. | string | true | |
port | The TCP socket within the container to which the HTTP GET request should be directed. | int | true | |
httpHeaders | | []httpHeaders | false | |
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
name | | string | true | |
value | | string | true | |
exec
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
exec | Instructions for assessing container health by executing a command. Either this attribute or the | | false | |
| httpGet attribute or the tcpSocket attribute MUST be specified. This attribute is mutually exclusive | | | |
| with both the httpGet attribute and the tcpSocket attribute. | | | |
httpGet | Instructions for assessing container health by executing an HTTP GET request. Either this attribute | httpGet | false | |
| or the exec attribute or the tcpSocket attribute MUST be specified. This attribute is mutually | | | |
| exclusive with both the exec attribute and the tcpSocket attribute. | | | |
tcpSocket | Instructions for assessing container health by probing a TCP socket. Either this attribute or the | | false | |
| exec attribute or the httpGet attribute MUST be specified. This attribute is mutually exclusive with | | | |
| both the exec attribute and the httpGet attribute. | | | |
initialDelaySeconds | Number of seconds after the container is started before the first probe is initiated. | int | true | 0 |
periodSeconds | How often, in seconds, to execute the probe. | int | true | 10 |
timeoutSeconds | Number of seconds after which the probe times out. | int | true | 1 |
successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed. | int | true | 1 |
failureThreshold | Number of consecutive failures required to determine the container is not alive (liveness probe) or | int | true | 3 |
| not ready (readiness probe). | | | |
tcpSocket
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
port | The TCP socket within the container that should be probed to assess container health. | int | true | |
httpGet
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
path | The endpoint, relative to the port, to which the HTTP GET request should be directed. | string | true | |
port | The TCP socket within the container to which the HTTP GET request should be directed. | int | true | |
httpHeaders | | []httpHeaders | false | |
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
name | | string | true | |
value | | string | true | |
exec
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
name | | string | true | |
mountPath | | string | true | |
type | Specify volume type, options: “pvc”,”configMap”,”secret”,”emptyDir” | string | true | |
env
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
name | Environment variable name | string | true | |
value | The value of the environment variable | string | false | |
valueFrom | Specifies a source the value of this var should come from | valueFrom | false | |
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
secretKeyRef | Selects a key of a secret in the pod’s namespace | | true | |
secretKeyRef
NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|
name | The name of the secret in the pod’s namespace to select from | string | true | |
key | The key of the secret to select from. Must be a valid secret key | string | true | |