This commit is contained in:
Sean Knox 2018-08-26 17:10:41 -07:00 коммит произвёл GitHub
Родитель b0fad9344d
Коммит 923ce09e7c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -4,7 +4,8 @@ kube-advisor is a diagnostic tool for Kubernetes clusters. At the moment, it ret
![screenshot](https://user-images.githubusercontent.com/1231630/44505638-5a2c0500-a657-11e8-8bf1-1766d69fa2ff.png)
## Running in a Kubernetes cluster without RBAC enabled
## Running
### Running in a Kubernetes cluster without RBAC enabled
Just run the pod by itself:
@ -12,21 +13,21 @@ Just run the pod by itself:
# kubectl run --rm -i -t kube-advisor --image=mcr.microsoft.com/kube-advisor --restart=Never
```
## Running in a Kubernetes cluster with RBAC enabled
### Running in a Kubernetes cluster with RBAC enabled
### Create the service account and cluster role binding
#### Create the service account and cluster role binding
```bash
# kubectl apply -f https://raw.githubusercontent.com/Azure/kube-advisor/master/sa.yaml?token=ABLLDrNcuHMro9jQ0xduCaEbpzLupzQUks5bh3RhwA%3D%3D
```
### Run the pod
#### Run the pod
```bash
# kubectl run --rm -i -t kube-advisor --image=mcr.microsoft.com/kube-advisor --restart=Never --overrides="{ \"apiVersion\": \"v1\", \"spec\": { \"serviceAccountName\": \"kube-advisor\" } }"
```
### If desired, delete the service account and cluster role binding
#### If desired, delete the service account and cluster role binding
```bash
# kubectl delete -f https://raw.githubusercontent.com/Azure/kube-advisor/master/sa.yaml?token=ABLLDrNcuHMro9jQ0xduCaEbpzLupzQUks5bh3RhwA%3D%3D