Skip to content

Commit

Permalink
Update README with secrets
Browse files Browse the repository at this point in the history
* Add sample secrets manifest
* Add sanity test to travis job
  • Loading branch information
Cheng Pan committed Feb 13, 2019
1 parent b964043 commit d44ddfb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -15,5 +15,6 @@ script:
- make
- ./hack/verify-all
- make test
- make test-sanity
- go test -covermode=count -coverprofile=profile.cov ./pkg/...
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci
8 changes: 8 additions & 0 deletions deploy/kubernetes/secret.yaml
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
metadata:
name: aws-secret
namespace: kube-system
stringData:
key_id: "[aws_access_key_id]"
access_key: "[aws_secret_access_key]"
18 changes: 15 additions & 3 deletions docs/README.md
Expand Up @@ -33,11 +33,23 @@ Following sections are Kubernetes specific. If you are Kubernetes user, use foll
* Dynamic provisioning - uses persistence volume claim (PVC) to let the Kuberenetes to create the FSx for Lustre filesystem for you and consumes the volume from inside container.

### Installation
Deploy the driver using followings step:
Checkout the project:
```sh
>> git clone https://github.com/aws/aws-fsx-csi-driver.git
>> cd aws-fsx-csi-driver
```

Edit the [secret manifest](../deploy/kubernetes/secrets.yaml) using your favorite text editor. The secrets should have enough permission to create FSx for Lustre filesystem. Then deploy the secrets:

```sh
>> kubectl apply -f deploy/kubernetes/secrets.yaml
```
kubectl apply -f https://raw.githubusercontent.com/aws/aws-fsx-csi-driver/master/deploy/kubernetes/controller.yaml
kubectl apply -f https://raw.githubusercontent.com/aws/aws-fsx-csi-driver/master/deploy/kubernetes/node.yaml

Deploy the driver using following commands:

```sh
>> kubectl apply -f ../deploy/kubernetes/controller.yaml
>> kubectl apply -f ../deploy/kubernetes/node.yaml
```

### Examples
Expand Down

0 comments on commit d44ddfb

Please sign in to comment.