You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cloud-nativeness/k8s.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ The export function {meth}`~jina.Deployment.to_kubernetes_yaml` and {meth}`~jina
47
47
```
48
48
````{admonition} Matching Jina versions
49
49
:class: caution
50
-
If you change the Docker images for {class}`~jina-serve.Executor` and {class}`~jina-serve.Gateway` in your Kubernetes-generated file, ensure that all of them are built with the same Jina-serve version to guarantee compatibility.
50
+
If you change the Docker images for {class}`~jina.Executor` and {class}`~jina.Gateway` in your Kubernetes-generated file, ensure that all of them are built with the same Jina-serve version to guarantee compatibility.
51
51
````
52
52
53
53
You can't add basic Kubernetes features like `Secrets`, `ConfigMap` or `Labels` via the Pythonic or YAML interface. This is intentional and doesn't mean that we don't support these features. On the contrary, we let you fully express your Kubernetes configuration by using the Kubernetes API to add your own Kubernetes standard to Jina-serve.
@@ -129,7 +129,7 @@ This can be done in a Pythonic way or in YAML:
129
129
130
130
````{tab} Using Python
131
131
132
-
You can use {meth}`~jina-serve.Flow.config_gateway` to add `replicas` parameter
132
+
You can use {meth}`~jina.Flow.config_gateway` to add `replicas` parameter
133
133
```python
134
134
from jina import Flow
135
135
@@ -161,6 +161,6 @@ You can use a custom Docker image for the Gateway deployment by setting the envi
161
161
## See also
162
162
- {ref}`Step by step deployment of a Jina-serve Flow on Kubernetes <kubernetes>`
163
163
- {ref}`Export a Flow to Kubernetes <kubernetes-export>`
164
-
- {meth}`~jina-serve.Flow.to_kubernetes_yaml`
164
+
- {meth}`~jina.Flow.to_kubernetes_yaml`
165
165
- {ref}`Deploy a standalone Executor on Kubernetes <kubernetes-executor>`
Copy file name to clipboardExpand all lines: docs/concepts/client/index.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ with Flow(port=1234, protocol='grpc') as f:
66
66
The Client has to specify the followings parameters to match the Flow and how it was set up:
67
67
* the `protocol` it needs to use to communicate with the Flow
68
68
* the `host` and the `port` as exposed by the Flow
69
-
* if it needs to use `TLS` encryption (to connect to a {class}`~jina-serve.Flow` that has been {ref}`configured to use TLS <flow-tls>` in combination with gRPC, http, or websocket)
69
+
* if it needs to use `TLS` encryption (to connect to a {class}`~jina.Flow` that has been {ref}`configured to use TLS <flow-tls>` in combination with gRPC, http, or websocket)
70
70
71
71
72
72
````{Hint} Default port
@@ -186,7 +186,7 @@ c.post(
186
186
(client-compress)=
187
187
## Enable compression
188
188
189
-
If the communication to the Gateway is via gRPC, you can pass `compression` parameter to {meth}`~jina-serve.clients.mixin.PostMixin.post` to benefit from [gRPC compression](https://grpc.github.io/grpc/python/grpc.html#compression) methods.
189
+
If the communication to the Gateway is via gRPC, you can pass `compression` parameter to {meth}`~jina.clients.mixin.PostMixin.post` to benefit from [gRPC compression](https://grpc.github.io/grpc/python/grpc.html#compression) methods.
190
190
191
191
The supported choices are: None, `gzip` and `deflate`.
192
192
@@ -212,7 +212,7 @@ One can also specify the compression of the internal communication {ref}`as desc
212
212
213
213
## Simple profiling of the latency
214
214
215
-
Before sending any real data, you can test the connectivity and network latency by calling the {meth}`~jina-serve.clients.mixin.ProfileMixin.profiling` method:
215
+
Before sending any real data, you can test the connectivity and network latency by calling the {meth}`~jina.clients.mixin.ProfileMixin.profiling` method:
When a {class}`~jina-serve.Deployment` starts, all the replicated Executors will start as well, making it possible to {ref}`reach the service through its API <third-party-client>`.
169
+
When a {class}`~jina.Deployment` starts, all the replicated Executors will start as well, making it possible to {ref}`reach the service through its API <third-party-client>`.
170
170
171
171
There are three ways to start a Deployment: In Python, from a YAML file, or from the terminal.
172
172
173
173
- Generally in Python: use Deployment as a context manager.
174
174
- As an entrypoint from terminal: use `Jina CLI <cli>` and a Deployment YAML file.
175
175
- As an entrypoint from Python code: use Deployment as a context manager inside `if __name__ == '__main__'`
176
-
- No context manager, manually call {meth}`~jina-serve.Deployment.start` and {meth}`~jina-serve.Deployment.close`.
176
+
- No context manager, manually call {meth}`~jina.Deployment.start` and {meth}`~jina.Deployment.close`.
0 commit comments