feat: add hadolint

This commit is contained in:
Rémy-Christophe Schermesser 2019-05-21 17:27:21 +02:00
parent 5e086e11ed
commit 51cb4ce8f1
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ You can also use Kubernetes specifics linter. [kube-score](https://github.com/ze
In Kubernetes 1.13 the option [`--dry-run`](https://Kubernetes.io/blog/2019/01/14/apiserver-dry-run-and-kubectl-diff/) appeared on “kubectl”. You could also use this feature to know if your YAML are valid for Kubernetes.
### Linting `Dockerfile`
Same as above but for Dockerfiles, use a linter [hadolint](https://github.com/hadolint/hadolint) seems a good choice.
### Handle `SIGTERM` signal in your applications
Kubernetes sends this signal when it wants to stop a container. You should listen to it and react accordingly to your application (close connections, save a state, etc.).