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 464975c commit eed45a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/read-from-secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ This driver also supports [reading the cloud config from Kubernetes secrets](htt
1. create `azure.json` file and fill in all necessary fields, refer to [Cloud provider config](https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/docs/cloud-provider-config.md), and here is an [example](https://github.com/andyzhangx/demo/blob/master/aks-engine/deployment/etc/kubernetes/azure.json)
2. serialize `azure.json` by following command:

```
```console
cat azure.json | base64 | awk '{printf $0}'; echo
```

3. create a secret file(`azure-cloud-provider.yaml`) with following values and fill in `cloud-config` value produced in step#2

```
```yaml
apiVersion: v1
data:
cloud-config: [fill-in-here]
Expand All @@ -28,7 +28,7 @@ type: Opaque

4. Create a `azure-cloud-provider` secret in k8s cluster

```
```console
kubectl create -f azure-cloud-provider.yaml
```

Expand Down

0 comments on commit eed45a8

Please sign in to comment.