This commit is contained in:
Sean Knox 2018-08-22 21:40:02 -07:00
Родитель a664b55340
Коммит 5af7979b2c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4C461E0C1242AF66
1 изменённых файлов: 28 добавлений и 0 удалений

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

@ -1,4 +1,32 @@
# Running in a Kubernetes cluster without RBAC enabled
Just run the pod by itself:
```
$ kubectl run --rm -i -t kube-resource-checker --image=seanknox/kube-resources-checker:latest --restart=Never
```
# Running in a Kubernetes cluster with RBAC enabled
1. Create the service account and cluster role binding:
```
$ kubectl apply -f https://raw.githubusercontent.com/Azure/kube-resources-checker/master/sa.yaml?token=ABLLDrNcuHMro9jQ0xduCaEbpzLupzQUks5bh3RhwA%3D%3D
```
2. Run the pod:
```
$ kubectl run --rm -i -t kube-resource-checker --image=seanknox/kube-resources-checker:latest --restart=Never --overrides="{ \"apiVersion\": \"v1\", \"spec\": { \"serviceAccountName\": \"kube-resource-checker\" } }"
```
3. If desired, delete the service account and cluster role binding:
```
$ kubectl delete -f https://raw.githubusercontent.com/Azure/kube-resources-checker/master/sa.yaml?token=ABLLDrNcuHMro9jQ0xduCaEbpzLupzQUks5bh3RhwA%3D%3D
```
# Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a