Skip to content

Commit

Permalink
docs: update API references (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
pottekkat committed Nov 16, 2022
1 parent 8c3515d commit 51c0745
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 72 deletions.
34 changes: 20 additions & 14 deletions docs/en/latest/references/apisix_cluster_config_v2.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
title: ApisixClusterConfig/v2 Reference
title: ApisixClusterConfig/v2
keywords:
- APISIX ingress
- Apache APISIX
- ApisixClusterConfig
description: Reference for ApisixClusterConfig/v2 custom Kubernetes resource.
---

<!--
#
# Licensed to the Apache Software Foundation (ASF) under one or more
Expand All @@ -21,18 +25,20 @@ title: ApisixClusterConfig/v2 Reference
#
-->

See [concepts](https://apisix.apache.org/docs/ingress-controller/concepts/apisix_cluster_config) to learn more about how to use the ApisixClusterConfig resource.

## Spec

Spec describes the desired state of an ApisixClusterConfig object.
See the [definition](https://github.com/apache/apisix-ingress-controller/blob/master/samples/deploy/crd/v1/ApisixClusterConfig.yaml) on GitHub.

| Field | Type | Description |
|---------------|----------|-----------------------|
| monitoring | object | Monitoring settings. |
| monitoring.prometheus | object | Prometheus settings. |
| monitoring.prometheus.enable | boolean | Whether to enable Prometheus or not. |
| monitoring.skywalking | object | Skywalking settings. |
| monitoring.skywalking.enable | boolean | Whether to enable Skywalking or not. |
| monitoring.skywalking.sampleRatio | number | The sample ratio for spans, value should be in `[0, 1]`.|
| admin | object | Administrative settings. |
| admin.baseURL | string | the base url for APISIX cluster. |
| admin.AdminKey | string | admin key used for authentication with APISIX cluster. |
| Attribute | Type | Description |
|-----------------------------------|---------|------------------------------------------------|
| monitoring | object | Monitoring configurations. |
| monitoring.prometheus | object | Prometheus configurations. |
| monitoring.prometheus.enable | boolean | When set to `true`, enables Prometheus. |
| monitoring.skywalking | object | Apache SkyWalking configurations. |
| monitoring.skywalking.enable | boolean | When set to `true`, enables SkyWalking. |
| monitoring.skywalking.sampleRatio | number | Sample ratio for spans. Should be in `[0, 1]`. |
| admin | object | Admin configurations. |
| admin.baseURL | string | Base URL of the APISIX cluster. |
| admin.AdminKey | string | Admin key to authenticate with APISIX cluster. |
34 changes: 20 additions & 14 deletions docs/en/latest/references/apisix_cluster_config_v2beta3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
title: ApisixClusterConfig/v2beta3 Reference
title: ApisixClusterConfig/v2beta3
keywords:
- APISIX ingress
- Apache APISIX
- ApisixClusterConfig
description: Reference for ApisixClusterConfig/v2beta3 custom Kubernetes resource.
---

<!--
#
# Licensed to the Apache Software Foundation (ASF) under one or more
Expand All @@ -21,18 +25,20 @@ title: ApisixClusterConfig/v2beta3 Reference
#
-->

See [concepts](https://apisix.apache.org/docs/ingress-controller/concepts/apisix_cluster_config) to learn more about how to use the ApisixClusterConfig resource.

## Spec

Spec describes the desired state of an ApisixClusterConfig object.
See the [definition](https://github.com/apache/apisix-ingress-controller/blob/master/samples/deploy/crd/v1/ApisixClusterConfig.yaml) on GitHub.

| Field | Type | Description |
|---------------|----------|-----------------------|
| monitoring | object | Monitoring settings. |
| monitoring.prometheus | object | Prometheus settings. |
| monitoring.prometheus.enable | boolean | Whether to enable Prometheus or not. |
| monitoring.skywalking | object | Skywalking settings. |
| monitoring.skywalking.enable | boolean | Whether to enable Skywalking or not. |
| monitoring.skywalking.sampleRatio | number | The sample ratio for spans, value should be in `[0, 1]`.|
| admin | object | Administrative settings. |
| admin.baseURL | string | the base url for APISIX cluster. |
| admin.AdminKey | string | admin key used for authentication with APISIX cluster. |
| Attribute | Type | Description |
|-----------------------------------|---------|------------------------------------------------|
| monitoring | object | Monitoring configurations. |
| monitoring.prometheus | object | Prometheus configurations. |
| monitoring.prometheus.enable | boolean | When set to `true`, enables Prometheus. |
| monitoring.skywalking | object | Apache SkyWalking configurations. |
| monitoring.skywalking.enable | boolean | When set to `true`, enables SkyWalking. |
| monitoring.skywalking.sampleRatio | number | Sample ratio for spans. Should be in `[0, 1]`. |
| admin | object | Admin configurations. |
| admin.baseURL | string | Base URL of the APISIX cluster. |
| admin.AdminKey | string | Admin key to authenticate with APISIX cluster. |
22 changes: 13 additions & 9 deletions docs/en/latest/references/apisix_pluginconfig_v2.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
title: ApisixPluginConfig/v2 Reference
title: ApisixPluginConfig/v2
keywords:
- APISIX ingress
- Apache APISIX
- ApisixPluginConfig
description: Reference for ApisixPluginConfig/v2 custom Kubernetes resource.
---

<!--
#
# Licensed to the Apache Software Foundation (ASF) under one or more
Expand All @@ -23,11 +27,11 @@ title: ApisixPluginConfig/v2 Reference

## Spec

Spec describes the desired state of an ApisixPluginConfig object.
See the [definition](https://github.com/apache/apisix-ingress-controller/blob/master/samples/deploy/crd/v1/ApisixPluginConfig.yaml) on GitHub.

| Field | Type | Description |
|---------------|----------|----------------------------------------------------|
| plugins | array | A series of custom plugins that will be executed once this route rule is matched |
| plugins[].name | string | The plugin name, see [docs](http://apisix.apache.org/docs/apisix/getting-started) for learning the available plugins. |
| plugins[].enable | boolean | Whether the plugin would be used |
| plugins[].config | object | The configuration of the plugin that must have the same fields as in APISIX. |
| Field | Type | Description |
|------------------|---------|------------------------------------------------------------------------------------------------------------------------------------------------|
| plugins | array | Plugins that will be executed on the Route. |
| plugins[].name | string | Name of the Plugin. See [Plugin hub](https://apisix.apache.org/plugins/) for a list of available Plugins. |
| plugins[].enable | boolean | When set to `true`, enables the Plugin. |
| plugins[].config | object | Configuration of the Plugin. Must have the same fields as in the [Plugin docs](https://apisix.apache.org/docs/apisix/plugins/batch-requests/). |
22 changes: 13 additions & 9 deletions docs/en/latest/references/apisix_pluginconfig_v2beta3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
title: ApisixPluginConfig/v2beta3 Reference
title: ApisixPluginConfig/v2beta3
keywords:
- APISIX ingress
- Apache APISIX
- ApisixPluginConfig
description: Reference for ApisixPluginConfig/v2beta3 custom Kubernetes resource.
---

<!--
#
# Licensed to the Apache Software Foundation (ASF) under one or more
Expand All @@ -23,11 +27,11 @@ title: ApisixPluginConfig/v2beta3 Reference

## Spec

Spec describes the desired state of an ApisixPluginConfig object.
See the [definition](https://github.com/apache/apisix-ingress-controller/blob/master/samples/deploy/crd/v1/ApisixPluginConfig.yaml) on GitHub.

| Field | Type | Description |
|---------------|----------|----------------------------------------------------|
| plugins | array | A series of custom plugins that will be executed once this route rule is matched |
| plugins[].name | string | The plugin name, see [docs](http://apisix.apache.org/docs/apisix/getting-started) for learning the available plugins. |
| plugins[].enable | boolean | Whether the plugin would be used |
| plugins[].config | object | The configuration of the plugin that must have the same fields as in APISIX. |
| Field | Type | Description |
|------------------|---------|------------------------------------------------------------------------------------------------------------------------------------------------|
| plugins | array | Plugins that will be executed on the Route. |
| plugins[].name | string | Name of the Plugin. See [Plugin hub](https://apisix.apache.org/plugins/) for a list of available Plugins. |
| plugins[].enable | boolean | When set to `true`, enables the Plugin. |
| plugins[].config | object | Configuration of the Plugin. Must have the same fields as in the [Plugin docs](https://apisix.apache.org/docs/apisix/plugins/batch-requests/). |
36 changes: 23 additions & 13 deletions docs/en/latest/references/apisix_tls_v2.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
title: ApisixTls/v2 Reference
title: ApisixTls/v2
keywords:
- APISIX ingress
- Apache APISIX
- ApisixTls
description: Reference for ApisixTls/v2 custom Kubernetes resource.
---

<!--
#
# Licensed to the Apache Software Foundation (ASF) under one or more
Expand All @@ -21,14 +25,20 @@ title: ApisixTls/v2 Reference
#
-->

| Field | Type | Description |
|-------------------------------|----------|---------------------------------------------------------------------------------------------------------------|
| hosts | array | The domain list to identify which hosts (matched with SNI) can use the TLS certificate stored in the Secret. |
| secret | object | The definition of the related Secret object with current ApisixTls object. |
| secret.name | string | The name of the related Secret object with current ApisixTls object. |
| secret.namespace | string | The namespace of the related Secret object with current ApisixTls object. |
| client | object | The configuration of the certificate provided by the client. |
| client.caSecret | object | The definition of the related Secret object with the certificate provided by the client. |
| client.caSecret.name | string | The name of the related Secret object with the certificate provided by the client. |
| client.caSecret.namespace | string | The namespace of the related Secret object with the certificate provided by the client. |
| client.depth | int | The max certificate of chain length. |
See [concepts](https://apisix.apache.org/docs/ingress-controller/concepts/apisix_tls) to learn more about how to use the ApisixTls resource.

## Spec

See the [definition](https://github.com/apache/apisix-ingress-controller/blob/master/samples/deploy/crd/v1/ApisixTls.yaml) on GitHub.

| Attribute | Type | Description |
|---------------------------|--------|-----------------------------------------------------------------------------------------|
| hosts | array | List of hosts (with matched SNI) that can use the TLS certificate stored in the Secret. |
| secret | object | Definition of the Secret related to the current `ApisixTls` object. |
| secret.name | string | Name of the Secret related to the current `ApisixTls` object. |
| secret.namespace | string | Namespace of the Secret related to the current `ApisixTls` object. |
| client | object | Configuration for the certificate provided by the client. |
| client.caSecret | object | Definition of the Secret related to the certificate. |
| client.caSecret.name | string | Name of the Secret related to the certificate provided by the client. |
| client.caSecret.namespace | string | Namespace of the Secret related to the certificate. |
| client.depth | int | The maximum length of the certificate chain. |
36 changes: 23 additions & 13 deletions docs/en/latest/references/apisix_tls_v2beta3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
title: ApisixTls/v2beta3 Reference
title: ApisixTls/v2beta3
keywords:
- APISIX ingress
- Apache APISIX
- ApisixTls
description: Reference for ApisixTls/v2beta3 custom Kubernetes resource.
---

<!--
#
# Licensed to the Apache Software Foundation (ASF) under one or more
Expand All @@ -21,14 +25,20 @@ title: ApisixTls/v2beta3 Reference
#
-->

| Field | Type | Description |
|-------------------------------|----------|---------------------------------------------------------------------------------------------------------------|
| hosts | array | The domain list to identify which hosts (matched with SNI) can use the TLS certificate stored in the Secret. |
| secret | object | The definition of the related Secret object with current ApisixTls object. |
| secret.name | string | The name of the related Secret object with current ApisixTls object. |
| secret.namespace | string | The namespace of the related Secret object with current ApisixTls object. |
| client | object | The configuration of the certificate provided by the client. |
| client.caSecret | object | The definition of the related Secret object with the certificate provided by the client. |
| client.caSecret.name | string | The name of the related Secret object with the certificate provided by the client. |
| client.caSecret.namespace | string | The namespace of the related Secret object with the certificate provided by the client. |
| client.depth | int | The max certificate of chain length. |
See [concepts](https://apisix.apache.org/docs/ingress-controller/concepts/apisix_tls) to learn more about how to use the ApisixTls resource.

## Spec

See the [definition](https://github.com/apache/apisix-ingress-controller/blob/master/samples/deploy/crd/v1/ApisixTls.yaml) on GitHub.

| Attribute | Type | Description |
|---------------------------|--------|-----------------------------------------------------------------------------------------|
| hosts | array | List of hosts (with matched SNI) that can use the TLS certificate stored in the Secret. |
| secret | object | Definition of the Secret related to the current `ApisixTls` object. |
| secret.name | string | Name of the Secret related to the current `ApisixTls` object. |
| secret.namespace | string | Namespace of the Secret related to the current `ApisixTls` object. |
| client | object | Configuration for the certificate provided by the client. |
| client.caSecret | object | Definition of the Secret related to the certificate. |
| client.caSecret.name | string | Name of the Secret related to the certificate provided by the client. |
| client.caSecret.namespace | string | Namespace of the Secret related to the certificate. |
| client.depth | int | The maximum length of the certificate chain. |

0 comments on commit 51c0745

Please sign in to comment.