mirror of
https://github.com/vallard/drone-kube.git
synced 2026-06-04 18:24:19 +08:00
updated DOCS
This commit is contained in:
@@ -15,7 +15,7 @@ Basic example:
|
||||
pipeline:
|
||||
deploy:
|
||||
image: vallard/drone-kube
|
||||
template: deployment.yaml
|
||||
template: deployment.yaml
|
||||
```
|
||||
|
||||
Example configuration with non-default namespace:
|
||||
@@ -23,10 +23,22 @@ Example configuration with non-default namespace:
|
||||
```diff
|
||||
pipeline:
|
||||
kube:
|
||||
image: vallard/drone-kube
|
||||
template: deployment.yaml
|
||||
+ namespace: mynamespace
|
||||
```
|
||||
|
||||
You can also specify the server in the configuration as well. It could alternatively be specified as an environment variable as shown in the next section.
|
||||
|
||||
```diff
|
||||
pipeline:
|
||||
kubernetes:
|
||||
image: vallard/drone-kube
|
||||
template: deployment.yaml
|
||||
+ namespace: mynamespace
|
||||
+ server: https://10.93.234.28:6433
|
||||
```
|
||||
|
||||
## Secrets
|
||||
|
||||
The kube plugin supports reading credentials from the Drone secret store. This is strongly recommended instead of storing credentials in the pipeline configuration in plain text.
|
||||
|
||||
Reference in New Issue
Block a user