Skip to content

Commit

Permalink
Update read-from-secret.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Jul 20, 2021
1 parent 7220eb7 commit 464975c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/read-from-secret.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Read cloud config from Kubernetes secrets

- Available driver version: `v0.7.0` or above
- available driver version: `v0.7.0` or above

This driver also supports [reading the cloud config from Kubernetes secrets](https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/docs/cloud-provider-config.md#setting-azure-cloud-provider-from-kubernetes-secrets). The secret is a serialized version of `azure.json` file with key cloud-config. The secret should be put in `kube-system` namespace and its name should be `azure-cloud-provider`.

Expand Down Expand Up @@ -31,3 +31,15 @@ type: Opaque
```
kubectl create -f azure-cloud-provider.yaml
```

### specify different cloud config secret in driver deployment
- available driver version: `v1.5.0` or above
- set `cloudConfigSecretName`, `cloudConfigSecretNamesapce` in driver deployment, follow [helm chart guide](../charts/README.md#tips)
```yaml
- name: azuredisk
...
args:
...
- "--cloud-config-secret-name={{cloudConfigSecretName}}"
- "--cloud-config-secret-namespace={{cloudConfigSecretNamespace}}"
```

0 comments on commit 464975c

Please sign in to comment.